Skip to content

feat(status): show every engine's window in berth status and the harbor - #316

Merged
T-Crypt merged 2 commits into
nextfrom
T-Crypt/status-schedules
Nov 13, 2026
Merged

T-Crypt merged 2 commits into
nextfrom
T-Crypt/status-schedules

Conversation

@T-Crypt

@T-Crypt T-Crypt commented Nov 13, 2026

Copy link
Copy Markdown
Owner

What

berth status gains a SCHEDULE table and the harbor a SCHEDULES panel. Each lists every engine that has a
window, with its hours, whether they are open, and how long until they close or open.

  • An engine shows before its window opens. Before this, an engine with a window and no lease appeared nowhere.
  • A berth run --window lease shows its own hours in place of its engine's, because those are the hours the
    broker enforces.
  • The node's clock decides open or closed, so every client reads the same answer. The status JSON carries the rows
    as schedules, and each lease carries its window.

How

  • proto.Window.Closes sits beside Opens, and proto.ScheduleAt builds one row.
  • server.schedules joins the configured windows (server.Extras.Windows, from berth.toml at start) with the
    lease windows into Status.Schedules. The CLI and the harbor only display the rows.

Proof

  • .claude/skills/berth-verify/proof.sh: full proof OK.
  • TestStatusCarriesTheLeaseWindow (broker) and TestSocketStatusCarriesTheSchedules (socket) fail without the
    change. TestSchedulesJoinConfigAndLeases, TestWindowCloses, TestScheduleAt and
    TestStatusShowsTheSchedules cover the rest.
  • A throwaway berthd with two windowed engines and no leases, read with the real berth status:
SCHEDULE  HOURS        NOW
daytime   09:00-23:30  open, closes in 33m38s
nightly   23:00-07:00  closed, opens in 3m38s
  • The harbor panel was checked in a screenshot of the demo mode.

berth status gains a SCHEDULE table and the harbor a SCHEDULES panel: each
engine that has a window, its hours, whether they are open, and how long
until they close or open, read on the node's clock. An engine shows before
its window opens, and a berth run --window lease shows its own hours. The
status JSON carries the rows as schedules, and each lease its window.
@T-Crypt
T-Crypt merged commit a42821e into next Nov 13, 2026
4 checks passed
@T-Crypt
T-Crypt deleted the T-Crypt/status-schedules branch November 13, 2026 07:34
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