@zodiacs/engine 0.1.1-rc.15 → 1.0.0

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 (54) hide show
  1. package/CHANGELOG.md +891 -0
  2. package/LICENSING.md +192 -12
  3. package/NOTICE +96 -2
  4. package/README.md +296 -66
  5. package/dist/{api-CoB_kqE3.d.ts → api-WbxJ4Wj-.d.ts} +15 -10
  6. package/dist/ayanamsa--YQ46fET.d.ts +134 -0
  7. package/dist/calc.d.ts +390 -0
  8. package/dist/calc.js +1039 -0
  9. package/dist/chunk-47ERTK5X.js +27 -0
  10. package/dist/chunk-7TRLIFFI.js +56 -0
  11. package/dist/chunk-A3U2ZS2W.js +29 -0
  12. package/dist/{chunk-KHBLFXFG.js → chunk-B5LKF437.js} +29 -28
  13. package/dist/{chunk-ONBZ4HK7.js → chunk-BHJXUY67.js} +4 -2
  14. package/dist/{chunk-OYGRVGXD.js → chunk-CHSYDKBL.js} +3 -3
  15. package/dist/{chunk-ZHVI3KWJ.js → chunk-DMGHYCDI.js} +4 -4
  16. package/dist/{chunk-CWI4YUDL.js → chunk-FTX3JDJA.js} +21 -18
  17. package/dist/{chunk-MFF3VKO3.js → chunk-OG4OYTJJ.js} +47 -42
  18. package/dist/{chunk-ZZPITHQS.js → chunk-SRXBTP5H.js} +199 -65
  19. package/dist/{chunk-AECKV73C.js → chunk-TSS2SZWQ.js} +8 -2
  20. package/dist/chunk-WS3TDSP3.js +474 -0
  21. package/dist/chunk-YIITY7Q7.js +483 -0
  22. package/dist/crossings.d.ts +8 -7
  23. package/dist/crossings.js +1 -1
  24. package/dist/deltat.d.ts +28 -3
  25. package/dist/deltat.js +1 -1
  26. package/dist/geo.d.ts +33 -12
  27. package/dist/geo.js +17 -458
  28. package/dist/{internal-math-BbktkHCc.d.ts → houses-CFERsAlK.d.ts} +14 -160
  29. package/dist/houses-extra.d.ts +95 -0
  30. package/dist/houses-extra.js +339 -0
  31. package/dist/index.d.ts +34 -48
  32. package/dist/index.js +31 -23
  33. package/dist/internal-math-DJJ8BYex.d.ts +174 -0
  34. package/dist/internal-math.d.ts +3 -2
  35. package/dist/internal-math.js +2 -2
  36. package/dist/internal.d.ts +1 -1
  37. package/dist/internal.js +5 -5
  38. package/dist/receipt.d.ts +2 -243
  39. package/dist/receipt.js +78 -37
  40. package/dist/reference-span-CILpclrz.d.ts +40 -0
  41. package/dist/rulers-Dla6h_Sm.d.ts +15 -0
  42. package/dist/sky.d.ts +173 -0
  43. package/dist/sky.js +379 -0
  44. package/dist/techniques.d.ts +453 -0
  45. package/dist/techniques.js +823 -0
  46. package/dist/timing.d.ts +113 -17
  47. package/dist/timing.js +98 -64
  48. package/dist/{types-BsWaqwU_.d.ts → types-B-yb_tGL.d.ts} +23 -11
  49. package/dist/vedic.d.ts +42 -124
  50. package/dist/vedic.js +44 -458
  51. package/dist/window.d.ts +180 -0
  52. package/dist/window.js +960 -0
  53. package/dist/zone-history-ghdyO0Sc.d.ts +268 -0
  54. package/package.json +25 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,896 @@
1
1
  # Engine changelog
2
2
 
