Skip to content

fix(tasks): read due dates on whole words in local time in the duplicate set - #64

Merged
leemour merged 1 commit into
mainfrom
fix/tasks-duplicates-dates
Oct 14, 2026
Merged

leemour merged 1 commit into
mainfrom
fix/tasks-duplicates-dates

Conversation

@leemour

@leemour leemour commented Oct 14, 2026

Copy link
Copy Markdown
Member

Task

Apply to the duplicate-task scorer (performance/tasks/duplicates/evaluate.mjs) the date fixes that cli-core's port took in WireCatLabs/cli-core#1235. Then re-run the set and report whether any result moved.

Why

The due-date patterns matched by prefix, and they used JavaScript's \b, which knows only ASCII letters. As a result:

  • средства read as Wednesday
  • завтрак read as tomorrow
  • decide 3 read as December 3
  • maybe 2 read as May 2

Due days were also counted in UTC. A real chat would get false "due near" points (+4).

What

  • Whole words. Every date phrase must be a whole word (Unicode-aware edges).
  • Month names. A month must be a full month name in any case form (ноября, ноябрю), or an English month name or its abbreviation.
  • Weekdays. A weekday must be a full weekday word form.
  • Local time. Due days are calendar dates in the machine's time zone. The zone is recorded as environment.timeZone in the results.
  • Labels. The labelled due date is read as a plain calendar date.
  • Unchanged. A bare number is still never an amount.
  • README. Updated with the time zone, the fix and the re-run.

Results

No count, weight or band moved. That holds in Europe/Madrid (the committed run), in UTC and in America/New_York; extraction is still amount 65/0/4 and due 96/0/0.

In Asia/Tokyo, 5 due dates land a day after their labels. These are tasks created late in the UTC evening, and the labels were written as European dates.

Runtime in the committed JSON comes from a rerun at a load average near 50.

Testing

  • ./run.sh: the generator output matches tasks.jsonl, and both variants ran.
  • cli-core's module (#1235) matches this script on all 251 tasks and all 31,375 pairs (field levels), in Europe/Madrid.

🤖 Generated with Claude Code

…ate set

The duplicate scorer matched weekday and month names by prefix and with
JavaScript's ASCII-only \b, so `средства` read as Wednesday, `завтрак` as
tomorrow, `decide 3` as December 3 and `maybe 2` as May 2. It also counted
due days in UTC. Date phrases now need whole words, months their full
names or English abbreviations, and due days are calendar dates in the
machine's time zone, recorded in the results.

These are the fixes cli-core's port took (WireCatLabs/cli-core#1235).
Re-run: no count, weight or band moved in Europe/Madrid, UTC or
America/New_York. In Asia/Tokyo five due dates land a day after their
labels, which were written as European dates.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@leemour
leemour merged commit ee79833 into main Oct 14, 2026
1 check passed
@leemour
leemour deleted the fix/tasks-duplicates-dates branch October 14, 2026 21:42
leemour added a commit that referenced this pull request Dec 4, 2026
Clears the critical Dependabot alerts #65 and #64 for cross-spawn
(GHSA-ghv9-86vm-4v8m, Windows only, fixed in 7.1.0).

- Root: `@modelcontextprotocol/client` allows `^7.0.5`, so `pnpm update
cross-spawn` moves it to 7.1.2. The dev dependency `@wirecat/cli-base`
0.75.2 pins 7.0.6 exactly, so `pnpm-workspace.yaml` gets
`"cross-spawn@<7.1.0": 7.1.2` (the form tg-cli already uses).
- `performance/search/evidence-pipeline/core`: same override for its
pinned cli-core 0.412.0; lockfile regenerated with `--lockfile-only`, no
other change.

The published package ships no lockfile, and its one dependency already
allows 7.1.x, so consumers get the fix on their own. No release.

Local checks: `pnpm lint`, `pnpm typecheck`, `pnpm test` (232 passed, 1
skipped).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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