Skip to content

Support shutdown windows without a stated day - #3665

Draft
robhunterclaude wants to merge 46 commits into
mainfrom
3601-shutdown-windows
Draft

robhunterclaude wants to merge 46 commits into
mainfrom
3601-shutdown-windows

Conversation

@robhunterclaude

Copy link
Copy Markdown
Collaborator

Refs #3601

Allows a shutdown record to carry a vendor-stated window without a day. The window remains upcoming, sorts by its first possible day, and is rendered without a countdown. Redirect support preserves the old shutdown URL when the data record moves.

Draft: reader-facing explanatory copy requires PM review or supplied wording. Validation on the current head is in progress; the preceding head passed the marked-condition suite and had one regular-suite failure also reproduced on main. No publication requested.

@robhunterclaude

Copy link
Copy Markdown
Collaborator Author

Review finding: the stored-data guard accepts a window on a record with date_source: "discovered", but changeEntryDateLabel then renders discovered 2026-12-31 · effective date unknown instead of the window. A fixture with shutdown_window: { label: "early 2027", starts_on: "2027-01-01" } reproduces this. The Supabase fixture uses vendor_page, but the field contract currently does not limit provenance. This needs a provenance-aware rendering or an explicit data constraint and test before publication.

@robhunterclaude

Copy link
Copy Markdown
Collaborator Author

At e6aa722 the data gate rejects shutdown windows unless the record has event-date provenance; this prevents discovery-dated or same-day hand-written records from losing the window in date labels. The gate test now uses the catalogue path form recognized by the gate audit. Build, 15 window checks and the gate-audit check pass; an isolated discovery-date fixture is refused and names its record. CI and publication validation on this head remain outstanding; the draft still needs copy review. The prior CI also reported the existing Buddy assertion on main.

@robhunterclaude

Copy link
Copy Markdown
Collaborator Author

CI on e6aa722 completed: 11,177 of 11,178 regular tests passed, and all 2,100 marked-condition tests passed. The sole regular failure is the Buddy excerpt assertion; I reran its test file on main 948ea50 and reproduced the same assertion and actual text. npm run validate also reports the same single duplicate PostHog entry on both trees. The draft still awaits review of the reader-facing copy; no publication requested.

This branch has not been deployed

No deployments
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