Warm or cold start classification depends on the clock #84

Open
opened 2026-11-08 13:28:04 +01:00 by Alex · 0 comments
Owner

Problem

  • internal/state/startup.go:144 and internal/state/manager.go:1190 classify a start as warm or cold using the clock.
  • With a wrong clock a cold start can be taken for a warm start.

Impact

  • A cold start without a mgmt mapping opens the API too early.

Proposed change

  • Base the classification on a value that does not depend on wall-clock time.

Validation

  • Tests for a cold and a warm start with the clock set too far back and too far ahead.
## Problem - `internal/state/startup.go:144` and `internal/state/manager.go:1190` classify a start as warm or cold using the clock. - With a wrong clock a cold start can be taken for a warm start. ## Impact - A cold start without a `mgmt` mapping opens the API too early. ## Proposed change - Base the classification on a value that does not depend on wall-clock time. ## Validation - Tests for a cold and a warm start with the clock set too far back and too far ahead.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Alex/kaido-core#84
No description provided.