Skip to content

#160 test: the parse-agreement fixtures are read on a fixed day - #162

Merged
gregoryfoster merged 5 commits into
mainfrom
160-dated-fixture
Dec 3, 2026
Merged

gregoryfoster merged 5 commits into
mainfrom
160-dated-fixture

Conversation

@gregoryfoster

@gregoryfoster gregoryfoster commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

test_the_parse_agrees_with_the_skills_reader[wrap-and-dated] has been red since 2026-12-02 00:00Z. Its fixture's dated window (2026-12-01 01:00-02:00) became past-window in the skill's reader, which flags a dated window from the day after it, and _read_knob asserts no findings.

The fix: _read_knob takes an optional today, which it passes to read-knob.sh --today. The parametrized fixtures are read on a fixed FIXTURE_TODAY = "2026-11-30", the day before their dated window, so the dated case tests the parse, not the calendar or the reader's same-day boundary. test_the_committed_knob_agrees_with_the_skills_reader still reads on the real date, because a past window in the committed knob is a real finding.

Verification

  • Red first: in the worktree before the fix, the test had 1 failed and 2 passed (past-window, line 4).
  • The pin is what fixes it: the reader on the same fixture gives [] with --today 2026-12-01 and ['past-window'] with --today 2026-12-02.
  • Green: tests/test_patching.py 75 passed; the full local suite has 1082 passed and none failed; ruff clean.
  • Code review: 4 findings, all fixed (599bd04, 7dcecfb, 72bc894, ee97ec3): read on the day before the window, not its own day; the comment's rule is the day after the window closes; the constant sits with the module's others; only None falls back to the real date. The reader on the fixture gives [] on 2026-11-30 too.
  • No other time bombs: every other dated line the tests hand to read-knob.sh (tests/test_patching_knob.py:106, :117, :131) already passes --today. tests/test_apt_automatic.py reads only the committed knob.
  • CI evidence of the original failure: chore: update skills submodules #159 at ea585ed and #158 docs: the disk GC is VERSION 5, which keeps only the newest staged VS Code build #161 at c358665 each failed only this test (1 failed, 1116 passed).

Closes #160

🤖 Generated with Claude Code

gregoryfoster and others added 5 commits December 2, 2026 22:13
…he dated window can't expire

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ndow, off the boundary

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…indow closes on

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…constants

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gregoryfoster
gregoryfoster merged commit ee97ec3 into main Dec 3, 2026
3 checks passed
@gregoryfoster
gregoryfoster deleted the 160-dated-fixture branch December 3, 2026 00:34
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.

test_patching: wrap-and-dated fixture's dated window expired 2026-12-01; suite red on main

1 participant