Skip to content

ADR 0036 first full week numbering deferred

Karthik P edited this page Nov 21, 2026 · 1 revision

ADR-0036: first_full week numbering is 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

Status

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.

Context

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:

  1. Week 0. The days before week 1 form a short week numbered 0.
  2. 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).
  3. No week. locate returns 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.

Decision drivers

  • No silent defaults (design rule 10). Choosing one of the readings for users would be one.
  • Every behaviour is backed by cited evidence.

Considered options

Option 1: Implement first_full with a required field choosing the reading

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.

Option 2: Implement one reading (week 0)

Pros:

  • Smallest implementation.

Cons:

  • Picks a reading without evidence.

Option 3: Defer, unscheduled, until a cited calendar needs it (chosen)

Pros:

  • No guessed semantics. contains_start stays 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.

Decision

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.

Consequences

Good:

  • No release carries a week rule that might not match any real calendar.

Bad:

  • ADR-0023's note that first_full users wait for 0.3 no longer holds; they wait for an unscheduled release.

Links

Clone this wiki locally