contracts 1.24.0: devotionals two years ahead; Apps fetch 2 weeks

CROSSCODE_DEVOTIONALS_SCHEDULE_MONTHS (24) for how far ahead the Hub
schedules Cross Code's devotionals, CROSSCODE_DEVOTIONALS_FETCH_DAYS (14)
for what GET /api/v2/devotionals answers. The CSV takes 800 rows and
8 MB, so two years fit in one file. CROSSCODE_DEVOTIONALS_AHEAD_MONTHS
kept, deprecated. Docs: Hub 2.26.1, hub-protocol.md §3c, the App plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 23:23:18 +02:00
co-authored by Claude Opus 5.5
parent 986d69d51d
commit 9cf2956aff
9 changed files with 77 additions and 29 deletions
+2 -2
View File
@@ -327,8 +327,8 @@ export type StorageRequestResponse = z.infer<typeof storageRequestResponseSchema
// ---------------------------------------------------------------------------------------------
// Cross Code's devotionals (contracts 1.20.0, Hub 2.26.0, APP-1.0-PLAN §6): an App set to "From
// Cross Code" fetches the next 3 months once a night (and on "Sync now"), and keeps its copy, so a
// Hub outage changes nothing. `GET /api/v2/devotionals?from=YYYY-MM-DD` with
// Cross Code" fetches the next 2 weeks once a night (1.24.0, `CROSSCODE_DEVOTIONALS_FETCH_DAYS`; 3 months
// before) and on "Sync now", and keeps its copy, so a Hub outage of under 2 weeks changes nothing. `GET /api/v2/devotionals?from=YYYY-MM-DD` with
// `Authorization: Bearer <the install's licence token>`; App licences only (`403 NOT_AN_APP`),
// active or in grace (`403 LICENCE_INACTIVE`). The answer is a `devotionalsReplySchema`.
// ---------------------------------------------------------------------------------------------