3
+ ## 1.0.0 — 2026-10-11
4
+
5
+ The first stable release: 1.0.0-rc.2 with the version changed. From this
6
+ release the package follows Semantic Versioning as docs/versioning.md
7
+ describes, and `api/` records the public declarations of the twelve entry
8
+ points. Checks: `docs/evidence/1.0.0-20261011/`.
9
+
10
+ - Before this release npm carried 0.1.1-rc.14 to 0.1.1-rc.16 (`latest`
11
+ 0.1.1-rc.15, `next` 0.1.1-rc.16). 0.1.1-rc.17, 1.0.0-rc.1 and 1.0.0-rc.2
12
+ were never published, so a caller moving from npm reads their entries
13
+ below: 1.0.0-rc.1's *Migration* lists each breaking change and deprecation
14
+ from rc.17 with what a caller does about it. A caller on 0.1.1-rc.15 reads
15
+ 0.1.1-rc.16's entry too, which has its own breaking changes and
16
+ *Migration*, and one on rc.14 rc.15's as well.
17
+ - No API and no value changes from 1.0.0-rc.2. Every declaration file of the
18
+ build is 1.0.0-rc.2's byte for byte, and 1.0.0-rc.1's battery of 6,417
19
+ calls over the twelve entry points prints the same bytes on 1.0.0-rc.2's
20
+ archive and on this build, run on one machine, with the version written
21
+ as a placeholder. The 500 conformance verdicts are 1.0.0-rc.2's: 267 pass,
22
+ 192 fail, 41 unsupported, none in error.
23
+ - Results depend on the JavaScript engine, its version and the processor, by
24
+ amounts far below any bound this package publishes. The tests' exact pins
25
+ are x86-64 V8's, as CI runs, where none fails. On arm64 (an Apple M4, Node
26
+ 20, 22 and 24) 4 of the 3,853 tests fail: one calc round-trip case, which
27
+ two tests replay, has a longitude speed 1.42e-11° a day from the pinned
28
+ one, against the test's 1e-12; and the site-parity checks find 42 of 120
29
+ return charts and 1 of 60 void-of-course windows not equal, every instant
30
+ agreeing (a Moon longitude by 5.69e-14°). Over 1.0.0-rc.1's 6,417 calls the
31
+ largest arm64 difference is 1.31e-8° in a true node's longitude and
32
+ 2.17e-8° a day in its speed; Node 24.17.0 differs from Node 22.22.2 on
33
+ x86-64 by at most 1.14e-13. In JavaScriptCore the calc round trip differs
34
+ by up to 1.26e-9° in a longitude and 3.56e-9° a day in a speed. One
35
+ conformance residual rounds differently in its ninth decimal on arm64; no
36
+ verdict changes. A comparison "to the bit" in these notes is between runs
37
+ on one runtime and processor.
38
+
39
+ ## 1.0.0-rc.2 — unreleased candidate
40
+
41
+ The second candidate for 1.0.0, on 1.0.0-rc.1 (main at `c6b5490`, the merge
42
+ of zodiacs-org/engine#30). It changes no API and no value: it lets a bundler
43
+ leave out the tables a program does not read, and it adds to 1.0.0-rc.1's
44
+ migration the step a TypeScript caller takes. 1.0.0-rc.1 froze the exported
45
+ tables where they are declared, and a bundler keeps such a freeze, and the
46
+ other calls a table is built with, in a program that never reads the table,
47
+ because a call might have effects: on zodiacs.org that put the chart
48
+ bundle's engine chunks over their size budget. It is not to be published on
49
+ npm until the owner approves 1.0.0. Checks:
50
+ `docs/evidence/1.0.0-rc.2-20261006/`.
51
+
52
+ - Each call a table's declaration makes when its module loads is marked
53
+ `/*#__PURE__*/`: the freeze, the freezes of its entries, the `map`,
54
+ `Array.from` or `Object.keys` that builds it, and a `Set` or `Map` built
55
+ from data. Nothing else in a table is what a bundler takes for an effect:
56
+ the receipt's convention sets built with a spread of the set before are
57
+ built in a function called in place, and `RELEASING_UNIT_DAYS`' quotients
58
+ are written as numbers, the same doubles. A program that reads a table
59
+ gets it as before; one that does not no longer carries it. Bundled alone
60
+ with esbuild, Rollup or Rolldown, each of the 66 such tables in the build
61
+ is left out of a program that reads nothing; 1.0.0-rc.1 kept 43 of them
62
+ under esbuild, 11 under Rollup and 42 under Rolldown. In programs that
63
+ each load one entry point and read nothing, 1.0.0-rc.1 kept 43, 20 and 42
64
+ of them, and this candidate keeps three, which modules only `./calc` and
65
+ `./vedic` load read (below).
66
+ - Nothing else a module does when it loads reads a table, but in the
67
+ modules that only `./calc` and `./vedic` load (below). `src/time-scale.ts`
68
+ computed six bounds from `UT1_DATA` and `LEAP_SECOND_LIST` when it loaded,
69
+ which kept both tables in every program that loaded the chunk they share
70
+ with `REFERENCE_SPAN`; the generator now writes the six into
71
+ `src/time-scale-data.ts` as numbers, the same values. The five values
72
+ `./window` computes from tables when it loads are marked. Bundled with
73
+ esbuild and minified, a program that calls only `outsideReferenceSpan` is
74
+ 180 bytes gzipped, where it was 7,475 on 1.0.0-rc.1.
75
+ - `DEFAULT_ASPECT_POLICY = createAspectPolicy()`, which the root builds when
76
+ it loads, is marked too, so a bundler leaves the policy, and the code that
77
+ builds it, out of a program that does not read it. Bundled with esbuild
78
+ and minified, a program that calls only `normalizeLongitude` is 137 bytes
79
+ gzipped, where it was 4,169 on 1.0.0-rc.1 and 3,936 on rc.17, and one
80
+ that calls `natalChart` 35,132, where it was 37,000 and 36,736.
81
+ - `CHALDEAN_FACES` (`./techniques`) was marked, but not the `Array.from`
82
+ that builds it, so bundlers kept it; it is marked now.
83
+ - The tables that only `./calc` and `./vedic` load are as 1.0.0-rc.1 had
84
+ them, and so is what those modules read of the others when they load: a
85
+ program that loads either entry carries `REFERENCE_SPAN`, and one that
86
+ loads `./vedic` `SIGNS` and `SIGN_SLUGS`, whether it reads them or not.
87
+ Their marks, 16 bytes each in the built files, would add at least 288
88
+ bytes to `./calc`'s graph and 432 to `./vedic`'s, which have 239 and 249
89
+ left, and a budget is raised only with the owner's approval.
90
+ `UNMARKED_SOURCE` in `scripts/pure-tables.mjs` names their modules.
91
+ - `scripts/pure-tables.mjs` states the rule and checks it: its tests run it
92
+ on the source, and the export smoke test on the build, module by module.
93
+ It holds to the rule whatever reads a table when its module loads, its
94
+ own module's or one it imports, by name, as a default or through a
95
+ namespace. It refuses a freeze outside a table's declaration; a mark on a
96
+ call whose value is discarded, which a bundler would drop with its
97
+ effect; and a mark on a call it finds may freeze a value that exists
98
+ before it, which a bundler would leave unfrozen, with a freeze of its
99
+ own, in a function it calls or constructs, or in one it runs. It does not
100
+ read every form of code, so it is an aid to reading a mark, not a proof;
101
+ the release's record reads each mark in `src/` by hand. The export smoke
102
+ test also checks that no entry point but `./calc` and `./vedic` reaches
103
+ the modules it leaves out through its static imports. The generated
104
+ `src/time-scale-data.ts` and `src/tzdb/tzdb-2025c.ts` carry the marks
105
+ from their generators.
106
+ - 1.0.0-rc.1's migration, below, gains its step for TypeScript: declare
107
+ what you keep of the constants its *Types only* bullet lists as their
108
+ `string` or `number`, and of a birth window's result as readonly. The
109
+ packed-consumer check, which failed on 1.0.0-rc.1's archive until its own
110
+ TypeScript was so declared, now also exercises 1.0's additions:
111
+ `ZoneHistoryNotLoadedError` by its class, `./calc`'s epochs inside
112
+ `EPHEMERIS_SPAN` and its `epoch-out-of-range` refusal beyond, the frozen
113
+ tables and the lookups that return their entries, and
114
+ `SIDEREAL_TIME_RATE`.
115
+ - Sizes: each entry's graph grows by what it loads of the marks and the
116
+ functions called in place, less 105 bytes where it loads the time scale,
117
+ whose six bounds are now numbers: from none (`./crossings`, `./houses`)
118
+ to 759 bytes (`./techniques`); the root's is 105,980 bytes, 615 more. No
119
+ budget is raised. The tightest are `./crossings`, 9,942 of 10,000;
120
+ `./geo`, 35,439 of 35,500; `./calc`, 145,261 of 145,500; and `./vedic`,
121
+ 127,751 of 128,000.
122
+ - No value moved: 1.0.0-rc.1's battery of 6,417 calls over the twelve entry
123
+ points prints the same bytes on both candidates, every declaration file
124
+ is 1.0.0-rc.1's, and the conformance results are 1.0.0-rc.1's.
125
+
126
+ ## 1.0.0-rc.1 — unreleased candidate
127
+
128
+ The first candidate for 1.0.0, on rc.17 (main at `782b496`, the merge of
129
+ zodiacs-org/engine#26). 1.0 is a promise about the API rather than new
130
+ calculations: from 1.0.0 the package follows Semantic Versioning, and
131
+ `docs/versioning.md` says what that covers, how a number may change, which
132
+ records stay readable and how something public is deprecated (twelve months'
133
+ notice, removal only in a major release). Before the promise was made, three
134
+ reviews read every public declaration of the twelve entry points for what
135
+ should not be frozen as it stood; a fourth read the changes, and two more
136
+ this candidate. It acts on what they found, and each change below says what
137
+ a caller does about it. No calculated value moved: in a comparison of 6,411
138
+ calls across the twelve entry points, each result that differs from rc.17's
139
+ is one of the changes listed here. It is not to be published on npm until
140
+ the owner approves 1.0.0. Checks: `docs/evidence/1.0.0-rc.1-20261006/`.
141
+
142
+ - `api/` holds the public declarations of each of the twelve public entry
143
+ points as the build gives them, without comments, with the declarations
144
+ they refer to that the entry point does not export. `npm run api:check`
145
+ runs in CI after the build and fails, with a diff, when the build declares
146
+ anything else; `npm run api:report` rewrites the files, which are committed
147
+ with the change. The two release tags the policy gives a meaning to,
148
+ `@experimental` and `@deprecated`, are shown above the declarations, the
149
+ members and the exports under another name that carry them.
150
+ - `docs/versioning.md`: the policy. What is public (the twelve entry points,
151
+ their declarations, documented behaviour and records), what a minor release
152
+ may add, the experimental tier, how numbers may change, which records the
153
+ codec reads, deprecation, and the Node.js lines supported.
154
+ - Experimental in 1.0, outside the promise until a minor release takes the tag
155
+ away: `lunarMeanArguments`, `MEAN_LUNAR_INCLINATION`, `meanNodeLongitude`
156
+ and `meanApogee` (root); `houseSpeeds` and `HouseSpeeds` (`./houses`);
157
+ `davisonChart`, `davisonPlace` and their three types (`./techniques`);
158
+ `planetaryReturns`, its three types, `ReturnBody`, `RETURN_BODIES` and
159
+ `RETURN_STEP_DAYS` (`./timing`); `yoginiDasha`, `ashtottariDasha`,
160
+ `YOGINIS`, `ASHTOTTARI_YEARS` and `CycleOptions` (`./vedic`). Each
161
+ declaration's comment, and its guide, say what may change.
162
+ - `./calc` computes a caller's ayanamsa carried by precession from an epoch
163
+ anywhere in `EPHEMERIS_SPAN`, 0001-04-30T12:00 to 3998-09-03T12:00 TT, the
164
+ owner's decision of 2026-10-06 on the site's finding F-80, where rc.17
165
+ refused one from an epoch outside 1800 to 2200. Its bound outside that
166
+ span comes from two new bands, measured against ERFA in 64,974 comparisons
167
+ (`docs/evidence/calc-epochs-2026-10-06/`): 0.0037″ and 1.3 × 10⁻⁷″ a day on
168
+ the engine's precession, which parts from ERFA's the further the epoch is
169
+ from J2000.0, and 1.8 × 10⁻⁵″ and 1.2 × 10⁻⁷″ a day on Newcomb's or IAU
170
+ 1976's, held at J2000.0. An epoch beyond `EPHEMERIS_SPAN` is refused with a
171
+ new reason, `epoch-out-of-range`, whose `epochSpan` is `EPHEMERIS_SPAN`.
172
+ - New names: `SIGN_SLUGS`, `ASPECT_POLICY_SCHEMA`, `CONFIGURED_ASPECTS_SCHEMA`
173
+ and `DELTA_T_IERS_MODEL` (root); `SIDEREAL_TIME_RATE`, and the types
174
+ `Angles` and `HouseSystem` (`./houses`); `ZoneHistoryNotLoadedError`
175
+ (`./geo`); `BIRTH_WINDOW_SCHEMA` (`./window`); `ReturnChart`
176
+ (`./techniques`); `AyanamsaFlag` (`./vedic`); the type `BodyName`
177
+ (`./crossings`); `CalcLocation` (`./calc`); `NatalConventionSet`,
178
+ `NatalCoverage` and the record types `NatalRecordedResult`,
179
+ `NatalBodyRecord`, `NatalAnglesRecord`, `NatalHousesRecord`,
180
+ `NatalAspectRecord`, `NatalDeltaTRecord` and `NatalTimeScaleRecord`
181
+ (`./receipt`).
182
+ - `./receipt`: a natal record has its own types, the same shapes as rc.17's,
183
+ rather than the chart's. `createNatalEnvelope` copies the fields a record
184
+ holds and leaves out any other field of the chart's result, so that a field
185
+ a minor release adds to a chart does not change the records it writes; a
186
+ chart's `input` is still read strictly, because an input the receipt cannot
187
+ describe may have changed the numbers. The reader compares a record's ΔT
188
+ and time scale with this engine's own as a record holds them. A record
189
+ this candidate writes has the fields and the conventions of rc.17's, which
190
+ reads it, and it reads rc.17's.
191
+ - `./geo`: before `prepareLocalTime` has loaded a zone's history, the
192
+ functions that need it, `./geo`'s and `./techniques`' `moonSignCandidates`,
193
+ throw a `ZoneHistoryNotLoadedError` (exported by `./geo`), an `Error` with
194
+ the same message as before, so that a caller can catch that case by its
195
+ class.
196
+ - `./geo`: a Julian date late in 9999 that resolves into the Gregorian year
197
+ 10000 gets its calendar note, `"new-style"`, which rc.17 left out: it
198
+ compared the dates as text, where a five-digit year sorts first.
199
+ - `./sky`: a refused `planetaryHours` day carries `reason: "sample-budget"`,
200
+ as a refused `skyEventsOn` does.
201
+ - `./crossings`: the two functions take a body name type of the caller's own,
202
+ `BodyLongitudeAt<B>`, with `BodyName` the default. The root's
203
+ `findLongitudeCrossings` and `searchLongitudeCrossings` take a window's ends
204
+ as any `DateInput`, as the root's other functions do; the crossings entry
205
+ itself still takes Dates, which keeps it within its size budget.
206
+ - `./calc`: `CALC_AYANAMSAS` is taken from `./vedic`'s `AYANAMSAS`, in its
207
+ order, so that the two cannot drift; `CalcAyanamsa`, `CalcAyanamsaModel` and
208
+ `CalcScale` are `./vedic`'s `AyanamsaName` and `AyanamsaPrecessionModel` and
209
+ the root's `TimeScaleName`.
210
+ - Documentation of what the reviews found unclear: `BirthInput.utc`,
211
+ `ChartInput.utc` and `AyanamsaValue.utc` (the instant on the scale
212
+ `timeScale` names; the names are kept because receipts record them),
213
+ `AngleInput`'s units, the ΔT segment `"fallback"` (written by rc.15's first
214
+ cut only, kept so that its records stay readable), `DeltaTTable` (its shape
215
+ is the model's; a model of another shape would be a new export),
216
+ `EPHEMERIS_SPAN.timeScale` (a label, like `fromTT`), `offsetAt` (the host
217
+ Intl's answer, a cross-check on `zoneOffsetAt`), the two place types
218
+ (`Observer` on WGS84, `CalcPlace` on the IERS 2003 ellipsoid), the identity
219
+ of `./vedic`'s values (a copy through JSON or `structuredClone` is refused,
220
+ although the types carry no brand), the three tables of sign rulers (one
221
+ each in `./techniques`, `./timing` and `./vedic`, now kept equal by a test),
222
+ and which return finder to use.
223
+ - Sizes: the package is 982,086 bytes unpacked in 74 files, 35,737 more
224
+ than rc.17's 946,349 in 70: 1,828 bytes (5.12 per cent of the growth) of
225
+ the root's JavaScript, the reviews' checks and frozen tables; 4,607
226
+ (12.89) of JavaScript that only the opt-in entry points load; 13,515
227
+ (37.82) of declarations, most of it the documentation of the 1.0 API;
228
+ 15,683 (43.88) of documents, this entry above all; and 104 (0.29) of
229
+ manifest. The owner approved raising the cap from 950,000 to 1,000,000 on
230
+ 2026-10-06, which leaves 1.82 per cent of headroom. Every entry is within
231
+ its budget; `./geo`'s was raised from 35,000 to 35,500 with the same
232
+ approval, for `ZoneHistoryNotLoadedError` and `calendarNote`'s checks, and
233
+ its graph is 35,375 bytes, the tightest of all. The next are `./calc`,
234
+ 144,694 of 145,500; `./crossings`, 9,942 of 10,000; and `./vedic`, 127,184
235
+ of 128,000.
236
+
237
+ Breaking changes, each with what to do:
238
+
239
+ - `./calc`: a Julian date's scale is `"utc"`, `"ut1"` or `"tt"`, the root's
240
+ `TimeScaleName`; `"UTC"`, `"UT1"` and `"TT"` throw a RangeError that says
241
+ so. Write the scale in lower case. (`./calc` came in rc.16, which is on npm
242
+ under `next`.)
243
+ - `./calc`: `houses()` takes `houseSystem`, as `chart()` and `natalChart()`
244
+ do, and its receipt records `houseSystem`; `system` throws. Rename the
245
+ field. A result's `requested` and `system` keep their names.
246
+ - `./calc`: a receipt's schema is `zodiacs.calc-receipt.v1`, where rc.16 and
247
+ rc.17 wrote `zodiacs.calc-receipt.draft-v1` with requests in their own
248
+ vocabulary; a stored rc.16 or rc.17 request needs the two renames above
249
+ before it is passed back.
250
+ - `./calc`: a caller's ayanamsa from an epoch outside 1800 to 2200 but inside
251
+ `EPHEMERIS_SPAN`, refused `out-of-range` in rc.17, is computed; beyond it,
252
+ it is refused `epoch-out-of-range`, a new member of `CalcRefusal["reason"]`.
253
+ Handle the new reason; `out-of-range` now means an instant only.
254
+ - Options a function does not name now throw a RangeError instead of being
255
+ ignored, so that a misspelling such as `timescale` is not a silently
256
+ different answer: `ayanamsa`, `userAyanamsa`'s input and its `epoch`,
257
+ `declareSiderealLongitude`'s declaration, the four dasha functions and the
258
+ crossing searches' options. They also refuse what the techniques and timing
259
+ entries already refused: options that are not a plain object (`null`, an
260
+ array, a string, an instance of a class), an inherited key and a getter.
261
+ Check the names, and pass a plain object or nothing. An option set to
262
+ `undefined` still counts as absent, and the options types now say so
263
+ (`| undefined`).
264
+ - `userAyanamsa` refuses a bare-number `epoch`, which it read as epoch
265
+ milliseconds although a Julian date was the likelier meaning. Pass
266
+ `{ julianDateTT }`, a `Date` or an ISO string.
267
+ - `davisonPlace` refuses a place outside latitudes −90 to 90 and longitudes
268
+ −180 to 180 (rc.17 averaged it as given) and a convention it does not name
269
+ (rc.17 used the great-circle midpoint). `calendarNote` refuses a date that
270
+ is not a valid Gregorian YYYY-MM-DD, a calendar other than `"gregorian"`
271
+ and `"julian"`, and a country that is not a nonempty string, which rc.17
272
+ answered for.
273
+ - `deltaT` and `deltaTAt` throw a RangeError for a UT that is not a finite
274
+ number. rc.17 returned NaN for NaN and ±Infinity (`deltaTAt` a record with
275
+ NaN seconds) and read anything else as a number, `null` as 0 and `"1"` as
276
+ 1. Pass a finite number.
277
+ - The exported tables are frozen, and their declarations readonly:
278
+ `ASPECTS` and its entries, `ASPECT_TYPES`, `SIGNS` and its entries,
279
+ `SIGN_NAMES` (now the same array as `SIGN_SLUGS`), `ELEMENTS`,
280
+ `MODALITIES`, `HOUSE_SYSTEMS`, `POLAR_UNDEFINED_HOUSE_SYSTEMS`, `LOTS`,
281
+ `CALC_BODIES`, `CALC_AYANAMSAS` and `CALC_FRAMES`; `signForLongitude`
282
+ returns, and `matchAspect`'s `definition` is, one of the frozen entries.
283
+ Code that changed one throws in strict mode; copy it first. `ASPECT_BODIES`,
284
+ a Set, cannot be frozen: it is now typed `ReadonlySet`, and the engine no
285
+ longer reads it, so changing it changes nothing the engine computes.
286
+ - Types only: `ENGINE_VERSION`, `EPHEMERIS.version`, `TZDB.version` and
287
+ `TZDB.sha256` are typed `string`, `WINDOW_VERIFICATION` `string`, and
288
+ `MAX_WINDOW_MS`, `WindowBudgetError.limit` and the techniques' search
289
+ constants (`SOLAR_RETURN_*`, `LUNAR_RETURN_*`, `MOON_SIGN_MAX_SPAN_DAYS`,
290
+ `VOID_OF_COURSE_MAX_DAYS`) `number`, so that a release can change them; the
291
+ values are rc.17's. `CALC_FRAMES` is `readonly CalcFrame[]`. The birth
292
+ window's result types and the sky's options are readonly. `vimshottariAt`'s
293
+ `levels` is `1 | 2 | 3 | 4 | 5`. `NatalEnvelope["result"]` is
294
+ `NatalRecordedResult`, and `NATAL_RECEIPT_CONVENTION_SETS` is
295
+ `readonly NatalConventionSet[]`, newest first: take a set by its content,
296
+ not by an index other than 0. `NatalReceipt.conventions` and `.coverage`
297
+ are `NatalConventionSet` and `NatalCoverage`, records of strings, where
298
+ rc.17 typed each set's literal values: compare them as strings.
299
+ `NatalZoneTransition.cause` is `./geo`'s `TransitionCause`, the same three
300
+ names. `AspectDefinition` and `SignDefinition` have readonly members, as do
301
+ the inputs `CrossingSearchOptions`, `BirthWindowInput`, `WindowRounding` and
302
+ `PlanetaryReturnOptions`: build such an object whole, or copy it, rather
303
+ than assign to its fields. `houses()` and `chart()` take a `CalcLocation`,
304
+ with no height, where rc.17 declared a `CalcPlace` whose height they
305
+ refused.
306
+
307
+ Deprecated, each kept working at least until twelve months after 1.0.0 and
308
+ removed only in a major release:
309
+
310
+ - `SIGN_NAMES`: it holds slugs (`"aries"`), not names. Use `SIGN_SLUGS`.
311
+ - `ConfiguredAspectMotion`: use `AspectMotion`, the same type.
312
+ - `PLACIDUS_POLAR_FALLBACK`: Koch falls back too. Use `POLAR_FALLBACK`.
313
+ - `DECLINATION_ORB` and `DECLINATION_ORB_LUMINARY`: use
314
+ `DEFAULT_DECLINATION_ORB_POLICY.orb` and `.luminaryOrb`, the same values.
315
+ - `SIDEREAL_RATE` (`./houses`): use `SIDEREAL_TIME_RATE`, the same value.
316
+ - `PlanetaryReturn` (`./techniques`): use `ReturnChart`, the same type;
317
+ `./timing`'s `PlanetaryReturn` is another one.
318
+
319
+ Considered and left as they are: calc's `status: "ok"` (calc's own word for a
320
+ computed request, beside `CalcRefusal`); calc is not experimental;
321
+ `EPHEMERIS_SPAN.timeScale` stays `"TT"`; no brand types in 1.x; the three
322
+ return finders stay, and the guides say which to use.
323
+
324
+ Migration: write calc's time scales in lower case and `houses()`'s
325
+ `houseSystem`, in a stored calc request too before it is passed back; handle
326
+ `epoch-out-of-range`; check option names and pass plain objects; give
327
+ `userAyanamsa` an epoch that is not a bare number; give `davisonPlace` places
328
+ in range, `calendarNote` a valid date, a named calendar and a country, and
329
+ `deltaT` a finite number; copy any exported table before changing it, and do
330
+ not change `ASPECT_BODIES` to change what the engine computes; in
331
+ TypeScript, declare what you keep of a constant the *Types only* bullet lists
332
+ (`ENGINE_VERSION`, `TZDB.version`, `WINDOW_VERIFICATION`, `MAX_WINDOW_MS` and
333
+ the others) as its `string` or `number`, not rc.17's literal, and what you
334
+ keep of a birth window's result as readonly (`readonly WindowChange[]`,
335
+ `readonly WindowUnresolved[]`); and move off the seven deprecated names when
336
+ convenient.
337
+
338
+ ### Corrections
339
+
340
+ - `docs/time.md` called the flags `dst-gap` and `dst-fold` deprecated. They
341
+ are permanent: stored receipts carry them and no other name replaces them.
342
+ - `docs/timing-hellenistic.md`, *Limits*, described failures far from the
343
+ present that cannot happen since rc.14 refuses instants outside
344
+ `EPHEMERIS_SPAN`.
345
+ - Three of rc.17's doc comments named a package where TypeScript reads a
346
+ tag, which cut editors' hovers short; package names in comments are now in
347
+ backticks.
348
+
349
+ ## 0.1.1-rc.17 — unreleased candidate
350
+
351
+ rc.17 adds the sidereal zodiac to the calc entry (`@zodiacs/engine/calc`), on
352
+ rc.16 (main at `23660f5`, the merge of zodiacs-org/engine#25). In rc.16 its
353
+ four functions refused `zodiac: { sidereal }` with `not-in-this-version`,
354
+ though the entry's own map of Swiss Ephemeris's `calc_ut` flags typed the
355
+ option in and `@zodiacs/engine/vedic` computed sidereal longitudes. Tropical
356
+ values are rc.16's: the root entry and eleven others build to rc.16's files
357
+ but for the version's value and the hashed chunk names that follow from it,
358
+ calc's tropical round-trip values are unchanged, and so are the conformance
359
+ suite's 500 verdicts and values. rc.17 is not to be published on npm: under
360
+ the owner's decision of 2026-10-05 the next publication is the 1.0
361
+ candidate. Checks: `docs/evidence/calc-sidereal-2026-10-05/` and
362
+ `docs/evidence/rc17-20261005/`.
363
+
364
+ - `calc()`, `houses()`, `events()` and `chart()` take `zodiac: { sidereal }`
365
+ with one of the nine built-in ayanamsas by name, or a caller's own,
366
+ `{ name?, epoch, value, rate?, model? }` (`CalcUserAyanamsa`):
367
+ `userAyanamsa` in JSON, and the counterpart of `SE_SIDM_USER`. A sidereal
368
+ longitude is the longitude in the ecliptic of date less the ayanamsa, the
369
+ true one in the true ecliptic of date and the mean one in the mean
370
+ ecliptic of date, subtracted as `siderealLongitude()` subtracts it: with
371
+ every other default, `calc()` gives `siderealChart()`'s longitudes to the
372
+ bit. Speeds are the sidereal longitude's, and a cartesian position turns
373
+ with it. `houses()` rebuilds whole-sign cusps from the sidereal
374
+ ascendant's sign, as `siderealChart()` does; `events()` searches sidereal
375
+ longitudes; `chart()` adds `sidereal`, `siderealChart()`'s longitudes as
376
+ plain numbers.
377
+ - Two new refusals: the sidereal zodiac in a frame other than the two
378
+ ecliptics of date (`unsupported-combination`), and a caller's ayanamsa
379
+ carried by precession from an epoch outside 1800 to 2200 (`out-of-range`).
380
+ A malformed caller's ayanamsa throws a RangeError that names its field
381
+ under `zodiac.sidereal`, an epoch whose TT falls outside the range of a
382
+ Date among them.
383
+ - `CalcPosition` and `HousesResult` gain `ayanamsa`, and `ChartResult` gains
384
+ `sidereal`, whose own `ayanamsa` has the same shape; both are null in the
385
+ tropical zodiac. That shape, `CalcAyanamsaValue`, is `{ name, mean,
386
+ nutation, true, subtracted, bound }`, in the result's angular unit:
387
+ `subtracted` says whether the true or the mean ayanamsa was subtracted, and
388
+ `bound` is the mean ayanamsa's. Receipts name `zodiac:sidereal` and
389
+ `ayanamsa:<name>`, or `ayanamsa:user-epoch` or `ayanamsa:user-linear`, and
390
+ record a caller's ayanamsa with every default filled in.
391
+ - In the sidereal zodiac each bound adds the ayanamsa's own: the largest
392
+ difference of the engine's mean ayanamsa, and of its rate, from ERFA's
393
+ construction of the same definition, over 2,333,979 comparisons: every
394
+ star definition in every year from 1800 to 2199, densely around its pass
395
+ by the Sun, and callers' ayanamsas at the ends of what calc accepts. That
396
+ is 4.6 × 10⁻⁷″ and 1.6 × 10⁻⁷″ a day for epoch and linear definitions,
397
+ the rate's the floor of a linear ayanamsa's own rounding; a speed adds a
398
+ few tenths of a microarcsecond a day of rounding of its own, which no
399
+ bound includes (`docs/calc.md`). For a star definition it depends on the
400
+ star's angle from the Sun: 0.0013″ and 0.00039″ a day at 2° or more,
401
+ 0.0048″ and 0.026″ a day from 0.3° to 2°, and 0.058″ and 27″ a day within
402
+ 0.3°, where the star is on or beside the Sun's disc. The fixtures
403
+ `src/fixtures/ayanamsa-rates.json` and
404
+ `src/fixtures/ayanamsa-rates-dense.json`, which keep the years and callers
405
+ that hold each band's largest differences, and `src/calc-sidereal.test.ts`
406
+ hold the engine to them.
407
+ - `@zodiacs/engine/vedic`: `ayanamsa()` now computes through an internal
408
+ `ayanamsaAt`, which also gives a star definition's star's angle from the
409
+ Sun. A linear ayanamsa is now its value at J2000.0, less whole turns, plus
410
+ its rate times TT days since J2000.0. It was counted from its epoch, so
411
+ that from an epoch far from the span its value ran to hundreds of
412
+ thousands of degrees, whose rounding put up to 2 × 10⁻⁴″ a day into its
413
+ rate at 3,600″ a year; and from a Julian date rebuilt from TT days, held
414
+ near 2.4 million only to about 5 × 10⁻¹⁰ day, which put up to 2 × 10⁻⁶″ a
415
+ day there. A linear ayanamsa moves by the rounding this removes: Raman's and
416
+ Sri Yukteswar's by less than 10⁻¹³°, and a caller's by less than 10⁻¹²°
417
+ from an epoch from 1800 to 2200 and by up to 8.6 × 10⁻¹¹° from an epoch at
418
+ the end of a Date's range (`docs/evidence/rc17-20261005/`). Every epoch and
419
+ star definition's value is rc.16's. `docs/vedic.md` corrects its agreement
420
+ with ERFA: none of its first comparison's 164 was within 17° of the Sun,
421
+ and near the Sun the engine and ERFA part by up to 0.058″.
422
+ - The calc round-trip fixture gains twelve cases, among them its first four
423
+ of `chart()`. Of its 25 earlier cases, the sidereal Moon, refused
424
+ `not-in-this-version` in rc.16, is now computed; 15 gain `ayanamsa: null`;
425
+ and every receipt names rc.17. The conformance results are regenerated: 267
426
+ pass, 192 fail and 41 unsupported of 500, every verdict and value as in
427
+ rc.16.
428
+ - Sizes: the calc entry's import graph grows from 113,904 to 139,836 bytes,
429
+ and its budget is raised from 115,000 to 145,500, because it now loads the
430
+ ayanamsas, with their star catalogue and apparent places, and the sidereal
431
+ charts, in a chunk it shares with `./vedic`. `./vedic`'s graph grows by
432
+ 1,508 bytes, to 123,639 of its 128,000. The package is 946,349 bytes
433
+ unpacked in 70 files (rc.16: 923,282 in 69): of the 23,067 bytes it grows
434
+ by, 9,844 are opt-in JavaScript, 4,618 declarations and 8,605 documents.
435
+ That leaves 0.38 per cent of the cap of 950,000, which was not raised; a
436
+ candidate that grows by more than about 3,600 bytes will need it raised, or
437
+ the package trimmed.
438
+
439
+ Breaking changes:
440
+
441
+ - A calc request with `zodiac: { sidereal }`, refused `not-in-this-version`
442
+ in rc.16, is now computed, or refused `unsupported-combination` in a frame
443
+ outside the ecliptics of date. `not-in-this-version` now means only
444
+ gravitational deflection.
445
+ - Every `CalcPosition` and `HousesResult` has a new key, `ayanamsa`, and
446
+ every `ChartResult` one, `sidereal`, null in the tropical zodiac. Code that
447
+ compares a whole rc.16 result needs them; no tropical value changes.
448
+
449
+ Migration: expect the new keys, null in the tropical zodiac. A sidereal
450
+ longitude that came from `siderealLongitude()` or `siderealChart()` in rc.16
451
+ is the same number from calc in rc.17 with calc's other defaults: to the bit,
452
+ but where a linear ayanamsa moved (above), by as much as it moved.
453
+
454
+ ### Corrections
455
+
456
+ - rc.14's, rc.15's and rc.16's entries call each an unreleased candidate. They
457
+ were published on npm afterwards: rc.14 and rc.15 on 2026-09-30, rc.16 on
458
+ 2026-10-01, and on 2026-10-05 `latest` was rc.15 and `next` rc.16
459
+ (`docs/evidence/rc17-20261005/npm-view.txt`).
460
+
461
+ ## 0.1.1-rc.16 — unreleased candidate
462
+
463
+ rc.16 brings six pieces of work onto rc.15 (main at `93ebae9`, the merge of
464
+ zodiacs-org/engine#20), each from its feature branch as that branch's own
465
+ commits, in this order: the uniform calculation API (`@zodiacs/engine/calc`),
466
+ birth-time windows (`@zodiacs/engine/window`), the techniques entry
467
+ (`@zodiacs/engine/techniques`), house positions, cusp speeds and planetary
468
+ returns (`@zodiacs/engine/houses`, and `planetaryReturns` in
469
+ `@zodiacs/engine/timing`), the sky entry (`@zodiacs/engine/sky`) and, last,
470
+ the full IAU 2000B nutation. The branches' copies of earlier local rc.15
471
+ builds were left out. The calc and window entries were then put on rc.15's
472
+ time basis, the budgets and the root's isolation extended to the new entries,
473
+ and calc, window and sky moved onto the engine's nutation. Nothing was pushed
474
+ or published. One build came before this one, on a local branch, and was
475
+ neither pushed nor published; its review found preregistered gates that fail
476
+ described as not applying, figures read off samples too sparse or placed in
477
+ the wrong band of latitude, and sources missing from `LICENSING.md` and
478
+ `NOTICE`, and this candidate corrects them
479
+ (`docs/evidence/rc16-20260930/README.md`, *The re-cut*). Checks:
480
+ `docs/evidence/rc16-20260930/`, and each piece's own evidence, beside which
481
+ its preregistered gates were run again after the nutation, on this candidate's
482
+ code (the `rc16/` directory of each; the evidence README says which build each
483
+ ran on, and that the source commit's computing code is the same).
484
+
485
+ **Held back:** the sky branch's Chinese-calendar entry
486
+ (`@zodiacs/engine/chinese`: the 24 solar terms and the Four Pillars). Its
487
+ apparent Sun is a series fitted to JPL DE430, and no coefficient set derived
488
+ from a JPL ephemeris ships until NAIF answers whether such derived
489
+ coefficients may be redistributed. The entry waits for a Sun source that is
490
+ not JPL-derived. Its source, tests, export, guide, data script, licensing
491
+ notes and evidence claims are all left out; the sky branch's
492
+ preregistration, which set the Chinese gates C1 to C4 beside the sky's, is
493
+ carried unchanged, and rc.16 acts on none of them.
494
+
495
+ Breaking changes:
496
+
497
+ - `NATAL_RECEIPT_CONVENTION_SETS` (`@zodiacs/engine/receipt`) has a new set
498
+ at index 0, which names the nutation, so each earlier set is one index
499
+ later: rc.15's time-basis set is at 1 and the rc.8 set at 2. Code that
500
+ takes a set by its index needs the new one. A receipt of the new set
501
+ carries `nutation: "iau2000b;equation-of-equinoxes-with-two-complementary-terms"`
502
+ and `moonPosition: "astronomy-engine-geo-moon;no-light-time;no-aberration"`.
503
+ The codec accepts it from 0.1.1-rc.16 on, in SemVer order, and now accepts
504
+ rc.15's set under 0.1.1-rc.15 alone, where rc.15 accepted it from rc.15 on
505
+ (`src/receipt-nutation.test.ts`, `src/receipt-versions.test.ts`).
506
+ - Every result that depends on the nutation moves, by the amounts under
507
+ *The nutation* below: longitudes of date, the angles and the cusps, the
508
+ Vertex, the East Point and the lots, right ascensions and declinations, the
509
+ mean nodes and Black Moon Lilith, the ayanamsas' `nutation` and `true`
510
+ values, and every instant found from them (longitude crossings, returns,
511
+ stations, void-of-course windows, window switches, rises and sets). No
512
+ function signature of the root entry or of an rc.15 entry point changes,
513
+ and the root's exports are rc.15's.
514
+
515
+ Migration: take a conventions set by its content (the `nutation` key marks
516
+ the current one), or add one to its index. A test or a stored value that
517
+ pins a longitude, an angle or an instant to rc.15's last digits needs rc.16's
518
+ value. A receipt replays its request, not its engine: to reproduce an rc.15
519
+ result as rc.15 computed it, run the carried rc.15 archive.
520
+
521
+ ### New entry points
522
+
523
+ - `@zodiacs/engine/calc` (`docs/calc.md`). `calc({ body, time, frame,
524
+ center, zodiac, flags })` returns `{ lon, lat, dist, speeds, cartesian,
525
+ bounds, receipt }`; `houses()`, `events()` and `chart()` give the engine's
526
+ houses, longitude crossings and natal charts in the same vocabulary. Eight
527
+ frames (the ecliptic or the equator; true or mean of date, J2000.0 or the
528
+ ICRS), four centers (geocentric, heliocentric, barycentric, topocentric) and
529
+ three corrections (apparent, astrometric, geometric); speeds in every
530
+ coordinate, analytic for geometric positions on fixed axes and central
531
+ differences otherwise; receipts of convention ids; and typed refusals,
532
+ `not-in-this-version` (the sidereal zodiac, which `@zodiacs/engine/vedic`
533
+ gives, and light deflection), `unsupported-combination`, `out-of-range`
534
+ and `sample-budget`. An instant is an ISO string, a `Date` or
535
+ `{ jd, scale: "UTC" | "UT1" | "TT" }`, read on the engine's time basis as
536
+ `positions()` reads it, with an optional pinned ΔT; the receipt records its
537
+ UTC, `jdUt1` and `jdTt`. calc refuses an instant whose UT1 or TT is outside
538
+ 1800 to 2200, where it has no comparison to take a bound from. With every
539
+ default it is the position `positions()` gives, to the bit. Bounds are the
540
+ largest differences from JPL Horizons (DE441) over 32 preregistered
541
+ instants from 1802 to 2188 (sample maxima, not limits), from the comparison
542
+ rerun after the nutation (`docs/evidence/calc-api/rc16/`): 3.00″ median and
543
+ 24.6″ at worst, geocentric and apparent, the ephemeris's own error; the
544
+ barycentric Sun's are derived from the barycentre's error. All twelve
545
+ frame checks against ERFA pass there; on astronomy-engine's five-term
546
+ nutation the four through the nutation had failed by up to 0.20″.
547
+ `houses()` carries the conformance suite's L2 bounds, 0.02″ for the angles
548
+ and 0.08″ for the cusps. `docs/calc.md` maps every Swiss Ephemeris
549
+ `calc_ut` flag.
550
+ - `@zodiacs/engine/window` (the README's *Birth-time windows*).
551
+ `birthWindow(input)` partitions a window of up to 48 hours inside
552
+ `REFERENCE_SPAN` into cells within which each body's sign and house, the
553
+ signs of the ascendant and midheaven, the aspects in orb and any Placidus or
554
+ Koch fallback are constant, with each switch's first millisecond and
555
+ changes, and each cell's share under a uniform prior and, optionally, a
556
+ rounding model; also `WINDOW_RATE_BOUNDS`, `MAX_WINDOW_MS`,
557
+ `WINDOW_VERIFICATION` ("sampled at one-second resolution") and
558
+ `WindowBudgetError`. The search splits at every step of the time basis (the
559
+ ΔT model's seam in 1941, 1972-01-01, each leap second and the end of the
560
+ IERS table) and compares both sides. Where the true node's millisecond
561
+ jitter would make its sign flicker for longer than the budget of two
562
+ million instants allows (24 of its 294 ingresses from 1800 to 2200), the
563
+ flicker is left unresolved, found before the budget is spent: the nodes'
564
+ signs are null there, and so are their houses where those are whole signs,
565
+ the interval is listed in `unresolved`, and the result carries
566
+ `node-unresolved`. The preregistered check, natalChart at every second of
567
+ 1,000 random windows, rerun after the nutation, passes: all 24,188 sampled
568
+ transitions matched, none missed and none extra, and natalChart confirmed
569
+ every switch at its millisecond (1,487,520 checks)
570
+ (`docs/evidence/birth-window/rc16/`).
571
+ - `@zodiacs/engine/techniques` (`docs/techniques.md`), six techniques the
572
+ Zodiacs.org site computed outside the package: solar and lunar returns
573
+ (`solarReturnInstant`, `mostRecentSolarReturnInstant`, `lunarReturnInstant`,
574
+ `solarReturn`, `lunarReturn`); composite and Davison charts
575
+ (`compositeMidpoints`, `compositeAspects`, `compositeChart`, `davisonChart`,
576
+ `davisonPlace`); the void-of-course Moon (`moonIngresses`, `moonAspects`,
577
+ `voidOfCourseWindows`, `voidOfCourseAt`) under one named convention,
578
+ `VOID_OF_COURSE_CONVENTION`; grand trines, T-squares, grand crosses and
579
+ kites (`aspectPatterns`, `chartAspectPatterns`, `patternContainment`);
580
+ essential dignities with cited tables and mutual reception
581
+ (`dignityRulersAt`, `essentialDignities`, `mutualReceptions`, beside the
582
+ site's `dignityFor` and `dignitiesFor`); and the Moon signs possible over a
583
+ date (`moonSignCandidates`, `moonSignsBetween`). Against the site's code on
584
+ a seeded synthetic corpus, 6,795 of 6,796 cases agree exactly; the
585
+ preregistered parity gate, G1, allowed none to differ, so it is recorded as
586
+ failed. The one that differs is 2011-12-30 in Pacific/Apia, a date the zone
587
+ skipped, which the site answers and the package refuses. The rerun after the
588
+ nutation generated the site's outputs on rc.16's build, where the
589
+ preregistration named the carried rc.15 archive: a deviation, made so that a
590
+ difference comes from the port and not from the nutation. By design, returns
591
+ are not clipped to 1800–2200 but flagged, and dates before 1970 are read on
592
+ the shipped tzdata. The solar return is within 42.27 s of USNO's 20
593
+ published equinoxes and solstices of 1850 to 2022 (gate 120 s), and within
594
+ 32.05 s and 6.81 s of the Horizons Sun and Moon of the conformance suite's
595
+ L1 vectors (60 s and 15 s). Two more of its gates fail on rc.16. G5, sizes:
596
+ the root's graph was to stay at rc.15's 95,273 bytes and is 103,537; the
597
+ package was to stay within the 700,000-byte cap, not raised, and is 923,282
598
+ bytes; `./techniques` was to be at most 150,000 bytes and is 152,472. G6: no
599
+ existing file under `src/` was to change and every existing test was to pass
600
+ unchanged; it failed as run on its branch, and rc.16 changes 20 of rc.15's
601
+ files under `src/`, 13 of them tests
602
+ (`docs/evidence/techniques-2026-09-29/rc16/`).
603
+ - `@zodiacs/engine/houses` (`docs/houses.md`), one file that imports no other
604
+ module, no ephemeris and nothing of the root entry:
605
+ `housePosition(system, input, { lon, lat })`, a body's house position in
606
+ each of the thirteen systems as Swiss Ephemeris's `swe_house_pos` defines it
607
+ (`null` for Koch or Topocentric where the system has none);
608
+ `coAscendants(input)`, the equatorial ascendant, Koch's and Munkasey's
609
+ co-ascendants and Munkasey's polar ascendant; and
610
+ `houseSpeeds(system, input)` with `SIDEREAL_RATE`, the speeds of the cusps
611
+ and angles, derived analytically. Given the same inputs, house positions are
612
+ within 0.01″ of `swe_house_pos` for eleven systems and not for Porphyry (11
613
+ of 20,000 cases) or Topocentric, where Swiss's positions leave up to 0.445″
614
+ in their defining equation; the co-ascendants are within 0.00000001″ of
615
+ Swiss's `ascmc[4]` to `ascmc[7]`; the speeds are within 0.00035° a day of a
616
+ central difference of the engine's own cusps, and differ from Swiss's for
617
+ Koch, Placidus, Porphyry, whole sign and, in 5 cases, Alcabitius, where
618
+ Swiss's are not the derivatives of its cusps
619
+ (`docs/evidence/houses-extra-2026-09-29/`, Swiss Ephemeris an instrument
620
+ only). These take their inputs as given and do not move with the nutation.
621
+ Gate B of its preregistration fails on rc.16: the root's graph was to stay
622
+ at rc.15's 95,273 bytes, its files byte-identical, and is 103,537 bytes;
623
+ `./timing` was to stay within its 120,000-byte budget and is 123,039; the
624
+ package was to stay within the 700,000-byte cap and is 923,282; and existing
625
+ tests and released functions' results change with the nutation. Its part for
626
+ `./houses`, a budget with its reason, holds: 13,606 bytes of 15,000
627
+ (`docs/evidence/houses-extra-2026-09-29/rc16/`).
628
+ - `planetaryReturns(natal, body, from, to)`, with `RETURN_BODIES` and
629
+ `RETURN_STEP_DAYS`, in `@zodiacs/engine/timing`: every instant in a window
630
+ at which the Sun, the Moon or Mercury to Pluto stands on its natal
631
+ longitude, retrograde returns included, each result carrying its verdict
632
+ (`complete`, or `refused` over a sample budget). Against JPL Horizons, for
633
+ invented charts that include a direct, retrograde and direct return of each
634
+ of Mercury to Pluto, every return is found with its direction and within
635
+ the preregistered τ, and the solar returns of an invented native are within
636
+ 49.7 s of USNO's March equinoxes of 2001 to 2004
637
+ (`docs/evidence/houses-extra-2026-09-29/rc16/`).
638
+ - `@zodiacs/engine/sky` (`docs/sky.md`): `skyEvents` and `skyEventsOn` give
639
+ the rise, set and upper and lower transit of the Sun, the Moon and the
640
+ planets for an observer on the WGS84 ellipsoid, with 34′ of refraction
641
+ (USNO), the topocentric semi-diameter (upper limb by default) and parallax,
642
+ `limb` and `refraction` options and polar flags; `planetaryHours` and
643
+ `planetaryHourAt` give the planetary hours in the Chaldean order, and say
644
+ why a day has none. Rerun after the nutation against the preregistered
645
+ gates: against skyfield with JPL DE440s (226,717 events, 1900–2100) and
646
+ Swiss `rise_trans` (statistics only), every event agrees within 5 s but 192
647
+ rises and sets of Uranus at 65° in 1950 (up to 11.61 s, from
648
+ astronomy-engine's Uranus), so gates S1 and S2 fail, as they did on the
649
+ branch; 465 of 467 USNO times are within 30 s of the published minute, and
650
+ S3 fails on the other two (30.06 s and 30.15 s) and on three events only one
651
+ side lists; S4, the planetary hours' worked examples and their consistency
652
+ with the rise and set function, passes. Its package gate fails on rc.16: the
653
+ root's graph was not to grow from rc.15's 95,273 bytes, and is 103,537
654
+ (`docs/evidence/sky-chinese-2026-09-29/rc16/`).
655
+
656
+ The root imports none of these, and `scripts/root-isolation.mjs` checks it
657
+ from the build's own module list (`OPT_IN_SOURCE` names each entry's
658
+ modules, with `src/equator.ts`, which calc and sky share, and
659
+ `src/first-millisecond.ts`, the sky entry's).
660
+
661
+ ### The nutation
662
+
663
+ The nutation is now the full IAU 2000B series (McCarthy & Luzum 2003; IERS
664
+ Conventions 2003, chapter 5). astronomy-engine 2.1.19, which is still the
665
+ ephemeris, keeps 5 of that model's 77 luni-solar terms; the engine now
666
+ evaluates all 77 and the two fixed planetary offsets itself
667
+ (`src/nutation.ts`, transcribed from `iau2000b` in NOVAS C 3.1, a work of the
668
+ US Government), adds the two largest IAU 2000 complementary terms to the
669
+ equation of the equinoxes (IERS Conventions 2010, table 5.2e), and turns
670
+ astronomy-engine's vectors on the J2000 mean equator to the ecliptic and
671
+ equator of date with astronomy-engine's own IAU 2006 precession, reproduced
672
+ line for line (`src/frame.ts`, `src/equator.ts`). No code of the package
673
+ calls astronomy-engine's nutation, its rotations to the ecliptic or equator
674
+ of date, its sidereal time or its observer functions any more; the calc
675
+ entry's topocentric observer is astronomy-engine's `terra`, reproduced term
676
+ for term, on the engine's sidereal time and frames. `LICENSING.md` and
677
+ `NOTICE` record the sources. This answers finding production-positions-7 of
678
+ the engine audit of 2026-09-22 (Zodiacs site repository,
679
+ `docs/platform/evidence/engine-audit-2026-09-22/LEDGER.md`). Evidence:
680
+ `docs/evidence/nutation-2026-09-29/`; the figures for the new entries are
681
+ from `docs/evidence/rc16-20260930/results/entries-plumbing.json` and each
682
+ entry's rerun.
683
+
684
+ The model: Δψ and Δε equal ERFA's `nut00b` within 1e-10″ at 101 instants
685
+ from 1800 to 2200 and within 6e-11″ every 0.1 day over that span
686
+ (`docs/evidence/calc-api/rc16/diagnostics.json`, D4). Sampled every 0.1 day
687
+ of TT from 1800 to 2200, the equation of the equinoxes is within 3.50e-5″ of
688
+ ERFA's `ee00` on IAU 2000B (the largest in 2146; 1.5e-5″ at the 101
689
+ instants), and the sidereal time within 3.50e-5″ of gmst06 plus that `ee00`
690
+ (`docs/evidence/rc16-20260930/results/nutation-grid.json`). The rotation to
691
+ the ecliptic of date is within 7.1e-7″ of ERFA's with `bp06` at the 101
692
+ instants (`docs/evidence/nutation-2026-09-29/results/module-against-erfa.json`).
693
+ IAU 2000B itself differs from IAU 2006/2000A (ERFA's `nut06a`) by up to
694
+ 0.00394″ in Δψ on the same 0.1-day grid (in 2192), and so puts a longitude
695
+ of date up to that far from it. The engine's nutation is computed for each
696
+ instant, where astronomy-engine reused the last one for any time within
697
+ 1e-6 day, so no result depends on what was computed before it.
698
+
699
+ What it moved, from rc.15 (and, in the new entries, from their builds on
700
+ rc.15 before the nutation):
701
+
702
+ - The root entry. Every longitude of date moves by the change in Δψ, the same
703
+ for every body, node, Lilith and lot: up to 0.2701″ sampled every 10 minutes
704
+ from 1800 to 2200, and up to 0.2635″ over 9,697 synthetic charts from 1850
705
+ to 2150; latitudes by less than 1e-10″; speeds by up to 0.0726″ a day in the
706
+ plumbing check's 520 charts (below). The sidereal time and the true
707
+ obliquity move by up to 0.2452″ and 0.08654″ (every 10 minutes), so over the
708
+ 9,697 charts, at places up to 60.17° N, the ascendant and Placidus cusps
709
+ moved by up to 0.8003″ and the midheaven by up to 0.2576″, and no chart
710
+ changed house system. Toward the polar circle they move more: in those 520
711
+ charts, Koch's cusps by up to 3.883″ at 65.75°, and at 66° to 80° the angles
712
+ by up to 1.622″ and the lots by up to 3.345″, both at 67.21°, where Koch's
713
+ cusps moved by at most 0.1023″ (46 of the 48 charts there fall back to whole
714
+ signs) (`docs/evidence/rc16-20260930/results/plumbing-by-latitude.json`).
715
+ Saturn-return crossings move by up to 257 s near stations (median 20 s).
716
+ Against ERFA's IAU 2006/2000A chain on the same vectors, at 4,001 instants
717
+ from 1800 to 2200, a longitude was up to 0.2520″ off and is up to 0.003691″
718
+ off; the ascendant and midheaven were up to 0.8235″ and 0.2457″ off and are
719
+ up to 0.006284″ and 0.003358″ off, at latitudes within 60°. Against Swiss
720
+ Ephemeris 2.10.03 (statistics only), the house ladder of the Zodiacs site's
721
+ rc.9 record is within 0.035″ in every system from 1850 to 2049, where rc.15
722
+ was up to 3.727″ (Koch); the mean node and Lilith within 0.4503″ and 0.4887″
723
+ (0.6091″ and 0.6785″). Each body's largest declination error against DE440s
724
+ changes by less than 0.04″. The ayanamsas' `mean` values do not change;
725
+ `nutation` and `true` move by the change in Δψ, which cancels from sidereal
726
+ longitudes. (`docs/evidence/nutation-2026-09-29/results/`; on this tree the
727
+ same run gives the same figures,
728
+ `docs/evidence/rc16-20260930/results/root-plumbing.json`.)
729
+ - `@zodiacs/engine/calc`: in the true-of-date frames by the root's amounts (up
730
+ to 0.114″ in longitude and 0.0554″ a day in speed at the plumbing check's 24
731
+ instants); in the mean-of-date, J2000.0 and ICRS frames not at all, except a
732
+ topocentric position, whose observer now turns with the engine's sidereal
733
+ time and nutation: by up to 0.00092″. `houses()` moves with the root's
734
+ angles (up to 0.322″ in the angles and 0.874″ in Koch's cusps at 63.4° S in
735
+ that check); `events()` by the longitudes' change over the body's speed, up
736
+ to 4.9 s there for the true node. Of calc's 107 rows of bounds, 104 are
737
+ measured against Horizons and 3, the barycentric Sun's, derived from the
738
+ barycentre's error. 71 of the measured rows fall and none rises, among them
739
+ the outer planets' rate bounds, which the five-term nutation's rate error
740
+ dominated (geocentric apparent Neptune 0.051 to 0.013″ a day), and the mean
741
+ nodes' and Lilith's position bounds, 0.2 to 0.0023″; the derived rows do not
742
+ change.
743
+ - `@zodiacs/engine/window`: switch instants by up to 17 ms in the plumbing
744
+ check's eight windows, whose switches otherwise match one for one, but for
745
+ two one-millisecond flickers of the true node's house at a cusp that
746
+ appear in two windows, which natalChart confirms. The node's flicker at an
747
+ ingress changes with it: at the ingresses of July 2026, March 2028 and
748
+ September 2029, 1,349, 299 and 179 sign changes where the build before the
749
+ nutation gave 1,603, 311 and 147
750
+ (`docs/evidence/birth-window/rc16/node-flicker.json`). The engine's
751
+ obliquity now changes by up to 2.60e-5° a day (2.073e-5° on the five-term
752
+ series); the window's bound, 5e-5° a day, is 1.9 times that
753
+ (`docs/evidence/birth-window/rc16/window-rates.json`). Scanned again on
754
+ this build, the true node's millisecond jitter reaches 4.394e-5° (in 1835),
755
+ so its bound is at least 3.01 times every value found (the branch's scan,
756
+ before the time basis and the nutation, gave 4.832e-5° in 2187 and 2.97),
757
+ and the same 24 of 294 ingresses are over the budget
758
+ (`docs/evidence/birth-window/rc16/`).
759
+ - `@zodiacs/engine/techniques`: over the site-parity corpus, solar returns by
760
+ up to 7.2 s, lunar returns by up to 0.59 s and void-of-course windows by up
761
+ to 0.372 s, and no window, sign or aspect changes; over the plumbing check's
762
+ six invented natives, composite positions by up to 0.1081″ and a Davison
763
+ chart's bodies by up to 0.129″. Against USNO the solar returns moved from
764
+ 45.35 s at worst to 42.27 s, against Horizons from 33.23 s and 6.87 s to
765
+ 32.05 s and 6.81 s.
766
+ - `@zodiacs/engine/houses`: nothing, given the same input; an input taken
767
+ from the engine moves with its sidereal time and obliquity.
768
+ - `planetaryReturns`: by the longitudes' change over the body's speed, up to
769
+ 79.2 s for a slow body near a station in the plumbing check; against
770
+ Horizons the largest differences, as motion, went from 0.840″ to 0.804″
771
+ (Sun) and 0.815″ to 0.705″ (Moon), and the planets' changed by up to
772
+ 0.239″.
773
+ - `@zodiacs/engine/sky`: event instants by up to 25 ms (the Moon), the
774
+ planetary hours' boundaries by up to 8 ms, altitudes by up to 0.061″;
775
+ azimuths by up to 2.45″, where a transit passes near the zenith. Against
776
+ skyfield and Swiss each body's largest difference moved by at most 0.018 s,
777
+ and the same 192 events fail.
778
+
779
+ The plumbing was checked first: the tree with the series cut to
780
+ astronomy-engine's five terms and no complementary terms gives rc.15's
781
+ results (the root, 520 charts, largest difference 8.0e-13°,
782
+ `docs/evidence/nutation-2026-09-29/results/plumbing.json`, and again on this
783
+ tree, `docs/evidence/rc16-20260930/results/root-plumbing.json`) and the new
784
+ entries' results before the nutation (178,416 values: longitudes within
785
+ 2.3e-13° and every angle within 6.9e-11°, speeds within 1.2e-10° a day,
786
+ every instant to the millisecond, every structure the same;
787
+ `docs/evidence/rc16-20260930/results/entries-plumbing.json`).
788
+
789
+ Cost: a natal chart takes 3 per cent longer, one longitude 6 to 20 per cent
790
+ and a Saturn-return scan 19 per cent (the nutation's
791
+ `results/performance.json`). The series is evaluated from products of its
792
+ arguments' multiples, ten calls to `Math.sin` and `Math.cos` where 154 would
793
+ do it directly, within 1e-14″ of NOVAS's own loop.
794
+
795
+ Conformance: one verdict moves, `L1-POS-0041`, the Sun on 1908-05-30, which
796
+ was 1.076″ off in longitude and passes: 267 pass, 192 fail, 41 unsupported
797
+ of 500. The L2 residuals shrink: the ascendant from 0.182″ to 0.0190″ at
798
+ most, the midheaven from 0.178″ to 0.00815″, the Vertex from 0.285″ to
799
+ 0.0134″, the East Point from 0.103″ to 0.00680″ and the cusps from 0.489″
800
+ to 0.0712″ (`conformance/RESULTS.md`, regenerated on this build;
801
+ `docs/evidence/rc16-20260930/conformance-changes.json`).
802
+
803
+ Tests whose expectations changed, each saying where its expectation now
804
+ comes from: the Mercury station of February 2026 moves 5.94 s, to
805
+ 06:47:13.822Z, 0.047 s from where ERFA's frame puts it; the polar-fallback
806
+ receipt's ascendant follows the engine, 0.0003″ from ERFA's; the Placidus
807
+ latitude of the polar-limit tests (the root's and the window's), which was
808
+ 1.07e-5″ below the limit on the five-term obliquity, moves by the
809
+ obliquity's change; the 1973 rc.14 replay separates the time basis from the
810
+ nutation; the calc round-trip fixture and the techniques' site-parity
811
+ fixtures were generated again on this build; and tests that took
812
+ astronomy-engine's nutation as the engine's take the engine's own.
813
+
814
+ ### Receipts
815
+
816
+ The current conventions set names the nutation (*Breaking changes*). rc.15's
817
+ receipts, as the carried rc.15 archive serializes them
818
+ (`src/fixtures/receipt-rc15.json`), still parse under rc.15's set and replay
819
+ as the requests they record, on the same time basis; recomputed today every
820
+ longitude moves by the change in Δψ (0.2701″ at most) and the angles and cusps
821
+ by the change in the sidereal time and the obliquity. Receipts that rc.13 and
822
+ rc.14 wrote still parse under the rc.8 set; replayed on UT1 with the recorded
823
+ ΔT pinned, 16,218 rc.14 receipts from 1972 to 2027-10-02 differ from their
824
+ recorded results by up to 0.2554″ in the bodies and 3.022″ in the angles and
825
+ cusps, where rc.15 reproduced the angles and cusps exactly
826
+ (`docs/evidence/nutation-2026-09-29/results/receipt-replay.json`,
827
+ `docs/time.md`).
828
+
829
+ ### Sizes and budgets
830
+
831
+ Import graphs (`scripts/verify-package-contents.mjs`'s measure: the
832
+ JavaScript a plain import loads), in bytes, with the sum of the graph's files
833
+ each gzipped at level 9 in parentheses
834
+ (`docs/evidence/rc16-20260930/sizes.json`):
835
+
836
+ | Entry | rc.15 as carried | rc.16 | Budget |
837
+ | --- | ---: | ---: | ---: |
838
+ | `.` | 97,704 (32,408) | 103,537 (34,828) | 108,500 (was 100,000) |
839
+ | `./calc` | | 113,904 (37,490) | 115,000 |
840
+ | `./crossings` | 9,410 (2,768) | 9,410 (2,768) | 10,000 |
841
+ | `./deltat` | 4,968 (1,944) | 4,968 (1,944) | 5,500 |
842
+ | `./geo` | 34,135 (12,459) | 34,659 (12,953) | 35,000 |
843
+ | `./houses` | | 13,606 (3,503) | 15,000 |
844
+ | `./internal` | 58,997 (20,156) | 64,830 (22,572) | 68,000 (was 60,000) |
845
+ | `./internal/math` | 18,165 (4,928) | 18,165 (4,928) | 20,000 |
846
+ | `./receipt` | 66,200 (22,290) | 66,580 (22,374) | 70,000 |
847
+ | `./sky` | | 92,109 (31,262) | 97,000 (92,000 on its branch) |
848
+ | `./techniques` | | 152,472 (50,308) | 160,000 (150,000 on its branch) |
849
+ | `./timing` | 114,916 (36,305) | 123,039 (39,477) | 129,000 (was 120,000) |
850
+ | `./vedic` | 116,779 (38,359) | 122,131 (40,647) | 128,000 (was 120,000) |
851
+ | `./window` | | 102,590 (34,123) | 105,000 |
852
+
853
+ The root grows by 5,833 bytes, 2,420 gzipped: the nutation, 5,794
854
+ (`src/nutation.ts` 4,146, `src/frame.ts` 2,110, less 508 in
855
+ `src/ephemeris.ts`, and 46 of imports, exports and their use in
856
+ `src/declination.ts` and `src/points.ts`), and 39 bytes of export names that
857
+ the calc, window and sky entries import from the root's shared chunk
858
+ (`gastHours`, `tilt`, `eclipticOfDate`).
859
+
860
+ Every budget raised here was raised after these sizes were measured, to fit
861
+ them; each has its reason in the budget file. For the nutation, which every
862
+ graph that loads the ephemeris carries: the root from 100,000 to 108,500,
863
+ `./internal` from 60,000 to 68,000, `./timing` from 120,000 to 129,000,
864
+ `./vedic` from 120,000 to 128,000 and `./techniques` from its branch's
865
+ 150,000 to 160,000. For the nutation and the frames of date it now takes
866
+ from `src/equator.ts`: `./sky` from its branch's 92,000 to 97,000. The
867
+ techniques and houses preregistrations had fixed `./techniques` at 150,000
868
+ and `./timing` at 120,000, and the sky's did not let the root grow; those
869
+ gates are recorded as failed (*New entry points*), and the raised budgets
870
+ do not make them pass. New budgets: `./calc` 115,000, `./window` 105,000 and
871
+ `./houses` 15,000; calc and window, set before the nutation, keep theirs,
872
+ with 0.96 and 2.34 per cent of headroom left. `./geo` grows by 524 bytes,
873
+ the imports and exports of the local-time chunk it now shares with
874
+ `./techniques`, and `./receipt` by 380, the conventions set that names the
875
+ nutation; both stay within their budgets.
876
+
877
+ The cap on the whole package was raised from 700,000 to 950,000 bytes after
878
+ the five new entry points were measured (in `5e0d00c`, before the nutation,
879
+ when they took the package to 879,777 bytes), for them and their
880
+ documentation; the techniques and houses preregistrations had required the
881
+ package to stay within 700,000 bytes without raising the cap. The package is
882
+ 923,282 bytes unpacked in 69 files (rc.15: 668,343 in 54). A stand-in for the
883
+ Zodiacs site's engine chunk grows by 1,080 bytes gzipped with the nutation
884
+ (the nutation's `results/sizes.json`); no site build measured it.
885
+
886
+ ### Corrections
887
+
888
+ - rc.15's entry says that Placidus's iteration settles to 1e-9° within 64
889
+ steps "except within about 4e-9° of the polar limit". The window branch's
890
+ review measured the band at about 1e-8°; `src/houses.ts` says so, and the
891
+ window search compares the house system and the houses at every
892
+ millisecond within 1e-8° of the limit.
893
+
3
894
  ## 0.1.1-rc.15 — unreleased candidate
4
895
 
5
896
  rc.15 brings four pieces of work onto rc.14: the time basis and local time