Repository navigation
Hash the trace inputs only when read, and count the burst's builds on a moving clock - #473
Merged
Merged
Conversation
Owner
Author
This was referenced Dec 1, 2026
Owner
Author
Merge activity
|
benschac
force-pushed
the
cairn-fixes/landed-review-encoder-fixtures
branch
from
December 1, 2026 17:28
635cb53 to
ff0b016
Compare
benschac
force-pushed
the
cairn-fixes/landed-review-lazy-trace-hash
branch
2 times, most recently
from
December 1, 2026 17:28
abad71f to
ae9f909
Compare
benschac
changed the base branch from
cairn-fixes/landed-review-encoder-fixtures
to
graphite-base/473
December 1, 2026 17:30
… a moving clock Codex found three problems in the trace builder and its tests. buildTrace hashed the whole input on every prd status, which never reads the hash. The hash is now computed when read, once. The burst test delivered every notification at one instant, so a 1 ms debounce passed, and it counted builds before the stream had finished. Notifications now arrive 5 ms apart on the test clock, nothing is emitted until 100 ms after the last, and the count is taken once the stream has settled. The tests also relied on a second build at startup: the poll's first tick fired at once. The poll now starts two seconds in, as the spec says. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
benschac
force-pushed
the
cairn-fixes/landed-review-lazy-trace-hash
branch
from
December 1, 2026 17:31
ae9f909 to
abfab78
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Codex found three problems in the trace builder and its tests.
buildTrace hashed the whole input on every prd status, which never reads the hash. The hash is now computed when read, once.
The burst test delivered every notification at one instant, so a 1 ms debounce passed, and it counted builds before the stream had finished. Notifications now arrive 5 ms apart on the test clock, nothing is emitted until 100 ms after the last, and the count is taken once the stream has settled.
The tests also relied on a second build at startup: the poll's first tick fired at once. The poll now starts two seconds in, as the spec says.
Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com
What this changes
Checks
Provenance
Review by Codex
This commit fixes what Codex's first round found on #457 and #460. Its second round, on this commit, found one thing, left open because two rounds are done:
🤖 Generated with Claude Code