@zodiacs/engine 1.0.0 → 2.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +1244 -0
  2. package/LICENSING.md +172 -27
  3. package/NOTICE +78 -12
  4. package/README.md +344 -59
  5. package/dist/{api-WbxJ4Wj-.d.ts → api-C_SVd9BJ.d.ts} +39 -3
  6. package/dist/{ayanamsa--YQ46fET.d.ts → ayanamsa-Clgkekhh.d.ts} +2 -1
  7. package/dist/calc.d.ts +91 -4
  8. package/dist/calc.js +368 -126
  9. package/dist/chunk-CV53HA7R.js +87 -0
  10. package/dist/chunk-EEW7746S.js +83 -0
  11. package/dist/{chunk-WS3TDSP3.js → chunk-FVGA776A.js} +7 -3
  12. package/dist/chunk-HNVGWN3S.js +852 -0
  13. package/dist/chunk-I3L4POY7.js +18 -0
  14. package/dist/{chunk-FTX3JDJA.js → chunk-IXFUYEUF.js} +65 -29
  15. package/dist/{chunk-7TRLIFFI.js → chunk-LWZS7HI3.js} +1 -1
  16. package/dist/{chunk-CHSYDKBL.js → chunk-N4UQLCBN.js} +3 -3
  17. package/dist/{chunk-YIITY7Q7.js → chunk-NX4PHQBL.js} +34 -22
  18. package/dist/chunk-OVXQQEXL.js +41 -0
  19. package/dist/{chunk-SRXBTP5H.js → chunk-PNXIA7MI.js} +217 -192
  20. package/dist/chunk-RMBWKZI2.js +130 -0
  21. package/dist/{chunk-DMGHYCDI.js → chunk-SCRO6HWB.js} +5 -3
  22. package/dist/{chunk-OG4OYTJJ.js → chunk-T6F4FYYS.js} +1 -129
  23. package/dist/chunk-UXY4RU57.js +48 -0
  24. package/dist/{chunk-PFGUCNOK.js → chunk-WONTOC5W.js} +7 -6
  25. package/dist/conventions.d.ts +70 -0
  26. package/dist/conventions.js +26 -0
  27. package/dist/crossings.d.ts +15 -4
  28. package/dist/de440-pack.d.ts +43 -0
  29. package/dist/de440-pack.js +16 -0
  30. package/dist/de440.d.ts +113 -0
  31. package/dist/de440.js +19 -0
  32. package/dist/ephemeris-D1lM832F.d.ts +64 -0
  33. package/dist/geo.d.ts +28 -7
  34. package/dist/geo.js +2 -2
  35. package/dist/houses-extra.d.ts +5 -4
  36. package/dist/{houses-CFERsAlK.d.ts → houses-icK01yXi.d.ts} +3 -3
  37. package/dist/index.d.ts +8 -6
  38. package/dist/index.js +40 -28
  39. package/dist/{internal-math-DJJ8BYex.d.ts → internal-math-BGX23p4h.d.ts} +2 -2
  40. package/dist/internal-math.d.ts +4 -3
  41. package/dist/internal-math.js +14 -12
  42. package/dist/internal.d.ts +16 -7
  43. package/dist/internal.js +25 -4
  44. package/dist/lite-composite.js +114 -0
  45. package/dist/lite-declinations.js +253 -0
  46. package/dist/lite-dignities.js +333 -0
  47. package/dist/lite-sect.js +72 -0
  48. package/dist/lite.d.ts +82 -0
  49. package/dist/lite.js +4 -0
  50. package/dist/receipt.d.ts +3 -2
  51. package/dist/receipt.js +156 -67
  52. package/dist/{rulers-Dla6h_Sm.d.ts → rulers-CpS9qkvu.d.ts} +1 -1
  53. package/dist/sky.d.ts +4 -3
  54. package/dist/sky.js +17 -10
  55. package/dist/techniques.d.ts +102 -6
  56. package/dist/techniques.js +131 -56
  57. package/dist/time-bands-CZA9AlLg.d.ts +36 -0
  58. package/dist/time-scale-DIFNa0gz.d.ts +47 -0
  59. package/dist/time.d.ts +81 -0
  60. package/dist/time.js +74 -0
  61. package/dist/timing.d.ts +6 -5
  62. package/dist/timing.js +24 -17
  63. package/dist/types-BCnyWBQZ.d.ts +352 -0
  64. package/dist/vedic.d.ts +112 -4
  65. package/dist/vedic.js +369 -14
  66. package/dist/window.d.ts +22 -2
  67. package/dist/window.js +86 -28
  68. package/dist/{zone-history-ghdyO0Sc.d.ts → zone-history-0XzMGx9V.d.ts} +32 -10
  69. package/package.json +24 -3
  70. package/dist/types-B-yb_tGL.d.ts +0 -240
package/README.md CHANGED
@@ -4,26 +4,120 @@ Pure TypeScript astrology calculations for browsers and Node.js. The package
4
4
  computes tropical planetary positions, natal charts, transit snapshots,
5
5
  synastry, secondary progressions, Moon phase, and Saturn-return seasons, and,
6
6
  in separate entries, one calculation API over frames, centers and
7
- corrections with bounds and receipts, birth-time windows, house positions and
8
- cusp speeds, rise, set and transit times and planetary hours, returns and
9
- relationship charts, Hellenistic timing techniques, and sidereal positions
10
- and Jyotish techniques. Its calculations are synchronous; only loading a zone's
11
- history before 1970 (`prepareLocalTime`) and the GeoNames client, both in
12
- `@zodiacs/engine/geo`, are asynchronous. It is ESM-only, has no import-time
13
- side effects, and performs no network request from its core entry point. Its
14
- one runtime side effect is the ΔT it installs in astronomy-engine (see Time
15
- below).
16
-
17
- **1.0.0**, the first stable release: 1.0.0-rc.2 with the version changed,
18
- the same API and the same values (CHANGELOG.md). The package follows Semantic
19
- Versioning: [docs/versioning.md](docs/versioning.md) says what is public, how
20
- a number may change, which records stay readable and how something public is
7
+ corrections with bounds, time bands and receipts, birth-time windows, house
8
+ positions and cusp speeds, rise, set and transit times and planetary hours,
9
+ returns and relationship charts, Hellenistic timing techniques, sidereal
10
+ positions and Jyotish techniques, the time basis and the frame of date
11
+ without the ephemeris, and declination parallels, sect, composite midpoints
12
+ and dignities without it. Its calculations are synchronous; only loading a
13
+ zone's history before 1970 (`prepareLocalTime`) and the GeoNames client,
14
+ both in `@zodiacs/engine/geo`, are asynchronous. It is ESM-only, has no
15
+ import-time side effects, and performs no network request from its core
16
+ entry point. Its one runtime side effect is the ΔT it installs in
17
+ astronomy-engine (see Time below).
18
+
19
+ **2.0.0-rc.2**, the second candidate for 2.0.0, a major release
20
+ (CHANGELOG.md). It is a draft for the owner's review and is not published to
21
+ npm. It replaces 2.0.0-rc.1, a draft never published, whose check of a
22
+ supplied chart's or receipt's `polar-angles` could refuse a chart the engine
23
+ itself had flagged, from about the year 2936. Over 1.1.0 it refuses a birth given as a calendar date with no time,
24
+ unless `timeKnown` is `false` (the breaking change, *Resolved instant
25
+ inputs* below); flags a chart whose angles are inside the polar circle
26
+ (`polar-angles`); flags a local date that a calendar changeover may have
27
+ skipped, given with no country (`calendar-unknown`, [docs/time.md](docs/time.md));
28
+ and gives each `positions()` row the flags `natalChart()` gives at the same
29
+ instant.
30
+
31
+ **1.1.0**, the release before it, a minor release: 1.1.0-rc.13 with the
32
+ version changed (CHANGELOG.md). It ships a sealed
33
+ pack of JPL's DE440 for 1790 to 2210 and computes on it by default: a plain
34
+ `natalChart`, `positions`, `calc` or `birthWindow` call, with nothing opened
35
+ or supplied, takes the Sun, the Moon, the planets and the true node from the
36
+ pack, and the result names it (`chart.ephemeris`). On that default the Sun,
37
+ the Moon and the planets are within 1″ of JPL Horizons (DE441) at all 240
38
+ position vectors of the repository's conformance suite, 24 instants from 1851
39
+ to 2148, the largest difference 0.0127″ (`src/de440-default.test.ts`); on
40
+ astronomy-engine, which every release through 1.1.0-rc.7 computed on, 48 of
41
+ the 240 are. **Positions change against those releases**, by the difference
42
+ between the two ephemerides. At one instant a day (noon TT) from 1800 to
43
+ 2199 the largest is 29.19″ of ecliptic longitude for the Sun, the Moon and
44
+ the planets (Pluto, on 2199-12-31) and 32.64″ for the true node
45
+ (CHANGELOG.md has each body's). That is the largest at those instants, not a
46
+ limit: near the Sun a planet moves more, because the pack bends its light by
47
+ the Sun and astronomy-engine does not (at most 1.7512″, at the Sun's limb). From
48
+ 1.1.0-rc.12 the pack bends no light from a planet behind the Sun's disc, as
49
+ NASA JPL's Horizons system does not, a convention this package follows
50
+ from Horizons and credits to NASA JPL (`NOTICE`): at every passage behind the disc from 1800 to 2199
51
+ (393 passages, 3,490 instants inside the disc) the pack's place is within
52
+ 0.0023″ of Horizons's, taken relative to the Sun, where the formula of
53
+ 1.1.0-rc.10 and rc.11, which bent the light there too, is up to 333.48″ from it
54
+ (Mercury; reduced from `de440.bsp`)
55
+ ([docs/de440.md](docs/de440.md), *Behind the Sun's disc*;
56
+ `docs/evidence/1.1.0-rc.12-20261115/near-sun/`).
57
+ **No fallback is silent**: outside 1790-01-02 to 2209-12-31, or if the pack
58
+ cannot be opened, the engine computes on astronomy-engine, and the result
59
+ says so with a flag (`"outside-de440-span"`, `"de440-unavailable"`) and by
60
+ naming astronomy-engine as its ephemeris. A function that returns a bare
61
+ value (a `Date`, a number, a list) cannot carry that label, so it has a
62
+ labelled form beside it: `searchLongitudeCrossings` for
63
+ `findLongitudeCrossings`, and from 1.1.0-rc.11 `solarReturnInstantDetailed`,
64
+ `mostRecentSolarReturnInstantDetailed`, `lunarReturnInstantDetailed` and
65
+ `moonSignsBetweenDetailed` in `@zodiacs/engine/techniques`, which return
66
+ `{ value, ephemeris, flags }` ([docs/de440.md](docs/de440.md)). From
67
+ 1.1.0-rc.12 `chartPoints` and `chartDeclinations` carry their chart's
68
+ `ephemeris` and fallback `flags` too, given a birth or a chart.
69
+ `setDefaultEphemeris("astronomy-engine")` gives earlier releases' positions
70
+ everywhere, named and not flagged. From 1.1.0-rc.10 `@zodiacs/engine/calc`
71
+ (`calc`, `chart`, `events`) and `birthWindow` compute on the pack too, so
72
+ they agree with `natalChart`; what `calc()` gives beyond the apparent
73
+ geocentric place (other centers and corrections, the Earth) and the sky
74
+ entry's rising and setting still compute on astronomy-engine whatever the
75
+ default, so none is a fallback: a calc receipt names astronomy-engine, and
76
+ the sky entry's results name no ephemeris ([docs/de440.md](docs/de440.md)). The pack makes the package about four times larger unpacked
77
+ (4,581,449 bytes against 1.1.0-rc.7's 1,152,017), and an application
78
+ that bundles the root entry bundles the pack's 3,319,552 characters (see
79
+ [docs/de440.md](docs/de440.md) and CHANGELOG.md). 1.1.0-rc.9 was
80
+ 1.1.0's first draft, superseded before review; 1.1.0-rc.10,
81
+ 1.1.0-rc.11 and 1.1.0-rc.12 were drafts on the same pull request, reviewed
82
+ and replaced, and 1.1.0 is 1.1.0-rc.13 with
83
+ the version changed;
84
+ 1.1.0-rc.8 was a draft
85
+ that shipped the pack behind `withEphemeris` only, withdrawn, and its
86
+ number is not used again. From 1.1.0-rc.7 the error limits
87
+ `@zodiacs/engine/calc` quotes for geocentric
88
+ positions come from DE440 on every day from 1800 through 2199 (CHANGELOG.md).
89
+ From 1.1.0-rc.6 a birth in an hour the clock showed twice can take the
90
+ later pass (`fold: "later"` in `@zodiacs/engine/geo`; see
91
+ [docs/time.md](docs/time.md)).
92
+ 1.1.0-rc.4 and 1.1.0-rc.5 were drafts that were not merged (CHANGELOG.md).
93
+ 1.1.0-rc.3 added
94
+ `@zodiacs/engine/de440`, positions from JPL's DE440 through a pack the caller
95
+ supplies, which the root's `withEphemeris` puts in place of the default
96
+ source; with `@zodiacs/engine/de440/pack` there are seventeen public entry
97
+ points (see [docs/de440.md](docs/de440.md)). Over
98
+ 1.0.0, natal receipts name their conventions as ids of the Zodiacs
99
+ conventions registry, which a new entry, `@zodiacs/engine/conventions`,
100
+ gives (from 1.1.0-rc.1; see *Draft natal receipts*). 1.1.0-rc.2 added two
101
+ entries that load no ephemeris, `@zodiacs/engine/time` and
102
+ `@zodiacs/engine/lite`; time bands in
103
+ `@zodiacs/engine/calc`; how far the birth time can move before each varga
104
+ sign changes; and corrections of statements that said more than their
105
+ evidence (CHANGELOG.md). The package follows Semantic Versioning:
106
+ [docs/versioning.md](docs/versioning.md) says what is public, how a number
107
+ may change, which records stay readable and how something public is
21
108
  deprecated, and `api/` holds each public entry point's declarations.
109
+ Install it from npm:
22
110
 
23
111
  ```sh
24
112
  npm install @zodiacs/engine
25
113
  ```
26
114
 
115
+ That installs npm's `latest`, 1.1.0, not this candidate:
116
+ `artifacts/zodiacs-engine-2.0.0-rc.2.tgz` in the repository, with its
117
+ SHA-256 receipt, is this candidate's exact archive. 1.0.0, npm's `latest`
118
+ before 1.1.0, has no `./conventions`, `./time`, `./lite`, `./de440` or DE440
119
+ pack, computes on astronomy-engine and writes no ids.
120
+
27
121
  The Release workflow publishes the archive carried in `artifacts/` as it is,
28
122
  with provenance (CONTRIBUTING.md, *Releases*). Before 1.0.0 npm carried
29
123
  0.1.1-rc.14 to 0.1.1-rc.16. 0.1.1-rc.17, 1.0.0-rc.1 and 1.0.0-rc.2 were never
@@ -45,7 +139,7 @@ themselves and are not affected.
45
139
 
46
140
  From a source checkout, run `npm ci` and `npm run build`, then
47
141
  `npm pack --ignore-scripts`. Test the packed file in a clean consumer using
48
- `npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-1.0.0.tgz`.
142
+ `npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-2.0.0-rc.2.tgz`.
49
143
  The smoke check
50
144
  downloads the artifact's public dependencies and TypeScript 5.9.3; its output
51
145
  records the artifact hash and runtime, and it removes its temporary consumer
@@ -103,9 +197,20 @@ gained a conventions set that names the nutation; rc.15's receipts stay
103
197
  readable. As in rc.15, a chart's instant is read on a time basis: from 1972
104
198
  to 2027-10-02 as UTC, with TT from the leap seconds and UT1 from IERS
105
199
  UT1 − UTC, and otherwise as UT1 with the ΔT model, or on UT1 or TT when
106
- `timeScale` says so (see Time). The ephemeris is still astronomy-engine
107
- 2.1.19. See CHANGELOG.md for the release history and
108
- `docs/evidence/1.0.0-20261011/` for this release's checks (1.0.0-rc.2's are in
200
+ `timeScale` says so (see Time). From 1.1.0-rc.9 the ephemeris is the shipped
201
+ DE440 pack inside its years and astronomy-engine 2.1.19 elsewhere; where this
202
+ document speaks of the ephemeris's accuracy or of its error limits without
203
+ naming DE440, it speaks of astronomy-engine, the fallback and the ephemeris
204
+ of what the pack does not give. See CHANGELOG.md for the release history and
205
+ `docs/evidence/2.0.0-rc.2-20261116/` for this candidate's checks
206
+ (2.0.0-rc.1's are in `docs/evidence/2.0.0-rc.1-20261116/`, 1.1.0's in `docs/evidence/1.1.0-20261116/`, 1.1.0-rc.13's in `docs/evidence/1.1.0-rc.13-20261115/`, 1.1.0-rc.12's in
207
+ `docs/evidence/1.1.0-rc.12-20261115/`, 1.1.0-rc.11's and 1.1.0-rc.10's in
208
+ their own dated folders there, 1.1.0-rc.9's, its superseded draft's, are in
209
+ `docs/evidence/1.1.0-rc.9-20261114/`)
210
+ (1.1.0-rc.3's are in `docs/evidence/de440-20261110/`, 1.1.0-rc.2's in
211
+ `docs/evidence/1.1.0-rc.2-20261102/`, 1.1.0-rc.1's in
212
+ `docs/evidence/1.1.0-rc.1-20261026/`, 1.0.0's in
213
+ `docs/evidence/1.0.0-20261011/`, 1.0.0-rc.2's in
109
214
  `docs/evidence/1.0.0-rc.2-20261006/`, 1.0.0-rc.1's in
110
215
  `docs/evidence/1.0.0-rc.1-20261006/`, rc.17's in
111
216
  `docs/evidence/rc17-20261005/`). Site adoption is reviewed separately.
@@ -193,7 +298,10 @@ for (const aspect of today.aspects) {
193
298
  - `transits(natal, date)` returns a sky snapshot and moving-to-natal aspects.
194
299
  - `synastry(a, b)` returns inter-chart aspects and element/modality balances.
195
300
  - `moonPhase(date)` returns elongation, illuminated fraction, and phase name.
196
- - `saturnReturn(birth)` returns exact-pass seasons through roughly age 92.
301
+ - `saturnReturn(birth)` returns exact-pass seasons through roughly age 92. A
302
+ birth given as a calendar date with no time, `"YYYY-MM-DD"` or
303
+ `{ utc: "YYYY-MM-DD" }`, is refused with a `RangeError` (from 2.0.0); pass
304
+ `{ utc: "YYYY-MM-DD", timeKnown: false }` for a birth whose time is not known.
197
305
  - `findLongitudeCrossings(body, longitude, from, to)` returns the instants a
198
306
  body crosses a longitude, and `searchLongitudeCrossings` does the same under
199
307
  a sample budget. `@zodiacs/engine/crossings` provides the same solver for a
@@ -211,29 +319,100 @@ for (const aspect of today.aspects) {
211
319
  and the speeds of the cusps and the angles (see `docs/houses.md`). It
212
320
  imports no ephemeris and no module of the root entry.
213
321
  - `@zodiacs/engine/vedic` provides the sidereal zodiac: ayanamsas, sidereal
214
- charts, nakshatras, vargas, KP sub-lords and dashas (see `docs/vedic.md`).
322
+ charts, nakshatras, vargas, KP sub-lords and dashas, and, new in
323
+ 1.1.0-rc.2, how far the birth time can move before each varga sign changes
324
+ (`vargaSensitivity`; see `docs/vedic.md`).
215
325
  - `@zodiacs/engine/sky` provides rise, set and transit times for an observer
216
326
  and planetary hours (see `docs/sky.md`).
217
327
  - `@zodiacs/engine/window` partitions a birth-time window into cells within
218
328
  which the chart's signs, houses and aspects are constant (see *Birth-time
219
329
  windows*).
330
+ - `@zodiacs/engine/conventions`, new in 1.1.0-rc.1, gives the ids of the
331
+ conventions registry a natal receipt names, and each id's address (see
332
+ *Draft natal receipts*). It imports no module of another entry point.
333
+ - `@zodiacs/engine/time`, new in 1.1.0-rc.2, gives the clock and the frame of
334
+ date a chart is computed on, and loads no ephemeris: `timeBasis`, an
335
+ instant's UT1 and TT with the `deltaT` and `timeScale` records a chart
336
+ reports; `elapsedDays`; `EPHEMERIS_SPAN`; the frame that turns
337
+ astronomy-engine's vectors to the ecliptic of date: `tilt`,
338
+ `eclipticFrame`, `meanEcliptic` and `eclipticOfDate`; and `timeBands`, the
339
+ 1-σ bands of a recorded instant's TT and UT1 (see *Time*).
340
+ - `@zodiacs/engine/de440`, new in 1.1.0-rc.3: `openDe440Pack` opens a sealed
341
+ pack of Chebyshev series refitted from DE440 that the caller supplies and
342
+ checks it against the SHA-256 it is given, and the root's
343
+ `withEphemeris(source, fn)` runs `fn` with the root's body positions taken
344
+ from it; charts name it, and so do their receipts. The calc entry, the
345
+ window entry, the sky entry's rising and setting and the vedic entry's
346
+ star-anchored ayanamsas and varga timing refuse inside it. The entry fetches nothing; the pack is
347
+ the caller's, or the one the next entry ships (see
348
+ [docs/de440.md](docs/de440.md)).
349
+ - `@zodiacs/engine/de440/pack`, new in 1.1.0-rc.9, gives out the pack the
350
+ package ships and the root computes on by default:
351
+ `de440-1790-2210.v2.zeph`, 2,489,664 bytes, refitted from NAIF's
352
+ `de440.bsp` for 1790 to 2210, as base64 text in one file that this entry
353
+ and the root share. `shippedDe440Source()` opens it, checked against its
354
+ SHA-256, and gives the source (`openShippedDe440Pack()` gives the same one
355
+ as a promise); `de440PackBytes()` gives the bytes and `DE440_PACK`
356
+ describes them. It fetches nothing. A plain root call needs none of this:
357
+ the root's `defaultEphemeris()` says what it computes on, and
358
+ `setDefaultEphemeris("astronomy-engine")` puts it back on astronomy-engine.
359
+ The `withEphemeris` callback must be synchronous (see
360
+ [docs/de440.md](docs/de440.md)).
361
+ - `@zodiacs/engine/lite`, new in 1.1.0-rc.2, gives declination parallels and
362
+ out-of-bounds flags, a chart's sect under a named convention
363
+ (`sectReading`), composite midpoints and their aspects, and the essential
364
+ dignities, and loads no ephemeris. The functions and tables of its
365
+ declination, composite and dignity parts are copies of the root's and
366
+ `@zodiacs/engine/techniques`', with the same results; its sect part
367
+ (`sectReading`, `orientality` and their constants) is new (see
368
+ [docs/lite.md](docs/lite.md)).
220
369
 
221
370
  ### Uniform calculation API
222
371
 
223
372
  `@zodiacs/engine/calc` offers `calc`, `houses`, `events` and `chart` with one
224
373
  vocabulary: instants as ISO strings, Dates or `{ jd, scale: "utc" | "ut1" | "tt" }`
225
- on the engine's time basis, as `positions()` reads them;
374
+ on the engine's time basis, as `positions()` reads them, except that `chart()`
375
+ refuses a `time` given as a calendar date with no time (`"YYYY-MM-DD"`) with a
376
+ `RangeError`, as a birth's `utc` is refused (from 2.0.0);
226
377
  eight frames (the ecliptic or the equator; true or mean of date, J2000.0 or
227
378
  the ICRS); geocentric, heliocentric, barycentric and topocentric centers;
228
379
  apparent, astrometric or geometric positions with distances and speeds; and
229
380
  the tropical or the sidereal zodiac, with any ayanamsa of
230
381
  `@zodiacs/engine/vedic` or a caller's own (Swiss Ephemeris's `SE_SIDM_USER`).
