Skip to content

Flaky test: harbor-cell "does not start a continuation turn after the settlement deadline latches" intermittently sees no stop action #1048

Closed

Description

@Astro-Han

Summary

does not start a continuation turn after the settlement deadline latches (packages/headless/src/tests/harbor-cell.test.ts, dist line 512) fails intermittently in CI. The deadline is expected to latch and record a single stop at the deadline action, but the run occasionally observes an empty action list.

Evidence

Suspected cause

The settlement-deadline latch appears to race with the continuation-turn scheduler when the deadline fires near-instantly (no real wait), so the stop action is occasionally not recorded before the assertion reads the action list.

Repro

Intermittent; re-running the job passes. Consider making the deadline latch deterministic in the test (inject/advance a fake clock) rather than relying on wall-clock ordering.

Activity

  1. added
    bug
    on Jul 15, 2026
  2. added a commit that references this issue on Jul 15, 2026
    46a123c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions