HydraIssues

Venue kinds: OpensAt and ClosesAt, so archived is not the only lifecycle signal
open improvement Project: hydravenues Parent: #1158 Reporter: 14 Nov 2026 17:15

Description

Child of #1158. Item 3 of "What is next, in order" in docs/design/venue-kinds.md.

What

Status: archived is the only lifecycle signal in venue data today. A temporary venue carries no dates, so nothing distinguishes a hall that ran three weeks in March from one running now, and the FTI zone that finished on 2026-11-08 is marked only by somebody having archived it by hand.

Ruling 1 on #1158 puts the dates on the occupancy, not the building: a hall is temporary-crowd because that is the business it is in, and the zone inside it for three weeks is a child venue carrying the dates. Ruling 2 says the same of mobile-kit -- the kit is a permanent workbench, and what it plants is its own child venue with dates.

Three rulings are needed before coding

  1. Does a past ClosesAt imply archived, or are the two independent? If a past ClosesAt silently drops a venue from GET /api/v1/venues, that is derived state reading as an answer: the same class of fault as hydracluster #1180, where an empty list meant "no store file" and the command printed "No nodes enrolled" while 43 were. Recommendation: independent. The dates describe the engagement, Status records a decision somebody took. Filtering by date is a query parameter, never a default.
  2. Are dates legal on a permanent kind? A permanent-crowd with a ClosesAt is either a data error or a museum closing down. Recommendation: legal, and never defaulted.
  3. Zone handling. Store RFC3339 with an offset. A bare date is ambiguous across the Belgian DST change, and these 15 records already span five organizations.

Done when

  • OpensAt and ClosesAt on the stored venue, pointer-typed so unset is distinct from the zero time
  • create and update accept both; an omitted field leaves the stored one alone
  • the three rulings above written into docs/design/venue-kinds.md
  • tests: unset stays unset through an unrelated update, and a past ClosesAt does not remove a venue from the list