Skip to content

Define an optional configurable day boundary for recurrence/scheduling semantics #48

Description

@LeahVogtmann

Problem

Recurrence and scheduling calculations (recurring task instances, "today"/"scheduled"
filtering, day-rollover behavior) implicitly assume a day boundary at local midnight.
That assumption doesn't hold for anyone on a non-diurnal schedule, e.g. a night-shift
worker whose "day" runs roughly 21:00–08:00. For that user, a "daily" recurring task
rolling over at midnight local time resets mid-shift, while they're still actively
working the day the task was scheduled for.

Current spec behavior

The spec currently states tools "MUST document timestamp precision and timezone
behavior," but stops there, it doesn't define day-boundary semantics for recurrence,
and doesn't provide a mechanism for a collection or user to declare a non-default
day boundary.

Proposed change

Add an optional, spec-level field (collection-level in mdbase.yaml, e.g. something
like day_start_offset or day_boundary) that recurrence/scheduling calculations
use as the effective day boundary instead of assuming midnight-local. Default
behavior (midnight) stays unchanged when the field is absent, so this is additive
and backward-compatible with existing v0.2/v0.3 collections.

Conformant implementations that compute "today," recurrence rollover, or
scheduled-date filtering would read this value instead of hardcoding midnight.

Prior art — this isn't a one-off request

Given mdbase is meant to be the shared interoperability layer across TaskNotes,
mtn, and future implementations, this seems like the right layer to solve it once
rather than have every downstream tool reinvent (or skip) it individually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions