reach: "a heartbeat named a busy mutant" depends on wall-clock timing and is reached 1 to 2 times per shard

オープン
#84 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript
領域
testing

調査の方向性

Start from the reach state "a heartbeat named a busy mutant" and the fixed-seed shard runs that count it, then read the determinism-under-load entry in the decisions register (2026-11-13). The proposed pattern is the test-only pause point used by PAUSE_AT in the daemon witness; find that witness and mirror it so the mutant is held for a constructed duration instead of relying on a slow test crossing the 2 s beat. Done means every shard that declares the state reaches it with wall-clock timing removed, verified by rerunning the fixed seed 20261105 across shards 1-3.

索引モデルが issue の本文から書いたものです。

説明

Summary

The reach state "a heartbeat named a busy mutant" is entered only when a slow test crosses the 2 s heartbeat interval. Its count per shard depends on the machine's timing, not only on the constructed history.

Evidence

Fixed seed 20261105, main 35422e3, Linux fixed-seed shards 1 to 3:

  • GitHub CI (run 43578388114): shard 1 = 2, shard 2 = 2, shard 3 = 2 (total 6).
  • The same commit on the Arca Arclet pool (tags r61-main{1,2,3}-35422): shard 1 = 1, shard 2 = 2, shard 3 = 2 (total 5).

The same Arclet pool gave head 346c8a8 shard 1 = 1 (tag r61-fs1-346), so the difference is between machines, not between main and the PR.

Why it matters

Under "determinism under load" (decisions register, 2026-11-13), a reach state must not depend on wall-clock timing. A state reached only by a slow test crossing a 2 s beat is that kind of dependency. The state still has to be reached on every shard that declares it. It is, but only by timing.

Proposed fix

Gate the state with a constructed history that holds a mutant for a deterministic time at a named test-only pause point (the same pattern as PAUSE_AT in the daemon witness), so the heartbeat fires regardless of machine speed. Not started here.

Related

#61 (fix(oracle-gaps): retire a batch's copies from Vitest's state). #80, #81 and #82 are separate.

主要言語
JavaScript
スター
5
フォーク
1
平均マージ
8時間 31分
マージ済み PR(30日)
60

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/oracles のほかの issue

TanStack/oracles の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。