231
- Results carry bounds and a receipt of convention ids. A measured bound is the
232
- largest difference from JPL Horizons on 32 instants from 1802 to 2188: a
233
- sample maximum, not a limit. In the sidereal zodiac a bound adds the
382
+ Results carry bounds and a receipt of convention ids, which names the
383
+ ephemeris. The apparent geocentric place of the Sun, the Moon and Mercury to
384
+ Pluto, and the true nodes, come from the shipped DE440 pack, as
385
+ `natalChart()`'s do (to the bit, with every default); every other center
386
+ and correction, and the Earth, from astronomy-engine
387
+ ([docs/calc.md](docs/calc.md), *Which ephemeris*). A measured bound is the
388
+ largest difference found, rounded up. For a position from the pack: from JPL
389
+ Horizons at the conformance suite's 240 L1 vectors (the Moon 0.013″, the Sun
390
+ and the planets under 0.004″, in the true ecliptic of date), with no bound
391
+ for its distance, its speed or the true node, which no arbiter has checked
392
+ on the pack. For a position from astronomy-engine: for the geocentric Sun,
393
+ Moon, planets and true nodes, from JPL's DE440 at noon TT on each of the 146,097 days from
394
+ 1800-01-01 to 2199-12-31; for every other center and body, from JPL Horizons
395
+ on 32 instants from 1802 to 2188 (for the mean nodes and Black Moon Lilith,
396
+ from their definitions evaluated with ERFA on the same instants). Its
397
+ `basis` says which. It is a sample maximum, not a limit. In the sidereal
398
+ zodiac a bound adds the
234
399
  ayanamsa's: the largest difference of its mean, and of its rate, from ERFA's
