Celestium

Open format

CEXF guide: test vectors

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

12a. Test vectors

The check described just above covers one example file. 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. 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), 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);
    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, "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 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, 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). 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).

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).