You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky test: harbor-cell "does not start a continuation turn after the settlement deadline latches" intermittently sees no stop action #1048
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.
Assertion: deepStrictEqual expected [ 'stop at the deadline' ], actual [] (ERR_ASSERTION).
The failing case ran in 46ms, while sibling deadline tests that use real ~1s waits (env entrypoint settles at the configured soft deadline, does not report deadline settlement after normal completion already claimed the terminal state) passed in the same run — pointing to a timing race on the fast/latched path rather than a logic bug.
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
test(headless): deflake harbor-cell settlement-deadline continuation …