235
400
  construction of the same definition, over every year from 1800 to 2199. An
236
- estimated bound names what it rests on. What this version does not compute
401
+ estimated bound names what it rests on. Results also carry `band`, which is
402
+ not a bound on the error: to first order, how far a position, an angle, a
403
+ cusp or an event's clock label moves when the instant's TT and UT1 move by
404
+ the 1-σ bands its time basis records. An angle's or a cusp's band is its rate
405
+ on UT1 times the UT1 band plus its rate on TT (the frame's precession and
406
+ nutation, the obliquity and a sidereal zodiac's ayanamsa) times the TT band;
407
+ the true nodes' is their speed over ±0.25 day times the TT band, which
408
+ smooths their short-period motion; and a topocentric position's is an upper
409
+ bound on its first-order movement, not that movement. On UTC input from
410
+ 1972-01-01 to 2027-10-02 without a pinned ΔT, TT comes from the leap seconds
411
+ (exactly to 2027-06-28, when the shipped list expires; after it the list's
412
+ last value is carried), so every geocentric, heliocentric and barycentric
413
+ position's band is 0 there, and the band falls on the angles and cusps,
414
+ topocentric positions and each event's UT1 (docs/calc.md, *Bands*).
415
+ Root charts and natal envelopes carry none. What this version does not compute
237
416
  comes back as a typed refusal, such as gravitational deflection, or an
238
417
  instant whose UT1 or TT is outside 1800 to 2200: there calc has no
239
418
  comparison to take a bound from, while the root entry's functions
@@ -244,9 +423,13 @@ mapping and the measured accuracy, is
244
423
  [docs/calc.md](https://github.com/zodiacs-org/engine/blob/main/docs/calc.md).
245
424
 
246
425
  Returned longitudes use degrees in `[0, 360)` and positions include sign and degree
247
- annotations. Charts use the tropical ecliptic of date. Planetary positions are
248
- geocentric and corrected for light time and aberration, but not for the Sun's
249
- gravitational deflection; the Moon's series carries neither correction. The
426
+ annotations. Charts use the tropical ecliptic of date. Positions are
427
+ geocentric. On the shipped DE440 pack, the default, each body's place is
428
+ corrected for light time, the Sun's light deflection (from 1.1.0-rc.12 none
429
+ for a planet behind the Sun's disc, as JPL Horizons) and aberration; on
430
+ astronomy-engine planetary positions are corrected for light time and
431
+ aberration, not for the deflection, and the Moon's series carries neither
432
+ correction. The
250
433
  chart functions do not calculate topocentric parallax; `@zodiacs/engine/calc`
251
434
  gives topocentric positions (`center: { topocentric }`), and
252
435
  `@zodiacs/engine/sky` finds rise and set for a topocentric observer.
@@ -474,6 +657,8 @@ short way round between the two supplied longitudes, reduced exactly modulo
474
657
  (1 + 2⁻⁵⁰ apart), and 1.1 and 0.1 (1 + 3·2⁻⁵⁵), do not. Body labels follow
475
658
  the configured-aspect rule. `eclipticToEquatorial` and `declinationsForBodies`
476
659
  expose the same geometry with an explicitly supplied obliquity.
660
+ `@zodiacs/engine/lite` carries copies of these, and of `findDeclinationAspects`,
661
+ that load no ephemeris ([docs/lite.md](docs/lite.md)).
477
662
 
478
663
  These are derived coordinates of the existing ephemeris, with its existing
479
664
  corrections and limits. They do not establish the programme's 0.01″ physical
@@ -511,7 +696,10 @@ Placidus and Koch are undefined in polar regions, where |latitude| ≥ 90° −
511
696
  with ε the true obliquity of date (about 66.56° today). There the engine falls
512
697
  back to whole-sign houses, exported as `POLAR_FALLBACK` (and as
513
698
  `PLACIDUS_POLAR_FALLBACK`, deprecated from 1.0, since Koch falls back too),
514
- and adds `polar-fallback` to the chart flags. Swiss
699
+ and adds `polar-fallback` to the chart flags. From 2.0.0 every chart whose
700
+ angles are inside the polar circle carries `polar-angles` too, in every house
701
+ system, since the ascendant there turns half a circle twice a day
702
+ (`docs/houses.md`). Swiss
515
703
  Ephemeris falls back to Porphyry instead. Every other system is defined at
516
704
  every latitude where the angles are. Inside the polar circle, where the
517
705
  ascendant is taken on the eastern half of the horizon, Regiomontanus, Campanus
@@ -551,10 +739,15 @@ Every chart gets those three. The Vertex, the East Point, the sect and the
551
739
  lots need a birth time and place.
552
740
 
553
741
  - The Vertex and the East Point come from the instant and the place, not from a
554
- supplied chart's angles. Given Swiss's sidereal time, latitude and obliquity,
555
- they agree with its `swe_houses_armc` to within 0.00001″.
742
+ supplied chart's angles. On the conformance suite's ten L2 vectors for them,
743
+ from 1833 to 2182 at latitudes from 60° S to 60° N, whose arbiter is ERFA's
744
+ sidereal time and obliquity with each point's published definition, they are
745
+ within 0.014″ and 0.007″ (`conformance/RESULTS.md`, which rounds to the
746
+ nearest 0.001″, and `conformance/results/summary.json`).
556
747
  - The sect is day when the Sun is between the descendant and the ascendant
557
- through the midheaven.
748
+ through the midheaven. `sectReading`, in `@zodiacs/engine/lite`, reads the
749
+ sect under the convention a caller names: this one, or the Sun's altitude
750
+ ([docs/lite.md](docs/lite.md)).
558
751
  - The lots use the chart's own ascendant and bodies. Each is the ascendant plus
559
752
  the arc between two points, taken as Paulus gives it by day and reversed by
560
753
  night. Ptolemy's Fortune, which does not reverse, is `asc + moon − sun`.
@@ -570,21 +763,34 @@ arcminutes from Swiss's.
570
763
 
571
764
  ### Input flag compatibility
572
765
 
573
- Public birth inputs accept all six `ChartFlag` values. Supply an array with at
766
+ Public birth inputs accept all eleven `ChartFlag` values. Four are caller
767
+ assertions: `dst-gap`, `dst-fold`, `lmt` and `calendar-unknown`. The other
768
+ seven are derived by the calculation, and a caller may echo each only where
769
+ the calculation derives it: `no-time`, `polar-fallback`, `polar-angles`,
770
+ `outside-reference-span`, `delta-t-extrapolated` (see Time) and the two
771
+ fallback flags, `de440-unavailable` and `outside-de440-span`. Supply an array with at
574
772
  most 64 entries; entries must be known string values in ordinary data slots.
575
773
  Repeated values collapse in first-occurrence order. Unknown strings, sparse
576
774
  slots, accessor slots, non-array iterables and simultaneous `dst-gap`/`dst-fold`
577
775
  claims reject with a `RangeError` that does not include supplied flag values.
578
776
 
579
- `dst-gap`, `dst-fold` and `lmt` remain caller assertions: a UTC instant alone
580
- cannot verify a historical local-time resolution. The geo resolver sets
581
- `dst-gap` or `dst-fold` for a skipped or repeated wall time of any cause (the
582
- names are kept; its `jump.cause` gives the cause) and `lmt` when a local mean
583
- time clock read it. `no-time`,
584
- `polar-fallback` and `outside-reference-span` may be echoed for compatibility,
585
- but must agree with the calculation. Set `timeKnown: false` for unknown time; a flag never overrides that
586
- setting. A fallback assertion requires the actual requested Placidus calculation
587
- to produce whole-sign houses, which it does only inside the polar circle.
777
+ `dst-gap`, `dst-fold`, `lmt` and `calendar-unknown` remain caller
778
+ assertions: a UTC instant alone cannot verify a historical local-time
779
+ resolution. The geo resolver sets `dst-gap` or `dst-fold` for a skipped or
780
+ repeated wall time of any cause (the names are kept; its `jump.cause` gives
781
+ the cause) and `lmt` when a local mean time clock read it; it and the birth
782
+ resolvers set `calendar-unknown` on a local date, given with no country, that
783
+ a calendar changeover may have skipped ([docs/time.md](docs/time.md)). A
784
+ natal receipt refuses `calendar-unknown` on an instant before 1582-10-04 or
785
+ from 1918-02-28 (UTC).
786
+ `no-time`, `polar-fallback`, `polar-angles`, `outside-reference-span`,
787
+ `delta-t-extrapolated`, `de440-unavailable` and `outside-de440-span` may be
788
+ echoed for compatibility, but must agree with the calculation. Set
789
+ `timeKnown: false` for unknown time; a flag never overrides that setting. A
790
+ `polar-fallback` assertion requires the requested Placidus or Koch
791
+ calculation to produce whole-sign houses, which it does only inside the polar
792
+ circle, and a `polar-angles` assertion requires angles inside the polar
793
+ circle.
588
794
 
589
795
  `natalChart` stores only distinct time-resolution assertions in `chart.input.flags`
590
796
  and derives result flags once. This is canonical semantic input, not a lossless
@@ -600,8 +806,12 @@ preserving numerical arrays and engine version. These checks happen at call
600
806
  time and do not freeze caller-owned objects.
601
807
 
602
808
  Ordinary Saturn-return inputs require no extra natal calculation. A raw birth
603
- input that explicitly asserts `polar-fallback` requires one natal calculation to
604
- check that assertion before the return scan. A supplied Chart instead receives
809
+ input that explicitly asserts `polar-fallback` or `polar-angles` requires one
810
+ natal calculation to check that assertion before the return scan. Its other
811
+ derived echoes are checked against the input alone: `no-time` against
812
+ `timeKnown: false` and `outside-reference-span` against the instant;
813
+ `delta-t-extrapolated`, `de440-unavailable` and `outside-de440-span` are
814
+ accepted there unchecked, since no chart is computed. A supplied Chart instead receives
605
815
  the consistency check above, without natal recomputation. Public birth and
606
816
  `resolveBirth` settings are validated once and the captured scalar values are
607
817
  used for calculation/resolution. Explicit null settings or local time are
@@ -659,9 +869,13 @@ before it; a sampled plateau on the target is returned where it begins.
659
869
  Offsets of 90° or more on either side of a step are the far side of the circle,
660
870
  not a crossing.
661
871
 
662
- A fixed step alone loses both crossings when a station falls between two
663
- samples just past the target: at 5 days, a Saturn station within 0.0103° of
664
- it, or a Jupiter station within 0.0205°. Wherever the sampled motion turns
872
+ A fixed step alone can lose both crossings when a station takes the body
873
+ less than |f″|h²/8 past the target, f″ being the second derivative of its
874
+ longitude at the station and h the step, since both crossings can then fall
875
+ between two samples: at 5 days, up to 0.0056° for Saturn and 0.011° for
876
+ Jupiter at their stations from 2019 to 2024
877
+ (`docs/evidence/1.1.0-rc.2-20261102/f89/blind-band.json`).
878
+ Wherever the sampled motion turns
665
879
  without the offset changing sign, and the turning sample is within reach of the
666
880
  local curvature, the solver finds the extremum by golden-section search. It
667
881
  bisects both crossings when the extremum passes the target, and returns one,
@@ -774,6 +988,30 @@ and none extra, and natalChart confirmed every switch at its millisecond
774
988
  (`docs/evidence/birth-window/RESULTS.md`); on rc.16's build, after the time
775
989
  basis and the nutation, again (`docs/evidence/birth-window/rc16/`).
776
990
 
991
+ **On the shipped DE440 pack** (from 1.1.0-rc.10). A window is computed on
992
+ the source a plain `natalChart` uses, which inside `REFERENCE_SPAN` is the
993
+ pack, and says so: `result.ephemeris` names it, or names astronomy-engine,
994
+ with the flag `de440-unavailable` when that is a fallback. Everything this
995
+ section measures above was measured on astronomy-engine, where the search is
996
+ unchanged. On the pack three things differ. The true node comes from the
997
+ pack's own velocity and does not jitter: over 3,000 consecutive milliseconds
998
+ at each of 29,220 epochs it stays within 4.5e-12° of a quadratic, so an
999
+ ingress does not flicker. The pack's positions step where a read passes
1000
+ from one of its Chebyshev records to the next: the true node by up to
1001
+ 1.11″, more than J, the Moon by up to 0.0011″; the search takes each such
1002
+ instant, a few in 48 hours, as a seam, like a step of the time basis. And
1003
+ near the Sun the pack bends a planet's light, by at most 1.7512″ outside the
1004
+ Sun's disc and, from 1.1.0-rc.12, not at all behind it, so within a degree
1005
+ of the Sun the search takes that deflection as a displacement of at most
1006
+ 1.8″, as it takes the node's jitter. The rate scan on the pack holds every
1007
+ bound with its margin, bound over largest rate plus what its grid can miss
1008
+ 1.634 to 2.057 (`docs/evidence/1.1.0-rc.12-20261115/window/`). Through
1009
+ 1.1.0-rc.11 the pack bent light behind the disc too, Neptune's place moved
1010
+ at 1.85 times its bound behind the Sun on 1920-08-04, and the search raised
1011
+ its bounds there and compared single milliseconds within 0.01° of the Sun's
1012
+ centre; from 1.1.0-rc.12 it does neither, and `src/window-de440.test.ts`
1013
+ holds a window across each limb and the centre of a passage to natalChart.
1014
+
777
1015
  In one thread, a 10-minute window takes about 2 ms, two hours about 20 ms and
778
1016
  a whole day about 0.23 s (medians, Node.js 22; `timing.json`). A window over a
779
1017
  node ingress takes from seconds to a few minutes, as the node is compared at
@@ -801,6 +1039,11 @@ string forms:
801
1039
 
802
1040
  - `YYYY-MM-DD`, interpreted as midnight UTC using the proleptic Gregorian
803
1041
  calendar. This convenience does not infer a birthplace's local midnight.
1042
+ As a birth (`BirthInput.utc`, `saturnReturn`'s birth in either form, and
1043
+ calc `chart()`'s `time`) a calendar date with no time is refused with a
1044
+ `RangeError` unless `timeKnown` is `false` (from 2.0.0; earlier releases
1045
+ read it as midnight UTC); elsewhere it still reads as midnight UTC. Write
1046
+ `YYYY-MM-DDT00:00:00Z` to ask for midnight UTC.
804
1047
  - `YYYY-MM-DDTHH:mm[:ss[.sss]]Z`, or the same date-time with an explicit
805
1048
  `+HH:mm` or `-HH:mm` offset. Fractional seconds, when supplied, have one to
806
1049
  three digits. ISO expanded years use a sign and six digits, such as
@@ -846,7 +1089,9 @@ latitude, which in reality stays within about 1.2″ of zero, comes out as
846
1089
  Birth settings accept only a `houseSystem` from the thirteen above, a boolean
847
1090
  `timeKnown` and a `timeScale` (see Time). Omitting them defaults to `"whole"`,
848
1091
  `true` and `"utc"`; explicit `null` and other unsupported values throw
849
- `RangeError`, including when coordinates are absent. Latitude and longitude
1092
+ `RangeError`, including when coordinates are absent. `timeKnown: false` is
1093
+ what lets a birth be given as a calendar date with no time; with the default
1094
+ `true` such a date is refused (from 2.0.0). Latitude and longitude
850
1095
  must be supplied together as finite numbers within `[-90, 90]` and
851
1096
  `[-180, 180]` respectively.
852
1097
 
@@ -875,7 +1120,17 @@ planets on Terrestrial Time (TT). `utc` is on UTC unless `timeScale` says
875
1120
  ut1MinusUtc, leapSeconds }`). `@zodiacs/engine/deltat` exports the model with
876
1121
  no dependencies. astronomy-engine keeps one ΔT for its whole module; every
877
1122
  engine call leaves the model installed, and code that calls astronomy-engine
878
- directly should install it too: `SetDeltaTFunction(deltaT)`.
1123
+ directly should install it too: `SetDeltaTFunction(deltaT)`. Such code can
1124
+ take the engine's clock and frame of date from `@zodiacs/engine/time`, which
1125
+ loads no ephemeris ([docs/time.md](docs/time.md), *Without the ephemeris*).
1126
+ Its `timeBands` turns a record's two bands, `deltaT.sigma` and
1127
+ `timeScale.ut1MinusUtc.sigma`, into the 1-σ bands of the TT and the UT1 the
1128
+ engine used: on UTC input from 1972-01-01 to 2027-10-02 without a pinned ΔT,
1129
+ TT comes from the leap seconds (exactly to 2027-06-28, when the shipped list
1130
+ expires; after it the list's last value is carried, with no band for a leap
1131
+ second not yet announced), so its band is 0, and UT1 carries the band of
1132
+ UT1 − UTC; with a pin, TT is UT1 plus the pin and takes UT1's band
1133
+ ([docs/time.md](docs/time.md), *The time bands*).
879
1134
 
880
1135
  `@zodiacs/engine/geo` reads wall times before 1970 on the tzdb 2025c history
881
1136
  with backzone, shipped as 16 lazily imported chunks: `prepareLocalTime(date,
@@ -883,8 +1138,13 @@ timeZone)` loads the one a zone needs, and a wall time before 1970 throws until
883
1138
  it has. From 1970 the host's Intl answers. A `longitude` reads a time in a
884
1139
  zone's local mean time era on the birthplace's own mean time; `calendar:
885
1140
  "julian"` takes an Old Style date, and `country` adds a note from the country's
886
- Gregorian adoption. Each resolution names the tzdb version, the transition
887
- behind the offset and its cause (`dst`, `legal-change` or `date-line`).
1141
+ Gregorian adoption. A wall time the clock showed twice takes its first pass,
1142
+ or its second with `fold: "later"` (from 1.1.0-rc.6). Each resolution names the tzdb version (the host's where
1143
+ its Intl answered, null when the runtime does not report one) and, where
1144
+ there is one, the transition behind the offset with its cause (`dst`,
1145
+ `legal-change` or `date-line`): the jump's in a gap or fold, or, where the
1146
+ shipped history answered, the last change it records before the time. From
1147
+ 1970, outside a gap or fold, the transition is null.
888
1148
  [docs/time.md](docs/time.md) describes every field.
889
1149
 
890
1150
  ## Nutation
@@ -912,7 +1172,12 @@ sidereal angle.
912
1172
 
913
1173
  ## Accuracy and licensing
914
1174
 
915
- The ephemeris is powered by the MIT-licensed `astronomy-engine`. Tests compare
1175
+ By default the positions come from a sealed pack refitted from the Jet
1176
+ Propulsion Laboratory's DE440 planetary and lunar ephemeris (Park, Folkner,
1177
+ Williams and Boggs 2021), which [NOTICE](NOTICE) credits and cites; the pack
1178
+ is Zodiacs.org's work, and JPL has not reviewed or endorsed it. Outside the
1179
+ pack's years, and for what its reduction does not give, the ephemeris is the
1180
+ MIT-licensed `astronomy-engine`. Tests compare
916
1181
  modern and historical positions with public JPL Horizons vectors and exercise
917
1182
  astronomical and geometric invariants. See [LICENSING.md](LICENSING.md) for the
918
1183
  full provenance audit and the explicit Swiss Ephemeris exclusion.
@@ -923,7 +1188,8 @@ Table S15 in the package's ΔT module (`@zodiacs/engine/deltat`, which the build
923
1188
  places in a shared chunk under `dist/` that `dist/deltat.js` re-exports) are
924
1189
  CC BY 4.0, attributed in [NOTICE](NOTICE).
925
1190
 
926
- The npm package contains no place database. It carries tzdb 2025c's zone
1191
+ The npm package contains no place database. It carries the DE440 pack
1192
+ (2,489,664 bytes), tzdb 2025c's zone
927
1193
  histories before 1970, the IERS leap-second list, an IERS UT1 − UTC table, a
928
1194
  table of Gregorian adoption dates from public-domain sources, 22 catalogue
929
1195
  values for the stars of the Vedic ayanamsas, and the IAU 2000B nutation series
@@ -939,7 +1205,8 @@ package implementation while keeping its scanner-oriented functions and lazy
939
1205
  bundle boundary intact. They are not covered by semantic-versioning guarantees;
940
1206
  third-party code must use the documented entry points: the root, `/calc`,
941
1207
  `/geo`, `/houses`, `/sky`, `/techniques`, `/timing`, `/vedic`, `/window`,
942
- `/receipt`, `/crossings` and `/deltat`.
1208
+ `/receipt`, `/conventions`, `/crossings`, `/deltat`, `/time`, `/lite`,
1209
+ `/de440` and `/de440/pack`.
943
1210
 
944
1211
  ## GeoNames request recovery
945
1212
 
@@ -1029,7 +1296,7 @@ The time-basis sets, written from 0.1.1-rc.15 on, also record the instant's
1029
1296
  scale (`receipt.timeScale`) and its time basis (`result.timeScale`), and a
1030
1297
  local resolution records the calendar, the tzdb version and form, the clock,
1031
1298
  the transition behind the offset and any birthplace mean time, each checked
1032
- against the offsets and flags. The current set, written from 0.1.1-rc.16 on,
1299
+ against the offsets and flags. The set written from 0.1.1-rc.16 to 1.0.0
1033
1300
  also names the nutation, the engine's IAU 2000B (`nutation`), and takes the
1034
1301
  Moon from astronomy-engine's geocentric series turned by the engine's frame
1035
1302
  (`moonPosition`); rc.15's set, which does not name the nutation, stays
@@ -1038,10 +1305,28 @@ as UT1, stay readable and replay as UTC requests (see docs/time.md). A
1038
1305
  receipt's engine, ephemeris and package versions must be SemVer 2.0.0
1039
1306
  versions. The codec accepts an earlier set only under the versions that wrote
1040
1307
  it, rc.15's under 0.1.1-rc.15 alone, and compares the engine's version in
1041
- SemVer order with 0.1.1-rc.16, which brought the current set, and with the
1042
- releases that brought each house system: a receipt of the current set that
1043
- names a version before 0.1.1-rc.16, such as 0.1.1-rc.15.1 or 0.1.1-beta, is
1044
- refused.
1308
+ SemVer order with the release that brought each set and each house system: a
1309
+ receipt names the engine that computed its chart, so rc.16's set and the
1310
+ current one are accepted from 0.1.1-rc.16 on, and one that names a version
1311
+ before it, such as 0.1.1-rc.15.1 or 0.1.1-beta, is refused.
1312
+
1313
+ The current set, written from 1.1.0-rc.1 on, is rc.16's with
1314
+ `conventionIds`, and its receipts list, as `receipt.conventionIds`, every id in
1315
+ the syntax of the Zodiacs conventions registry
1316
+ ([zodiacs.org/developers/conventions](https://zodiacs.org/developers/conventions/))
1317
+ that the receipt and its result name, in code-unit order, each once: each
1318
+ conventions and coverage field's key and value (`zodiac:tropical`), the
1319
+ requested and actual house systems (`house:placidus`), why there are no
1320
+ houses, each flag, the reference, the instant's scale (`time-scale:utc`), the
1321
+ ephemeris (`ephemeris:astronomy-engine@2.1.19`), and the result's ΔT model and
1322
+ segment, time basis and source of UT1 − UTC (`time-basis:iers`). The codec
1323
+ refuses ids that differ from those the envelope's fields name. Its envelopes
1324
+ require the feature `convention-ids`, so an earlier engine refuses them as
1325
+ `unsupported_feature` (docs/versioning.md). `@zodiacs/engine/conventions`
1326
+ exports the rule as `natalConventionIds(envelope)`, which also names a 1.0.0
1327
+ envelope's ids, with `conventionId`, `parseConventionId` (the value is
1328
+ everything after the first colon) and `conventionAddress`, an id's address on
1329
+ the registry's page; each throws a `RangeError` for a malformed id.
1045
1330
 
1046
1331
  `natalReplayInput` recovers the recorded request. It does not select or install
1047
1332
  the original engine. Recalculation with another engine, ephemeris dependency or