# Ordo verified against Divinum Officium (Monastic Tridentinum 1617),
# 2026-08-25 run — see src/hours/prime.ts for how each part resolves.
#
# Deliberately deviates from that verified source in several places, all by
# explicit decision:
#   - The opening Pater/Ave/Credo (said silently before "Deus in adiutorium")
#     is dropped entirely, to keep the hour shorter.
#   - The Regula reading and the generic Lectio Brevis are both said, in
#     sequence — historically these are alternatives (Regula in choir, OR
#     Lectio Brevis alone outside choir), not both.
#   - A short responsory ("Christe, Fili Dei vivi") is said after the
#     chapter — Monastic Prime doesn't actually have one (it goes straight
#     from chapter to versicle); this is the Roman/secular breviary's,
#     added by choice. See hours/chapter-responsory.ts for its seasonal
#     (and eventually per-feast) variants.
#   - The Athanasian Creed is included on qualifying Sundays even though
#     Monastic Prime doesn't traditionally have it either — see
#     hours/prime.ts's 'creed' case for the inclusion rule (a deliberate
#     simplification of the real, much more tangled rubric).
#   - The Pretiosa (the versicle/response said right after the Martyrology
#     in choir) is dropped — a deliberate cut, not an oversight.
#
# The capitulum and Preces both use hours/resolve-common.ts's
# isSundayOrFeastOffice to pick between a Sunday/feast form and a ferial
# form (see hours/types.ts's 'by-day-kind') — resolveOfficeWinner-aware, so
# a day within a duplex-majus+ saint's own octave (e.g. St. Lawrence's)
# gets the feast form too, not just his own actual day; live-verified
# directly (2026-08-12, day 3 of his octave: still "ex Psalterio secundum
# diem" / 1 Tim 1:17, identical to his own day). By explicit choice, the
# ferial Preces are said on *every* ferial day, not just Advent/Lent/
# vigils/Ember days the way later rubrics restricted them.
#
# Preces additionally set `vigilIsFerial: true` — isSundayOrFeastOffice on
# its own treats any sanctoral winner, Vigils included, as a "feast," but
# by explicit choice a Vigil day gets the ferial Preces instead. The
# capitulum doesn't set this flag, so a Vigil still gets the Sunday/feast
# capitulum, same as before.
#
# Preces deliberately use the *secular* Tridentine form
# (propers/common/prime-preces-dominicales.yml), not Monastic Prime's own
# shorter Dominicales form — chosen because the secular form keeps content
# (the "Et ego ad te, Domine, clamavi..." versicle block; the fuller
# "Miserere nostri, Domine... Fiat misericordia tua..." close) that
# Monastic Prime drops. Under the live-verified secular Tridentine rubric
# this same unified form is actually said on *every* day Preces are said
# (Sunday and ferial alike, since Pius X's reform) — prime-preces-
# feriales.yml's separate (older, pre-reform) ferial-only text is kept
# wired up here anyway, by explicit choice, pending a future fix to gate
# it to the narrower set of days it should actually apply to.
#
# The dead-commemoration psalm (129, De profundis) is dropped by explicit
# choice — a deliberate time-saving cut, not an oversight. The intro/close
# responsory and collect around it are kept.
id: prime
parts:
  - kind: opening-versicle
  - kind: hymn
    textRef: { source: common, id: hymn-iam-lucis-orto-sidere }
  - kind: variable
    resolve: by-weekday
  - kind: creed
  - kind: closing-antiphon
  - kind: by-day-kind
    resolvedKind: chapter
    sundayOrFeastRef: { source: common, id: prime-capitulum-dominica }
    ferialRef: { source: common, id: prime-capitulum-feria }
  - kind: variable
    resolve: by-season
  - kind: versicle
    textRef: { source: common, id: prime-versicle }
  - kind: by-day-kind
    resolvedKind: preces
    omitOnDouble: true
    vigilIsFerial: true
    sundayOrFeastRef: { source: common, id: prime-preces-dominicales }
    ferialRef: { source: common, id: prime-preces-feriales }
  - kind: prayer
    textRef: { source: common, id: prime-collect }
  - kind: martyrology
  - kind: preces
    textRef: { source: common, id: prime-chapter-office }
  - kind: rule-reading
  - kind: lesson
    textRef: { source: common, id: prime-lectio-brevis-per-annum }
    label: Short Reading
  - kind: preces
    textRef: { source: common, id: lesson-close }
  - kind: preces
    textRef: { source: common, id: prime-conclusio }
    label: Conclusion
  - kind: preces
    textRef: { source: common, id: commemoratio-defunctorum-intro }
    label: Commemoration of the Dead
  - kind: preces
    textRef: { source: common, id: commemoratio-defunctorum-close }
