<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lectio.git/internal/calendar/oracle_ef_test.go, branch v0.46.0</title>
<subtitle>offline Catholic daily readings and liturgical calendar in Go, with CLI, TUI and web clients</subtitle>
<id>https://git.labunix.xyz/lectio.git/atom?h=v0.46.0</id>
<link rel='self' href='https://git.labunix.xyz/lectio.git/atom?h=v0.46.0'/>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/lectio.git/'/>
<updated>2026-08-12T12:51:33Z</updated>
<entry>
<title>oracle_ef_test: three structural coverage gaps in the strengthened test</title>
<updated>2026-08-12T12:51:33Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-08-12T12:51:33Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/lectio.git/commit/?id=96b14d17e5210b93f1c126fe165fd81ec1e839af'/>
<id>urn:sha1:96b14d17e5210b93f1c126fe165fd81ec1e839af</id>
<content type='text'>
Cheap fixes flagged in review, all confirmed against the committed
snapshot before being applied:

1. An unmapped season phrase skipped the RANK AND COLOUR checks too,
   not just the season comparison -- `continue` in the wrong place.
   Confirmed live: neither Holy Thursday ("maundy"/"holy week" do
   not match the title "Holy Thursday" itself) nor any of the six
   September Ember days (no "ember" case exists at all; the Advent
   and Lent Ember days only ever passed by an incidental substring
   match on "advent"/"lent") had any oracle coverage at all --
   reverting the Holy Thursday colour fix left this test green.
   Season skip and rank/colour checks are now independent.

2. Colour membership alone cannot catch a Rose regression: violet is
   a member of every rose/violet pair by construction (Gaudete/
   Laetare), so "got violet, want one of [rose violet]" passed even
   with RG 131's Rose support removed entirely. On the day the pair
   actually names (oracle rank 1, the Sunday itself, not a weekday
   reusing its propers), a colour set containing rose now demands
   rose specifically.

3. `has("sexagesima")` never matched missalemeum's own ligatured
   "Sexagesimæ" -- confirmed in the committed snapshot: the ligatured
   form appears 10 times, the unligatured form only 4, and every
   ligatured instance mapped to season "" (skipped from ALL coverage,
   not merely a season miss, given finding 1 above). Normalised once,
   generally (æ -&gt; ae), not as a single hardcoded word, so any other
   ligature this generator's own data may carry is covered too.

Net effect on TestOracleEF: 730 checked (up from 691), 29 skipped
(down from 39) -- the 10 reclaimed by fix 3. Still green: 0
unallow-listed rank or colour mismatches over the full snapshot.
</content>
</entry>
<entry>
<title>test(ef): un-gate the oracle test now the seven defects are fixed</title>
<updated>2026-08-12T11:06:47Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-08-12T11:06:47Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/lectio.git/commit/?id=4722236b26d3439ed56893cb2863121bb705c7cf'/>
<id>urn:sha1:4722236b26d3439ed56893cb2863121bb705c7cf</id>
<content type='text'>
Remove the LECTIO_EF_ORACLE_STRICT gate added when the strengthened
rank/colour assertions first landed. All seven defects are fixed as
of the previous four commits; TestOracleEF now passes unconditionally
as part of the normal go test ./... run, with its small, cited
allow-list (four entries, none of them one of the seven) doing the
only remaining filtering.
</content>
</entry>
<entry>
<title>test(ef): strengthen the oracle test to assert rank and colour</title>
<updated>2026-08-12T11:03:57Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-08-12T11:03:57Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/lectio.git/commit/?id=ca3403893bfbebb325fe3ab6a98081640574bf2a'/>
<id>urn:sha1:ca3403893bfbebb325fe3ab6a98081640574bf2a</id>
<content type='text'>
internal/calendar/oracle_ef_test.go asserted Season only. lectio's own
EF oracle test comment said as much ("rank/colour are reported
informationally"), which is exactly why several precedence/colour
defects in precedence_ef.go and temporal_ef.go shipped without ever
failing a test: the suite was green while the observed office's own
rank and liturgical colour could be wrong.

Rebuild the oracle from the committed missalemeum snapshot
(sources/snapshot.tar.gz, missalemeum/en/YYYY-MM-DD.json, 2026-01-01
.. 2027-12-31, 730 days) instead of a live 2025-2026 fetch, via a
rewritten scripts/build-oracle-ef.sh -- offline, reproducible, and
correctly separating info.rank/info.colors from info.id (whose
embedded rank is the rank of the propers REUSED that day, not the
day's own rank -- e.g. 2026-01-02 is a class-4 feria carrying id
"sancti:01-01:1:w" because it reuses the Circumcision's propers).
info.colors is an array (14 of 730 days carry two values -- Gaudete/
Laetare "pv", Palm Sunday "rv", Good Friday "bv", Holy Saturday
"vw"), so the new Colour assertion is membership, not equality.

The strengthened assertions immediately expose several real defects
(rank mismatches on every Advent/Lent Sunday, the Ember days, the
late-Advent and Christmas-octave ferias, and more) -- that is the
point, this is the regression net subsequent commits fix against.
Since the repo's convention is go test ./... green at every commit,
TestOracleEF is gated behind LECTIO_EF_ORACLE_STRICT=1 for now rather
than landed red; a later commit removes the gate once the fixes are
in. Season alone stays green throughout (unchanged, always was).

A small, cited allow-list (efAllowList) is included from this commit:
genuine, defensible divergences unrelated to the fixes ahead of it --
RG 91 entry 27's un-built BVM Saturday Office, the pre-existing 6-13
January Christmastide/time-after-Epiphany season-boundary divergence,
missalemeum's own RG 33 gap on a Sunday 9 August, and one collision
(St Joseph vs the Friday of Passion Week, 2027) left explicitly
unresolved even by the sibling project's much deeper primary-source
pass. None of the four is one of the seven defects this branch fixes.
</content>
</entry>
<entry>
<title>test(calendar): EF oracle vs missalemeum 2025-2026 (0 season mismatches)</title>
<updated>2026-07-27T12:12:31Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-07-27T12:12:31Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/lectio.git/commit/?id=e01cfff5ddddd9cefdb19536e31257cdae5821f6'/>
<id>urn:sha1:e01cfff5ddddd9cefdb19536e31257cdae5821f6</id>
<content type='text'>
temporalEF validated against Divinum Officium data. Season-mapping handles the
Whit octave (Paschaltide), the Christmas vigil (Advent), and the resumed
Epiphany Sundays (within Time after Pentecost).
</content>
</entry>
</feed>
