Repository navigation
Have the model count elapsed days from listed dates, so it stops slipping by a year - #242
Merged
Merged
Conversation
…ping by a year Haiku subtracted dates that are years apart in its head and slipped by a whole year, or skipped the count and called 990 days more than 1096, which marked items stale early. The runtime context now lists the run's date in each of the last six years with the exact days since each. One harness rule tells the model to count from the nearest of those dates, and to write the comparison with the rule's limit in the summary before planning anything that depends on it.
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.
Why
On Haiku, the bot marked MudBlazor feature requests
stalebefore they had been idle for the policy's 1096 days. Its summaries show two kinds of date mistake:8274it wrote "about 1341 days" for a gap of 978.7418it wrote that the gap "far exceeds" 1096 days at 1094.6. On8185it counted "about 995 days" and still called that over 1096.Haiku does this subtraction in its head, and Claude's Chat Completions endpoint ignores
reasoning_effort, so asking it to think harder isn't an option.What
Two additions to the prompt. No new input, no schema change, no tool.
Dated anchors in the runtime context. Under the current time, one line lists the run's date in each of the last six years with the exact days since each:
One harness rule, after "Use the current UTC timestamp only for policy rules that depend on time":
Summaries then read like this one, on MudBlazor
8274: "983 days before the current UTC timestamp of 2026-11-09 (730 days plus 253 days, and 983 is less than the 1096-day feature threshold)".Measurements
These are dry replays on
claude-haiku-5-5, about 3,850 calls, with nothing written to GitHub. Each item goes through the action's own prompts, schema and client, with a GitHub client that can only replay a frozen snapshot. Runs are scored against MudBlazor's Inactivity Rules written as code, which give the stale, unstale or close action each item is due.180 open MudBlazor items at the real time: 100 within 45 days of a stale or close threshold, and 80 feature requests idle for 650 to 1050 days. 837 runs of
mainand 743 of this branch.mainstalelabels removedmain: five were a year off, such as "about 1461 days" for 1094 on3125and "about 1,410 days" for 1045 on7974. Six had no count or a wrong comparison, such as9158: "about 25 months before the current date, so the feature-issue stale threshold of 1096 days of inactivity is met".9136, where "365 plus 199 days" was written for a gap of 365 plus 170, which put a bug at 564 days against a limit of 548.1692. The model overlooked a maintainer's 2024 comment in a long timeline and measured from 2021. Its count from 2021 was right.6510, adocsissue with neitherbugnorenhancement. Every run on both sides closed it 85 days after itsstalelabel, and my scoring rules don't say which threshold covers it.120 time-shifted cases: 120 quiet MudBlazor issues, each replayed at a "current time" set 2 to 366 days before, or 2 to 60 days after, its 548-day or 1096-day threshold. 240 runs a side.
mainOther decisions don't move. On the 180 real items, the labels, comments and titles planned apart from stale ones were the same on 179 items between
mainand this branch. Two runs ofmainagainst each other agree on 178 to 180.Other wordings, on the 120 time-shifted cases:
maintime_checksfield in the responsetime_betweenfunction tool the model can callThe tool is the yardstick, not part of this PR. On the 180 real items it made no wrong stale mark in 312 runs, but Haiku called it on only 59% of items, and each call sends the whole prompt again, so it costs $5.01 per 1,000 items against $3.05.
Verification
npm run verifypasses, with 334 tests.Risk
9979or10336, where the model counted correctly and then declined to re-add a label the bot had removed earlier.10336was missed in 3 of 4 runs here and 1 of 5 onmain, which may be chance.10416still keeps itsstalelabel in every run, because the model reads anenhancement-labelled issue as a bug and applies the 548-day limit. That and the two items above are policy questions.