Skip to content

Harden the 'wake id rotates' assertion in scheduled-compose.integration.test.ts to quiescence #768

@schickling-assistant

Description

@schickling-assistant

Problem

scheduled-compose.integration.test.ts has a polling-race flake in the wake id rotates assertion: it samples the rotating wake id while the poll loop is still advancing, so under parallel CPU load the observed id can be a cycle ahead/behind the expectation. Same class of issue as the earlier recurrence-count flake fix.

Fix

  • Harden the assertion to wait for quiescence (the loop reaching a stable, settled state) before sampling the wake id, rather than reading it mid-flight — mirroring the recurrence-flake hardening.

Refs #757.

Posted on behalf of @schickling
field value
agent_name 🥇 cl2-pyrite
agent_session_id a71a7fca-0ccf-427e-9e57-51aea841dc74
agent_tool Claude Code
agent_tool_version 2.1.165
agent_runtime Claude Code 2.1.165
agent_model claude-opus-4-8
runtime_profile /nix/store/sz4ll7nq7qbwcsw65pw13w5hw61lnvk5-coding-agent-runtime-profile/share/coding-agents/profile.json
skills_manifest /nix/store/nhbhipdhwmcqh669bpr15g39hr17cqbb-agent-skills-corpus/share/agent-skills/manifest.json
worktree effect-utils/schickling/2026-06-08-restate-effect
machine dev3
tooling_profile dotfiles@7360c0d

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:effectEffect framework usage · Set: manualorigin:agentFiled or primarily produced by an AI agent · Set: AI agent or manualtype:choreMaintenance, cleanup, dependencies, CI, or refactoring · Set: manual

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions