Repository navigation
ADR 0036 first full week numbering deferred
week.numbering: "first_full" stays reserved and is not scheduled for any release, because no cited calendar uses it and the days before week 1 have three possible meanings that no source chooses between.
Last reviewed: 21 Nov 2026
Accepted on 21 Nov 2026 by the maintainer, proposed in issue #83. Issue #88, which planned it, is closed as not planned. The discussion is on issue #83, because the Design decisions category of Discussions does not exist yet.
ADR-0023 makes week.numbering required, implements contains_start (week 1 is the week that holds the fiscal year's first day), and reserves first_full (week 1 is the first week that starts on or after the fiscal year's first day). It does not say what the days before that week are when the year does not start on week.starts_on. That can happen in a fixed_date year, and in a transition period.
There are three readings:
- Week 0. The days before week 1 form a short week numbered 0.
- The previous year's last week. The days belong to a week that started in the previous fiscal year. A week would then cross a fiscal-year boundary, so it would not nest in its year (the nesting property in AGENTS.md, correctness rule 3).
-
No week.
locatereturns no week for those days;children(year, week)skips them.
On 21 Nov 2026 a search for a filing, standard or published calendar using full-week numbering found none that could be confirmed. One vendor's documentation was reported by a search engine to put such days in "Week 0", but the page did not load, so it is unverified.
- No silent defaults (design rule 10). Choosing one of the readings for users would be one.
- Every behaviour is backed by cited evidence.
Pros:
- Every reading is available, with no default.
Cons:
- Three behaviours to specify and test with no calendar to test them against, and reading 2 breaks the nesting property.
Pros:
- Smallest implementation.
Cons:
- Picks a reading without evidence.
Pros:
- No guessed semantics.
contains_startstays the only rule, and the name stays reserved.
Cons:
- Users who number weeks from the first full week cannot use fiscalclock's week level for that.
Option 3. week.numbering: "first_full" stays reserved and rejected with UNSUPPORTED_FEATURE, with a hint saying it is not scheduled. A new ADR designs it, with the reading chosen by the definition, when a cited calendar needs it.
Good:
- No release carries a week rule that might not match any real calendar.
Bad:
-
ADR-0023's note that
first_fullusers wait for 0.3 no longer holds; they wait for an unscheduled release.
fiscalclock is licensed under MIT OR Apache-2.0 (MIT, Apache-2.0). Last reviewed: 31 Oct 2026. Found an error on this page? Report it with the documentation form.