# CEXF guide: Celestium EXchange Format

**Status of this document: informative, not normative.** This guide accompanies the specification
[`CEXF-SPECIFICATION.md`](CEXF-SPECIFICATION.md). It adds no rule. If this guide and the
specification disagree, the specification governs.

**Version of this document:** describes format version **1**.

**Location:** `https://celestium.nl/cexf/v1/CEXF-GUIDE.md`, next to the specification, the schema
and the test vectors under `https://celestium.nl/cexf/v1/`.

**License.** This guide is made available under
[Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/):
`SPDX-License-Identifier: CC-BY-4.0`. © 2026 Timothy van der Ham. Rights holder: **Timothy van der
Ham**. A suitable credit reads: "CEXF guide: Celestium EXchange Format, © 2026 Timothy van der Ham,
https://celestium.nl/cexf/v1/CEXF-GUIDE.md, licensed under CC BY 4.0." The code examples and the JSON fragments
and example files printed in this guide are made available under
[Creative Commons CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/):
`SPDX-License-Identifier: CC0-1.0`. The full license declaration is in the "License" section of
the specification.

**Names and people.** 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. All persons in the examples and in the test vectors are fictitious. Any likeness to a real
person is accidental.

**What is in this guide.** A quick start, the rationale behind the rules of the specification, the full example
file ([§12](#12-full-example-file)), the explanation of the test vectors ([§12a](#12a-test-vectors)) and Appendices A to D. Everything else, the
rules themselves, is in the specification.

**How the numbering works.** A section number with a `§` and no file name, such as [§7.3](CEXF-SPECIFICATION.md#73-arithmetic-consistency-required-what-a-reader-checks), refers to
the specification. The sections [§12](#12-full-example-file) and [§12a](#12a-test-vectors) and the Appendices A, B, C and D keep
the number they have in the specification. The rationale passages carry a number of their own, `R`
followed by the section of the specification they belong to (for example R6.4 belongs to [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)); the
specification points to them by that number, and the numbers do not change.

---

## Quick start

**What CEXF is.** CEXF is an open file format for astrology data. A `.cexf` file is one JSON
document. It holds subjects (people, events, countries, organisations), the charts of each
subject, and the notes on those charts. It carries the facts you need to calculate a chart again
(moment, place, a few settings), not the calculated positions.

**Why you would use it.** The format is open and free to implement: no permission, no payment. The
data stays yours: it is plain text that you can read without the program that wrote it. A reader
that meets something it does not know does not throw the file away, it reports it and reads on.

**A minimal valid file.** One subject, one chart. This file validates against
[`cexf-schema.json`](cexf-schema.json) as it stands.

```json
{
  "format": "cexf",
  "version": 1,
  "subjects": [
    {
      "id": 1,
      "displayName": "Johanna van der Berg",
      "charts": [
        {
          "sequence": 0,
          "time": {
            "utc": "1990-04-12T08:15:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1990-04-12T10:15:00",
            "utcOffset": "+02:00"
          },
          "location": { "latitude": 52.3702, "longitude": 4.8952 }
        }
      ]
    }
  ]
}
```

`sequence: 0` marks the primary chart, which needs no `type` ([§5.1](CEXF-SPECIFICATION.md#51-type-at-sequence-0)). The four `time` fields are
all required ([§7](CEXF-SPECIFICATION.md#7-time-four-fields-and-which-one-wins-on-conflict)). So are `latitude` and `longitude` ([§7a](CEXF-SPECIFICATION.md#7a-location)).

**Build a reader and a writer in five steps.**

1. **Parse the file.** UTF-8 JSON, one leading byte order mark ignored. Refuse a file that is not
   valid JSON, or whose `format` is not `"cexf"`, or whose `version` or `subjects` is wrong
   (rows F1 and F2). Read integers exactly. See "Conformance and conventions" and [§2](CEXF-SPECIFICATION.md#2-root-object).
2. **Read the records.** Folders ([§3](CEXF-SPECIFICATION.md#3-folder)), subjects ([§4](CEXF-SPECIFICATION.md#4-subject)), charts ([§5](CEXF-SPECIFICATION.md#5-chart)), notes ([§7b](CEXF-SPECIFICATION.md#7b-note)) and references
   ([§8](CEXF-SPECIFICATION.md#8-parents-linked-charts-parents-and-source-charts)). [`cexf-schema.json`](cexf-schema.json) shows the structure of every one of them.
3. **Apply the rows of [§10](CEXF-SPECIFICATION.md#10-error-handling).** For each situation [§10.3](CEXF-SPECIFICATION.md#103-the-rows) gives one outcome class, one target and the
   notice owed. [§10.2](CEXF-SPECIFICATION.md#102-processing-order-and-precedence) gives the order in which the rows apply. A reader never crashes on input.
4. **Calculate.** Use `utc` and `location` ([§7](CEXF-SPECIFICATION.md#7-time-four-fields-and-which-one-wins-on-conflict), [§7.7](CEXF-SPECIFICATION.md#77-what-time-means-for-each-chart-type)), check the identity of [§7.3](CEXF-SPECIFICATION.md#73-arithmetic-consistency-required-what-a-reader-checks), and show
   `localTime` and `utcOffset` as written ([§7.4](CEXF-SPECIFICATION.md#74-what-wins-on-conflict-between-timezone-and-localtimeutcoffset)). For a value you cannot calculate, use your own
   choice and report it (row CH17). A chart type you do not implement is set aside and reported
   (row CH1), or, if you take it up as a chart of another kind, calculated as that kind and reported (row CH17). Never guess silently.
5. **Write.** Produce what the schema accepts and the rules the schema cannot express
   (Conformance, "What a writer must do"). Omit what you do not know: never `null` where it is
   not allowed, never an empty string. If your program also reads and writes, keep what it does
   not use: the write-back column of [§10.3](CEXF-SPECIFICATION.md#103-the-rows), unknown `parameters` keys ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)) and unknown
   `extensions` keys ([§9.3](CEXF-SPECIFICATION.md#93-what-a-reader-must-do)).

**A checklist for your first reader.** Ten lines to keep next to the editor. They summarise the
specification and add no rule.

1. Apply the rows in the order of [§10.2](CEXF-SPECIFICATION.md#102-processing-order-and-precedence): file (F1 to F4), entries (E1), folders, subjects, charts,
   references (RF5 first, then RF2, RF3 and RF6, then RF1 and RF4), notes.
2. Validate per record, never the whole document as a gate. A schema failure in a defining member
   costs the record that holds it (rows E1 to E3), not the file. A failure in an informative
   member (E5) costs only that member: report it, leave it out and keep the record. An invalid
   calculation parameter (CH5) costs nothing either: report it and use your own choice.
3. Refuse a file only for F1 or F2. A higher `version` (F3) is read structurally and its `version`
   is kept. A stray root key (F4) is reported and the file is read on.
4. Tell absent from unrecognised. Absent means the documented default or "no opinion". A value
   you do not recognise is reported and never read as absent.
5. For a value you cannot calculate, use your own choice, say so (CH17) and keep the value. Set
   aside a chart type you do not implement (CH1), or report that you took it up as another kind (CH17). Never guess silently, never crash.
6. Calculate from `utc` and `location`, check the identity of [§7.3](CEXF-SPECIFICATION.md#73-arithmetic-consistency-required-what-a-reader-checks), and show `localTime` and
   `utcOffset` as written.
7. Write the calculation parameters ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)) you know. Write no `null` (except `parentId` and
   `folderId`) and no empty string.
8. If you also write, keep what the write-back column of [§10.3](CEXF-SPECIFICATION.md#103-the-rows) says is kept, unknown `parameters`
   keys and unknown `extensions` keys.
9. Give every notice the row, the record and, when a value caused it, the field and the value.
10. Support only what you need. A reader may skip any chart type or register value, as long as it
    reports it and never says it used what it did not use.

**Check your work.** Run every document in
[`cexf-test-vectors.json`](cexf-test-vectors.json) through your validator and your reader. Section
12a of this guide says what each one is for.

**Where to find things.** The rules: [`CEXF-SPECIFICATION.md`](CEXF-SPECIFICATION.md). The schema:
[`cexf-schema.json`](cexf-schema.json). The test vectors:
[`cexf-test-vectors.json`](cexf-test-vectors.json). The reasons behind the rules: the "Rationale"
part of this guide. Pitfalls by programming language: Appendix B of this guide. All of them live
under `https://celestium.nl/cexf/v1/`.

---

## Minimum support

This section is a summary and it is informative. "Conformance and conventions" in the specification governs.

A **conformant reader** applies [§10](CEXF-SPECIFICATION.md#10-error-handling) to every document. For every situation named there it
produces the outcome class, the target and the notice that the row gives, and it never crashes
on input. It may be partial in what it uses: a reader that shows charts and calculates nothing is
conformant, as long as it never claims a record is used that it did not use and never changes a
value without a notice. A reader that also writes (a **round-tripping reader**) satisfies the
write-back column of [§10](CEXF-SPECIFICATION.md#10-error-handling) as well.

A **conformant writer** produces only documents that validate against `cexf-schema.json` and
that satisfy every rule the schema cannot express: the identity of [§7.3](CEXF-SPECIFICATION.md#73-arithmetic-consistency-required-what-a-reader-checks), unique ids and sequences,
references that resolve, and the rules for `time` per chart type ([§7](CEXF-SPECIFICATION.md#7-time-four-fields-and-which-one-wins-on-conflict)). It writes UTF-8 without a
byte order mark, never writes `null` where it is not allowed or an empty string, and writes the
required parameters of a derived chart.

A reader does not need to implement every chart type or every register value. For a value it
cannot calculate it uses its own choice and reports that ([§10](CEXF-SPECIFICATION.md#10-error-handling), row CH17). A chart type that it does
not implement is set aside and reported (row CH1), or, if it takes the type up as a chart of another kind, calculated as that kind and reported (row CH17). An invalid informative member, such as a blank
name or a note with a date that does not exist, is reported and left out, and the record stays
(row E5). It never guesses silently. A reader that
calculates nothing does not apply rows CH5 and CH13 (it chooses no parameter and draws no houses)
and of row CH17 it has only the cases that no reader can calculate. Every other row applies to it, CH19
included: it still shows the local time without knowing the clock. Calculated positions and houses
are not part of a file ([§11](CEXF-SPECIFICATION.md#11-what-isnt-carried-positions-and-houses)).

## How to read the specification

The core of the specification is normative. This guide holds the rationale, the quick start, the worked
example files, the full example file ([§12](#12-full-example-file)), the explanation of the test vectors ([§12a](#12a-test-vectors)) and Appendices A to D,
and is informative.

The numbered sections ([§1](CEXF-SPECIFICATION.md#1-basic-principles) to [§15](CEXF-SPECIFICATION.md#15-feedback-and-proposing-extensions), with [§13](CEXF-SPECIFICATION.md#13-reserved) reserved), the sub-sections 7a to 7c and 12a, and the
appendices are a lot to take in at once, and not every reader needs all of them. Start with
"Minimum support" above and then "Conformance and conventions" in the specification, which defines the words the rules
use. Then pick a path based on what you're building:

- **Just reading `.cexf` files.** [§1](CEXF-SPECIFICATION.md#1-basic-principles) (basic principles), [§2](CEXF-SPECIFICATION.md#2-root-object) through [§9](CEXF-SPECIFICATION.md#9-extensions-a-per-vendor-namespace-mechanism) (the field reference),
  and [§10](CEXF-SPECIFICATION.md#10-error-handling) (error handling) are the core. That's the whole vocabulary and the rules for what to
  do when something doesn't check out. Skim [§12](#12-full-example-file) for a worked example once the field reference
  starts to feel abstract.
- **Also writing `.cexf` files.** Everything above, plus [§10](CEXF-SPECIFICATION.md#10-error-handling)'s versioning rules and [§14](CEXF-SPECIFICATION.md#14-two-ways-of-exporting) (the
  two ways of exporting), which matters the moment your writer has more than one destination in
  mind.
- **Comparing your reader with the reference implementation.** All of the above, plus Appendix A,
  which lists where the reference implementation does less than the format allows and which
  notice it then issues.
- **About to write your first reader or writer.** Appendix B collects what seven independent
  implementers, working from an earlier version of the specification alone in seven different languages, actually tripped
  over. It is short.
- **Only validating files, not implementing a reader or writer.** [`cexf-schema.json`](cexf-schema.json)
  plus the worked example in [§12](#12-full-example-file) will usually get you there without reading the rest. [§12a](#12a-test-vectors)'s test
  vectors give a larger, pre-validated set of accepted and rejected documents to run your own
  validator against, without writing any of your own.
- **Converting from or to another program's format.** Appendix C lists the names other programs
  use for the ayanamsas in [§7c.2](CEXF-SPECIFICATION.md#7c2-registered-values). Appendix D summarises how to record a chart from nine other
  formats in this one, and what is lost on the way.
- **Unfamiliar astrological terms.** The [Glossary](#glossary) at the end explains `ayanamsa`, `horary`,
  `syzygy`, and the other terms the specification uses, in plain language, for a competent
  developer who isn't an astrologer.

## 12. Full example file

This example demonstrates:

- a person with multiple derived charts (Johanna: solar return, composite, `secondary-progression`
  with `parameters` including `direction: "converse"`, relocation, electional, and group
  composite);
- a composite chart with two parents from **different** subjects (Johanna + Mark), and a
  **group composite with three parents** from three different subjects (Johanna + Mark + Els);
- a **relocation chart** with a source reference (`role: "source"`) to Johanna's own natal
  chart, the same `utc`, a different place (New York instead of Amsterdam);
- a **planetary return** (Mark, Jupiter) with the `body` parameter;
- a log note on a chart, with and without `createdAt`, and a subject note (two different things);
- the optional members of a recorded birth: `time.dstOffset` (summer time, [§7.11](CEXF-SPECIFICATION.md#711-timedstoffset-the-summer-time-part-of-the-offset)), `source` with
  a `kind` ([§5.2](CEXF-SPECIFICATION.md#52-source-where-the-charts-data-came-from)), and `location.region` with `location.countryCode` ([§7a](CEXF-SPECIFICATION.md#7a-location));
- a chart with an **unknown time** (Sanne, and again for the country below, with
  second-level precision in `utcOffset` to show a historical local-mean-time offset: Münster
  doesn't sit on a round time-zone boundary);
- a **non-person** subject (`kind: "country"`).

The timestamps were chosen by hand to be arithmetically consistent (`utc` + `utcOffset` =
`localTime`, see [§7.3](CEXF-SPECIFICATION.md#73-arithmetic-consistency-required-what-a-reader-checks)) but have **not** been verified against an ephemeris: they illustrate
the format, not astronomical correctness.

```json
{
  "format": "cexf",
  "version": 1,
  "generatedAt": "2026-07-26T10:00:00Z",
  "generator": "Celestium Exchange 1.7.0",
  "folders": [
    { "id": 1, "name": "Clients" }
  ],
  "subjects": [
    {
      "id": 1,
      "displayName": "Johanna van der Berg",
      "givenName": "Johanna",
      "namePrefix": "van der",
      "familyName": "Berg",
      "folderId": 1,
      "notes": "Friend of Mark's; first consultation March 3, 2024.",
      "charts": [
        {
          "sequence": 0,
          "label": "Radix",
          "time": {
            "utc": "1990-04-12T08:15:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1990-04-12T10:15:00",
            "utcOffset": "+02:00",
            "dstOffset": 3600,
            "unknown": false
          },
          "location": {
            "latitude": 52.3702,
            "longitude": 4.8952,
            "altitude": 0,
            "placeName": "Amsterdam",
            "region": "Noord-Holland",
            "country": "Netherlands",
            "countryCode": "NL"
          },
          "source": {
            "rating": "A",
            "kind": "civil-record",
            "text": "Birth certificate, seen by the astrologer."
          },
          "notes": [
            {
              "title": "First impression",
              "text": "Strong Moon-Pluto in the 8th house; works as a grief counselor.",
              "createdAt": "2024-03-03T14:00:00Z"
            },
            {
              "title": "Rectification",
              "text": "The recorded time was checked against the birth certificate."
            }
          ]
        },
        {
          "sequence": 1,
          "type": "solar-return",
          "label": "Solar return 2026",
          "time": {
            "utc": "2026-04-12T09:03:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "2026-04-12T11:03:00",
            "utcOffset": "+02:00"
          },
          "location": {
            "latitude": 52.3702,
            "longitude": 4.8952,
            "placeName": "Amsterdam",
            "country": "Netherlands"
          }
        },
        {
          "sequence": 2,
          "type": "composite",
          "label": "Composite with Mark",
          "time": {
            "utc": "1989-07-23T03:57:30Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1989-07-23T05:57:30",
            "utcOffset": "+02:00"
          },
          "location": {
            "latitude": 52.2305,
            "longitude": 5.0083,
            "placeName": "Composite point (Amsterdam/Utrecht)"
          },
          "parents": [
            { "subject": 1, "sequence": 0, "role": "parent" },
            { "subject": 2, "sequence": 0, "role": "parent" }
          ]
        },
        {
          "sequence": 3,
          "type": "secondary-progression",
          "label": "Secondary progression 2026 (converse)",
          "time": {
            "utc": "2026-06-24T02:40:24Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "2026-06-24T04:40:24",
            "utcOffset": "+02:00"
          },
          "location": {
            "latitude": 52.3702,
            "longitude": 4.8952,
            "placeName": "Amsterdam",
            "country": "Netherlands"
          },
          "parameters": {
            "age": "36.200000",
            "direction": "converse"
          }
        },
        {
          "sequence": 4,
          "type": "relocation",
          "label": "Relocation New York",
          "time": {
            "utc": "1990-04-12T08:15:00Z",
            "timeZone": "America/New_York",
            "localTime": "1990-04-12T04:15:00",
            "utcOffset": "-04:00"
          },
          "location": {
            "latitude": 40.7128,
            "longitude": -74.006,
            "placeName": "New York",
            "country": "United States"
          },
          "parents": [
            { "subject": 1, "sequence": 0, "role": "source" }
          ]
        },
        {
          "sequence": 5,
          "type": "electional",
          "label": "When to sign the lease?",
          "time": {
            "utc": "2026-06-15T09:00:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "2026-06-15T11:00:00",
            "utcOffset": "+02:00"
          },
          "location": {
            "latitude": 52.3702,
            "longitude": 4.8952,
            "placeName": "Amsterdam",
            "country": "Netherlands"
          },
          "parameters": {
            "question": "Best moment to sign the lease"
          },
          "houseSystem": "regiomontanus"
        },
        {
          "sequence": 6,
          "type": "group-composite",
          "label": "Group composite: Johanna, Mark and Els",
          "time": {
            "utc": "1990-06-02T06:58:20Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1990-06-02T08:58:20",
            "utcOffset": "+02:00"
          },
          "location": {
            "latitude": 52.5601,
            "longitude": 5.5277,
            "placeName": "Group composite point"
          },
          "parents": [
            { "subject": 1, "sequence": 0, "role": "parent" },
            { "subject": 2, "sequence": 0, "role": "parent" },
            { "subject": 5, "sequence": 0, "role": "parent" }
          ]
        }
      ]
    },
    {
      "id": 2,
      "displayName": "Mark de Groot",
      "givenName": "Mark",
      "namePrefix": "de",
      "familyName": "Groot",
      "folderId": 1,
      "charts": [
        {
          "sequence": 0,
          "label": "Radix",
          "time": {
            "utc": "1988-11-01T23:40:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1988-11-02T00:40:00",
            "utcOffset": "+01:00"
          },
          "location": {
            "latitude": 52.0907,
            "longitude": 5.1214,
            "placeName": "Utrecht",
            "country": "Netherlands"
          },
          "zodiacSystem": "sidereal",
          "ayanamsa": "lahiri"
        },
        {
          "sequence": 1,
          "type": "planet-return",
          "label": "Jupiter return 2024",
          "time": {
            "utc": "2024-11-10T15:00:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "2024-11-10T16:00:00",
            "utcOffset": "+01:00"
          },
          "location": {
            "latitude": 51.9244,
            "longitude": 4.4777,
            "placeName": "Rotterdam",
            "country": "Netherlands"
          },
          "parameters": {
            "body": "jupiter"
          }
        }
      ]
    },
    {
      "id": 5,
      "displayName": "Els Jansen",
      "givenName": "Els",
      "familyName": "Jansen",
      "folderId": 1,
      "charts": [
        {
          "sequence": 0,
          "label": "Radix",
          "time": {
            "utc": "1992-02-20T13:00:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1992-02-20T14:00:00",
            "utcOffset": "+01:00"
          },
          "location": {
            "latitude": 53.2194,
            "longitude": 6.5665,
            "placeName": "Groningen",
            "country": "Netherlands"
          }
        }
      ]
    },
    {
      "id": 3,
      "displayName": "Sanne Bakker",
      "givenName": "Sanne",
      "familyName": "Bakker",
      "charts": [
        {
          "sequence": 0,
          "label": "Radix",
          "time": {
            "utc": "1975-07-01T11:00:00Z",
            "timeZone": "Europe/Brussels",
            "localTime": "1975-07-01T12:00:00",
            "utcOffset": "+01:00",
            "unknown": true
          },
          "location": {
            "latitude": 50.8503,
            "longitude": 4.3517,
            "placeName": "Brussels",
            "country": "Belgium"
          }
        }
      ]
    },
    {
      "id": 4,
      "kind": "country",
      "displayName": "Netherlands",
      "charts": [
        {
          "sequence": 0,
          "label": "Peace of Münster",
          "time": {
            "utc": "1648-01-30T11:29:30Z",
            "timeZone": "Europe/Berlin",
            "localTime": "1648-01-30T12:00:00",
            "utcOffset": "+00:30:30",
            "standard": "lmt",
            "unknown": true
          },
          "location": {
            "latitude": 51.9607,
            "longitude": 7.6261,
            "placeName": "Münster",
            "country": "Holy Roman Empire"
          }
        }
      ]
    }
  ]
}
```

**Reading notes for the example:**

- Subject 4 (Netherlands) shows why `utcOffset` allows second-level precision: `+00:30:30` is
  not a round time zone but a local-mean-time offset: Münster lies at 7.6261 degrees east, which
  is 7.6261 x 240 = 1830.264 seconds, rounded to 1830 seconds, and `standard` is `lmt` ([§7.9](CEXF-SPECIFICATION.md#79-timestandard-the-clock-the-local-time-was-read-on)). It
  is exactly the kind of pre-1970 uncertainty from [§7.1](CEXF-SPECIFICATION.md#71-why-utc-and-a-time-zone-are-not-enough); `timeZone` names the region that now
  contains the place ([§7.8](CEXF-SPECIFICATION.md#78-a-source-that-knows-only-an-offset-or-local-mean-time)). `unknown: true` here stands for "no exactly recorded time of
  the event," not a birth time: the same flag, applied more broadly than Celestium's current
  usage (which only sets it on birth charts, see [§7.5](CEXF-SPECIFICATION.md#75-the-unknown-flag)).
- Subject 1's third chart (`composite`) refers, with `role: "parent"`, to
  `{"subject": 2, "sequence": 0}`, Mark's natal chart. A reference like that to another subject
  is exactly what a chart reference makes possible ([§8](CEXF-SPECIFICATION.md#8-parents-linked-charts-parents-and-source-charts)). Its `time` and `location` are the
  midpoints of the parents' moments and places, attached for display ([§7.7](CEXF-SPECIFICATION.md#77-what-time-means-for-each-chart-type)).
- Subject 1's fourth chart (`secondary-progression`) demonstrates `parameters` with both `age`
  and `direction` ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)): a converse direction at age 36.2 is written here as
  `age: "36.200000"` + `direction: "converse"`, six decimals, the floor from [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type), even though
  the last four here are zeros. `direction` is required and present here, as with every chart
  of these six kinds (see the table in [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type) and [§10](CEXF-SPECIFICATION.md#10-error-handling)); a writer never omits it, not even in the
  non-conversive case. Its `time` is the real-life moment to which the direction applies, 36.2
  years after the birth ([§7.7](CEXF-SPECIFICATION.md#77-what-time-means-for-each-chart-type)).
- Subject 1's fifth chart (`relocation`, sequence 4) has the same `time.utc` as her natal chart
  (`1990-04-12T08:15:00Z`) but a different place (New York) and therefore a different
  `timeZone`/`localTime`/`utcOffset`; the `parents` reference uses `role: "source"`, not
  `"parent"`. See [§8](CEXF-SPECIFICATION.md#8-parents-linked-charts-parents-and-source-charts), "Relocation: the same `utc`, a different place."
- Subject 1's sixth chart (`electional`, sequence 5) uses the `question` parameter for the
  purpose of the election, not for a horary question: the same key as `horary`, a different
  meaning, see [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type). It also carries `houseSystem: "regiomontanus"`, traditional for this kind
  of moment chart, and unlike the natal charts in this file, which carry no `houseSystem`
  (Celestium, after all, only supplies that field as a writer's choice for a different program,
  see [§7c](CEXF-SPECIFICATION.md#7c-zodiacsystem-ayanamsa-and-housesystem-universal-per-chart-settings)).
- Subject 2's natal chart (Mark) carries `zodiacSystem: "sidereal"` + `ayanamsa: "lahiri"`, the
  only sidereal example in this file. See [§7c](CEXF-SPECIFICATION.md#7c-zodiacsystem-ayanamsa-and-housesystem-universal-per-chart-settings) for why this is its own field and not a
  parameter.
- Subject 1's seventh chart (`group-composite`, sequence 6) has **three** `parents` items (role
  `parent`), from three different subjects (Johanna, Mark, Els): exactly the case `composite`
  (exactly two) cannot express. See [§6.3](CEXF-SPECIFICATION.md#63-keys-with-no-celestium-counterpart-and-why-theyre-already-here) and [§8](CEXF-SPECIFICATION.md#8-parents-linked-charts-parents-and-source-charts).
- Subject 2 (Mark) gets a second chart, `planet-return` with `parameters.body: "jupiter"`, a
  planetary return that is neither Sun nor Moon, cast for a different place (Rotterdam) than his
  birthplace (Utrecht), as return charts often are ([§6.3](CEXF-SPECIFICATION.md#63-keys-with-no-celestium-counterpart-and-why-theyre-already-here)).
- Subject 5 (Els Jansen) exists solely to supply the third parent of the group composite: a
  subject with no further derived charts is just as valid as any other.

### Validation against the schema

This example validates against `cexf-schema.json`. With the Python `jsonschema` package
(Draft 2020-12), for instance:

```
$ python -c "
import json, jsonschema
schema = json.load(open('cexf-schema.json', encoding='utf-8'))
example = json.load(open('example.cexf', encoding='utf-8'))
jsonschema.Draft202012Validator.check_schema(schema)   # the schema itself is a valid schema
jsonschema.Draft202012Validator(schema).validate(example)
print('OK')
"
OK
```

The schema does not vacuously allow anything at all: a series of deliberately invalid variants
is rejected. They include a derived chart with no `type`, a `harmonic` chart
with no `parameters.number`, a wrong `format` value, a latitude out of range, a malformed
`utcOffset`, a `utc` timestamp with eight fractional digits (beyond the 1-7 limit from [§7.2](CEXF-SPECIFICATION.md#72-the-four-fields)), a
`relocation` with the wrong role (`parent` instead of `source`) or with two source references
(at most one is allowed), a `composite` with three parents
(at most two are allowed), a `planet-return` with no `body`, a `direction` value outside
`direct`/`converse`, a `secondary-progression` chart where `direction` is entirely absent (invalid,
see [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)/[§10](CEXF-SPECIFICATION.md#10-error-handling), since `direction` is required), a negative `age` (invalid: the
direction belongs in `direction`, not in the sign), and an `age` with only two decimals
(`"34.50"`, invalid: the floor from [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type) is 6). Each of these is correctly rejected; the
matching valid counterparts (a `group-composite` **with** three parents, a `planet-return`
**with** `body`, a `secondary-progression` with `direction: "converse"`, a
`sidereal-minor-progression` and a `minor-progression` with both `age`+`direction` present, an
`electional` with or without `question`, an `age` with 6 decimals, and an `age` with 15 decimals
carrying a bit-exact `double` value) are correctly accepted. The test vectors in [§12a](#12a-test-vectors)
systematise this.

**Five points about the validator you use.** None of them comes from the seven independent
implementations; they come from running validators against `cexf-schema.json`.

- **A schema validator that calculates with decimals** (on .NET, JsonSchema.Net does). A bound such
  as `latitude` 90 is compared as binary64 (Terms, "Comparison of numbers"). A validator that
  compares the decimal value of the text rejects `90.0000000000000001`, which the specification reads
  as 90. Convert the number to the nearest binary64 value before you validate; TV-301 tests this.
- **A number that overflows binary64** (TV-308, TV-327, TV-348, TV-349, TV-350) is outside every range, except in the value of a key of `extensions` or `modifierExtensions`, where it is not checked (Terms, "Comparison of numbers"). Validators differ on such a number, so the rule of the specification decides, and `schemaResult` follows it (§12a).
- **Ajv compiles `cexf-schema.json` in strict mode** (`strict: true`).
- **The regular expressions in `cexf-schema.json` are ECMA-262 patterns.** An engine with another
  dialect (Python's `re` is one) reads two things differently. In Python's `re` and in .NET `\d` also matches digits of other
  scripts, so write it as `[0-9]` there, and `$` at the end also matches before a final line feed.
  In Python's `re`, validate against a copy of the schema in which every `\d` is written `[0-9]` and the
  closing `$` of every `pattern` is written `\Z` (there the absolute end of the text). In another dialect
  use its anchor for the absolute end: `\z` in .NET, Java and PCRE, where `\Z` also matches before a final
  line feed.
- **Python reads text that is not JSON, and numbers that are not finite.** Read the text with
  `json.loads(text, parse_float=f, parse_int=h, parse_constant=g)`, where `g` raises an error for `NaN`, `Infinity`
  and `-Infinity`, which are not JSON (row F1); without it Python returns `nan` and `inf`. The hooks `f` and `h`
  do not know where a number stands, and the specification does not look at every number: a number
  in the value of a key of `extensions` or `modifierExtensions` is not checked, also when it converts to
  infinity (Terms, "Comparison of numbers"). So let `f` return `float('inf')` (that is, `float(s)`) for
  such a number, let `h` do the same for a whole number that does not fit in binary64 (`lambda s: float(s) if math.isinf(float(s)) else int(s)`, which keeps every other whole number exact), and after reading reject the document when an infinite value stands anywhere outside the
  value of a key of `extensions` or `modifierExtensions`, because such a number is outside every range.
  With these settings and the copy of the schema, the `schemaResult` column of the test vectors is a short
  check (TV-350 comes out `valid`).

---

## Worked example files for the sections

Each example below is a complete file that validates against `cexf-schema.json`. It belongs to the section named in its heading. It is informative: an example is never a rule.

### X4.4 A standalone horary chart (§4.4)

A standalone horary chart: a subject of `kind` `horary`, whose primary chart is the chart of the question. The subject carries no birth data of the querent:

```json
{
  "format": "cexf",
  "version": 1,
  "subjects": [
    {
      "id": 1,
      "kind": "horary",
      "displayName": "Kees Bakker",
      "charts": [
        {
          "sequence": 0,
          "time": {
            "utc": "2026-03-14T18:30:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "2026-03-14T19:30:00",
            "utcOffset": "+01:00"
          },
          "location": {
            "latitude": 52.0907,
            "longitude": 5.1214,
            "placeName": "Utrecht"
          },
          "parameters": {
            "question": "Will I find my keys again?"
          }
        }
      ]
    }
  ]
}
```

### X5.2 A chart with all three members of `source` (§5.2)

A complete file in which the radix carries all three members of `source`:

```json
{
  "format": "cexf",
  "version": 1,
  "subjects": [
    {
      "id": 1,
      "displayName": "Anna Jansen",
      "givenName": "Anna",
      "familyName": "Jansen",
      "charts": [
        {
          "sequence": 0,
          "time": {
            "utc": "1990-04-12T08:15:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1990-04-12T10:15:00",
            "utcOffset": "+02:00"
          },
          "location": {
            "latitude": 52.3702,
            "longitude": 4.8952,
            "placeName": "Amsterdam"
          },
          "source": {
            "rating": "AA",
            "kind": "civil-record",
            "text": "Birth certificate, seen by the astrologer."
          }
        }
      ]
    }
  ]
}
```

### X7.7 A composite chart without `time` and `location` (§7.7)

A composite chart without `time` and `location`: the writer has no moment to attach to it, and the positions come from the two parents. The chart is a derived chart of one of the two subjects, here the first, with the other as its second parent:

```json
{
  "format": "cexf",
  "version": 1,
  "subjects": [
    {
      "id": 1,
      "displayName": "Anna Jansen",
      "givenName": "Anna",
      "familyName": "Jansen",
      "charts": [
        {
          "sequence": 0,
          "time": {
            "utc": "1990-04-12T08:15:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1990-04-12T10:15:00",
            "utcOffset": "+02:00"
          },
          "location": {
            "latitude": 52.3702,
            "longitude": 4.8952,
            "placeName": "Amsterdam"
          }
        },
        {
          "sequence": 1,
          "type": "composite",
          "parents": [
            {
              "subject": 1,
              "sequence": 0,
              "role": "parent"
            },
            {
              "subject": 2,
              "sequence": 0,
              "role": "parent"
            }
          ]
        }
      ]
    },
    {
      "id": 2,
      "displayName": "Bart de Vries",
      "givenName": "Bart",
      "familyName": "de Vries",
      "charts": [
        {
          "sequence": 0,
          "time": {
            "utc": "1988-11-02T10:30:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1988-11-02T11:30:00",
            "utcOffset": "+01:00"
          },
          "location": {
            "latitude": 52.3702,
            "longitude": 4.8952,
            "placeName": "Amsterdam"
          }
        }
      ]
    }
  ]
}
```

### X7.11 A birth in summer time (§7.11)

A birth in summer time. `utcOffset` is the whole offset; `dstOffset` says that 3600 seconds of it are summer time, so the clock without summer time runs at `+01:00`:

```json
{
  "format": "cexf",
  "version": 1,
  "subjects": [
    {
      "id": 1,
      "displayName": "Bart de Vries",
      "givenName": "Bart",
      "familyName": "de Vries",
      "charts": [
        {
          "sequence": 0,
          "time": {
            "utc": "1990-07-01T12:00:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1990-07-01T14:00:00",
            "utcOffset": "+02:00",
            "dstOffset": 3600
          },
          "location": {
            "latitude": 52.3702,
            "longitude": 4.8952,
            "placeName": "Amsterdam"
          }
        }
      ]
    }
  ]
}
```

### X7a A place with `region` and `countryCode` (§7a)

A place with the two optional members that name the country and the region in a form a program can use:

```json
{
  "format": "cexf",
  "version": 1,
  "subjects": [
    {
      "id": 1,
      "displayName": "Anna Jansen",
      "givenName": "Anna",
      "familyName": "Jansen",
      "charts": [
        {
          "sequence": 0,
          "time": {
            "utc": "1990-04-12T08:15:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1990-04-12T10:15:00",
            "utcOffset": "+02:00"
          },
          "location": {
            "latitude": 52.3702,
            "longitude": 4.8952,
            "placeName": "Amsterdam",
            "region": "Noord-Holland",
            "country": "Nederland",
            "countryCode": "NL"
          }
        }
      ]
    }
  ]
}
```

### X7b A note without `createdAt` (§7b)

A note without `createdAt`. Absence means that it is not recorded; a writer does not invent a moment:

```json
{
  "format": "cexf",
  "version": 1,
  "subjects": [
    {
      "id": 1,
      "displayName": "Anna Jansen",
      "givenName": "Anna",
      "familyName": "Jansen",
      "charts": [
        {
          "sequence": 0,
          "time": {
            "utc": "1990-04-12T08:15:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1990-04-12T10:15:00",
            "utcOffset": "+02:00"
          },
          "location": {
            "latitude": 52.3702,
            "longitude": 4.8952,
            "placeName": "Amsterdam"
          },
          "notes": [
            {
              "title": "Rectification",
              "text": "The time was rectified on the events of 1998."
            }
          ]
        }
      ]
    }
  ]
}
```

### X7c.3 A transit chart with the frame `barycentric` (§7c.3)

A transit chart cast as seen from the centre of mass of the solar system. The registered value is written as it stands in the register:

```json
{
  "format": "cexf",
  "version": 1,
  "subjects": [
    {
      "id": 1,
      "displayName": "Anna Jansen",
      "givenName": "Anna",
      "familyName": "Jansen",
      "charts": [
        {
          "sequence": 0,
          "time": {
            "utc": "1990-04-12T08:15:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1990-04-12T10:15:00",
            "utcOffset": "+02:00"
          },
          "location": {
            "latitude": 52.3702,
            "longitude": 4.8952,
            "placeName": "Amsterdam"
          }
        },
        {
          "sequence": 1,
          "type": "transit",
          "time": {
            "utc": "2026-01-01T12:00:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "2026-01-01T13:00:00",
            "utcOffset": "+01:00"
          },
          "location": {
            "latitude": 52.3702,
            "longitude": 4.8952,
            "placeName": "Amsterdam"
          },
          "frame": "barycentric"
        }
      ]
    }
  ]
}
```

### X7c.4 A chart in the draconic zodiac of the mean node (§7c.4)

A chart in the draconic zodiac of the mean node:

```json
{
  "format": "cexf",
  "version": 1,
  "subjects": [
    {
      "id": 1,
      "displayName": "Anna Jansen",
      "givenName": "Anna",
      "familyName": "Jansen",
      "charts": [
        {
          "sequence": 0,
          "time": {
            "utc": "1990-04-12T08:15:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1990-04-12T10:15:00",
            "utcOffset": "+02:00"
          },
          "location": {
            "latitude": 52.3702,
            "longitude": 4.8952,
            "placeName": "Amsterdam"
          },
          "zodiacSystem": "draconic-mean-node"
        }
      ]
    }
  ]
}
```

### X7c.5 A sidereal chart with a `customAyanamsa` (§7c.5)

A sidereal chart with an ayanamsa that has no name in the register, a value at an epoch plus a constant rate:

```json
{
  "format": "cexf",
  "version": 1,
  "subjects": [
    {
      "id": 1,
      "displayName": "Anna Jansen",
      "givenName": "Anna",
      "familyName": "Jansen",
      "charts": [
        {
          "sequence": 0,
          "time": {
            "utc": "1990-04-12T08:15:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1990-04-12T10:15:00",
            "utcOffset": "+02:00"
          },
          "location": {
            "latitude": 52.3702,
            "longitude": 4.8952,
            "placeName": "Amsterdam"
          },
          "zodiacSystem": "sidereal",
          "customAyanamsa": {
            "model": "linear",
            "valueDeg": 23.85,
            "epochJdTt": 2451545.0,
            "rateArcsecPerYear": 50.29
          }
        }
      ]
    }
  ]
}
```

### X7c.6 A primary chart that records `lunarNode` and `blackMoon` (§7c.6)

A primary chart that records both variants:

```json
{
  "format": "cexf",
  "version": 1,
  "subjects": [
    {
      "id": 1,
      "displayName": "Anna Jansen",
      "charts": [
        {
          "sequence": 0,
          "time": {
            "utc": "1990-04-12T08:15:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1990-04-12T10:15:00",
            "utcOffset": "+02:00"
          },
          "location": { "latitude": 52.3702, "longitude": 4.8952 },
          "lunarNode": "true",
          "blackMoon": "osculating-apogee"
        }
      ]
    }
  ]
}
```

## Rationale

Each passage below gives the reasons behind a rule of the specification. The specification keeps the rule and points here for the reasons. The headings give the numbering `R` plus the section of the specification they belong to.

### R0 Why this format exists

The data someone enters into an astrology program is theirs. Names, birth details, notes:
often not even their own data, but a client's. That information shouldn't be locked inside one
program's database, readable only for as long as that particular program keeps running on that
particular machine.

This format exists so that data can move: to another installation of the same program, to a
different program entirely, or into a file you can still open and read yourself in ten years,
whether or not the program that wrote it still exists.

That purpose isn't a footnote. It runs through several of the design choices below:

- **Readable JSON, not a binary format** ([§1](CEXF-SPECIFICATION.md#1-basic-principles)): you should be able to open the file and make
  sense of it yourself, without the program that wrote it.
- **A published specification under a permissive license** (see "License" below): an
  unpublished or restrictively licensed format can only be read by its own creator. That isn't
  an escape route; it's a second lock.
- **No calculated positions in the file** ([§11](CEXF-SPECIFICATION.md#11-what-isnt-carried-positions-and-houses)): those belong to a program's calculation step,
  not to your data. Carrying them would tie the file to one program's astronomical engine
  instead of to the birth facts themselves.

### R1 Why an empty string is never a value, and why `null` is not a patch operation (§1)

**An empty string against an omitted key.** Without a rule, writer
A could send `"country": ""` where writer B omits the same key, for exactly the same
intent ("no country known"), and a reader that checks text length ("is a country filled in?")
would get inconsistent behaviour between two files that are substantively identical. Hence:

**Why there is a floor.** This also rules out a related risk: without a
floor, an empty string would technically satisfy a rule such as "a note needs a title or a text"
([§7b](CEXF-SPECIFICATION.md#7b-note)), while the whole point of such a rule is that there is meaningful content there.

**Why `null` is not a patch operation.** If a CEXF diff/synchronisation
companion format ever come along, that is the right, separate place to introduce that
convention, not this base specification, which only describes complete, self-contained
documents.

### R3.1 Why `protected` records a lock and never carries it (§3.1)

Some programs let a user put a four-digit code on a folder so its contents stay hidden. That
raises a question this format has to answer, because both obvious answers are wrong.

**Carrying the secret is wrong.** A writer must not put a passphrase, a hash, a salt, or any
other derivative of the secret into a `.cexf` file, in any field, including `extensions`. The
arithmetic is unforgiving: a four-digit code has ten thousand possibilities, and against a hash
you hold, you can try all of them offline. A file format built to be emailed
around would then be carrying the code in everything but name, and the user who set that code
would have no way of knowing.

**Dropping it silently is also wrong.** Someone who deliberately locks a folder and then
exports it should not discover, or fail to discover, that the lock quietly evaporated in
transit. Silence here is the same failure the specification refuses elsewhere: input that
looks fine and behaves differently than the user believes.

So the format records the fact and nothing else. `protected: true` says a lock existed. What a
reader does with that is its own business, and there is a spectrum of reasonable answers:
report it and move on, or ask the user for a fresh code during the import. The reference
implementation (Appendix A) takes the second route, with an extra step in its import wizard
listing every protected folder and a field for a new code, which may be left empty. What a reader must not do is treat the flag
as a reason to invent a code, or to refuse the folder.

Note that this makes `protected` an unusual field: it never round-trips a value. Export a
protected folder, import it, export it again, and whether the flag survives depends entirely on
whether the receiving side re-established a lock. That is not an inconsistency in the format.
It is what happens when the thing being described deliberately stays behind.

### R4.1 Why `subject` and not `person` (§4.1)

Celestium hangs everything off a person today, but a chart can just as well belong to an
event, a country, or an organisation: Celestium already has a chart type for exactly that
purpose (the mundane chart, see [§6.2](CEXF-SPECIFICATION.md#62-the-chart-type-keys)). Adding a field to a version-numbered format is cheap
later; renaming the core entity after publication breaks every third party who has already
implemented it. That is why the core entity is called `subject` here from the start.

**Current state:** Celestium (the main application) today knows no
subject kind other than a person; there is no place in its data model that could hold anything
else. Celestium Exchange therefore writes `kind: "person"`, with one exception: a horary chart whose
querent has no birth data is written as a subject with `kind: "horary"` ([§4.4](CEXF-SPECIFICATION.md#44-kind-and-type-are-two-independent-axes-dont-confuse-them), Appendix A).
For every other subject there is nothing else to write. The other way around, on reading: if Celestium Exchange encounters a `kind`
other than `"person"`, that information is lost on import into Celestium (the same kind of
limit as with `houseSystem`, [§7c](CEXF-SPECIFICATION.md#7c-zodiacsystem-ayanamsa-and-housesystem-universal-per-chart-settings)). This is reported, see [§10](CEXF-SPECIFICATION.md#10-error-handling). This format deliberately gets
ahead of that, so that a future Celestium extension (or an entirely different program) doesn't
need a version break to catch up.

### R4.2 The name fields of a subject (§4.2)

The full descriptions of `givenName`, `namePrefix` and `familyName`. The rules are in [§4.2](CEXF-SPECIFICATION.md#42-fields) of the specification.

| Field | Type | Required | Meaning |
|---|---|---|---|
| `givenName` | string | no | Given name. Only meaningful when `kind: "person"`. Absent here means "not filled in" in the broad sense: that covers both **unknown** (the given name hasn't been passed down) and **not applicable** (a mononym, as with some historical figures who carried only one name). This format deliberately doesn't distinguish those two: both cases produce the same display (`displayName` remains the only guaranteed-meaningful name), and a reader that needs the difference must get it from `notes`/context. |
| `namePrefix` | string | no | Name prefix / infix, e.g. `"van der"`, `"de"`: the Dutch surname particle. Only meaningful when `kind: "person"`. Absent means "no prefix"; there is no unknown/not-applicable distinction here as with `givenName`/`familyName`, because a missing prefix is, for most names, the correct, complete truth. |
| `familyName` | string | no | Family name. Only meaningful when `kind: "person"`. Same absence meaning as `givenName` above: deliberately not distinguishing unknown from not-applicable. |

### R4.4 Combinations of `kind` and `type` (§4.4)

The two combine freely, and that's precisely their strength. Not every combination is equally
common, but none is invalid:

| `subject.kind` | `chart.type` | Why this is a sensible combination |
|---|---|---|
| `person` | `horary` | A horary question belongs to the person asking, not to the question itself: the subject is the querent, and nothing more is said about that person. A person can have several horary charts. |
| `horary` | *(none, sequence 0)* | A standalone horary question: the primary chart is the question chart, and the querent is not recorded. |
| `country` | `mundane` | The common case: a political chart for a country. |
| `country` | `ingress` | No contradiction: exactly what mundane astrologers do with, for example, the annual spring ingress for a country. |
| `organization` | *(none, sequence 0)* | An organisation's birth chart (primary chart) is its founding chart. |

### R4.5 Why an order is recommended, and why there is no index (§4.5)

A reader that reads a file in parts knows the folders before the people, and the primary chart
before the derived charts. So a writer should write `folders` first, each folder after its parent,
and `sequence 0` first. It is a recommendation, because a reader has to accept any order anyway.
The format has no index. References in `parents` (RF4) and the order of the notices (§10.2) are
settled at the end whatever the order, the root is closed (F4), and an index that did not match the
content would need error rules of its own. Subjects are not ordered among themselves, and `parents`
is not used, because references between subjects can form a cycle.

### R6.1 Why its own keys (§6.1)

The names that a program uses internally do not belong in a public format. The keys below are
English words that name the technique, so that a reader in any language can tell what a chart is.

**Design principle: when a variant earns its own key, and when a parameter is enough.** A
variant that changes the calculation itself, a different formula or a different outcome for the
same input, deserves, in principle, its own `type` key, not a `parameters` value: a reader
that doesn't recognise such a parameter, or ignores it, must never produce a chart that looks
valid but is astronomically something other than what the writer intended. That principle
alone isn't enough to settle every case, though, because almost any piece of data that feeds a
calculation "changes the outcome" in a trivial sense (`age` does exactly that too). The line
this format draws: **a variant gets its own key instead of a parameter when there is no
internationally unambiguous, universally documented meaning for the value a reader can safely
fall back on.** The calculation parameters of [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type) are the deliberate exception, and they have
no default: a chart that does not carry one says nothing about the choice, and a reader that
cannot calculate a registered value uses its own choice and reports it. R6.4 gives the reasons.

Two concrete applications of that line, worked out in R6.3 and R6.4:

- **The month length in `sidereal-minor-progression`** (see R6.3) got its own key, alongside
  the internationally common `minor-progression`, rather than a "which-month-length" parameter
  on one shared key. Research into the international literature (including Skyscript) showed that even a careful builder who reads the specification can get this wrong:
  sources use both the synodic and the sidereal month for "minor progression," sometimes even
  interchangeably as synonyms. There is no unambiguous default to fall back on, so no parameter,
  just a separate key per month length.
- **The `direction` parameter** (see [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)) stayed a parameter, even though it changes the
  calculation just as much (forward versus backward): every source examined that describes any
  of these five direction/progression techniques treats the conversive (backward) variant in
  the same breath as the ordinary one. "Converse directions," "converse progressions," and
  "converse solar arc directions" are each established, unambiguous terms of art, never
  carrying a competing meaning. A builder who has already correctly implemented one of these
  five techniques has almost inevitably also run into the conversive case while reading a basic
  source. That's a materially different risk from the month-length case above, where sources
  disagree among themselves, and it justifies why this one case, despite sharing the "changes
  the calculation" trait, may stay a parameter instead of being split into ten keys (five
  techniques × two directions). For that same reason, `direction` is **required** (see [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)
  and [§10](CEXF-SPECIFICATION.md#10-error-handling)): a parameter may lack an implicit default only as
  long as a reader that doesn't recognise or support the value rejects the chart rather than
  silently guessing.

Future decisions of the same kind can be tested against these two yardsticks: is there an
internationally unambiguous meaning for the value, and can a reader safely reject an unrecognised
value instead of guessing? That beats deciding afresh by feel each time.

### R6.3 Keys with no Celestium counterpart, and why they are already here (§6.3)

- **`relocation`**: costs nothing new in the data model: a source reference plus its own place,
  both mechanisms that already exist (`parents` with role `source`, see [§8](CEXF-SPECIFICATION.md#8-parents-linked-charts-parents-and-source-charts); `location` is already
  universal, see [§7a](CEXF-SPECIFICATION.md#7a-location)).
- **`planet-return`**: a first-class feature for arbitrary planets, asteroids and points, not just
  Sun and Moon. None of the programs examined stores "which return number" as a separate piece of
  data; they work with a search window and a point, and the moment found becomes the chart itself.
  For round-trip fidelity, exactly as with `solar-return` and `lunar-return`, the exact moment
  found plus the place used plus which body is therefore enough. A return is often cast for the
  current place of residence and not the birthplace, but every chart carries its own `location`
  ([§7a](CEXF-SPECIFICATION.md#7a-location)), so nothing new is needed.
- **`group-composite`**: a key of its own alongside `composite`, not a reuse of `composite` with
  more parents, because three or more parties do not reduce to the ordinary two-party midpoint
  method. That difference deserves its own, visible key rather than an implicit parent-count
  signal; see [§8](CEXF-SPECIFICATION.md#8-parents-linked-charts-parents-and-source-charts) for the cardinality rules and what a reader does when it finds more
  parents than it can handle.
- **`electional`**: its own, recognisable category (no program examined treats "electional" and
  "horary" as the same type), but identical to `horary` on the data model: a chosen moment plus
  place plus an optional purpose. It therefore costs no new field, only a key; see the `question`
  parameter in [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type), which for `electional` carries the purpose of the election rather than a
  horary question.
- **`minor-progression`**: the internationally common name for the technique "1 lunar month = 1
  year of life", but the term is not unambiguous: some sources use the synodic month (29.53059
  days), others the sidereal month (27.32166 days), and a few use "minor progression" and
  "quaternary progression" as synonyms for differing month lengths. Celestium calculates only the
  sidereal variant (Dutch "min-één-systeem"), which therefore gets its own key,
  `sidereal-minor-progression`: no internationally unambiguous default exists to fall back on, the
  line drawn by the design principle in R6.1. `minor-progression` itself (the synodic variant) is
  in the table anyway, without a Celestium counterpart, so that a future source that supplies the
  synodic variant needs no version break. The name `quaternary-progression` for the sidereal
  variant was rejected: the term is itself contested and would push the ambiguity up one level.
- **`life-event`**: a dated event in a subject's life is the raw material of rectification and of
  event-based work. It costs no new field: a moment, a place and a label. It carries no
  `parents`, because its relation to the subject is the implied one ([§8](CEXF-SPECIFICATION.md#8-parents-linked-charts-parents-and-source-charts)).
- **`profection`**: annual profection is a classical technique that needs only the primary chart
  and a whole number of years. It uses the key `age` with its own form ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)), and no
  `direction`, because a profection always advances.

More on why these keys are already here.

`relocation`, `planet-return`, `group-composite`, `electional`, `minor-progression`,
`life-event` and `profection` are concepts Celestium (the main application) does not know today:
no counterpart in its calculations or its interface. Celestium Exchange therefore never writes these keys (there is
nothing Celestium-native to translate them to), but it must still handle them cleanly on the
reading side ([§10](CEXF-SPECIFICATION.md#10-error-handling)): a reader must never assume that "no counterpart in the application" is the
same thing as "an invalid key." The first four are here because a separate investigation into
chart types in other astrology programs (Solar Fire, Astrolog, Janus, Kepler/Sirius,
Planetdance), based on their public documentation as of 2026, found them confirmed again and
again; `minor-progression`, `life-event` and `profection` are here for the reasons
given above. Adding a new chart type to a version-numbered format is cheap later (additive),
while a missing generic slot for chart-type-specific data is not (that requires a format
break). Hence: lock it in now, with the confirmed need as the justification.

### R6.4 Parameters per chart type: why an open dictionary (§6.4)

**Why an open dictionary and not a separate field per chart type.** Adding a new chart type to
a version-numbered format is cheap in itself: additive, no version break. But if there's no
generic slot for the reconstruction data that goes with it, every new kind still forces an
envelope change (a new, specific field on `Chart`). With `parameters`, a future version can add
a new kind without bumping `version`: new keys in an open dictionary are backward compatible by
definition (see [§10](CEXF-SPECIFICATION.md#10-error-handling), "Versioning"). That's exactly what R6.3 above already relied on for four
kinds.

**Why not just put everything in `parameters`.** `time`, `location`, `label`, `notes`, and
`parents` remain their own fields on `Chart`, even though they are conceptually "extra data on
one chart":

- `time` and `location` are universal: every chart, of every kind, needs a moment and a place
  in exactly the same way. That's not a chart-type-specific parameter but the core of what a
  chart is.
- `parents` is structural: a reference to another chart (`subject` + `sequence` + `role`), not a
  scalar value. That doesn't fit sensibly into a string-to-string mapping, and it's also a
  different kind of thing from a reconstruction parameter. It's a relationship between charts,
  not a setting on one chart.
- `extensions` ([§9](CEXF-SPECIFICATION.md#9-extensions-a-per-vendor-namespace-mechanism)) carries vendor extensions, not an astronomical reconstruction datum, and in
  principle applies to **every** chart type. It isn't tied to one specific kind the way the
  keys in `parameters` are.

**What does live in `parameters`, and why not as a separate field.** A program can keep the
harmonic number of a harmonic chart and the direction age of a direction chart in one and the
same number, and use its sign for a third meaning (the direction; see the `direction` row of
[§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)). And the cardinal point of an ingress may be stored nowhere, only implicit in the
calculated moment. Overloading one value with multiple meanings is exactly the pattern this
format doesn't repeat: every key of [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type) carries precisely one meaning, for precisely the chart
type(s) it belongs to.

**The precision requirement on `age`, and why a floor is needed.** The age of a direction is
not a value typed by a user but the result of date arithmetic (the same kind of calculation as
the `localTime` fraction in [§7.2](CEXF-SPECIFICATION.md#72-the-four-fields)), for example `38.374536129724326`. Formatting it with a fixed
number of decimal places (say 12) would produce `38.374536129724`: fifteen significant digits
become thirteen, a real loss of precision, not a rounding artefact. It would happen
**silently**: nothing in the file or the accompanying text would say anything was lost.

The specification therefore pins down two things at once:

- **Enough digits to read back without loss.** A writer uses the shortest string that, read
  back as a 64-bit IEEE-754 floating-point number (`double`), yields exactly the same value.
  In .NET that's the bare `ToString(CultureInfo.InvariantCulture)` with no format string, which
  since .NET Core 3.0 automatically picks the shortest round-tripping string. That is the failure described
  above: a fixed number of decimal places can irrecoverably truncate a value that has more
  significant digits than that.
- **A floor of 6 digits after the decimal point**, always, even when the value happens to be a
  whole number (`"36.000000"`, not `"36"`) or only needs a couple of decimals to round-trip
  (`"34.500000"`, not `"34.5"`). Without this floor, a writer that ignores the rule above or
  implements it half-heartedly (for instance: rounding to two decimals "because that looks
  accurate enough") would be structurally indistinguishable from a writer that gets it right;
  both produce a number that looks valid. The floor turns the obviously lazy case (`"34.50"`)
  into a schema rejection instead of a silent degradation that only comes to light when someone
  happens to spot-check it against the source.

**Why 6 digits, and not more or fewer: the astrological arc error.** For `solar-arc`, `age`
directly sets the arc: every point advances by the distance the Sun travels in `age` days, which
is at most about 1.02 degrees a day (the fastest daily motion of the Sun). An error of 1×10⁻⁶
years on `age`, the level the 6-decimal floor targets, therefore produces an arc error of at
most about 1.02 × 10⁻⁶° ≈ 0.0037 arcseconds. The other direction and progression kinds in this
table convert `age` into a time offset at a rate of their own ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)), so the same error has an
effect of the same small order there. A fraction of an arcsecond is far below the smallest angle
any ephemeris, chart wheel, or aspect calculation ever makes visible (positions are typically
rounded to the arcminute, orbs to tenths of a degree). Six decimals is thus more than sufficient
for any practical astrological purpose; the requirement isn't arbitrarily strict. What's needed
beyond that, for a bit-exact round trip of the underlying 64-bit value (up to 17 significant
digits, as in the `38.374536129724326` example above), doesn't follow from astrological meaning
but from data integrity: that same value must be identical after a round trip, even though the
15th decimal would astrologically never make a visible difference.

**Why the month length in `tertiary-progression` and `sidereal-minor-progression` isn't a
parameter, but is fixed in the key.** Both techniques need a fixed month length to reconstruct:
`tertiary-progression` always uses the synodic month (29.53059 days, in the formula
365.2422 / 29.53059 ≈ 12.3683 ephemeris days per year of age), `sidereal-minor-progression`
always uses the sidereal lunar orbit (27.32166 days per year of age). This could also have been
a `parameters` key (e.g. `"lunar-month": "synodic"`), but that would not satisfy the requirement
from the design principle in R6.1: the international term "minor progression" is used for
**both** month lengths, so a reader that doesn't recognise or ignores such a parameter could
produce a chart calculated with the wrong month length without ever noticing. Hence two
separate keys (`minor-progression`/`sidereal-minor-progression`, see R6.3) instead of one key
with a parameter. `tertiary-progression` got no second, sidereal variant alongside it for the
same reason: international research found no established term for a sidereal tertiary
progression, so that combination doesn't exist in this version. Should it ever turn out
to be needed, a new, additive key will be added (see [§10](CEXF-SPECIFICATION.md#10-error-handling), "Versioning"), not a parameter on the
existing one.

**`harmonic` does not cover Vedic vargas.** Checked against Brihat Parashara Hora
Shastra, chapter 6, "The Sixteen Divisions of a Sign" (R. Santhanam's English translation) and
against the independent, open-source PyJHora implementation ("Traditional Parasara" method):
only D9/Navamsa is mathematically identical to a 9th harmonic (longitude × 9
mod 360°). Its assignment rule (movable signs start the count from themselves, fixed signs
from the 9th sign, dual signs from the 5th) reduces, for every sign, to exactly that
multiplication, across all twelve signs and not just at the sign cusps. D3, D7, D10, D12, D30, and D60 do not share that property: each restarts its
per-sign count differently (by parity for D10/D7, always from the source sign for D12/D60, by
trine group for D3), which coincides with a plain harmonic only for a source degree in Aries
and diverges everywhere else. D12 is the sharpest example: Taurus 5° gives Cancer 0° under the
classical rule (per both the source text and PyJHora), but
Gemini 0° under a plain 12th harmonic. D30/Trimsamsa goes further still: its classical division
isn't even equal-width (five unequal degree ranges per sign, assigned to fixed planetary
rulers), so no harmonic multiplication could reproduce it at any factor. Vedic support is
deliberately out of scope for this version. Should it ever be built, it deserves its own
mechanism (`type: "varga"` with a number and a required ayanamsa reference, not an extension of
`harmonic`), so no one assumes the existing `number` parameter already covers vargas.

On the policy for an unrecognised `parameters` key ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)):

- This behaviour follows **for free** from the chosen data structure: `parameters` is a flat
  string-to-string mapping. A mapping preserves and round-trips every key inside it, known or
  unknown, with nothing needing to be built for that, unlike a typed model per chart kind,
  where an unknown field would need a dedicated catch-all construct.

**Why calculation parameters, and why they have no default.** Two charts cast from the same
moment, place and `age` can still differ, because the technique has variants that programs offer
side by side: how age becomes an arc, whether aspects are measured along the ecliptic or in the
mundane frame, whether latitude counts, how the angles of a progressed chart follow, how the
houses of a composite follow. A file that leaves the choice out leaves the reader to guess. The
format therefore has a parameter for each choice that a program really offers, and a register of
names.

A default would be a statement: a file without the parameter would claim a particular technique,
also when the writer did not know. The names of the classical methods also mean different
things in different programs (R6.4a). So an absent parameter says "not recorded", the reader
uses its own choice and says so (row CH5), and a writer that knows the value writes it.

**Why the scope stops where it does.** CEXF carries the input of a calculation and the technique
that was chosen. It does not carry the whole calculation rule. How a program applies a technique in
detail, down to its rounding and its ephemeris, is the program's own, the same way the ephemeris
is. The definitions in [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type) are exact only where a name alone would let two programs draw two
charts: the three rotation methods, the time keys, the angles of a progressed chart, the houses of
a composite, and the midpoint of a set of longitudes. The classical methods have a name and no
formula, because they measure an arc between two points and not the positions of a chart. Other variants (a day type, a weighting, a way to place
a Davison chart, the Arabic parts) can join the register later, because new values and new keys
in `parameters` need no new `version` ([§10.5](CEXF-SPECIFICATION.md#105-versioning-in-detail)).

**Why the midpoint of 180 degrees has a rule.** The midpoint of two longitudes is the one on the
shorter arc. At exactly 180 degrees there are two equally short arcs, and a program that takes
the first parent's longitude plus 90 gives another composite when the parents are swapped. A
composite must not depend on the order in which two people are listed, so the format fixes the
point: (min(lambda1, lambda2) + 90) mod 360.

### R6.4a Worked example: primary-direction methods (§6.4)

This example shows what the calculation parameters of a primary direction name, with one point
calculated by hand. It is an illustration, not a test: the numbers are for a made-up chart.

**Why every method has a key of its own.** "Placidus" and "Regiomontanus" are names of house
systems, and programs also use them for direction methods, each with its own meaning. In one
program the Placidus direction scales the arc by the semi-arc of every point. In another the same
name stands for the classical way of bringing a promissor to a significator. If CEXF registered the
shared name, a reader could draw another chart than the writer meant, and neither would notice.
So CEXF registers what is calculated: three keys with an exact definition, and five for the
classical methods. A key names one technique and has one meaning in every file.

**The three methods of the reference implementation.** Each one turns a point by the signed arc s
of the time key and keeps its declination. In the formulas phi is the latitude of the place of the
subject's `sequence` 0 chart, delta the declination of the point, RA its right ascension, RAMC the
right ascension of the Midheaven of that chart. The arguments of arcsin and arccos are limited to
[-1, 1], and angles are in degrees.

- `ra-rotation` (Celestium's "Ptolemaic" method): every point moves by the same arc along the
  equator. RA' = RA + s.
- `semi-arc-scaled-rotation` (Celestium's "Placidus" method): the arc is scaled by the semi-arc of
  the point, so a point with a long semi-arc moves further than one with a short semi-arc.
  RA' = RA + s x S / 90, where S = arccos(-tan(phi) x tan(delta)), the diurnal semi-arc, when
  the meridian distance |RA - RAMC| (the shorter way round) is at most that value, and
  S = 180 - arccos(-tan(phi) x tan(delta)), the nocturnal semi-arc, otherwise. A point with
  |tan(phi) x tan(delta)| >= 1 is circumpolar: it has no semi-arc, and it moves as in
  `ra-rotation`, RA' = RA + s.
- `position-circle-rotation` (Celestium's "Regiomontanus" method): the position circle of the
  point passes through the north and south points of the horizon, and the point moves along
  that circle. Let k = tan(phi) x tan(delta) and a = RA - RAMC. The circle meets the equator at
  RAMC + t, with t = atan2(sin a, cos a + k). That intersection moves by the signed arc:
  t' = t + s, and RA' = RAMC + t' + arcsin(k x sin t'). With s = 0 every point stays where it
  is, and at phi = 0 the method is `ra-rotation`. A point with |k| >= 1 is circumpolar: no such
  circle passes through it, and it moves as in `ra-rotation`, RA' = RA + s.

In all three, the ecliptic longitude of the result follows from RA', delta and the true obliquity
of the moment of the radix: lambda' = atan2(sin(RA') x cos(eps) + tan(delta) x sin(eps), cos(RA')).

**The classical methods.** `placidian-semi-arc`, `placidian-under-the-pole`, `regiomontanus`,
`campanus` and `topocentric` are the promissor-to-significator methods of the literature: a
promissor is brought to the place of a significator, and the arc between them is the arc of the
direction. They define arcs between pairs of points, not the positions of a chart, so this
version defines no formula for them. They are registered so that a program that calculates them
can say so in a file. A reader that does not calculate them uses its own method and reports it
(row CH17).

**The angles and the cusps.** With a rotation method the Ascendant and the Midheaven are not
turned like planets. The Midheaven of the `sequence` 0 chart is moved as a point, which gives
RAMC', and the houses are cast again for RAMC'. In a quadrant house system cusp 1 is then the
Ascendant and cusp 10 the Midheaven, and the Vertex and the East Point come from the same calculation. Turning the
Ascendant and the Midheaven on their own would leave the cusps and the angles disagreeing: cusp 1
would not be the Ascendant. The direction also uses the place of the `sequence` 0 chart, not that
of the direction chart: the technique moves the sky of the birth, so the latitude and the RAMC of
the birth are the ones that count. `angles` decides how the Midheaven of the directed chart follows: `method-mc`
moves it with the `method` of the chart like any other point, `ramc-arc` adds the arc to the RAMC whichever method
moves the points (Ptolemy, Tetrabiblos III.10, paragraph 134; Morin, Astrologia Gallica XXII.IX p. 546).

**Where `method-mc` can make the cusps jump.** `method-mc` moves the point of the Midheaven on the
ecliptic (ecliptic latitude 0) with the method of the chart. Celestium does this by default. Near
the polar circle the result can jump. The point has a declination delta, and a method with a
position circle or a semi-arc has a semi-arc only while |tan(phi) x tan(delta)| < 1. Beyond that the
point is circumpolar and moves as in `ra-rotation`. The cusps follow RAMC', so they jump with it.
Example, with `position-circle-rotation`, the Midheaven at 72.3 degrees of ecliptic longitude
(delta = 22.27 degrees), eps = 23.44 degrees and an arc s of 30 degrees: at latitude 66.5, RAMC' =
RAMC + 58.1 degrees, and at latitude 67.8, where the point is circumpolar, RAMC' = RAMC + 30
degrees. `ramc-arc` gives RAMC + 30 degrees at every latitude and has no jump.

**The points that depend on the Ascendant.** The Part of Fortune and the other points that are
calculated from the Ascendant are not turned like bodies. A reader calculates them again from the
directed Ascendant and the directed positions of the bodies they use, as Celestium does.

**Why `latitude` has this reading with a rotation method.** Every point is moved, so every point
is a promissor. A significator is a point of the `sequence` 0 chart that the moved chart is read
against, and its latitude never enters the moved chart. `promissor` and `both` therefore mean the
same thing here, and `none` and `significator` too. That keeps the files that Celestium already
writes (`latitude: promissor`) at the meaning they were written with.

**One point, by hand.** A made-up chart: the Sun at 52.0000 degrees of ecliptic longitude
(22 degrees of Taurus), place at latitude phi = 52.0 degrees, RAMC = 20.0 degrees. Take a true
obliquity of eps = 23.44 degrees, fixed here as an illustration; a program uses the true
obliquity of the moment of birth. The direction is at age 36.2 with `key` `naibod`.

1. The arc. The Naibod rate is 0 degrees 59 minutes 8.33 seconds per year, 59/60 + 8.33/3600 =
   0.9856472 degrees. arc = 36.2 x 0.9856472 = 35.6804 degrees (35 degrees 40 minutes 50 seconds).
2. The point. From the longitude and eps: RA = 49.5837 degrees and delta = 18.2680 degrees.
3. `ra-rotation`: RA' = 49.5837 + 35.6804 = 85.2641 degrees. With delta unchanged, the longitude
   is lambda' = 85.4854 degrees.
4. `semi-arc-scaled-rotation`: S_d = arccos(-tan(52.0) x tan(18.2680)) = 114.9929 degrees. The
   meridian distance is |49.5837 - 20.0| = 29.5837 degrees, which is at most S_d, so the diurnal
   semi-arc applies and the arc is scaled by 114.9929 / 90 = 1.27770. RA' = 49.5837 + 35.6804 x
   1.27770 = 95.1725 degrees, and the longitude is lambda' = 94.9306 degrees.

The same point, the same arc, and two methods that end 9.4 degrees apart in longitude. That is why
a file names the method. The chart of this example, as the file would carry it:

```json
{
  "sequence": 1,
  "type": "primary-direction",
  "time": {
    "utc": "2026-06-01T12:00:00Z",
    "timeZone": "Europe/Amsterdam",
    "localTime": "2026-06-01T14:00:00",
    "utcOffset": "+02:00"
  },
  "location": { "latitude": 52.0, "longitude": 5.0 },
  "parameters": {
    "age": "36.200000",
    "direction": "direct",
    "key": "naibod",
    "method": "ra-rotation",
    "aspects": "zodiacal",
    "latitude": "promissor",
    "angles": "method-mc"
  }
}
```

**What a reader does.** A reader that does not calculate a registered value, for instance
`method` `campanus`, uses its own method for that parameter and reports it once for the chart
(row CH17). A reader that finds a value outside the register, such as `method` `kepler`, or no
value at all, treats the parameter as not recorded: it uses its own choice, reports that once for
the chart (row CH5). Both accept the chart. The difference is the notice: a value outside the
register says that the writer meant something this version does not name, and a registered value
that the reader cannot calculate says that the reader lacks the technique.

### R6.4b Why `houses` on a solar arc is a parameter with two values (§6.4)

A solar arc moves every body and point of the `sequence` 0 chart by the same arc, but a chart also
has an Ascendant, a Midheaven and twelve cusps, and programs differ in how those follow. One way
shifts them by the arc in ecliptic longitude (`arc-shifted`). The other moves only the Midheaven
by the arc and then casts the houses again at the RAMC of that Midheaven, at the birth latitude
(`from-directed-mc`). The two generally give different Ascendants and cusps for the same arc, so
the file records which one the writer used. There is no default, for the same reason as with the
other calculation parameters: a reader that fills in a value for a writer that left it out shows a
chart that nobody asked for. Celestium keeps the choice as one global setting, "Huizen bij
zonneboog" (houses in solar arc), and not per chart (Appendix A).

On a sidereal chart the ayanamsa of `from-directed-mc` is that of the moment of the `sequence` 0
chart, not that of the moment t_p for which the houses are calculated. The planets of a solar arc
chart are the radix plus the arc, so they stand in the zodiac of the radix. A Midheaven that is
MC_0 plus the same arc must stand in that zodiac too, and then the Midheaven agrees exactly with the
planets that carry the arc.

### R6.4c Why a round-tripping reader keeps an unrecognised `parameters` key (§6.4)

A reader that also writes must leave every key of `parameters` that it does not recognise unchanged ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)). That way a later Celestium version (or an entirely different program) can introduce a new parameter key for a new chart kind without an older helper tool, which happens to pass the same file along, silently dropping that key.

### R7.1 Why UTC and a time zone are not enough (§7.1)

The IANA time zone database (tzdb) says of itself, in its theory documentation
(`data.iana.org/time-zones/tzdb/theory.html`), that "many, perhaps most, of the tz database's
pre-1970 and future timestamps are either wrong or misleading". Its naming policy gives one name
to the regions whose clocks have agreed since 1970, and the less reliable earlier history goes into
a separate file (`backzone`) that "does not necessarily follow database guidelines." For astrology this is not an edge case but the bulk of
the workload: nearly every birth date lies before 1970. Ask a newer tzdb release in five years
what the offset in Rotterdam was in 1943, and the answer can come out differently, after which
a recalculated local time shifts even though the birth certificate hasn't changed. Zone IDs
also get renamed (`Europe/Kiev` → `Europe/Kyiv`, `Asia/Calcutta` → `Asia/Kolkata`).

### R7.2 Why the fraction of a second, and why one to seven digits (§7.2)

More on the fraction of a second, and on the form `localTime` and `utc` take in Celestium and in
its importers.

AAF and Quick\*Chart, the two other formats supported by Celestium's importer, also carry local time plus an offset, not UTC alone.

**Celestium itself** keeps local time with its offset, not pure UTC. The data for `localTime` and `utcOffset` is thus
already available to Celestium Exchange when it writes; `utc` is that same instant
converted to UTC, not a separate calculation.

**Why `localTime` can still carry a fraction, even though that isn't human-entered
precision.** A derived chart (for example, a `secondary-progression`, "1 day = 1 year") can have a moment of
`2026-04-12 20:51:43.3274585+02:00`. The fraction is not precision typed by a user but a
byproduct of the date arithmetic that derives the moment. Without a fractional component on
`localTime`, a writer would have to silently round that value to whole seconds, while `utc`
(which already carries the instant as such, not as text formatted by the writer itself) would
retain the full precision, with the result that `localTime` and `utc` would no longer express
the same instant. Hence the optional fraction: a writer omits it whenever the value happens to
be a whole second (by far the ordinary case, and exactly what the example above shows), and
fills it in when it isn't.

**Why `utc` carries the same 1-7-digit limit as `localTime`, and no more.** Leaving `utc`
unlimited while `localTime` is fixed at 1-7 fractional digits would be inconsistent between two
fields that together make the identity in [§7.3](CEXF-SPECIFICATION.md#73-arithmetic-consistency-required-what-a-reader-checks) hold: if a writer writes nine digits on `utc` and seven
on `localTime` (the maximum that field allows), the two text fields can describe the same
instant and still not *textually* match the way [§7.3](CEXF-SPECIFICATION.md#73-arithmetic-consistency-required-what-a-reader-checks) expects. Hence the same limit on both
fields:

- **1-7, not unlimited.** Seven fractional digits is exactly the tick resolution of .NET's
  `DateTime`/`DateTimeOffset` (100 nanoseconds), the same limit `localTime` already carries,
  for identically the same reason (see above). A source with a finer clock (nanosecond
  precision, say) has no field in this format to carry that difference anyway; a writer in that
  case rounds to 7 digits before formatting both `utc` and `localTime`, so the two stay in step.
- **1-7, not fewer.** Exactly as with `localTime`: the fraction is optional because a manually
  entered birth time is always whole seconds, but a calculated moment on a derived chart can
  have a non-trivial fraction that would otherwise silently disappear.

### R7.2a Why the four time fields are redundant (§7.2)

Yes, this is redundant. `localTime` can in principle be derived from `utc` + `timeZone`, and
`utcOffset` from `localTime` − `utc`. That is the intent. It makes the file
self-checking, it survives future tzdb revisions, and a reader without its own time zone
database can still show the local time correctly. These four fields carry the local time and the whole offset. The summer-time part of that
offset has its own optional member, `dstOffset` ([§7.11](CEXF-SPECIFICATION.md#711-timedstoffset-the-summer-time-part-of-the-offset)), because the offset alone does not say
how much of it is summer time.

### R7.3 Arithmetic consistency: why the check is required (§7.3)

The check is a requirement rather than a recommendation, and the reason is worth stating.
A chart that fails the identity carries two moments that disagree, and the specification
deliberately gives no rule for which of the two wins. A reader that skips the check has to
pick one anyway, silently, and two programs reading the same file will then show two
different birth times with nothing to signal it. Requiring the check costs a subtraction and
a comparison, and it closes the only place in this format where well-formed input could lead
to quietly divergent behaviour.

### R7.4a Why `utcOffset` exists next to `timeZone` (§7.4)

A zone ID that a reader does not recognise is harmless ([§7.4](CEXF-SPECIFICATION.md#74-what-wins-on-conflict-between-timezone-and-localtimeutcoffset), "Unknown or renamed zone ID"). This is, right away, the best illustration of why field
4 (`utcOffset`) exists: without that field, an unknown zone ID would force a reader to either
guess, or be unable to show a local time at all any more.

**Why a silent correction is the worst outcome.** A silent correction to a recorded birth time is the worst conceivable behaviour: the user then sees a different time than what was ever entered, with no prompting whatsoever.

### R7.5 Why a reader keeps the supplied moment of an unknown time (§7.5)

When a `.cexf` file from another program comes in with `unknown: true` and a `localTime` that is not 12:00, a reader has to choose between keeping the supplied moment and replacing it with its own convention. That's not a trivial choice: the two produce a different Ascendant and different houses, by up to twelve hours apart.

**Why a reader keeps the supplied moment.** That's what the sender saw and calculated; the flag already says the sub-day details are uncertain (see above), so there's no reason to also change the number itself to another, equally arbitrary convention.

### R7a Why there is no precision requirement on `latitude` and `longitude` (§7a)

**No precision requirement on `latitude`/`longitude`, deliberately, not a gap.** Unlike `age`
([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)) and `utc`/`localTime` ([§7.2](CEXF-SPECIFICATION.md#72-the-four-fields)), it was checked whether the same kind of floor is needed
here, and the answer is no, for three reasons that `age` doesn't share:

1. **`latitude`/`longitude` are a JSON `number`, not a string.** `age` is a string in an open
   string-to-string mapping ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)) precisely because there was no other mechanism to carry a
   number; the precision therefore depended entirely on how the writer formatted that text
   itself, and that formatting is exactly what can go wrong (see the fixed-number-of-decimals example
   above). A JSON number doesn't have that problem: the reference writer passes latitude and
   longitude straight through as a `double` to `System.Text.Json`, which since .NET Core 3.0
   already picks the shortest round-tripping text representation itself. There is no separate,
   hand-written formatting step that can go wrong.
2. **No textual identity to guard.** `utc`/`localTime`/`utcOffset` must agree with each other ([§7.3](CEXF-SPECIFICATION.md#73-arithmetic-consistency-required-what-a-reader-checks), to
   within a difference strictly below one second), hence why both time fields carry the same limit on fractional digits. Coordinates stand on their
   own: there's no second field that `latitude`/`longitude` must arithmetically agree with, so
   no risk of an inconsistency arising purely from a difference in digit count.
3. **Coordinates are inherently an approximation; `age` drives an exact calculation.** A
   birthplace typically comes from a place-name lookup (GeoNames and the like), not from a
   point measured to sub-millimetre accuracy: the source data itself is already rounded, well
   before this format does anything with it. A fraction of an arcsecond of difference in
   latitude/longitude (the fourth or fifth decimal) shifts house cusps by a negligible fraction
   of an arcminute. `age`, by contrast, is a direct input to a deterministic calculation
   ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)): every stored decimal comes back out in the result, with no natural rounding in
   between.

In short: the absence of a precision requirement here is a deliberate choice. Coordinates
follow the ordinary round-trip guarantee of the JSON number type, with nothing this format
needs to add to that, and no silent gap of the kind `age` would otherwise have.

### R7a.1 Why every chart carries its own place (§7a)

Every chart carries its own place, never derived from the subject. That's deliberate:
Celestium stores its own latitude/longitude per chart (including per derived chart), precisely
because a return chart is often cast for the current place of residence, not the birthplace.

### R7b Why `bbcode-basic` has two escape rules (§7b)

The two rules of the grammar that concern a backslash and a `[` protect different things. Without the first rule, a literal backslash before a real tag, or a literal pair of backslashes,
would read back as something else; without the second, a note that explains the markup (for example by writing
`[b]`) would be read back as real bold.

### R7c Why these settings are fields of the chart (§7c)

Zodiac system, ayanamsa and house system sit on the chart itself and not in `parameters`: they apply, in principle, to every chart type, exactly the same tradeoff as with `extensions` ([§9](CEXF-SPECIFICATION.md#9-extensions-a-per-vendor-namespace-mechanism)): a chart-type-specific `parameters` key is for something that belongs to only one or a few kinds; this belongs to every chart.

### R7c.1 Why the three fields are registers, not fences (§7c.1)

The reason is not open-mindedness for its own sake. It is that these sets demonstrably grow, and
a published schema that froze today's list would start rejecting legitimate files the moment an
ephemeris library added an entry.

That is not hypothetical. The registers below follow the Swiss Ephemeris naming, since that is
a widely used engine. Swiss Ephemeris currently defines 47 predefined
ayanamsas (`SE_NSIDM_PREDEF`); an older release knows 43. Four
arrived later: `LAHIRI_1940`, `LAHIRI_VP285`, `KRISHNAMURTI_VP291` and `LAHIRI_ICRC`. The
same happened to house systems: `J` is Savard-A in the current release, where the older one
still treated that letter as unrecognised. Had the specification closed its lists against an
engine as it stood at one moment, it would today be refusing five values that exist and are in
use.

### R7c.2 `ayanamsa` and `houseSystem`: why these fields exist, and what Celestium does with them (§7c.2)

**`zodiacSystem`/`ayanamsa`: why there's a real data loss without these fields.** Celestium
stores a zodiac system and an ayanamsa per chart. Without a CEXF field for it, a sidereal chart with a
Lahiri ayanamsa would come out tropical after a `.cexf` round trip: not a minor detail but a
different calculation (every planetary position shifts by the ayanamsa angle). `ayanamsa`
is separate from `zodiacSystem` because Celestium always stores an ayanamsa, even for a
tropical chart; there it just means nothing. A reader that finds `ayanamsa` without
`zodiacSystem: "sidereal"` (or with that field absent, hence implicitly tropical) **ignores**
it: the combination is meaningless, not an error to crash on or report.

**`houseSystem`: what the field exists for, in three facts.** Three separate
claims, not one vague "Celestium doesn't use this":

1. **Celestium has no house system per chart.** The house system there is not a property of one
   chart but a single **global application setting**, switchable at any moment (there is even a
   two-wheel display that shows two house systems side by side for the same chart). A screen can
   offer its own choice for as long as that screen is open. That choice is a view, not a property
   of the chart, and it is never written to a file.
2. **Celestium therefore also doesn't take it over on import**, for exactly the same reason: a
   per-chart value would improperly overwrite the global setting (which applies to all charts at
   once). Celestium draws the chart with the global setting.
3. **Celestium Exchange does write it**, but only when exporting to a different program: the
   global setting at the moment of export, unless the user picks another system for a chart in the
   export dialog. That choice is made for the one export and stored nowhere. Never when exporting
   to another Celestium installation (see below).

The field therefore exists not for Celestium itself, but for programs that lack the freedom
described in point 1. A program that fixes the house system per chart the moment it saves it
makes a real choice, not a derived value: Placidus and Koch produce different house cusps for identical birth data.
Without this field, such a user would lose that choice on the first exchange. A writer reading
from such a program can carry it along; Celestium's own writer **never** fills it in
when writing for another Celestium installation. The recipient has its own global setting
anyway, and leaving it blank is then the accurate representation (point 3 above). When it
deliberately writes *for* a different program (a writer's choice, not a separate format field;
see below), it does fill it in on every chart, if need be with its own current setting, because
a blank field would there look invalid or different from what was intended.

**What a reader does that cannot preserve this field per chart: report it, import the chart
anyway.** A **reader** that writes into Celestium can structurally read and validate
`houseSystem`, but has no house system per chart to put it in (point 2 above). That is the
same kind of structural limit that the precision requirement in [§10](CEXF-SPECIFICATION.md#10-error-handling) ("Precision loss on
reading: round and report, never truncate") describes for a value that exceeds a reader's
storage capacity, applied here to an entire field rather than to precision: the chart imports and is drawn with the user's global setting. The notice is one per chart and names
everything that Celestium could not take over from that chart (Appendix A).
A `houseSystem` that equals the global setting is not named, because nothing differs. Silently
discarding it is not acceptable here, just as nowhere else in this format: the user must be able
to know that part of the file required an assumption on their part.

**Absence carries meaning: a reader must never invent a value for it.** A missing `houseSystem`
means "no opinion, the reader decides," and that is different from a filled-in value. If a
writer exporting to another Celestium installation were to always fill in "placidus" anyway,
just because that happened to be the sender's global setting, then the recipient, the moment
Celestium ever learns a per-chart house system, would end up locking every imported chart to
Placidus, even though it wanted to keep following its own global preference. Precisely for that
reason, Celestium's own writer never fills in this field automatically for that audience (see
below), and precisely for that same reason a reader that finds the field empty must never fill
in a value itself when writing it back: emptiness here is an explicit statement ("follow your
own preference"), not a missing piece of data that invites a guess.

**The writer's choice is not a format field.** A writer that knows who it's writing for (another
Celestium installation, or a different program) may let that difference inform what it fills in
for `houseSystem`, but that is a decision the writer makes at the moment of writing, not a
property of the file itself. There is therefore deliberately no key in the root object that
records "this file is for Celestium" versus "for a different program": a reader doesn't
distinguish the two anyway, and doesn't need to. A filled-in `houseSystem` is valid,
regardless of who ever wrote the file. See [§14](CEXF-SPECIFICATION.md#14-two-ways-of-exporting) for the full treatment of this writer's choice.

**Note markup is not an example of this.** Flattening markup is not a writer's choice of the
same kind as `houseSystem`: markup (`[b]…[/b]` and so on, see [§7b](CEXF-SPECIFICATION.md#7b-note)) always travels along
unchanged, with its own `format` field on every note. A writer may not decide, on behalf of an unknown
recipient, that markup "won't come through anyway." The difference from `houseSystem` is
precisely that an empty `houseSystem` is a valid, meaningful value ("recipient decides for
itself"), whereas discarded markup information never comes back. See [§7b](CEXF-SPECIFICATION.md#7b-note) for the full grammar
and [§10](CEXF-SPECIFICATION.md#10-error-handling) for the resulting requirement on a reader that doesn't display this text format.

### R7c.6 Why `lunarNode` and `blackMoon` are informative fields of a chart (§7c.6)

Two programs that agree on the moment, the place, the zodiac and the house system can still give a
different longitude for the lunar node and for the Black Moon, because each calculates them in one
of several ways: the mean or the true (osculating) node, and for the Black Moon the mean, the
osculating or the interpolated apogee (the [Glossary](#glossary) lists them with their numbers in Swiss
Ephemeris). Without a record of the variant a reader has to guess, and neither guess is wrong.

The fields are informative and not defining for the same reason as `houseSystem`: the positions are
not in the file ([§11](CEXF-SPECIFICATION.md#11-what-isnt-carried-positions-and-houses)), so the variant describes how the writer's chart was drawn and changes no
moment, no place and no reference. A reader that keeps only one global setting draws the chart with
that setting. It reports a deviation only when the file names another variant, because a value that
equals the setting loses nothing. A reader that keeps the variant per chart takes it over exactly.
Neither case justifies a failed import, so an unknown value is row CH20 and a damaged one is row E5.

The register names the calculation and ties each value to one identity, because the names in use
for these points differ between programs: "Lilith" can mean the mean apogee, the osculating apogee
or an asteroid, depending on the program. The register is open, so that a further
variant can be added later without a version break ([§10.5](CEXF-SPECIFICATION.md#105-versioning-in-detail)). `lilith` is not a key and never will
be.

### R8.1 Why `role` exists, and why in the same list (§8)

**Why `role` exists, and why in the same list.** `parents` carries parent charts, but a
`relocation` chart also needs a reference to another chart in a fundamentally different
relationship (same `utc`, a different place, no combining of positions). One unmarked field
would be ambiguous: a reader could not tell a relocation source chart apart from a composite
parent. `role` resolves that explicitly, and the list stays one mechanism instead of two near-identical fields (`parents` plus a separate
`sourceChart`) that would still have needed separate documentation and validation.

### R8.2 Why `synastry` is in the two-parent row (§8)

**Why `synastry` is in the two-parent row, alongside composite and Davison.** In Celestium, a
synastry chart keeps a link back to its base chart in the same way composite and Davison charts
keep links to their two source charts. Without `synastry` in this table, a synastry would lose its
link to its two source charts after a `.cexf` round trip: a navigation feature would then break,
not merely "less metadata." Other derived chart types (solar return, harmonic, horary, transit,
mundane, the prenatal kinds) also keep a link to the same person's own natal chart inside
Celestium, but that is an internal detail: no screen reads it back for those types, and it is
therefore not a CEXF parent link. For those types the primary chart of the same subject is
implied, as the next paragraph says.

### R9.1 Why a generic mechanism, and not a vendor-specific field (§9.1)

A dedicated field on the chart, say `rulerOverrides`, named after a Celestium feature (the
Heersers/Rulers module) and holding opaque Celestium-internal JSON, would be the wrong way
around for a format that explicitly aims to be universal, not "Celestium's format with some
extras for others," but a format that could just as well be used by an entirely different
vendor: every implementer reading the field list would have to wonder what a `rulerOverrides`
is and why that name is there, and no other vendor would have a comparable slot for *their*
own data. A single vendor's name at the core of the schema is
also a bad omen: the next vendor with its own per-chart setting would have to ask for its own
field the same way, and this format would keep growing with vendor-specific fields sitting side
by side.

Instead: one generic field, `extensions`, in which every vendor can put something under its own
key. Celestium's own ruler overrides are one instance of this mechanism, not an exception
baked into the schema.

### R9.2 Why a namespace follows the reverse-domain convention (§9.2)

Every key of `extensions` should carry a per-vendor namespace, preferably in the reverse-domain form ([§9.2](CEXF-SPECIFICATION.md#92-shape)). This convention is not **enforceable** by a schema (there's no way to validate domain ownership in JSON Schema), but it is **customary** enough to prevent, in practice, collisions between two vendors who happen to pick the same short name, exactly the problem a bare `rulerOverrides` would not solve the moment a second vendor also wanted to add a "ruler overrides"-like concept.

### R9.3 Where the preservation promise is achievable, and Celestium Exchange's own limit (§9.3)

**Where this promise is unconditionally achievable, and how.** For a reader/writer pair that
never leaves the `.cexf` document model at all, deserialising a whole document and serialising
it back out, this is achievable byte-for-byte: the reader keeps the original text of an
extension value, and the writer emits that text unchanged. The one thing that must be gotten
right to actually deliver on this: the default behaviour of a JSON library for a generic JSON
value does **not** preserve original formatting when writing. It replays the value's structure
through the destination writer, which re-applies that writer's own settings (indentation) and
nesting depth. That changes whitespace, not meaning, but "changes whitespace" is still a broken
promise for a format that says "unchanged." An implementation therefore writes every such value
as raw text, which emits the original bytes verbatim. With that in place, a pure `.cexf`-to-`.cexf` round trip (or a conversion between two
exchange formats with no data model of its own in between) preserves an unrecognised extension's
value byte-for-byte, nested content included.

**Celestium Exchange's own limit here.** That achievability is about the document model, not
about every path Celestium Exchange offers today. When the target is Celestium **itself**,
it is more nuanced: it is not a serialisation-fidelity limitation, per the
paragraph above, but a limit of Celestium's own data model, which has no place to keep
arbitrary vendor data. An unrecognised extension is therefore lost, exactly like an
unrecognised `parameters` key ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)), when Celestium Exchange imports a chart into
Celestium. A program that passes a `.cexf` file on, with no data model of its own in between,
has no such limit, and the preservation duty applies to it in full.

### R9.3a Why the preservation rule is the point of `extensions` (§9.3)

A reader that writes a file back out preserves every key of `extensions` that it does not recognise, including its value. Without this rule, the entire mechanism is
  worthless: every pass through a second program would then lose the first program's extension
  data, and in practice nothing would be gained over a closed, per-program field.

### R9.5.1 Why the "ignore what you do not recognise" rule is not safe everywhere (§9.5)

**Why [§9.3](CEXF-SPECIFICATION.md#93-what-a-reader-must-do)'s unconditional "ignore what you don't recognise" rule isn't safe everywhere.** That
rule is excellent for the overwhelming majority of conceivable extensions: ignoring one costs at
most a cosmetic detail there (Celestium's own `rulerOverrides`, for instance: a reader that
doesn't know the rulers module misses a UI preference, not an astronomical datum). But that same
blanket rule turns dangerous the moment a **future** extension would want to say something like
"the positions on this chart are provisional, apply correction X before trusting them," an
extension that doesn't *add* something, but *changes* the meaning of the existing data. A reader
that doesn't recognise such a key and, per the current [§9.3](CEXF-SPECIFICATION.md#93-what-a-reader-must-do) rule, ignores it, then
shows a chart that looks valid but isn't, silently, with no warning. That is the
scenario this entire format already rules out everywhere else.

**Why this must be decided now, not at the first such extension.** [§9.3](CEXF-SPECIFICATION.md#93-what-a-reader-must-do) is an unconditional
promise ("never fall over," with no exception). A reader that builds correctly
to the letter of the specification today must never later be surprised that a subsequent
version introduces an exception category after all ("except for these keys, which you must
*not* ignore"); that would retroactively make its already-conformant implementation unsafe. The
room for such an exception must therefore be reserved from the start, even though no
concrete meaning-changing extension exists today: exactly the same tradeoff as with `subject`
instead of `person` ([§4.1](CEXF-SPECIFICATION.md#41-why-subject-and-not-person)). It's about reserving the space, not the content.

### R9.5.2 Why a separate field, and not a marker in the key name (§9.5)

**Why a separate field, and not an agreed marker in the key name within `extensions` itself**
(the alternative). A marker in the key name (say, a reserved prefix or
suffix) would force a reader to keep textually checking **every** key in `extensions`, even
keys it doesn't use anyway, for that marker, forever, instead of looking up the keys it
knows (as Celestium Exchange already does today for `nl.celestium.rulerOverrides`). A separate
field is **structurally** visible: a reader can tell, from the mere presence of the
`modifierExtensions` key, that extra caution is needed here, without having to understand the
extension itself. That is also why FHIR (hl7.org/fhir), where this pattern comes from, carries
`modifierExtension` as its own, separate array instead of a flag within an ordinary extension:
*"A system SHALL NOT modify a resource or element if the resource... has child 'modifier'
extensions it doesn't understand,"* while ordinary extensions are explicitly allowed to be
ignored by whoever doesn't recognise them. CEXF adopts the underlying principle here, not FHIR's
full mechanism built for a clinical-data format. One flat key-to-JSON-value field is enough at CEXF's
scale.

### R9.5.3 Why `modifierExtensions` exists while nobody uses it (§9.5)

**No meaning-changing extension exists today, and that isn't a shortcoming.** No party,
including Celestium Exchange, populates this field at this time. It exists solely so that a
future, meaning-changing extension doesn't run into an already-closed door ([§9.3](CEXF-SPECIFICATION.md#93-what-a-reader-must-do)'s
unconditional promise), and so that every reader building against the specification from now on
already has the refusal duty built in, long before the first such extension actually appears.

### R10.1 Why an invalid informative member keeps its record (§10, row E5)

Under a stricter rule, one empty `familyName` would cost the whole subject with all its charts.
That is out of proportion. The error sits in a description, and the data that decide the
chart (the moment, the place, the type, the zodiac) are intact. A reader that discards the record
destroys data that the user can no longer find in the file, in return for a field that carries no
calculation. A reader that keeps the record and reports the member loses the description and
nothing else, and the user can repair the description by hand.

The rule therefore works per member and not per record. A member is informative when no
calculation, no identity and no reference depends on it: a name, a note, a label, the name of the
time zone, the source of the data, a variant of the nodes. The same fault in a defining member
still costs a record: TV-58 (a blank `label` of a derived chart) keeps the chart and TV-250 (a
blank `label` of a `life-event`, which defines it) does not; TV-59 (a blank `timeZone`) keeps the
chart and TV-246 (a blank `zodiacSystem`) does not.

Three details follow from the rule. A subject or folder whose name is blank gets a name from the
reader, because a record without a name cannot be shown, and the reader writes that name back and
never the blank text, so that the next program is not handed a file its own validator rejects. A
source that has lost all its members goes as a whole, because an object with none of them records
nothing (TV-103). A note that has lost both its title and its text is a note that conveys nothing,
and row NO1 takes it (TV-27).

Further details follow from the same rule.

- **A third kind of member.** A calculation parameter (row CH5) is not a description: it changes
  the chart that the reader calculates. Nor does it make the record unusable: the reader has a
  choice of its own for it. So it has a row of its own, which names the choice that the reader used.
- **An invalid informative member is absent for every other row.** If a `kind` of `""` still fired
  SU3, one fault would owe two notices, and a reader that reads the member as absent would owe a
  notice for a value it never used. Only the E5 notice remains, and it comes last in the record.
- **A key of `extensions` or `modifierExtensions` whose value is `null`.** The key conveys nothing, and every other key of
  the map is a value that the preservation promise of [§9.3](CEXF-SPECIFICATION.md#93-what-a-reader-must-do) still covers. So
  only that key falls away, and its own pointer says so. A `modifierExtensions` that has no key left is empty and refuses nothing (row CH2).
- **The order of the notices of one record** is fixed, so that two readers give the same list for the same document (§10.2, step 5c).
- **The replacement of a required informative member.** A reader that writes the file back must
  put something valid there. The format does not choose a name for it: any value that passes the
  schema and changes no behaviour will do, because the moment is `utc`.
- **A key that the chart type does not use.** A reader that ignores a key has not read its value, so
  only the JSON type is checked: every value in `parameters` is a text, and a number is a fault of
  the writer that is reported (E5).
- **The depth limit.** 64 levels is the floor that every reader reads. A higher limit conforms.

### R10.1a What `readerOutcome` in the test vectors tracks (§10.1)

**What `readerOutcome` in the test vectors tracks.** `readerOutcome` is derived from the outcome
class of the vector's row: `accept` for class `accept`, `reject` for every other class. It
tracks whether the record is used, never whether it is kept. That is why `TV-29` (unrecognised
`type`, set aside) is `accept` and `TV-38` (unrecognised `modifierExtensions`, refused) is
`reject`, even though both are written back unchanged. Reading `reject` as "the data is gone" is
the mistake to avoid. The vector fields `outcomeClass` and `target` carry the class and the
target named in the rows below.

### R10.4 Why a reader rounds and reports instead of truncating (§10.4)

A reader that cannot hold a precision rounds and reports ([§10.4](CEXF-SPECIFICATION.md#104-precision-loss-on-reading-round-and-report-never-truncate)); it never truncates silently. That silence is the mistake the precision requirement on `age`
guards against: a writer rounding a value with fifteen significant digits down to thirteen
without anything, in the file, in a log, anywhere, stating that something was lost.

### R10.5 Versioning: the closed root object, and why four chart types already sit in version 1 (§10.5)

**Why the root object is closed.** `cexf-schema.json` closes the root object, so an unrecognised top-level key is a validation error. That strictness is deliberate and worth keeping, because it is what catches a writer that emits `subjcts` instead of `subjects`, which is otherwise a silent data loss for every reader that follows the "ignore what you don't know" rule.

**Why a reader validates only against a version it knows.** A file from a newer version is expected to fail the schema of this version, while row F3 tells a reader to read it anyway. The two rules look like they contradict each other, and they do not. A reader that skips this distinction and validates everything against its own schema will refuse exactly the files the version rule was written to keep readable.

**Why four chart types already sit in version 1.** That is why `relocation`, `planet-return`, `group-composite`, and `electional` ([§6.3](CEXF-SPECIFICATION.md#63-keys-with-no-celestium-counterpart-and-why-theyre-already-here)) already sit in version 1 instead of waiting for a future version break: they fit within `parameters`, `parents` with a `role`, and new `type` keys. None of the four touches the envelope itself. Future extensions in the same spirit (for example, generic ingresses into an arbitrary sign, or non-prenatal lunation/eclipse charts) are expected to fit the same way.

### R11 Why positions and houses are not carried (§11)

This format carries **no** calculated planetary positions or house cusps. In Celestium, when
a composite chart is opened, Celestium recalculates the positions fresh
from the two parent natal charts, and does not use any previously stored positions for that.
Positions are thus everywhere a **cache**, not a source datum, and a non-trivial amount of data
per chart. Everything needed to recalculate a chart
(moment, place, and for some kinds a small number of parameters, [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)) is already in this
format; the resulting positions belong not in an interchange file but in the calculation step
that follows it.

### R14 Why there is a choice to make when exporting (§14)

In Celestium, the house system is a single setting for the whole application, and you switch it
at any moment. That's by design. You view the same chart briefly in Placidus and then in Whole
Sign, with nothing about the chart itself changing. There's even a display with two wheels side
by side, in which you compare two house systems at once.

Most other programs work the other way around. There, the house system belongs to the chart and
is fixed the moment you save it. The moment you export, you therefore freeze something that was
fluid for you. Which setting ends up in the file is a real choice, and no one but the user can
make it.

As long as it stays limited to this one field, the question is small. But more hangs on where
the file is going, and that's why exporting starts with that question instead of with a series
of separate checkboxes the user has to understand one by one.

### Why this isn't a field in the file

Nowhere in a `.cexf` file does it say what purpose it was written for. That's deliberate.

A reader doesn't need the distinction. Plain text is plain text, and a filled-in `houseSystem` is a valid value. Were it recorded there, a writer's choice would suddenly become
something a reader has to account for. That immediately raises the question of what a reader
should do if the flag doesn't match the content. That's the kind of baggage a format ends up
stuck with years later.

If you want to record it for support purposes, that can go in the existing `generator` key.
That's free text by definition, and no one is allowed to base behaviour on it.

The ordinary way is a single choice for the whole export, defaulting to the user's global
setting. That's correct in the vast majority of cases, because that's how the charts look in
Celestium too. So no dialog box, but a visible and adjustable field on the export screen.
Someone with no opinion about it walks past it without a second thought. Someone exporting for
a colleague who works with Regiomontanus sees immediately what's going to happen and changes it
right there.

Beyond that, it must also be settable per chart. That's not invented completeness. A horary
question is traditionally cast in Regiomontanus, while that same person's natal chart sits in
Placidus. Anyone sending both in one file, allowed to specify only one system, hands the
recipient a wrongly drawn horary chart. In Celestium this goes unnoticed, because you switch
with a single click there. In the other program, it's wrong.

Keep "one value for everything" the easy case in this. Anyone who wants nothing special
specifies nothing per chart.

---

## 12a. Test vectors

The check described just above covers one example file. [`cexf-test-vectors.json`](cexf-test-vectors.json),
alongside this guide, generalises that into a permanent, machine-checkable, redistributable asset: 392 small
documents, each written for one rule that the specification states,
each tagged with the schema-validation result it must produce. Anyone implementing a reader or
writer, in any language, can download that one file and check their own implementation against
it without needing Celestium. The file is self-describing
(see its own `howToUse` field) and, per the License section of the specification, dedicated to the public domain
under CC0 1.0 Universal, exactly like `cexf-schema.json` itself.

**Why these particular 392, and why so many of them are refusals.** A test suite that only shows the
happy path proves little: it's just as easy to write a validator that accepts everything as one that
actually enforces the specification's rules. Just over half of the vectors here (220 of 392) are
therefore documents that something refuses. Two counts are worth keeping apart:
**205 fail `cexf-schema.json` outright**, and **129 are refused by a conformant reader**. Those sets
overlap without coinciding, so 220 documents are refused by at least one of the two.

Of the 205, 203 are documents that a schema validator checks and rejects, except that for the seven on
which validators differ (TV-308, TV-327, TV-348, TV-349, TV-350, TV-360 and TV-361) the rule of the
specification decides, as described below. The other two (TV-50 and
TV-51) are texts that are not valid documents (row F1), so no validator can be run on them, and they
are marked invalid by definition. Fifteen documents pass the schema and are refused anyway (TV-04, TV-38, TV-40, TV-42, TV-47, TV-55, TV-92, TV-137, TV-138, TV-139, TV-140, TV-162, TV-272, TV-275 and TV-277). Ninety-one do
the opposite: the schema rejects them and a reader accepts them. They fall into these groups:

- Sixty-three carry an informative member that is invalid. The reader reports it, leaves it out and
  keeps the record (row E5):
  TV-26, TV-32, TV-58, TV-59, TV-67, TV-71, TV-95, TV-97, TV-100, TV-102, TV-103, TV-106, TV-111,
  TV-118, TV-119, TV-125, TV-129, TV-156, TV-158, TV-165, TV-166, TV-175, TV-176, TV-178, TV-216,
  TV-217, TV-218, TV-219, TV-220, TV-221, TV-222, TV-223, TV-224, TV-225, TV-226, TV-227, TV-228,
  TV-229, TV-230, TV-231, TV-232, TV-233, TV-234, TV-235, TV-236, TV-237, TV-238, TV-239, TV-240,
  TV-241, TV-242, TV-244, TV-245, TV-261, TV-262, TV-263, TV-270, TV-302, TV-306, TV-320, TV-327,
  TV-335 and TV-356.
- TV-35, TV-134, TV-282 and TV-319 come from a newer version (row F3).
- TV-53, TV-157, TV-179 and TV-283 have a stray or invalid member in the root, which the reader reports and
  ignores (row F4).
- TV-133, TV-313, TV-318, TV-334, TV-338, TV-366 and TV-381 have a member that the reader does not
  know in a nested object or an entry (row E4).
- TV-344 has a member that the reader does not know in an entry of a chart type that defines no
  `parents`: row CH16 fires, and row E4 does not.
- TV-89, TV-273 and TV-364 have a role that no reader recognises (row RF1).
- TV-295, TV-346, TV-379 and TV-380 have a chart of a type that no reader knows, with faults in its
  entries, notes, parameters or informative members that no row reports (row CH1).
- TV-143, TV-243, TV-256 and TV-260 have a calculation parameter outside its register (row CH5).
- TV-60 has a `type` at `sequence` 0, which a reader never reads.

By outcome class, 263 are accepted, 74 discard a chart, 50 skip a record and 5 refuse the file. The
selection isn't invented for symmetry: each vector exists because a rule in the specification is
easy to get wrong, and its line below says which one.

**How to use the file.** Each entry under `vectors` carries an `id` (referenced below as `TV-01`
etc.), a `group`, a `title`, a short `description`, the `document` itself (or, for a text that is not a JSON object a
program can hold, a `documentText`), and two verdicts: `schemaResult`
(`"valid"` or `"invalid"`: validate `document` against `cexf-schema.json`, Draft 2020-12, and
compare) and `readerOutcome` (`"accept"` or `"reject"`: what a fully conformant reader ultimately
does with the record, which is usually but not always the same call as `schemaResult`). Every
vector's `schemaResult` is a binding contract: a vector marked `"valid"` that fails to validate,
or one marked `"invalid"` that validates anyway, is a bug in this file, not an acceptable
surprise. The one exception is a vector on which validators differ: there `schemaResult` follows the
rule of the specification, as it does for the texts of row F1. That holds for a number that converts
to infinity in binary64 (TV-308, TV-327, TV-348, TV-349, TV-350) and for a document text whose regular
expressions behave differently in another dialect (TV-360, TV-361).

A vector with `documentText` carries text that a generic JSON library may not hold as written.
When the text is not a valid document under "Documents" in the specification (a syntax error, two
members with the same name: row F1), `schemaResult` is `invalid` by definition and is not
measured. Otherwise the text is parsed with a parser that keeps every member, nests to at least
64 levels and keeps a lone surrogate, the result is validated, and it must match `schemaResult`.

The other fields say what a reader does. They are the machine-readable form of [§10](CEXF-SPECIFICATION.md#10-error-handling). They assume
one reader profile, the **vector reader profile**. It recognises exactly the registered values. It treats every key of `extensions` as unknown, a key of Celestium (`nl.celestium.rulerOverrides`) included, so row CH14 fires for it (TV-317, TV-324); a reader that knows its own key reports nothing for it, and that difference lies in the notice only. It
calculates every registered value except what no reader can calculate (a `frame` that it does not
recognise, a draconic value on a kind without a definition, `topocentric` without a `location`, a
classical `method`). It calculates a valid `customAyanamsa`, so row CH17 does not fire for it (TV-84 to TV-86). It calculates `group-composite` with any number of parents (RF6 never fires).
It stores every field and every precision, holds a lone surrogate, nests to at least 64 levels,
displays the text format `bbcode-basic` (so row NO2 never fires) and has no time zone data (so row
CH9 never fires). Row CH17 refers to this profile, and it is the only description of it.

- `outcomeClass` is the outcome class of the row that decides (`accept`, `skip-record`,
  `discard-chart` or `refuse-file`). The row that decides is the first row in `rows` whose class is
  not `accept`; when every row in `rows` is of class `accept`, the first row decides. `readerOutcome` is `accept` exactly when `outcomeClass` is
  `accept`. There is no field for a reader that calculates less than the profile: the outcome
  class depends on what a reader calculates in one case only (the exception below), because rows CH1 and CH17 are class
  `accept`. Such a reader differs from the profile by a notice only: row CH17 for a value that it
  cannot calculate, row CH1 for a chart type that it does not implement, row CH17 for a chart type that it takes up as a chart of another kind. There is one exception: on a chart that row CH1 sets aside, the rows on its entries and on its notes do not fire (NO1 is of class `skip-record`; [§10.2](CEXF-SPECIFICATION.md#102-processing-order-and-precedence)), and that can change `outcomeClass`: through RF2 the fate of the chart, through NO1 that of a note. A `group-composite` with an entry of the role `source` gives row RF2 for the profile (the chart is discarded) and row CH1 for a reader that sets `group-composite` aside (the chart stays).
- `target` is a JSON Pointer to the record the outcome applies to, or `""` for the file. It is
  the record named by the "Class and target" column of the row that decides (see `outcomeClass`): for E2, E3 and E5 the
  smallest record that holds the field or member, for RF1, RF4 and RF5 the entry, for RF2, RF3 and RF6 the
  chart, for SU5 and for CH1 to CH20 the chart, for the other rows SU the subject, for the rows F the file (`""`). The row
  that decides names it, not the record that holds most of the situation (TV-125, TV-299 and TV-326 show this). When `rows` is empty and `notice` is `reader-dependent`,
  it is the first record in document order that carries a situation of the list under `notice`
  below, the folders before the subjects, whatever the order in the text. A subject comes before its own charts. The record is the subject for `kind`, `sex` and subject
  `extensions` and for a lone surrogate in a string of the members of the subject itself (not in a
  string of one of its charts), the folder for a lone surrogate in a string of a folder, and the chart
  for every other item. A record comes before the root: the root, `""`, is the target only when no record carries a situation of
  the list and a string of the root carries a lone surrogate. Otherwise, with `rows` empty, it is `""` (the file).
- `notice` says whether a reader of that profile must report something: `required`, `none`, or
  `reader-dependent`. It is `required` when the outcome class is not `accept`, or when a row in
  `rows` owes a notice to a reader of the profile. Otherwise it is `reader-dependent` when the
  document carries one of the following, and `none` when it carries none of them:
  1. a subject `kind` other than `person` (SU3);
  2. `time.unknown: true` (CH10);
  3. a `utcOffset` with a written seconds component, `:00` too; a fraction of a second in `utc` or `localTime` (for the `notice`
     of a vector every fraction that is written counts, `.000` too: the form decides, not the value, while row CH15 follows the value); an `age` of a
     direction or progression with more than 15 significant digits; a number in `customAyanamsa`
     with more than 15 significant digits (CH15); significant digits are counted from the first to
     the last digit that is not zero, and in a number written with an exponent only the digits of the mantissa count;
  4. a present `sex`, `source`, `time.dstOffset`, `time.standard`, `time.sourceCalendar`; 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 present `lunarNode`
     or `blackMoon` with a registered value; a key in the `extensions` of a subject or a chart; a
     key of `parameters` that the specification does not define (the fields of "Reader-specific
     limits", [§10.3](CEXF-SPECIFICATION.md#103-the-rows));
  5. a lone surrogate in a `\u` escape.

  Nothing else makes a notice reader-dependent. In particular a time zone that the tz data of the
  reader contradicts (CH9) does not, because the profile has no tz data, and neither does whether
  a local mean time offset matches the longitude: that check belongs to the reference
  implementation (Appendix A). A record that the model of a reader cannot
  hold at all (a date before year 1, a chart without `time`) is not a notice but another outcome,
  which the vectors do not model.
- `rows` lists every row that fires for a reader of the profile: its situation, as the row states
  it, is present in a record that is still being evaluated when the row's step comes (a record
  that a larger record took with it before the step of its rows is not evaluated:
  [§10.2](CEXF-SPECIFICATION.md#102-processing-order-and-precedence), "Larger record first"). The
  charts of a subject that SU4 skips because its `sequence` 0 chart did not survive are evaluated in
  step (5), before SU4, and their rows are listed: TV-163 lists CH2, CH3 and SU4 (SU4 is among the rows of the situation all the same). A subject that SU4 skips for its number of charts at `sequence` 0 is
  skipped before its charts: none of their rows is listed (TV-287). "Larger record
  first" removes notices, not rows. Only E5 fires more than once in one record (for two
  members) and is listed once for each time: E5
  fires once for each invalid member, and once more for `source` as a whole when no valid member of it
  is left (the pointers are the member and `source`). Every other row is listed once for the record that it
  concerns: CH5, CH6, CH7, CH14, CH17 and CH20 once per chart, whatever the number of parameters, keys
  or causes, and SU7 once per subject. A row that
  fires without a notice (CH6, CH7, CH10 where §7.5 requires no notice, CH14, CH18, SU7, SU3 for a reader that holds `kind`) is
  listed. A row whose situation depends on the reader and is absent for the profile (CH9: no time
  zone data; CH15: the profile holds every precision; NO2: it displays `bbcode-basic`; RF6: it has
  no maximum) is not listed. The rows come in the order in which a reader decides them, which is
  the order in which their notices become due. This order is the **vector order**, in ten steps (1) to (10). It
  divides the steps 1 to 6 of [§10.2](CEXF-SPECIFICATION.md#102-processing-order-and-precedence) more finely: (1) and (2) are step 1 of §10.2, (3) is step 2, (4) is step 3,
  (5) is step 4, (6), (7) and (8) are steps 5a and 5b, (9) is step 5c and (10) is step 6. Step 7 of §10.2 (the notices
  that are due once per file) has no step of its own here. The steps are: (1) F1, F2; (2) F3, F4; (3) E1 (the folders first, then the subjects), then E2 for a required member that is missing from a folder or a subject (the folders first); (4)
  for the folders E2 (other than a missing `id`), E3, then FO1, then FO2; (5) for each subject in document order: E2 (other than a missing `id` or `charts`) and E3 on
  its own fields, SU1, SU4 as counted, SU5 (before every row of the charts of the subject), then for each chart in document order the first of E2,
  E3, CH2, CH3, CH4, CH8 that applies, then SU4 if the `sequence` 0 chart did not survive; (6) for
  each surviving chart in document order: RF5 on all of its entries, then E3 on the entries that RF5 left, then RF2, RF3, RF6 (on a chart whose type defines no `parents` only RF5
  is applied to the entries and E4 does not fire on them, and a chart that row CH1 sets aside has no row RF); (7)
  RF1 and RF4 for each entry (RF4 not for an entry that RF1 treats); (8) SU2; (9) the rows of class `accept` of folders (E4, E5), subjects, charts and
  entries (SU3, SU6, SU7, CH1, CH5, CH6, CH7, CH9, CH10, CH11, CH12, CH13, CH14, CH15, CH16, CH17,
  CH18, CH19, CH20, E4, E5), record by record in document order, within one record in the order
  of the tables of [§10.3](CEXF-SPECIFICATION.md#103-the-rows), with E4 and E5 of the record last (E4 on an entry of `parents` comes after the rows of every chart of its subject and before the rows of the next subject: TV-318; a subject before its own charts; folders before subjects, whatever their order in the text; CH13 before CH17); (10) for the notes: E4, E5,
  NO1, NO2, NO3. A row that follows from another
  (SU4 after a `sequence` 0 chart that did not survive) has its own place in this order.
- `writeBack` says, per JSON Pointer, whether a reader that writes the document back keeps the
  record (`kept`) or leaves it out (`dropped`). The list of pointers is closed:
  1. the record on `target`, except for a refused file (target `""`, rows F1 and F2), where `writeBack`
     is empty;
  2. every record that a row skips, refuses or discards, and the derived charts that go with a subject
     that row SU4 skips and keeps (TV-163; a subject that SU4 drops has only its own pointer, TV-272, and no other pointer is named in it, also not for a chart that discards itself, TV-343; the one exception is the record on `target` (item 1));
  3. every entry of `parents` that row RF4 treats, `kept` or `dropped` as the row says;
  4. every member that falls away: each member that row E5 does not record (for a key of
     `extensions` or `modifierExtensions` whose value is `null` the pointer names the key,
     `/.../extensions/<key>` or `/.../modifierExtensions/<key>`; `source` as a whole when no valid member of it is left), and
     `/generatedAt` or `/generator` when row F4 drops it. The record that holds such a member is `kept`:
     the member is not written back, the rest of the record is, and that record is named only when it is the `target`;
  5. nothing else. An unrecognised member that stays `kept` (rows E4 and F3) is never named, and
     neither is a referring member such as a `folderId` (SU2).

  A member that is absent has no pointer, also when the schema requires it: what was not there cannot fall
  away (TV-225, TV-226, TV-234). A blank or non-text `displayName`, folder `name` or `time.timeZone` is
  listed as `dropped`: what is written back is a valid value of the reader's own choice, never the
  invalid one. An absent one is written back with such a value as well, and has no pointer. Any value
  that passes the schema and changes no behaviour conforms (a non-empty name, a valid IANA zone ID; `utc`
  stays leading), so the vectors test the pointer and never the value. What is `kept` may violate the schema: a refused record is written back unchanged. Reading the
  document, writing it back as these entries say and reading it again must give the same
  survivors. "The same survivors" means the same charts with the same labels. It does not mean the
  field `chartLabels`: that field belongs to the vector, not to the document, and is gone after the write-back.
- `expectedSurvivors` lists what a reader of the profile has left: folders with their `parentId`
  after repair (and their `name` where the vector names it), subjects with the `sequence` numbers of their
  charts, `links` where the vector tests how `parents` resolve, and `chartLabels` (a member of a subject), which names for a chart number that
  more than one chart claims the `label` of the chart that survives, so that a reader that keeps the
  wrong one of them is caught and not only a reader that keeps none. `chartLabels` names a chart
  number only when a chart survives under it. The charts that claim a number are counted over all subject records with that `id`, those that row SU1 skips included (TV-160). A chart that row CH2 refuses is written back but not used, so it is not among the survivors. `links` lists, per chart, the
  resolved `parents` as an unordered set of [subject, sequence]: the entries that resolve and take
  a position among the entries of the role of the chart type ([§8](CEXF-SPECIFICATION.md#8-parents-linked-charts-parents-and-source-charts)). An entry with an unrecognised
  role (RF1) takes no position and is not in `links`, also when its `(subject, sequence)` names a
  surviving chart. The comparison covers what the vector names: a chart that the vector does not list may be added; for a chart that it lists, the set of pairs must be equal; a chart that a reader does not list counts as an empty set.
- `specificationSections` names the sections of the specification the vector is about.

This guide names every vector below, with the rows that fire and the outcome class, so the two
cannot silently drift apart. The `description` of a vector in the file holds its full explanation.
Each line below gives the id, what the document holds, then the rows that fire and the outcome class.

### Group: `time-and-offsets` (§7)

The four time fields and what a reader does with them. The vectors cover the form of `utc`,
`localTime` and `utcOffset` (row E2), the arithmetic identity and dates that do not exist (row CH8),
seconds in an offset, years before 1 AD and year 0, local mean time and the `standard` register (row
CH19), `dstOffset`, `sourceCalendar`, and the unknown-time flag (row CH10). A fault in an
informative member of `time` is row E5.

- **TV-01**: Second-level utcOffset precision on the primary chart (no row; accept).
- **TV-02**: Second-level utcOffset precision on a derived chart (no row; accept).
- **TV-03**: Malformed utcOffset (missing leading zero) (E2, SU4; discard-chart).
- **TV-04**: Violated arithmetic time invariant (localTime does not equal utc shifted by utcOffset) (CH8, SU4; discard-chart).
- **TV-33**: localTime with eight fractional digits (E2, SU4; discard-chart).
- **TV-36**: Primary chart with an unknown birth time (CH10; accept).
- **TV-61**: A year before 1 AD in its prescribed form (no row; accept).
- **TV-62**: Year 0 is written 0000 (no row; accept).
- **TV-63**: A plus sign before the year (E2; discard-chart).
- **TV-64**: Year -0000 (E2; discard-chart).
- **TV-65**: Local apparent time and a Julian source date (no row; accept).
- **TV-66**: An unknown `standard` (CH19; accept).
- **TV-67**: An unknown `sourceCalendar` (E5; accept).
- **TV-115**: Local mean time as the clock of the source (no row; accept).
- **TV-116**: Local mean time with an offset that is not that of the place (no row; accept).
- **TV-117**: A dstOffset (no row; accept).
- **TV-118**: A negative dstOffset (E5; accept).
- **TV-119**: A dstOffset above a day (E5; accept).
- **TV-128**: A dstOffset of zero (no row; accept).
- **TV-129**: A dstOffset written as text (E5; accept).
- **TV-136**: A dstOffset written with a fraction part (no row; accept).
- **TV-137**: A date that does not exist in utc (CH8; discard-chart).
- **TV-138**: A second 60 in localTime (CH8; discard-chart).
- **TV-139**: Hour 24 in utc (CH8; discard-chart).
- **TV-140**: A utcOffset beyond 18 hours (CH8; discard-chart).
- **TV-149**: A utc with an offset other than Z (E2; discard-chart).
- **TV-150**: A utc with eight fractional digits (E2; discard-chart).
- **TV-234**: A chart without a timeZone (E5; accept).
- **TV-235**: A blank time.standard (E5; accept).
- **TV-249**: A time.unknown of the wrong JSON type (E1; skip-record).
- **TV-265**: An empty `localTime` is a wrong form, not a blank field (E2; discard-chart).
- **TV-275**: A date that does not exist on a chart of a type the reader does not know (CH8; discard-chart).
- **TV-297**: A `time` with a malformed `utc` and no other member (E2; discard-chart).
- **TV-300**: A fraction of a second that is all zeros (no row; accept).
- **TV-327**: An `altitude` that is too large for binary64 (E5, E5; accept).
- **TV-360**: A `utc` that ends with a line break (E2; discard-chart).
- **TV-361**: A `utc` with digits that are not ASCII digits (E2; discard-chart).
- **TV-377**: A chart before year 1 with an invalid `utcOffset`, in a subject whose primary chart has an empty `time` (E2, E2, SU4; discard-chart).
- **TV-378**: A chart before year 1 whose `localTime` is empty (E2; discard-chart).
- **TV-383**: A `utcOffset` with a seconds component that is `:00` (no row; accept).

### Group: `age-and-direction` (§6.4)

The `parameters` of each chart type. The vectors cover the defining parameters (`age`, `direction`,
`number`, `body`, `point`, `label`: rows CH3 and CH4), the calculation parameters and their
registers (row CH5), keys that the chart type does not use (row CH7), `question`, the numeric forms
of `age` and the harmonic `number`, and a chart type or body that a reader does not know (row CH1).
A key of an unused kind whose value is not a text is row E5.

- **TV-05**: Age with full 64-bit round-trip precision (no row; accept).
- **TV-06**: direction: "direct" on a primary direction (CH7; accept).
- **TV-07**: direction: "converse" on a secondary progression (no row; accept).
- **TV-08**: Missing required direction on a tertiary progression (CH3; discard-chart).
- **TV-09**: Unrecognised direction value (CH3; discard-chart).
- **TV-10**: Age below the 6-decimal floor (CH3; discard-chart).
- **TV-43**: method on a chart type that has no method (CH7; accept).
- **TV-46**: Stray progression type on the primary chart (no row; accept).
- **TV-49**: Harmonic chart missing its number (CH3; discard-chart).
- **TV-68**: A negative age (CH3; discard-chart).
- **TV-69**: A `method` outside the register (CH5; accept).
- **TV-70**: A horary chart without a question (no row; accept).
- **TV-71**: A horary chart with a blank question (E5; accept).
- **TV-72**: An unrecognised `point` on an ingress (CH4; discard-chart).
- **TV-73**: A profection with a whole-number age (no row; accept).
- **TV-74**: A profection with a padded age (CH3; discard-chart).
- **TV-75**: A life event with a label (no row; accept).
- **TV-76**: A life event without a label (CH3; discard-chart).
- **TV-77**: A minor progression without a direction (CH3; discard-chart).
- **TV-107**: A life event without a place (no row; accept).
- **TV-108**: A transit chart without a place (E2; discard-chart).
- **TV-141**: A body that does not follow the pattern (CH3; discard-chart).
- **TV-142**: A body that is not in the register (CH1; accept).
- **TV-143**: A blank method on a primary direction (CH5; accept).
- **TV-144**: A blank body on a planetary return (E3; discard-chart).
- **TV-145**: A blank point on an ingress (E3; discard-chart).
- **TV-146**: A question that is only whitespace (E5; accept).
- **TV-147**: A harmonic number with a leading zero (CH3; discard-chart).
- **TV-148**: An age with more digits than a double holds (no row; accept).
- **TV-159**: A blank `question` on a chart type that does not use it (CH7; accept).
- **TV-180**: A harmonic number with a fraction (CH3; discard-chart).
- **TV-181**: A harmonic number with a sign (CH3; discard-chart).
- **TV-187**: A registered time key (CH7; accept).
- **TV-188**: A registered method (CH17; accept).
- **TV-189**: `aspects` with a rotation method is not used (CH7; accept).
- **TV-190**: A registered use of the latitude (CH7; accept).
- **TV-191**: A registered way of following the angles (no row; accept).
- **TV-194**: A `key` outside the register (CH5, CH7; accept).
- **TV-195**: A `method` outside the register, with the others recorded (CH5; accept).
- **TV-196**: An `aspects` value outside the register (CH5; accept).
- **TV-197**: A `latitude` value outside the register (CH5, CH7; accept).
- **TV-198**: An `angles` value outside the register (CH5; accept).
- **TV-204**: No latitude for the moved points (no row; accept).
- **TV-205**: A classical method with mundane aspects (CH7, CH17; accept).
- **TV-210**: A planetary return of the Sun (no row; accept).
- **TV-211**: A planetary return of Mars (no row; accept).
- **TV-212**: A minor progression (no row; accept).
- **TV-242**: An unknown parameters key with a value that is not a text (E5; accept).
- **TV-243**: A calculation parameter that is not a text (CH5; accept).
- **TV-251**: A harmonic number of the wrong JSON type (E1; skip-record).
- **TV-253**: The houses of a solar arc chart: arc-shifted (no row; accept).
- **TV-254**: The houses of a solar arc chart: from-directed-mc (no row; accept).
- **TV-255**: An unknown value of houses on a solar arc chart (CH5; accept).
- **TV-256**: An empty value of houses on a solar arc chart (CH5; accept).
- **TV-257**: A directed Midheaven that follows the method (CH7; accept).
- **TV-258**: A directed Midheaven that follows the arc (CH7; accept).
- **TV-259**: An angles value outside the register on a primary direction (CH5, CH7; accept).
- **TV-260**: An empty value of angles on a primary direction (CH5, CH7; accept).
- **TV-262**: A number as `method` on a chart type that does not use it (E5; accept).
- **TV-263**: A number as `direction` on a chart type that does not use it (E5; accept).
- **TV-266**: A primary direction with position-circle-rotation (no row; accept).
- **TV-267**: A directed Midheaven that follows the arc, without other rows (no row; accept).
- **TV-269**: from-directed-mc on a sidereal, converse solar arc chart (no row; accept).
- **TV-284**: An age with many digits that are all zeros (no row; accept).
- **TV-288**: Two calculation parameters outside their register in one chart (CH5; accept).
- **TV-289**: Two keys that the specification does not define in one `parameters` (CH6; accept).
- **TV-290**: Two keys of another chart type in one `parameters` (CH7; accept).
- **TV-330**: A minor progression whose moment lies far outside the calendar (CH5; accept).
- **TV-346**: The defining parameters of a chart of a type that the reader does not know (CH1; accept).
- **TV-347**: A blank `type` on a chart without a `time` (E3; discard-chart).
- **TV-353**: An `age` with leading zeros after the decimal point (no row; accept).

### Group: `zodiac-ayanamsa-housesystem` (§7c)

The settings that make a position comparable. The vectors cover `zodiacSystem`, `ayanamsa` and
`customAyanamsa` (rows CH11, CH12, E2), `houseSystem` (row CH13), the `frame` register and what a
reader cannot calculate (row CH17), the draconic zodiac, and `lunarNode` and `blackMoon` (row CH20).

- **TV-11**: Sidereal zodiac with an explicit ayanamsa (no row; accept).
- **TV-12**: ayanamsa present without zodiacSystem: "sidereal" (no row; accept).
- **TV-13**: Unrecognised zodiacSystem value (CH11; accept).
- **TV-14**: Per-chart houseSystem on an electional chart (no row; accept).
- **TV-15**: houseSystem absent means "no opinion", not an implicit default (no row; accept).
- **TV-78**: An unrecognised zodiacSystem on a derived chart (CH11; accept).
- **TV-79**: An unrecognised ayanamsa on a sidereal chart (CH12; accept).
- **TV-80**: An unrecognised ayanamsa on a tropical chart (no row; accept).
- **TV-81**: An unrecognised houseSystem (CH13; accept).
- **TV-82**: A heliocentric chart (no row; accept).
- **TV-83**: A frame that is not in the register (CH17; accept).
- **TV-84**: A custom ayanamsa, constant model (no row; accept).
- **TV-85**: A custom ayanamsa, linear model (no row; accept).
- **TV-86**: A custom ayanamsa, precession model (no row; accept).
- **TV-87**: Both ayanamsa and customAyanamsa (E2; discard-chart).
- **TV-88**: A custom ayanamsa missing a required member (E2; discard-chart).
- **TV-104**: A topocentric chart (no row; accept).
- **TV-112**: A barycentric chart (no row; accept).
- **TV-113**: A selenocentric chart (no row; accept).
- **TV-114**: A blank frame (E3; discard-chart).
- **TV-126**: A draconic chart, mean node (no row; accept).
- **TV-127**: A draconic chart, true node (no row; accept).
- **TV-130**: A draconic zodiac on a harmonic chart (CH17; accept).
- **TV-132**: A frame outside the register on the primary chart (CH17; accept).
- **TV-182**: A topocentric chart without a location (CH17; accept).
- **TV-184**: An unrecognised `houseSystem` on a heliocentric chart (no row; accept).
- **TV-185**: A draconic zodiac on an unrecognised chart type (CH1; accept).
- **TV-186**: A registered ayanamsa that a reader does not implement (no row; accept).
- **TV-213**: Node and Black Moon variants on a derived chart (no row; accept).
- **TV-214**: The other node and Black Moon variants (no row; accept).
- **TV-215**: A value outside the node and Black Moon registers (CH20; accept).
- **TV-216**: An empty `lunarNode` (E5; accept).
- **TV-217**: A `blackMoon` that does not follow the pattern (E5; accept).
- **TV-268**: A `blackMoon` outside the registers (CH20; accept).
- **TV-274**: An empty `customAyanamsa.model` (E2; discard-chart).
- **TV-281**: A draconic zodiac on the primary chart (no row; accept).
- **TV-292**: Two causes for CH17 in one chart (CH17; accept).
- **TV-294**: Two unrecognised node variants on one chart are one notice (CH20; accept).
- **TV-308**: A `valueDeg` that is too large for binary64 (E2; discard-chart).
- **TV-310**: An unrecognised `houseSystem` on a chart whose `frame` is outside the register (CH13, CH17; accept).
- **TV-311**: A blank `ayanamsa` on a tropical chart (E3; discard-chart).
- **TV-312**: An incomplete `customAyanamsa` on a tropical chart (E2; discard-chart).
- **TV-313**: A member that version 1 does not define in a `customAyanamsa` (E4; accept).
- **TV-321**: A `latitude` that is too large for binary64 (E2; discard-chart).
- **TV-345**: A registered `houseSystem` on a chart whose `frame` is outside the register (CH17; accept).
- **TV-348**: An `epochJdTt` that is too large for binary64 (E2; discard-chart).
- **TV-349**: A `rateArcsecPerYear` that is too large for binary64 (E2; discard-chart).
- **TV-354**: A number with an exponent: only the mantissa has significant digits (no row; accept).
- **TV-381**: A custom ayanamsa with a member that version 1 does not define and whose value is too large for binary64 (E4; accept).

### Group: `structural-links` (§4.4, §6.2, §6.3, §8)

Folders, subjects, chart numbers and the references between charts. The vectors cover ids and cycles
of folders (rows FO1, FO2), ids of subjects and `sequence` (rows SU1 to SU5), `kind` and `sex` (rows
SU3, SU6), the roles and counts of `parents` (rows RF1 to RF6, CH16), references to charts that were
removed, the composite houses (row CH5), and faults in the informative members of folders and
subjects (row E5).

- **TV-16**: Relocation chart with a correct source reference (no row; accept).
- **TV-17**: Relocation chart with the wrong reference role (RF2; discard-chart).
- **TV-18**: Composite chart with exactly two parents (CH5; accept).
- **TV-19**: Composite chart with three parents (should be group-composite) (RF3; discard-chart).
- **TV-20**: Group composite chart with three parents (CH5; accept).
- **TV-21**: Harmonic chart correctly carries no parents (no row; accept).
- **TV-22**: subject.kind and chart.type combine freely (SU3; accept).
- **TV-37**: Parent reference that points nowhere (RF4, CH5; accept).
- **TV-40**: Two charts sharing one sequence (SU5; discard-chart).
- **TV-41**: folderId pointing at a folder that isn't there (SU2; accept).
- **TV-42**: Two charts both claiming sequence 0 (SU4; skip-record).
- **TV-44**: parents on a chart type that defines none (CH16; accept).
- **TV-47**: Two folders sharing one id (FO1; skip-record).
- **TV-48**: Folder parentId forming a cycle (FO2; accept).
- **TV-89**: An unrecognised role in `parents` (RF1, CH5; accept).
- **TV-90**: The wrong role for the chart type (RF2; discard-chart).
- **TV-91**: A malformed entry in `parents` (RF5, CH5; skip-record).
- **TV-92**: A reference to a duplicated sequence (SU5, RF4, CH5; discard-chart).
- **TV-93**: A folder that names itself as parent (FO2; accept).
- **TV-94**: A folder whose parent does not exist (FO2; accept).
- **TV-95**: A blank folder name (E5; accept).
- **TV-96**: A subject of another kind with a sex (SU3, SU6; accept).
- **TV-109**: Extensions on a subject (SU7; accept).
- **TV-120**: A composite chart without time and place (CH5; accept).
- **TV-121**: A synastry chart without time and place (no row; accept).
- **TV-122**: A transit chart without a time (E2; discard-chart).
- **TV-123**: A horary subject with a question (SU3; accept).
- **TV-124**: A horary subject without a question (SU3; accept).
- **TV-125**: A horary subject with a blank question (SU3, E5; accept).
- **TV-151**: A group composite without time and place (CH5; accept).
- **TV-153**: Two folders with id 1, the first with a blank name (FO1, E5; skip-record).
- **TV-154**: An empty parents list (no row; accept).
- **TV-155**: A reference to a chart that row RF3 discards (RF3, RF4, CH5; discard-chart).
- **TV-160**: A subject with a blank familyName keeps its id (SU1, E5; skip-record).
- **TV-161**: A reference from a chart that comes before the chart that row RF3 discards (RF3, RF4, CH5; discard-chart).
- **TV-162**: A reference to a chart that row CH8 discards (CH8, RF4, CH5; discard-chart).
- **TV-163**: A kept subject whose primary chart is refused still drops its broken derived chart (CH2, CH3, SU4; skip-record).
- **TV-167**: A null where the format allows one (no row; accept).
- **TV-177**: An empty `charts` list (SU4; skip-record).
- **TV-183**: A relocation whose `utc` differs from its source (no row; accept).
- **TV-192**: A registered way of casting the houses of a composite (no row; accept).
- **TV-193**: A registered anchor for the houses of a composite (no row; accept).
- **TV-199**: A `houses` value outside the register (CH5; accept).
- **TV-200**: A `houseAnchor` outside the register (CH5; accept).
- **TV-202**: The `location` of a composite does not enter the houses (no row; accept).
- **TV-203**: The ring of cusp midpoints without an anchor (no row; accept).
- **TV-206**: A malformed entry beside two proper parents (RF5, CH5; skip-record).
- **TV-207**: A reference to a chart of a skipped subject (E1, RF4, CH5; skip-record).
- **TV-223**: A folderId of the wrong JSON type (E5; accept).
- **TV-226**: A folder without a name (E5; accept).
- **TV-227**: A folder parentId of the wrong JSON type (E5; accept).
- **TV-228**: A folder protected flag of the wrong JSON type (E5; accept).
- **TV-272**: A subject dropped by SU4 with a derived chart: only the subject is named (SU4; skip-record).
- **TV-273**: An entry with an unrecognised role that names no chart (RF1; accept).
- **TV-276**: What RF3 counts: only the entries that survive E3 and RF5, and no RF1 entries (RF5, E3, RF1; skip-record).
- **TV-277**: An entry that names a chart that exists only in a duplicate subject that SU1 skipped (SU1, RF4; skip-record).
- **TV-278**: A subject without a `charts` member (E2; skip-record).
- **TV-279**: Entries on a chart type that defines no parents: RF5 applies, RF1 and RF4 do not (RF5, CH16; skip-record).
- **TV-280**: `parents` on the primary chart (CH16; accept).
- **TV-285**: A duplicate sequence whose first chart does not survive (SU5, E2; discard-chart).
- **TV-286**: A planetary return of an unknown body, with a `parents` entry (CH1; accept).
- **TV-287**: A subject skipped by SU4 for its count of primary charts: its other charts are not evaluated (SU4; skip-record).
- **TV-298**: A malformed entry in the `parents` of the primary chart (RF5, CH16; skip-record).
- **TV-303**: A derived chart of a type without `parents` with only a malformed entry (RF5; skip-record).
- **TV-316**: An entry that names a subject whose `id` is not an integer (E1, RF4; skip-record).
- **TV-325**: An entry that has no `subject` and a blank `role` (RF5; skip-record).
- **TV-326**: A malformed entry and an entry of the wrong role on one chart (RF5, RF2; skip-record).
- **TV-328**: A chart without a `sequence` (E2; discard-chart).
- **TV-329**: A `sequence` that does not fit in 32 bits (no row; accept).
- **TV-331**: A derived chart of a horary subject that cannot be used (E2, SU3; discard-chart).
- **TV-332**: An entry without `subject` whose `sequence` is a text (E1; skip-record).
- **TV-333**: An integer written `1E2` in an entry of a chart that is discarded (E2; discard-chart).
- **TV-336**: A chart that fails on its own row and a second chart with the same `sequence` (SU5, CH3; discard-chart).
- **TV-337**: Two malformed entries on one chart (RF5, RF5; skip-record).
- **TV-338**: A member that is not defined in an entry comes after the later charts of its subject and before the next subject (CH17, E4, E5; accept).
- **TV-339**: Two charts with the same negative `sequence` (SU5, E2; discard-chart).
- **TV-340**: Two different negative values of `sequence` that do not fit in 32 bits (E2, E2; discard-chart).
- **TV-341**: RF5 is decided on all entries before E3 (RF5, E3; skip-record).
- **TV-343**: A subject whose primary chart discards itself: the chart has no pointer of its own (E2, E2, SU4; skip-record).
- **TV-344**: An entry with an unknown member on a chart type that defines no parents (CH16; accept).
- **TV-351**: An entry of the wrong role that is also malformed (RF5; skip-record).
- **TV-363**: A relocation whose entry has a blank `role` (E3; skip-record).
- **TV-364**: A relocation whose entry has an unrecognised role (RF1; accept).
- **TV-365**: A relocation whose entry names a chart that is not in the file (RF4; accept).
- **TV-366**: A relocation whose entry has a member that version 1 does not define (E4; accept).
- **TV-367**: A life event with `parents` and a frame outside the register (CH16, CH17; accept).
- **TV-373**: Two charts with the same negative `sequence` that does not fit in 32 bits (SU5, E2; discard-chart).
- **TV-374**: An entry whose `sequence` does not fit in 32 bits and names no chart (RF4; accept).
- **TV-375**: An entry without `subject` whose `sequence` does not fit in 32 bits (RF5; skip-record).
- **TV-376**: An entry that names a chart whose `sequence` does not fit in 32 bits (no row; accept).
- **TV-384**: A malformed entry on a chart that an entry of the wrong role discards, and a folder that fails earlier (E2, RF5, RF2; skip-record).
- **TV-387**: An entry that names a chart whose `utc` lies before year 1 (no row; accept).
- **TV-388**: A horary subject with a chart of an unknown type and a chart that row E2 discards (E2, SU3, CH1; discard-chart).
- **TV-389**: A chart of an unknown type and a chart that row E2 discards, on a subject whose primary chart lies before year 1 (E2, CH1; discard-chart).
- **TV-390**: A chart of an unknown type on a subject whose primary chart lies before year 1, and a chart that row E2 discards in the next subject (E2, CH1; discard-chart).
- **TV-391**: A chart of an unknown type on a horary subject, and a chart that row E2 discards in the next subject (E2, SU3, CH1; discard-chart).

### Group: `notes` (§1, §7b)

Notes and the small informative members. The vectors cover the markup escapes, a note without a
title or text (row NO1), an unknown format (row NO3), the creation and update moments, `sex`,
`source` and its members (row CH18), and the codes of a place. Almost every invalid member here is
row E5: the record stays and the member is not recorded.

- **TV-23**: Note markup escape protocol: \[ and \\[ (no row; accept).
- **TV-24**: Unknown tag and unpaired closing tag both stay literal (no row; accept).
- **TV-25**: Note without a title (no row; accept).
- **TV-26**: Empty-string note title (E5; accept).
- **TV-27**: Note with neither title nor text (NO1; skip-record).
- **TV-39**: Note with an unrecognised format (NO3; accept).
- **TV-97**: A note with a blank format (E5; accept).
- **TV-98**: A note without createdAt (no row; accept).
- **TV-99**: A sex on a person (no row; accept).
- **TV-100**: An unrecognised sex (E5; accept).
- **TV-101**: A source with a rating and a text (no row; accept).
- **TV-102**: A source with a lower-case rating (E5, E5; accept).
- **TV-103**: An empty source (E5; accept).
- **TV-105**: A country code and a region (no row; accept).
- **TV-106**: A lower-case country code (E5; accept).
- **TV-110**: A source kind (CH18; accept).
- **TV-111**: A blank source kind (E5; accept).
- **TV-156**: An unknown note format on a note with a blank title (E5, NO3; accept).
- **TV-158**: A createdAt with an offset other than Z (E5; accept).
- **TV-178**: A `createdAt` in year 0000 (E5; accept).
- **TV-208**: A `createdAt` that does not exist in the calendar (E5; accept).
- **TV-209**: An `updatedAt` that does not exist in the calendar (E5; accept).
- **TV-232**: The notes of a chart that are not an array (E5; accept).
- **TV-233**: A null in the notes of a chart (E5; accept).
- **TV-240**: A blank source text (E5; accept).
- **TV-241**: A source that is not an object (E5; accept).
- **TV-244**: A note text of the wrong JSON type (E5; accept).
- **TV-245**: A blank note text (E5; accept).
- **TV-302**: A `source` whose only member is one that version 1 does not define (E5; accept).
- **TV-306**: A `source` with an invalid member and a member that version 1 does not define (E5, E5; accept).
- **TV-320**: Three elements of `notes` that are not objects (E5, E5, E5; accept).
- **TV-355**: A note that has no usable text or title and an unknown member (NO1; skip-record).
- **TV-356**: A note with an unknown member, an invalid date and an unknown format (E4, E5, NO3; accept).
- **TV-357**: A note whose `title` is blank and whose `text` is empty (NO1; skip-record).

### Group: `envelope-and-versioning` (§2, §4.3, §10)

The file as a whole and the rows that apply at every depth. The vectors cover the format literal and
the version (rows F1 to F4), a wrong JSON type (row E1), blank strings (row E3), unknown members
(row E4), `null`, ids beyond 32 bits, nesting depth and a lone surrogate, and one vector for each
informative member of a subject, a folder or a chart whose fault is row E5.

- **TV-28**: Higher format version than this specification describes (F3; accept).
- **TV-29**: Unrecognised chart-type key (CH1; accept).
- **TV-30**: Unrecognised subject kind (SU3; accept).
- **TV-31**: Wrong format literal (F2; refuse-file).
- **TV-32**: Empty-string familyName (E5; accept).
- **TV-34**: Folder that was protected at the source (no row; accept).
- **TV-35**: Newer version with an unrecognised top-level key (F3; accept).
- **TV-38**: Unrecognised key in modifierExtensions (CH2; skip-record).
- **TV-45**: Stray type on the primary chart (no row; accept).
- **TV-50**: Duplicate member name in one object (F1; refuse-file).
- **TV-51**: Invalid JSON syntax (F1; refuse-file).
- **TV-52**: The required `subjects` member is missing (F2; refuse-file).
- **TV-53**: Unrecognised top-level key at a known version (F4; accept).
- **TV-54**: Wrong JSON type in one subject (E1; skip-record).
- **TV-55**: Two subjects share an id (SU1; skip-record).
- **TV-56**: Latitude outside its range (E2; discard-chart).
- **TV-57**: A required field is missing inside `time` (E2; discard-chart).
- **TV-58**: A blank chart label (E5; accept).
- **TV-59**: A blank `timeZone` (E5; accept).
- **TV-60**: A blank `type` at sequence 0 is ignored (no row; accept).
- **TV-131**: A blank zodiacSystem and a modifierExtensions key on one chart (E3; discard-chart).
- **TV-133**: An unknown member in a nested object, at a known version (E4; accept).
- **TV-134**: An unknown member in a nested object, at a higher version (F3; accept).
- **TV-135**: An integer written with a fraction part (no row; accept).
- **TV-152**: An unknown chart type without time and place (CH1; accept).
- **TV-157**: A generatedAt outside its pattern (F4; accept).
- **TV-164**: A null `zodiacSystem` (E1; skip-record).
- **TV-165**: A null `label` (E5; accept).
- **TV-166**: A null value in `extensions` (E5; accept).
- **TV-168**: Subject ids beyond 32 bits (no row; accept).
- **TV-169**: Folder ids beyond 32 bits (no row; accept).
- **TV-170**: A version beyond 32 bits (F3; accept).
- **TV-171**: Nesting 64 levels deep (CH14; accept).
- **TV-172**: A lone surrogate in a \u escape (no row; accept).
- **TV-173**: A name made of every white-space code point (E5; accept).
- **TV-174**: Names that look blank but are not white space (no row; accept).
- **TV-175**: A closed-list field with the wrong JSON type: `sex` (E5; accept).
- **TV-176**: A closed-list field with the wrong JSON type: `source.rating` (E5, E5; accept).
- **TV-179**: A `generatedAt` in year 0000 (F4; accept).
- **TV-201**: A `generatedAt` that is not a date (F4; accept).
- **TV-218**: A blank subject kind (E5; accept).
- **TV-219**: A subject kind of the wrong JSON type (E5; accept).
- **TV-220**: A givenName of the wrong JSON type (E5; accept).
- **TV-221**: A blank namePrefix (E5; accept).
- **TV-222**: A blank subject note (E5; accept).
- **TV-224**: A subject extensions that is not an object (E5; accept).
- **TV-225**: A subject without a displayName (E5; accept).
- **TV-229**: A type of the wrong JSON type on the primary chart (E5; accept).
- **TV-230**: A blank houseSystem (E5; accept).
- **TV-231**: A chart extensions that is not an object (E5; accept).
- **TV-236**: An altitude of the wrong JSON type (E5; accept).
- **TV-237**: A blank region (E5; accept).
- **TV-238**: A blank placeName (E5; accept).
- **TV-239**: A country of the wrong JSON type (E5; accept).
- **TV-246**: A blank zodiacSystem (E3; discard-chart).
- **TV-247**: A latitude of the wrong JSON type (E1; skip-record).
- **TV-248**: A sequence of the wrong JSON type (E1; skip-record).
- **TV-250**: A blank label on a life-event chart (CH3; discard-chart).
- **TV-252**: A blank type on a derived chart (E3; discard-chart).
- **TV-261**: A null value next to a valid key in `extensions` (CH14, E5; accept).
- **TV-264**: A label that is not a text on a life-event chart (CH3; discard-chart).
- **TV-270**: A null key as the only key of `modifierExtensions` (E5; accept).
- **TV-271**: A null key next to an unknown key in `modifierExtensions` (CH2; skip-record).
- **TV-282**: A newer version with a `generatedAt` of the wrong type (F3; accept).
- **TV-283**: Several faults in the root are one row F4 (F4; accept).
- **TV-291**: Two unknown keys in the `extensions` of a chart (CH14; accept).
- **TV-293**: Two unknown keys in the `extensions` of a subject (SU7; accept).
- **TV-295**: A chart of an unknown type is set aside under CH1 alone (CH1; accept).
- **TV-296**: A derived chart without `type` (E2; discard-chart).
- **TV-299**: A row that accepts, then a row that skips a record (F4, E2; skip-record).
- **TV-301**: A latitude that rounds to 90 (no row; accept).
- **TV-304**: A planet-return of an unknown body with a `lunarNode` outside the register (CH1; accept).
- **TV-305**: A wrong JSON type in an entry of a chart that row CH1 would set aside (E1; skip-record).
- **TV-307**: An integer that is written with more digits than binary64 holds (no row; accept).
- **TV-309**: A `sequence` that is too large for binary64 (E1; skip-record).
- **TV-314**: Subjects come before folders in the text, and both have an element that is not an object (E1, E1; skip-record).
- **TV-315**: A `type` that is not a text on a chart without a `sequence` (E1; skip-record).
- **TV-317**: A `nl.celestium` key in the `extensions` of a chart (CH14; accept).
- **TV-318**: A member that is not defined in an entry, and a row of a later chart (CH17, E4; accept).
- **TV-319**: A newer version with a `generatedAt` that is not a date and time (F3; accept).
- **TV-322**: A `version` that is too large for binary64 (F2; refuse-file).
- **TV-323**: A subject `id` written as `3e9` (no row; accept).
- **TV-324**: A `nl.celestium` key whose value is not the form Celestium writes (CH14; accept).
- **TV-334**: A member that version 1 does not define, with the value `null`, in a subject and in a chart (E4, E4; accept).
- **TV-335**: A folder with an invalid member comes after the subjects in the text (E5, SU3; accept).
- **TV-342**: A subject whose `id` has the wrong type and that has no `charts` (E1; skip-record).
- **TV-350**: A number in `extensions` that is too large for binary64 (SU7, CH14; accept).
- **TV-352**: A chart of an unknown type that carries a row of every other kind (CH1; accept).
- **TV-358**: A subject comes before its own charts when the target is chosen (no row; accept).
- **TV-359**: A record comes before the root when the target is chosen (no row; accept).
- **TV-362**: An E2 in an earlier subject and an E1 in a later subject (E1, E2; skip-record).
- **TV-368**: A `utc` of the wrong JSON type next to a `localTime` of the wrong form (E1; skip-record).
- **TV-369**: A `utc` of the wrong JSON type next to a missing `utcOffset` (E1; skip-record).
- **TV-370**: A subject `id` written with an exponent (no row; accept).
- **TV-371**: A subject `id` that converts to zero in binary64 (no row; accept).
- **TV-372**: A subject without `charts` whose `id` is written with an exponent (E2; skip-record).
- **TV-379**: A chart of an unknown type before year 1, with a note whose `title` is a number (CH1; accept).
- **TV-380**: A chart of an unknown type whose `sequence` does not fit in 32 bits (CH1; accept).
- **TV-382**: A folder with a lone surrogate comes after a subject that has a `sex` when the target is chosen (no row; accept).
- **TV-385**: A chart of an unknown type on a subject whose primary chart lies before year 1 (CH1; accept).
- **TV-386**: A chart of an unknown type on a subject of the kind horary (SU3, CH1; accept).
- **TV-392**: A horary subject with a `sex` and a chart of an unknown type (SU3, SU6, CH1; accept).

## Appendix A: Reference implementation notes

**This appendix is informative, not normative.** Celestium Exchange is the reference
implementation of this format. It writes into, and reads from, Celestium, whose charts offer less
than the format allows. This appendix lists where the reference implementation does less than the
format allows, what the user then sees, and which row of [§10](CEXF-SPECIFICATION.md#10-error-handling) gives the notice. These are limits of
one program, not rules of the format: a reader with a wider data model owes none of these notices.
Where this appendix and the numbered sections disagree, the numbered sections govern.

Celestium imports every chart that has a moment and a place. A chart type for which it has no chart
of its own becomes a Transit at a moment and place that it derives from the chart, with a label and one notice (the rows on
chart types below, row CH17); only a `profection`, a `group-composite`, a chart of a type that is not
registered, a `planet-return` whose `body` is not in the register, a chart without a usable moment or place, a chart with a `sequence` above 2147483647, a chart whose `utc` or `localTime` lies before year 1 (when that is the chart at `sequence` 0, the derived charts of that subject are not imported either) and a `minor-progression` outside the years 1 to 9999 are not imported. Where a file asks for something that Celestium does not offer for
one chart, Celestium calculates and draws the chart with its own setting. It issues one notice for
each chart, which names what could not be taken over. A value that equals what Celestium shows
anyway is not named. The house system and the other settings below are global settings of
Celestium. A screen of Celestium can offer its own choice of house system for the length of that
screen, but that choice is not a property of a chart and is never written to a file.

| Situation | What the reference implementation does | Notice |
|---|---|---|
| `kind` other than `person` (SU3) | Shows the subject as a person: Celestium has no other subject kind. When writing it writes `kind: "person"`, except for a horary chart whose querent has no birth data (see the row on a horary chart below). | One per file, with the number of subjects (row SU3). |
| `houseSystem` with a registered value ([§7c](CEXF-SPECIFICATION.md#7c-zodiacsystem-ayanamsa-and-housesystem-universal-per-chart-settings)) | Imports the chart and draws it with the global house system of Celestium. The user sees the global setting, and the drawing follows it when the user changes it. A value that equals the global setting is not named. | One per chart, shared with the rows below, only when the value differs. |
| `houseSystem` when writing | Celestium keeps no house system per chart, only one global setting. For a file meant for a different program ([§14](CEXF-SPECIFICATION.md#14-two-ways-of-exporting)) Celestium Exchange writes `houseSystem` on every chart: by default the global setting at the moment of export, and on a chart where the user chose otherwise in the export dialog, that choice. The choice is made for this one export and is not stored. A house system that a screen of Celestium uses for itself (the transit list, the two-wheel view) is never written. For another Celestium installation it writes no `houseSystem`. | None. |
| `houses` on a composite ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)) | Imports the chart. Celestium draws every composite with its global setting, `cusp-midpoints` or `derived-from-mc`, and shows no house method per chart. A value that equals the setting is not named. | One per chart, shared (row CH17). |
| `houseAnchor` ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)) | Imports the chart. Celestium draws a composite with `cusp-midpoints` as `houseAnchor` `none`: every cusp is the midpoint of the cusps of the parents. `ascendant`, `midheaven` and `auto` are drawn as `none`. | One per chart, shared (row CH17). |
| `houses` on a `solar-arc` ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)) | Imports the chart. Celestium keeps no houses method per solar arc chart, only one global setting, which it names "Huizen bij zonneboog" (houses in solar arc; `arc-shifted` or `from-directed-mc`), and draws every solar arc chart with it. A value that equals the setting is not named. | One per chart, shared (row CH17). |
| `angles` on a `primary-direction` ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)) | Imports the chart. Celestium keeps no choice for the directed Midheaven per chart, only one global setting, which it names "Gedirigeerd MC" (directed MC; `method-mc` or `ramc-arc`), and draws every primary direction with it. A value that equals the setting is not named. | One per chart, shared (row CH17). |
| `lunarNode` and `blackMoon` when reading ([§7c.6](CEXF-SPECIFICATION.md#7c6-lunarnode-and-blackmoon-the-variant-of-the-nodes-and-of-the-black-moon), CH20) | Imports the chart and draws it with the nodes and the Black Moon of its global setting: Celestium keeps no variant per chart. A value of the right form that is not registered is not recorded. | A registered value: one per file, with the number of charts, only for charts whose value differs from the setting (or when the setting cannot be read). A value outside the register: one per chart (row CH20). A blank value or one of the wrong form is row E5. |
| `lunarNode` and `blackMoon` when writing ([§7c.6](CEXF-SPECIFICATION.md#7c6-lunarnode-and-blackmoon-the-variant-of-the-nodes-and-of-the-black-moon)) | Celestium Exchange writes on every chart the central setting of Celestium at the moment of export (the choice between the mean and the true node, and between the mean and the osculating Black Moon): `lunarNode` `mean` or `true`, `blackMoon` `mean-apogee` or `osculating-apogee`. It never writes `interpolated-apogee`: in Celestium the corrected Black Moon is a separate extra point, not a variant of the Black Moon on the main wheel. When the setting cannot be read, it writes neither field. | One per export, when the setting cannot be read. |
| A registered `ayanamsa` on a sidereal chart that Celestium does not calculate, a `customAyanamsa`, a draconic `zodiacSystem` (CH17, [§7c.4](CEXF-SPECIFICATION.md#7c4-the-draconic-zodiacs), [§7c.5](CEXF-SPECIFICATION.md#7c5-customayanamsa-an-ayanamsa-that-has-no-name)) | Imports the chart and calculates it with the zodiac setting that Celestium has globally. Celestium calculates 6 of the 47 registered ayanamsas: `lahiri`, `raman`, `krishnamurti`, `fagan-bradley`, `de-luce` and `usha-shashi`. | One per chart, shared, with the value. |
| `zodiacSystem` or `ayanamsa` that the reader does not recognise (CH11, CH12) | Imports the chart and calculates it with its global zodiac setting. The file is not changed. | One per chart, shared, with the value. |
| A `frame` other than `geocentric` (`heliocentric`, `topocentric`, `barycentric`, `selenocentric`) or a `frame` that is not recognised (CH17, [§7c.3](CEXF-SPECIFICATION.md#7c3-frame-the-point-of-view-of-the-positions)) | Imports the chart and calculates it with its own setting for the frame. | One per chart, shared, with the value. |
| Calculation parameters of a direction or progression when reading ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type), CH17) | Imports the chart and calculates it with its own technique where the value is not one it calculates. Celestium calculates `key` `naibod`, the three rotation methods (`ra-rotation`, `semi-arc-scaled-rotation`, `position-circle-rotation`), `aspects` `zodiacal`, `latitude` `promissor` and `both`, and `angles` `quotidian` on a progression. Every other registered value (`angles` on a `primary-direction` has its own row above), and a classical `method` (`placidian-semi-arc`, `placidian-under-the-pole`, `regiomontanus`, `campanus`, `topocentric`), is replaced by Celestium's own technique. | One per chart, shared, naming the parameter and the value. |
| `life-event`, and a `planet-return` of a body other than the Sun and the Moon ([§6.3](CEXF-SPECIFICATION.md#63-keys-with-no-celestium-counterpart-and-why-theyre-already-here), CH17) | Imports the chart as a Transit at the moment and the place in the file. The chart carries the label from the file, or for a `planet-return` without a label a fixed description such as "Mars-return". Celestium shows no calculation of the event or the return itself. A `life-event` without a `location` is not imported. | One per chart (row CH17). |
| A `planet-return` of the Sun or the Moon ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)) | Imports the chart as a Solaar (the Sun) or a Lunaar (the Moon), like `solar-return` and `lunar-return`. | None. |
| A `type` that is not registered, and a `planet-return` whose `body` is not in the register (`vulcan`, say) ([§6.2](CEXF-SPECIFICATION.md#62-the-chart-type-keys), [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type), CH1) | Does not import the chart. The rest of the subject is imported as normal, except when the subject is not imported or is horary (rows below); the CH1 notice is given all the same. The file is not changed. | One per chart (row CH1). |
| `profection` and `group-composite` ([§6.3](CEXF-SPECIFICATION.md#63-keys-with-no-celestium-counterpart-and-why-theyre-already-here), CH1) | Does not import the chart. The rest of the subject is imported as normal, except when the subject is not imported or is horary (rows below); the CH1 notice is given all the same. Celestium has no such chart. | One per chart (row CH1). |
| `relocation` and `electional` ([§6.3](CEXF-SPECIFICATION.md#63-keys-with-no-celestium-counterpart-and-why-theyre-already-here), CH17) | Imports the chart as a Transit at the moment and the place of the chart itself. The chart carries the label from the file, or the name of the type (`relocation`, `electional`). A chart without `time` or `location` is not imported. A `relocation` that row RF2 or RF3 discards is discarded first. Celestium never writes these types. | One per chart (row CH17). |
| `minor-progression` ([§6.3](CEXF-SPECIFICATION.md#63-keys-with-no-celestium-counterpart-and-why-theyre-already-here), CH17) | Imports the chart as a Transit at the progressed moment, t_p = t_0 + d for `direct` and t_0 - d for `converse`, with d = `age` x 29.53059 days ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)) and t_0 the `utc` of the `sequence` 0 chart, at the place of the `sequence` 0 chart. The chart carries the label from the file, or the name of the type. When the `sequence` 0 chart has no moment or no place, or `age` cannot be read, the chart is not imported; the same holds when t_p lies outside the years 1 to 9999 (the row on a `minor-progression` outside those years, below). Celestium never writes this type. | One per chart (row CH17). |
| `time.unknown: true` on a derived chart ([§7.5](CEXF-SPECIFICATION.md#75-the-unknown-flag)) | Imports the chart with its calculated moment. The flag is not shown for a derived chart. On the primary chart the flag round-trips. | One per chart (row CH10). |
| `time.unknown: true` with a replacement moment other than local noon ([§7.5](CEXF-SPECIFICATION.md#75-the-unknown-flag)) | Replaces the moment with local noon on the known date, for every source format. | One notice for every unknown time, and a second one only when the supplied moment differed from local noon (row CH10). At exactly 12:00 only the first is issued. |
| `utcOffset` with a seconds component on a derived chart ([§7.6](CEXF-SPECIFICATION.md#76-second-level-precision-in-utcoffset)) | Keeps the absolute moment exact and shows the offset as `+00:00`. On the primary chart nothing is lost. | One per chart (row CH15). |
| `parameters` keys it does not recognise (CH6), `extensions` keys of a chart it does not recognise (CH14) and `extensions` keys of a subject it does not recognise (SU7), when importing into Celestium | They do not appear in Celestium and are not passed on. | One per file. |
| A member that this version does not define in a folder, subject, chart, note or reference (E4) | Reads the record. The member does not appear in Celestium. | One per record, naming the members (row E4). |
| A number in `parameters` with more digits than a `double` holds (CH15) | Rounds it to the nearest `double` and goes on. | One per chart and field (row CH15). |
| `sex` on a subject ([§4.2](CEXF-SPECIFICATION.md#42-fields)) | Does not show it: Celestium shows no sex for a subject. | One per file, with the number of subjects. |
| `source` on a chart ([§5.2](CEXF-SPECIFICATION.md#52-source-where-the-charts-data-came-from)), including `source.kind` | Does not show it: Celestium shows no source for a chart. | One per file, with the number of charts. |
| `time.dstOffset` ([§7.11](CEXF-SPECIFICATION.md#711-timedstoffset-the-summer-time-part-of-the-offset)) | Does not show it: Celestium shows the local time and the whole offset. | One per file, with the number of charts. |
| `time.standard: "lat"` ([§7.9](CEXF-SPECIFICATION.md#79-timestandard-the-clock-the-local-time-was-read-on)) | Does not show it: Celestium shows zone time and local mean time only. The moment (`utc`) is unchanged. | One per file, with the number of charts. |
| `time.standard: "lmt"` whose `utcOffset` differs from the local mean time of the `location` ([§7.9](CEXF-SPECIFICATION.md#79-timestandard-the-clock-the-local-time-was-read-on)) | Imports the chart as local mean time anyway, and keeps the moment. This check belongs to the reference implementation: a generic reader does not check the offset against the place ([§7.9](CEXF-SPECIFICATION.md#79-timestandard-the-clock-the-local-time-was-read-on)). | One per chart, naming both offsets. |
| Time kind `L` in AAF and zone `LMT` in Quick\*Chart | Imports the chart as local mean time: an empty time zone and the moment in UTC, as for `time.standard: "lmt"`. The offset follows from the longitude (four minutes per degree), rounded to whole seconds. | One per record. |
| A `sequence` above 2147483647 ([§5](CEXF-SPECIFICATION.md#5-chart)) | Does not import the chart: Celestium cannot number a chart above 2147483647, and the reference implementation does not renumber the chart. A chart that a row of [§10](CEXF-SPECIFICATION.md#10-error-handling) discards is discarded first. For a chart that no row of §10 skips, refuses or discards, the data is good: Celestium reports no row E4, E5 or NO1 to NO3 for it or its notes, because it does not read them, and does not change the file. A reader that can hold the chart applies those rows as usual. | One per chart. |
| A `parents` entry that names a chart whose `sequence` is above 2147483647 ([§8](CEXF-SPECIFICATION.md#8-parents-linked-charts-parents-and-source-charts)) | Does not link to that chart: the chart is not imported (the row above), so the entry has nothing to point at. The entry is dropped from the model, as for row RF4, and the file is not changed. An entry that names no chart, or that lacks `subject`, is read as for any other `sequence` (rows RF4 and RF5). | One per entry (row RF4). |
| A chart whose `utc` or `localTime` lies before year 1 ([§7.10](CEXF-SPECIFICATION.md#710-calendar-and-years-before-1-ad)) | Does not import the chart: Celestium cannot show such a date. A chart that a row of [§10](CEXF-SPECIFICATION.md#10-error-handling) discards is discarded first. For a chart that no row of §10 skips, refuses or discards, the data is good: Celestium reports no row E4, E5 or NO1 to NO3 for it or its notes, because it does not read them, and does not change the file. A reader that can hold the chart applies those rows as usual. A `parents` entry that names the chart is dropped from the model, as for row RF4 (see the row on a `sequence` above 2147483647), and when the chart is the one at `sequence` 0, the derived charts of that subject are not imported either. | One per chart. |
| A `minor-progression` whose progressed moment lies outside the years 1 to 9999 ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type), [§7.10](CEXF-SPECIFICATION.md#710-calendar-and-years-before-1-ad)) | Does not import the chart: Celestium cannot show such a date. A chart that a row of [§10](CEXF-SPECIFICATION.md#10-error-handling) discards is discarded first. For a chart that no row of §10 skips, refuses or discards, the data is good: Celestium reports no row E4, E5 or NO1 to NO3 for it or its notes, because it does not read them, and does not change the file. A reader that can hold the chart applies those rows as usual. A `parents` entry that names the chart is dropped from the model, as for row RF4 (see the row on a `sequence` above 2147483647). | One per chart. |
| `time` and `location` of a `synastry` chart ([§7.7](CEXF-SPECIFICATION.md#77-what-time-means-for-each-chart-type)) | Writes what Celestium shows for the chart. Celestium shows a synastry chart with the moment, the place and the time zone of the birth of the second parent chart, so that is what the file carries. | None. |
| A `composite` or `synastry` chart without `time` ([§7.7](CEXF-SPECIFICATION.md#77-what-time-means-for-each-chart-type)) | Does not import it. Celestium has no chart without a moment, and the reference implementation invents none. The parent links do not appear either. | One per chart. |
| `#SRC` and `#VIA` lines in AAF ([§5.2](CEXF-SPECIFICATION.md#52-source-where-the-charts-data-came-from)) | Put the text in the notes of the person, not in `source`: Celestium shows no `source` and Exchange writes only what Celestium shows. | None. |
| A horary chart whose querent has no birth data ([§4.4](CEXF-SPECIFICATION.md#44-kind-and-type-are-two-independent-axes-dont-confuse-them)) | Celestium shows a horary chart under a person who has a primary chart. For a querent without birth data it shows a person with fictitious birth data. Celestium Exchange never writes those fictitious data as real birth data: it writes the horary chart as a subject with `kind: "horary"`, one subject for each horary chart. | None. |
| A subject with `kind: "horary"` on import ([§4.4](CEXF-SPECIFICATION.md#44-kind-and-type-are-two-independent-axes-dont-confuse-them)) | The import wizard of Celestium Import and Celestium Exchange asks who asked the question. It asks only when the file has such a subject, and the step comes after the other steps. The user picks a person already in the file or in Celestium, enters a new name, or skips the chart. A new querent without birth data gets a fictitious birth: 1 January 1800, 12:00, Amsterdam, with a fixed note that says so. Charts derived from the horary subject are not imported. The horary chart itself is imported last. | One per chart left out or skipped, and one per new querent. |
| A `parents` entry that names the chart at `sequence` 0 of a subject with `kind: "horary"` ([§8](CEXF-SPECIFICATION.md#8-parents-linked-charts-parents-and-source-charts), [§4.4](CEXF-SPECIFICATION.md#44-kind-and-type-are-two-independent-axes-dont-confuse-them)) | Does not link to that chart. Celestium imports the horary chart last, after the user has chosen who asked the question (see the row on a subject with `kind: "horary"` above), so the other charts have no chart to link to. The entry is dropped from the model, and the chart that carries it is imported with its other parent, if it has one. The file is not changed. | One per entry (row RF4). |
| Parent links ([§8](CEXF-SPECIFICATION.md#8-parents-linked-charts-parents-and-source-charts)) | Shows parent links for `composite`, `davison` and `synastry` only, by position among the `parent` entries. | As row RF4 where a parent is missing. |
| A folder with `protected: true` ([§3.1](CEXF-SPECIFICATION.md#31-protected-a-lock-is-recorded-never-carried)) | The import wizard lists every protected folder and offers a field for a new code, which may be left empty. | None. |
| Calculation parameters when writing ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)) | Writes what Celestium calculates. On a `primary-direction` chart: `key` `naibod`; `method` `ra-rotation` for Celestium's Ptolemaic method, `semi-arc-scaled-rotation` for its Placidus method and `position-circle-rotation` for its Regiomontanus method; `latitude` `promissor` (every point keeps its own ecliptic latitude, the angles have latitude 0); `angles` from the global setting "Gedirigeerd MC" (directed MC) at the moment of export (`method-mc` or `ramc-arc`); no `aspects`. On a progression: `angles` `quotidian`. On a `solar-arc`: `houses` from the global setting "Huizen bij zonneboog" (houses in solar arc) at the moment of export (`arc-shifted` or `from-directed-mc`). On a `composite`: `houses` from the global setting of Celestium at the moment of export (`derived-from-mc` when its Midheaven method is on, `cusp-midpoints` otherwise), and `houseAnchor` `none` with `cusp-midpoints`. When a setting cannot be read, the `houses` of that chart type, or the `angles` of a `primary-direction`, is left out and the export reports it once. | None. |
| A file larger than the reading limit of the reader ([§10.3](CEXF-SPECIFICATION.md#103-the-rows)) | Does not read the file and says that it is too large. The limit is a memory limit of the implementation, not a rule of the format. Celestium Exchange, the 64-bit reference implementation, sets it from the free memory when the program starts (that memory minus 256 MiB, divided by 30, and never below 64 MiB). Celestium Import, its 32-bit companion, reads up to 64 MiB. A reader with more memory reads such a file. | One message for the file, no row of [§10](CEXF-SPECIFICATION.md#10-error-handling). |

### A.1 The chart types of Celestium (§6.2)

Celestium has a chart type for every key of [§6.2](CEXF-SPECIFICATION.md#62-the-chart-type-keys) except `minor-progression`, `relocation`, `planet-return`, `group-composite`, `electional`, `life-event` and `profection` ([§6.3](CEXF-SPECIFICATION.md#63-keys-with-no-celestium-counterpart-and-why-theyre-already-here)). A `life-event`, a `planet-return`, a `relocation`, an `electional` and a `minor-progression` come in as a Transit (see the table); a `planet-return` of the Sun or the Moon comes in as a Solaar or a Lunaar. In the Celestium interface `solar-return` is "Solaar", `lunar-return` is "Lunaar" and `horary` is "Uurhoek". Celestium calculates only the sidereal variant of the minor progression (`sidereal-minor-progression`), which it calls its "minus-one system". Within Celestium the `ingress` is exclusively one of the four cardinal ingresses of the Sun.

### A.2 The direction of a direction chart (§6.4)

Celestium does not keep the direction of a direction chart as a field of its own, next to the age. Celestium Exchange therefore translates. On export it writes a positive `age` and an explicit `direction`, `direct` or `converse`. On import it turns `direction` into the form Celestium keeps. In the file the direction is always the parameter `direction`, required, with no implicit default: a chart where `direction` is missing or has a value other than these two is discarded, with a notice ([§10](CEXF-SPECIFICATION.md#10-error-handling), row CH3).

### A.3 Seconds in `utcOffset` on the primary chart and on a derived chart (§7.6)

The .NET type `DateTimeOffset` does not allow an offset with a seconds component and throws an `ArgumentException` in every constructor. That can make a reader crash on exactly the example that this guide itself gives ([§12](#12-full-example-file), the Peace of Münster with `"+00:30:30"`), the kind of failure [§10](CEXF-SPECIFICATION.md#10-error-handling) is meant to rule out.

The reference implementation resolves this as follows, and it differs by chart type:

- **On the primary chart (`sequence` 0) nothing is lost.** The local time and the offset are kept separately, with no limit on the offset, and a second-level offset round-trips exactly.
- **On a derived chart the offset is normalised to UTC.** The absolute moment stays exact, but the offset text itself is lost and the chart comes out with `+00:00`. This is reported (row CH15), never silently and never with a crash.

A reader that has no such restriction needs to do nothing about this: it is a property of the time type of one reader, not a requirement of the format. See also [§10.4](CEXF-SPECIFICATION.md#104-precision-loss-on-reading-round-and-report-never-truncate).

### A.4 The key `nl.celestium.rulerOverrides` (§9.4)

Celestium Exchange writes its own overrides of house rulers (customised house-ruler assignments per chart) under the key `nl.celestium.rulerOverrides`. The value is a nested JSON object. Its content is not specified here and can change between versions of Celestium. A writer that does not know the concept leaves the key out. For any other reader this is an unrecognised `extensions` key, subject to the rules of [§9.3](CEXF-SPECIFICATION.md#93-what-a-reader-must-do).

## Appendix B: Notes for implementers, by language

Everything below was observed in independent implementations of this format in seven languages
(Python, JavaScript, Java, Go, Ruby, F# and C), each written from an earlier version of the
specification alone, without access to the reference implementation. They hit different walls. What follows is the collected
result, so that the next implementer does not have to rediscover any of it. Where a statement here
is marked as verified, the code it quotes was run.

The traps split into two kinds. Some are about this format and catch everybody; those come first.
The rest are things a particular language does to you, and are grouped by language. If yours is
not listed, read the general section and then the language closest to yours in temperament.

### The general traps

**`age` is a string, and it must survive as one.** [§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type) explains why the value is text: the
shortest representation that round-trips, with a floor of six decimals. The trap is that almost
every language offers a tempting one-liner to parse it into a float and print it back, and that
one-liner is lossy in a way that produces an invalid file rather than a slightly wrong one. In
JavaScript, `String(Number("34.500000"))` gives `"34.5"`. One decimal is below the floor, so a
conformant reader is then required to reject a chart your writer just produced. The same shape of
loss exists anywhere floats are printed with a shortest-representation algorithm, which today is
nearly everywhere.

If you need the number, parse a copy. Keep the original text for writing back. The implementer who
decided up front to treat `parameters` as an untouched string map had no trouble here at all, and
said so: a string you never touch is a string you cannot round wrong.

**Seconds in `utcOffset` are a .NET problem, not a rule.** [§7.6](CEXF-SPECIFICATION.md#76-second-level-precision-in-utcoffset) states no requirement to normalise
second-precision offsets: a reader whose time type cannot hold them keeps the moment exact and
reports the loss. The limitation belongs to one platform's date type, and Appendix A.3 of this
guide says what the reference implementation does about it, so that readers of its output
know why. Python accepts
`timezone(timedelta(minutes=30, seconds=30))` without complaint, and Java's
`ZoneOffset.of("+00:30:30")` returns a perfectly ordinary offset of 1830 seconds. Both were
verified directly. If your language handles it, do nothing; you lose nothing and no notice is due.

**`reject` in the test vectors does not mean the data is deleted.** [§10](CEXF-SPECIFICATION.md#10-error-handling) sets out three distinct
outcomes, and `readerOutcome` tracks only whether the record is *used*, not whether it is *kept*.
A refused record is still written back unchanged. This cost the JavaScript implementer real time,
and it is the single most common way to read the vectors wrongly.

**The `id` fields are integers within the I-JSON range.** `Subject.id`, `Folder.id`,
`ChartReference.subject` and `sequence` are all whole numbers, and the specification asks a writer
to keep them between -(2^53)+1 and (2^53)-1 (Conformance). A writer that does not check this and
derives them from database keys can produce values beyond what your JSON parser keeps exact, and the failure is
silent. In Node, `JSON.parse('{"id":9007199254740993}')` yields `9007199254740992`, verified
directly, which will happily point a parent reference at the wrong subject. If your ids come from
anywhere but a small counter, check what your parser does with them before trusting the round trip.

### Python

Among the easiest, with few surprises. `datetime` and `timedelta` carry
second-precision offsets natively, so [§7.6](CEXF-SPECIFICATION.md#76-second-level-precision-in-utcoffset) needs no code. `jsonschema` is a Draft 2020-12
implementation, so `cexf-schema.json` runs as-is apart from the points in "Five points about the validator you
use" (§12, "Validation against the schema"). The fourth point gives the copy of the schema that Python needs,
and the fifth the settings of `json.loads`.

The one thing worth doing deliberately: keep `parameters` as `dict[str, str]` and never coerce.
The dynamic typing that makes everything else pleasant will also let a rounded `age` slip back out
of your writer without a word.

### JavaScript and TypeScript

JSON is the native tongue here, which removes the parsing work and adds three quiet hazards, all
verified on Node 26:

- **Large integers lose precision.** See the general note on ids above.
- **`undefined` disappears on serialisation.** `JSON.stringify({a: undefined, b: 1})` gives
  `{"b":1}`. That is usually what you want, since absence is meaningful in this format and an
  absent field must not be written as `null`. It becomes a hazard when you use `undefined` as a
  placeholder for "value I could not parse", because the difference between "the writer omitted
  this" and "I dropped it" then vanishes from your output.
- **Numbers stringify to their shortest form.** This is what breaks `age`, as above.

### Java and other statically typed languages without native JSON

The JDK has no JSON parser, so an implementer without third-party libraries writes one. That turns
out to be an advantage rather than a chore: reimplementing `cexf-schema.json` by hand, next to
the prose, forces a line-by-line comparison of the two that an implementer who calls a validator never makes.

Static types also force the absent-versus-empty distinction into the open early, which this format
cares about a great deal ([§10](CEXF-SPECIFICATION.md#10-error-handling)). Where a dynamic language lets you postpone that decision, Java
makes you name it in the type, and the naming is where the reading gets done.

`java.time.ZoneOffset` handles second-precision offsets, so [§7.6](CEXF-SPECIFICATION.md#76-second-level-precision-in-utcoffset) is a non-issue here too.


### Go

`encoding/json` is capable and opinionated, and two of its opinions matter here.

**Unknown fields vanish by default.** Unmarshalling into a struct silently drops any key the
struct does not declare. This format asks the opposite in three separate places: unknown keys in
`extensions` ([§9.3](CEXF-SPECIFICATION.md#93-what-a-reader-must-do)), unknown keys in `parameters` ([§6.4](CEXF-SPECIFICATION.md#64-parameters-per-chart-type)), and unrecognised top-level keys in a file
from a newer version ([§10](CEXF-SPECIFICATION.md#10-error-handling)) must all survive a round trip unchanged. If you unmarshal into structs,
capture those three into a `map[string]json.RawMessage` explicitly, or you will pass on a quietly
impoverished file.

**Zero values are indistinguishable from absence**, which collides head-on with [§10](CEXF-SPECIFICATION.md#10-error-handling)'s central
distinction between a field that is missing and a field that is present but empty. A `string` field
that was never in the document and one that arrived as `""` both read as `""`. Where the difference
carries meaning, use a pointer or `json.RawMessage`. The same applies on the way out: `omitempty`
will drop a field whose value is legitimately zero.

Set against that, Go's error returns fit [§10](CEXF-SPECIFICATION.md#10-error-handling) unusually well. Every one of the three outcomes has to
be spelled out at each call site, so there is nowhere for a silent acceptance to hide, which is
exactly the failure mode this section keeps warning about.

Finally, a number of [§10](CEXF-SPECIFICATION.md#10-error-handling)'s rules are permanently dormant in Go, and recognising that early saves
work: the `DateTimeOffset` workaround (Appendix A.3), the gap for storing `unknown` on a derived chart ([§7.5](CEXF-SPECIFICATION.md#75-the-unknown-flag)) and the general
"precision loss, round and report" rule all describe storage limits of one particular
implementation. A Go model built on strings, `float64` and slices runs into none of them.

### Ruby

Two pleasant surprises and one thing to decide up front.

Ruby's `Integer` is arbitrary precision, so the id hazard described above does not exist here: an id of any size survives parsing and serialising intact. And because `parameters` values
are naturally strings in a `Hash`, the `age` trap needs no discipline at all as long as you leave
them alone.

The decision to make early is how you represent absence. `nil` and a missing hash key are
different things in Ruby, and this format leans on that difference constantly. Pick one
convention, write it down, and hold to it in the writer as well, because the writer is where the
difference becomes visible: a key you emit as `null` says something the format does not mean.

If you write your own JSON parser rather than using the bundled `json` library, you also get to
decide what duplicate keys do and whether keys are strings or symbols. Those are decisions this
format has opinions about, and making them yourself is the difference between choosing and
inheriting.

### F# and other languages with exhaustive matching

The best fit of the languages covered here, for a reason worth naming: a compiler that refuses to build
until every case of a union is handled turns [§10](CEXF-SPECIFICATION.md#10-error-handling)'s three outcomes from prose into something the
type system enforces. The implementer working in F# reported that exhaustive matching caught two
real bugs during development, one of which (a subject surviving with an empty chart list after its
primary chart was discarded) is an explicit clause in [§10](CEXF-SPECIFICATION.md#10-error-handling) (row SU4).

There is one friction. This format deliberately leaves `type` open so a future chart kind
still validates, and a closed union is exactly the wrong shape for that. Model the known kinds as
cases and keep a catch-all that carries the raw string; resist the urge to make the union
exhaustive over today's list, because the format promises it will grow.

Records with structural equality also give you a trustworthy round-trip comparison for free, which
is worth more than it sounds: comparing models rather than text sidesteps every argument about key
order and whitespace.

### C, and other languages with nothing built in

The hardest of the seven, and the most revealing, because C hands you nothing: no strings, no maps,
no growable arrays, no exceptions, no garbage collector. Every distinction this format draws has to
be built by hand, which makes each one a decision you cannot avoid noticing.

**Preserving what you do not understand is the whole game.** [§9.3](CEXF-SPECIFICATION.md#93-what-a-reader-must-do) requires that unrecognised
`extensions` and `modifierExtensions` values survive a round trip unchanged. In a language with an
opaque JSON value type this is nearly free. In C you have two options, and only one of them is
faithful: keep a pointer and a length into the original source text for every parsed value and hand
that span back untouched, or re-serialise from your own tree and silently reformat whitespace along
the way. The C implementer chose the raw span. If your language gives you no opaque value type,
build the span mechanism before you build anything else.

**Without exceptions, the three outcomes stop being control flow and become data.** There is no
`catch` to collapse nine discard paths into one. Each becomes an explicit early return carrying a
status, which forces you to confront a question every other implementer could postpone: what
happens when two rules in [§10](CEXF-SPECIFICATION.md#10-error-handling) could apply to the same record? Section 10.2 answers that: for one
chart the first skipping row of the list E2, E3, CH2, CH3 and CH4, CH8 and then
the rows RF decides. CH11, CH12 and CH17 are rows of class `accept`: they come after all of these. Knowing that in advance saves you the detour.

**Manual memory turned out to make discarding safer, not harder.** Because nothing is freed until
the writer runs, a discarded record sits in its slot with a status flag, and both the writer
and the round-trip comparison filter on that flag. That structure sidesteps the two-pass hazard
described in [§10](CEXF-SPECIFICATION.md#10-error-handling) for free: a record cannot be resolved against something that was already removed,
because nothing is removed until the end. A garbage-collected language will happily let you drop a
record halfway through and leave a reference pointing at the gap.

### A word on which parts nobody struggled with

Across all seven, the four time fields of [§7](CEXF-SPECIFICATION.md#7-time-four-fields-and-which-one-wins-on-conflict) were implemented without a single question. The
pattern, the tolerance and the arithmetic identity are stated precisely enough that there was
nothing to decide. If you are budgeting effort, spend it on [§10](CEXF-SPECIFICATION.md#10-error-handling) instead: the error-handling rules
are where every implementer, without exception, had to stop and think.

---

## Appendix C: Names of ayanamsas in other programs

**This appendix is informative, not normative.** Programs name the same ayanamsa differently.
The table gives a name used elsewhere and the registered key of [§7c.2](CEXF-SPECIFICATION.md#7c2-registered-values) that it stands for. A
writer that converts from such a program writes the key. The table adds no key to the register,
and each key in it was checked against the register in [§7c.2](CEXF-SPECIFICATION.md#7c2-registered-values).

| Name elsewhere | Key |
|---|---|
| Chitrapaksha, Lahiri (Chitrapaksha), Traditional Lahiri | `lahiri` |
| True Chitrapaksha, True Lahiri | `true-citra` |
| KP, Krishnamoorthy | `krishnamurti` |
| KP-Senthil | `krishnamurti-vp291` |
| Pushya-paksha | `true-pushya` |
| Chandra Hari | `true-mula` |
| Ernst Wilhelm, Dhruva | `galcent-mula-wilhelm` |
| Gil Brand | `galcent-rgilbrand` |
| Cochrane | `galcent-cochrane` |
| Usha-Shasi | `usha-shashi` |
| Djwhal Khool | `djwhal-khul` |
| Sri Yukteswar | `yukteshwar` |
| J.N. Bhasin | `jn-bhasin` |
| De Luce | `de-luce` |
| Fagan | `fagan-bradley` |
| Lahiri (1940), Panchanga darpan | `lahiri-1940` |
| Lahiri original, ICRC | `lahiri-icrc` |

**Constant names.** The register follows the names of the constants of Swiss Ephemeris ([§7c.1](CEXF-SPECIFICATION.md#7c1-these-three-fields-are-registers-not-fences)).
How a key is derived from the name of a constant, and the three keys that deviate, is in
[§7c.2](CEXF-SPECIFICATION.md#7c2-registered-values). The last one of the three is spelled
`GALCENT_RGBRAND` in the programming manual and `GALCENT_RGILBRAND` in the header file, which
follows the rule; both give the same key.

---

## Appendix D: Mappings to other formats

**This appendix is informative, not normative.** For each of nine other formats it says how to
record a chart from that format in CEXF, and what is lost on the way. It rests on the public
documentation of those formats, on example files and on the source of free programs, as of 2026,
and it can be incomplete or out of date. It decides nothing: the normative text is in [§1](CEXF-SPECIFICATION.md#1-basic-principles) to [§11](CEXF-SPECIFICATION.md#11-what-isnt-carried-positions-and-houses).
Whatever a format carries that CEXF has no place for (calculated positions, cusps and aspects,
[§11](CEXF-SPECIFICATION.md#11-what-isnt-carried-positions-and-houses), and display settings) is left out, and a converter says so ([§14](CEXF-SPECIFICATION.md#14-two-ways-of-exporting)).

- **AAF'97.** A text format of tagged lines. Write name, sex and kind, date, time, place and
  coordinates to the matching fields, and the code for the kind of time to `time.standard`
  (`lmt` for local mean time). A Julian date is converted to the proleptic Gregorian calendar and
  `sourceCalendar` is set. When the file gives a Julian day, it wins over date and time. The
  first field of `#SRC` goes to `source.kind` ([§5.2](CEXF-SPECIFICATION.md#52-source-where-the-charts-data-came-from)); the second field and `#VIA` go to
  `source.text`. Write the sub-horoscopes as charts of the matching `type`. Lost: a time given
  in hours only keeps no precision below the hour, and AAF has no separate name prefix.
- **Quick\*Chart.** A fixed-column text file that Astrolog writes. Write name, date, time, zone,
  offset, longitude, latitude and place name to the matching fields. The offset in the file is
  positive westwards, so its sign flips, and it has whole minutes only. A zone abbreviation for local
  mean time gives `standard` `lmt`, and a daylight-saving letter gives `dstOffset`. A date before
  15 October 1582 is Julian and is converted. Lost: the format has no separate country field,
  and it truncates the name.
- **Jagannatha Hora (`.jhd`).** A text file of 18 lines. Write date, time, place, coordinates,
  altitude and the summer-time offset to the matching fields. The zone offset and the longitude
  are both east negative: flip both signs. The name of the chart is the name of the file. The
  file does not state the zodiac, so a converter chooses a value and writes it ([§1](CEXF-SPECIFICATION.md#1-basic-principles)).
- **Solar Fire (`.SFcht`).** A binary chart file with a header, one record per chart and optional
  sub-chart blocks. Write name, date, time, place, region and coordinates to the matching fields.
  The longitude and the offset are positive westwards: flip both signs. Write the flag for local
  mean time to `time.standard`, the house system to `houseSystem`, the point of view to `frame`,
  and the zodiac to `zodiacSystem` and `ayanamsa`. Write the rating and the description of the
  source to `source.rating` and `source.text`, and the notes to `notes`. Lost: the format mixes
  country and state in one field, so a writer cannot reliably split it into `region` and
  `country`; names and place names are truncated by the format.
- **Kerykeion.** A Python library whose models are not a file format. Write name, local and UTC
  time, time zone, place, coordinates, altitude, zodiac type, ayanamsa (a registered one, or a
  user-defined one in `customAyanamsa`), house system and point of view to the matching fields.
  Composites, returns, synastry, transits and secondary progressions become charts of the
  matching `type`. Lost: the points of view centred on Mercury through Saturn have no registered
  `frame` value.
- **Astrolog.** A program driven by switches, with its own chart files. Write date, time, daylight
  saving, zone, coordinates, name, place, zodiac, ayanamsa, house system and point of view to the
  matching fields. Harmonics, progressions and relationship charts become charts of the matching
  `type`. Lost: the many switches that only choose how something is calculated or displayed, and
  the country, which the format cannot reliably split from the place name.
- **Morinus (`.hor`).** A file of Python data. Write name, sex, date, time, zone offset, place,
  coordinates, altitude and notes to the matching fields. The kind of time goes to `time.standard`:
  zone time to `zone`, local mean time to `lmt` and local apparent time to `lat`. A time in
  Universal Time is written with `timeZone` `Etc/UTC`, `utcOffset` `+00:00` and `standard` `zone`
  ([§7.8](CEXF-SPECIFICATION.md#78-a-source-that-knows-only-an-offset-or-local-mean-time)). A Julian date is converted with `sourceCalendar` set. A chart type of horary gives `kind` `horary`. The other chart types
  (solar, lunar, transit and others) are only a label in the input dialog of the program, and
  the chart itself is an ordinary chart. Lost: the file does not split the name into given and
  family name.
- **Zeus (`.zdb`).** A text file with one record per chart. Write name, date, time, offset,
  place, coordinates, sex and notes to the matching fields. The chart type gives `kind` (`horary`
  or `event`). Write the rating to `source.rating`. A Julian date is converted with
  `sourceCalendar` set. Lost: the format has no separate country field, and a path to an image is
  not carried, because the format carries astrological data only.
- **ZET (`.zbs`).** Tables of records in a folder tree. Write name, date, time, the difference
  from Greenwich, place, coordinates, sex and comment to the matching fields, the folders to
  `folders`, and a life event that hangs on a record to a `life-event` chart. A reference to a
  photograph stays plain note text. Lost: the protection of a table, and the format does not say
  whether a time is local mean time.

---

## Glossary

This glossary is **informative, not normative**. It exists for a developer who can implement
this format perfectly and still not know what a syzygy is. Nothing here overrides or refines a
rule stated earlier; where a term is also a `type` key or a `parameters` value, the numbered
section is the authority and this entry is only an explanation in plain language.
Section numbers (§4, §6.4 and so on) refer to the specification,
[CEXF-SPECIFICATION.md](CEXF-SPECIFICATION.md), not to the numbering of this guide.

**Subject.** What a set of charts is about: a person, an event, a country or an organisation
(§4). Not the same as a chart.

**Chart.** One horoscope: a moment, a place and, for derived kinds, parameters and links. A
subject has one or more charts (§5).

**Sequence.** The integer that numbers a subject's charts. `sequence` 0 is the primary chart;
every other number is a derived chart (§5).

**Primary chart / derived chart.** The primary chart is the subject's own chart of the birth,
the event or the founding. A derived chart is every other chart of that subject: a return, a
direction, a composite and so on (§5, §6).

**Synastry.** The comparison of two natal charts, laid side by side and not merged into a new
chart. See `synastry` in §6.2 and §8.

**Transit.** A chart cast for a moment of interest, usually the present, whose planets are read
against a natal chart. See `transit` in §6.2.

**Mundane astrology.** The astrology of countries, institutions and events, as opposed to that of
persons. See `mundane` in §6.2 and `kind: "country"` in §4.2.

**Frame.** The point from which positions are seen: the centre of the Earth (geocentric), of the Sun
(heliocentric), the observer's place on the surface (topocentric), the centre of mass of the solar
system (barycentric) or the centre of the Moon (selenocentric). See §7c.3.

**Lunar node.** One of the two points where the Moon's orbit crosses the ecliptic. The north node
is the one where the Moon crosses it going north. The *mean* node moves evenly; the *true*
(osculating) node follows the instantaneous orbit and swings around the mean node. See `body` in
§6.4 and §7c.4.

**Julian Day (JD), Terrestrial Time (TT), ΔT.** A Julian Day is a continuous count of days that
astronomical software uses for an instant. TT is the uniform time scale of astronomical
calculation. ΔT is the difference between TT and Universal Time, which varies slowly. The epoch of
a `customAyanamsa` is a Julian Day in TT (§7c.5).

**Precession.** The slow turning of the Earth's axis, which moves the equinox against the stars.
It is the reason an ayanamsa changes with time (§7c.5).

**Taeger classification, AAF.** The Taeger classification grades the source of a birth datum in
classes; AAF'97 carries it as the first field of `#SRC`. §5.2 lists the values of `source.kind`
with their Taeger codes. AAF is one of the other formats that Appendix D maps to this one.

**Direct / converse.** A direction or progression can run forward in time from the primary
chart (direct) or backward (converse); see `direction` in §6.4.

**Local mean time (LMT).** The time kept by an imaginary mean Sun, one that moves evenly, at one
place's longitude, used before standard time zones existed. Its offset from UTC is usually not a whole number of minutes, which is why
`utcOffset` allows seconds (§7.2).

**IANA time zone database (tzdb).** The public database of time zone rules and history, with zone
IDs such as `Europe/Amsterdam`. Its history before 1970 is incomplete and gets revised (§7.1).

**Notice.** A message to the user that a reader issues when it meets something it cannot use as
written; defined in "Conformance and conventions".

**Rodden rating.** A letter code (`AA`, `A`, `B`, `C`, `DD`, `X`, `XX`) that astrological data
collections attach to a birth datum to grade how reliable it is. This format records the letter
(§5.2) without interpreting it.

**Local apparent time (LAT).** The time of the real Sun at a place, sundial time. It equals local
mean time plus the equation of time for that moment (§7.9).

**Julian calendar / proleptic Gregorian.** The Julian calendar was replaced by the Gregorian one
in 1582 in some countries and later in others. "Proleptic Gregorian" means applying the
Gregorian rules to dates before that change as well. All dates in a document are proleptic
Gregorian (§7.10).

**Annual profection.** A classical technique that advances the primary chart by one sign (30°)
for each completed year of life, so that each year of age is attached to one sign and house. See
`profection` in §6.2.

**Life event.** A dated event in a subject's life, cast as a chart, for instance to test a birth
time against known events. See `life-event` in §6.2.

**Round trip.** Reading a document and writing it again. A round-tripping reader keeps what it
does not use (§10).

**Ayanamsa.** The angular offset, in degrees, between the tropical zodiac's 0° Aries point and
the sidereal zodiac's 0° Aries point. Different schools measure that offset slightly
differently (Lahiri, Raman, Fagan-Bradley, and so on), which is why `ayanamsa` is itself a
choice, not a constant. Without it, a sidereal chart can't be reproduced: every planetary
position in a sidereal chart is the tropical position minus the ayanamsa angle for the chosen
school.

**Tropical vs. sidereal zodiac.** Two different ways of anchoring the twelve signs to the sky.
The tropical zodiac anchors 0° Aries to the spring equinox, wherever that falls among the
actual constellations. The sidereal zodiac anchors 0° Aries to a fixed point among the stars
themselves, offset from the tropical point by the ayanamsa above. Western astrology defaults to
tropical; Vedic (Jyotish) astrology uses sidereal. Same birth data, different chart.

**House system.** A method for dividing the sky into twelve numbered houses relative to the
horizon and meridian at a given place and time. Placidus, Koch, Whole Sign, Equal, and the
21 others in the register of §7c.2 are all answers to the same question (where do the house
lines fall) and they don't agree: the same birth data produces different house cusps, and
therefore a different house placement for a planet, under each one.

**Ascendant / MC.** The Ascendant is the sign and degree rising on the eastern horizon at the
chart's moment and place; the MC (Midheaven) is the degree of the ecliptic that crosses the upper meridian of the place, the half of the meridian that runs through the zenith. Outside the tropics it usually lies above the horizon; inside the polar circles it can lie below it. Neither
depends on the house system: both follow from `time` and `location` alone, and both are
recalculated, not carried in a CEXF file (§11). The house cusps in between do depend on the
house system.

**Cusp.** The boundary degree between one house (or, informally, one zodiac sign) and the next.

**Natal chart / radix.** The chart of the moment someone (or something) was born: `sequence 0`
in this format, for every subject kind (§5). "Radix" is the older term of art for the same
thing, still current in astrological writing and used as a `label` example in this
specification.

**Orb.** The allowed margin of error, in degrees, before an angular relationship between two
points (an aspect) stops counting as that aspect. Not a CEXF field; mentioned here because
several design notes in the guide ([§R6.4](#r64-parameters-per-chart-type-why-an-open-dictionary-64)) reason about arc error in terms of orbs.

**Horary.** A chart cast for the moment a specific question is asked, used to answer that
question through the chart's own symbolism, rather than for a birth. See `parameters.question`
in §6.4. The person who asks is the querent. A subject of `kind: "horary"` is a standalone horary
question whose querent is not recorded (§4.4).

**Electional.** The mirror image of horary: instead of reading a chart for a moment already
past, an electional chart looks for a favourable *future* moment to start something (sign a
contract, launch a project). Same data shape as horary; see [§R6.3](#r63-keys-with-no-celestium-counterpart-and-why-they-are-already-here-63).

**Ingress.** The moment a celestial body crosses into a new sign. This format's `ingress` key
covers only the Sun's four seasonal ingresses (the equinoxes and solstices, marking the start
of Aries, Cancer, Libra, and Capricorn); see the `point` parameter in §6.4.

**Harmonic chart.** A chart recalculated by multiplying every planetary longitude by a whole
number (the harmonic) and reducing the result modulo 360°. The 9th harmonic, for example,
multiplies every position by 9. Distinct from a Vedic varga division, which uses different,
sign-dependent rules; see the Vedic-vargas discussion in §6.4.

**Primary direction / secondary progression / solar arc / tertiary progression / minor
progression.** A family of predictive techniques that advance a natal chart forward using a
symbolic time key rather than the calendar. Secondary progression is the most common: one day
after birth stands for one year of life. Solar arc advances every point by the distance the Sun
has travelled in the progressed time (the progressed Sun minus the Sun of the primary chart);
tertiary progression uses one day for one synodic lunar month of life; minor progression
uses one full lunar month (synodic or, in Celestium's own "minus-one system," sidereal) for one
year of life. Primary direction is the oldest of the five, and the only one tied to the Earth's
daily rotation rather than to its orbit. Each has a `direct` and a `converse` (backward) variant; see
§6.1 and §6.4 for how this format represents them.

**Prenatal syzygy / lunation / eclipse.** "Syzygy" is the general astronomical term for Sun,
Earth, and Moon lining up: a New Moon or a Full Moon. A prenatal syzygy is whichever of the two
fell closest before someone's birth; a prenatal lunation narrows that to specifically the last
New Moon before birth, even if a Full Moon fell closer; a prenatal eclipse is the last eclipse
before birth. See the `type` table in §6.2.

**Composite / Davison / group composite.** Three ways of combining two or more natal charts
into one derived chart, used mainly to study a relationship. A composite chart uses the
midpoint of each pair of matching planets. A Davison chart instead finds the literal midpoint
in time and space between two birth moments and casts a fresh chart for that. A group composite
extends the composite method to three or more people at once. This version does not fix how that
composite is calculated (§6.1, "Scope").

**Planetary return.** The moment a given body returns to the exact position it held at someone's
birth. Solar and lunar returns (roughly annual and monthly) are common enough to have their own
`type` keys; `planet-return` covers any other body, via the `body` parameter (§6.4).

**Relocation chart.** The same birth moment, recalculated for a different place, typically the
place someone lives now rather than where they were born. Changes the Ascendant, MC, and house
cusps; never the underlying moment. See §8.

**Draconic chart.** A chart rotated so that the Moon's North Node sits at 0° Aries, with every
other point shifted by the same amount. Not a separate calculation, just a rotation, and in this
format a zodiac setting of the chart; see §6.5 and §7c.4.

**Heliocentric.** A chart calculated from the Sun's point of view rather than the Earth's,
changing every other body's apparent position. The Sun itself is the centre and has no longitude
in such a chart; the Earth takes its place among the bodies. A coordinate-system setting, not a chart type: the `frame` field, see
§7c.3 and §6.5.

**Local Space / astrocartography.** Two ways of viewing a single natal chart on the ground
rather than as a wheel: Local Space plots planetary directions as a compass rose from one
location, astrocartography projects the same relationships as lines on a world map. Neither
stores its own positions; both are views over an existing chart (§6.5).

**Uranian astrology / Hamburg School / 90° dial.** A branch of astrology built around
hypothetical points (Cupido, Hades, Zeus, and others) not recognised by mainstream astronomy,
analysed with a dial divided into 90° rather than 360°. Mentioned in §6.5 as an analysis
technique this format doesn't need a chart type for.

**Naibod rate.** The average motion of the Sun (about 0.9856° per day, derived from 360° divided
by the length of the tropical year), which a family of arc techniques uses as the arc for one
year of life. The `solar-arc` of this format does not use it: it uses the true motion of the Sun
(§6.4).

**Black Moon, lunar apogee, lunar perigee, Priapus, Lilith, Dark Moon, Selena, White Moon.** These
names are used for different things, and different programs give the same name to different points.
CEXF therefore points at a point by its identity, a calculation with a number in the numbering of
Swiss Ephemeris, and never by one of these names. That is why no key `lilith` exists (§6.4,
`body`), and why a name that another program uses for one of these points leaves no doubt about
which point is meant. The identities are:

- The **Black Moon** (Dutch: Zwarte Maan) is the lunar apogee, the point of the Moon's orbit that
  lies farthest from the Earth. Three calculations give it, with different longitudes:
  - the *mean* apogee, number 12 (`mean-apogee`);
  - the *osculating* apogee, number 13 (`osculating-apogee`), which follows the instantaneous
    two-body orbit of the Moon and swings by about 30 degrees over a month;
  - the *interpolated* apogee, number 21 (`interpolated-apogee`), a smoothed version of it.

  A text that says "Black Moon" or "Lilith" without naming one of the three does not say which
  longitude it means.
- The **lunar perigee** is the point of the Moon's orbit nearest to the Earth. Some astrologers
  call it **Priapus**. Two calculations give it:
  - Priapus is the osculating apogee plus 180 degrees, because the two apsides of a two-body orbit
    lie opposite each other;
  - the *interpolated* perigee is number 22. It is not the interpolated apogee plus 180 degrees:
    those two lie opposite each other only on average.
- **Selena** and the **White Moon** are two names that stand for two different points:
  - the White Moon of Celestium is the mean apogee plus 180 degrees, that is the mean perigee. It
    is not a body of its own;
  - Selena, or the White Moon in the sense of a hypothetical body, is number 56 in the numbering of
    Swiss Ephemeris. It is a different point from the mean perigee.
- **(1181) Lilith** is an asteroid, a minor planet with its own orbit, numbered 1181. It is not
  the Black Moon.
- The **Dark Moon** is Waldemath's hypothetical second moon of the Earth, postulated by
  Waldemath in 1898. It is not the lunar apogee.
