Skip to content

conformance: pin require_spec to its floor (68), restore birthtime (1) — sum unchanged - #967

Merged
tannevaled merged 1 commit into
mainfrom
baseline-require-floor
Nov 21, 2026
Merged

tannevaled merged 1 commit into
mainfrom
baseline-require-floor

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Two BASELINE rows, edited by hand, sum unchanged (24,106)

core/kernel/require_spec.rb: 69 → 68, its floor

It has read 68 in 2 of the 4 ratchet attempts since BASELINE recorded 69, at code that cannot affect it:

PR head attempt require_spec ratchet
#965 868e42e 1 68 red
#965 868e42e 2 69 green
#966 d66943c 1 69 green
#966 6f88f65 1 68 red

The two 868e42e rows are the control: the same SHA produced both values. And #966 changes only test files of cmd/specpin.

This pins the file to its floor, the way #885 pinned core/random/bytes_spec.rb; #887 describes that remedy for a file with no honest single row. Which example flips is not measured: the ratchet keeps one count per file. The examples that race threads in core/kernel/shared/require.rb (:269, :667-815) are suspects from reading the spec, not a measurement.

core/file/stat/birthtime_spec.rb: 0 → 1

That is what #965 made it on the gate's runner: it read 1 in all 3 attempts whose logs were read. The 0 was absorbed for #961, and left unbanked it would let a regression back to 0 pass.

Sum

The two moves cancel, so the total stays 24,106. The figure gates of the README, the docs and the landing are untouched; TestReadmeConformanceCountMatchesTheBaseline passes with no README change. The file's header records both edits and their reasons.

After this merges, #966's red ratchet (68 against 69) is re-run against the new floor.

Refs #887, #885, #965, #966, #961

🤖 Generated with Claude Code

…); sum unchanged

core/kernel/require_spec.rb read 68 in 2 of 4 ratchet attempts since
BASELINE recorded 69, at code that cannot affect it:

  #965  868e42e  attempt 1  68  red
  #965  868e42e  attempt 2  69  green     <- same SHA, both values
  #966  d66943c  attempt 1  69  green
  #966  6f88f65  attempt 1  68  red       <- a test-only change

Pinned to its floor, as #885 pinned core/random/bytes_spec.rb -- the
remedy #887 describes for a file with no honest single row. Which example
flips is not measured: the ratchet keeps a count per file (#887).

core/file/stat/birthtime_spec.rb 0 -> 1: what #965 made it on the gate's
runner, read 1 in all 3 attempts whose logs were read. The 0 was
absorbed for #961; leaving it unbanked meant a regression to 0 would pass.

The two moves cancel: the sum stays 24106, so the figure gates of the
README, docs and landing are untouched. The header records both edits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit 978d8e4 into main Nov 21, 2026
26 checks passed
@tannevaled
tannevaled deleted the baseline-require-floor branch November 21, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant