Skip to content

spec(0.10.0): a window with no event time has no envelope (§2.2) - #20

Merged
coderoast-dev merged 1 commit into
mainfrom
window-without-event-time
Oct 5, 2026
Merged

coderoast-dev merged 1 commit into
mainfrom
window-without-event-time

Conversation

@coderoast-dev

Copy link
Copy Markdown
Collaborator

What

window.start, window.end and window.duration_seconds become optional as a unit: present together, or absent together when the producer attributes an event time to none of the window's lines (an empty window included). A producer MUST NOT write an instant it did not attribute to a line — a fixed year, an epoch sentinel, or the window's opening time.

Why

Today the three are required, so a producer reading lines that carry no readable time (a yearless stamp it cannot place, a format with no timestamp at all) must invent one. The usual invention is the Unix epoch, which a reader cannot tell from a real 1970-01-01T00:00:00Z, and §12.1 then takes that value into a composed window.start, dragging a composed document's envelope back to 1970.

Consequences, each stated in its section

  • §2.2: the empty-window clause changes from "start equal to end" to "no envelope".
  • §5: previous_window_end is absent when the previous window has no envelope.
  • §12.1: an input with no envelope contributes no bound.
  • §12.4 / §13.1: provenance[].window, current.window, previous.window are {} for a document with none.
  • §8: the all-or-none relation is the schema's (dependentRequired); the empty-window relation stays with the window arm.
  • Schemas, conformance tool and fixtures updated; window-empty-equal-instants is replaced by window-no-envelope and window-half-envelope. --selftest 32/32, the example reads CONFORMANT.

Breaking by the letter; under GOVERNANCE.md §2 (0.x) it is an editor merge and rides the unreleased 0.10.0. For the editor to judge and merge — not merged by the author.

🤖 Generated with Claude Code

…rt, end and duration_seconds are present together or absent together, an empty window carries none, and no producer writes an instant it did not attribute to a line

§5's previous_window_end is absent when the previous window has none; §12.1 takes the envelope of the input that has one; §12.4 and §13.1 window objects are {} for a document with none. Schemas: document window requires only lines_observed and binds the three with dependentRequired; stability no longer requires previous_window_end; provenance and diff windows bind start and end to each other. Conformance tool: instants judged only where they exist, empty-extent reports an envelope on an empty window, dependentRequired findings name the missing companions; window-empty-equal-instants replaced by window-no-envelope and window-half-envelope (selftest 32/32, example CONFORMANT).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderoast-dev
coderoast-dev merged commit f311430 into main Oct 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant