From e11dee020ed16f9e044520d6897a65ba3e6fcb5e Mon Sep 17 00:00:00 2001 From: Benjamin Borbe Date: Sat, 22 Aug 2026 21:30:32 +0200 Subject: [PATCH] require a matched line before reporting daily-note tracking --- CHANGELOG.md | 3 +++ agents/work-on-task-assistant.md | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62f1391..a88f5cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ Please choose versions by [Semantic Versioning](http://semver.org/). * MINOR version when you add functionality in a backwards-compatible manner, and * PATCH version when you make backwards-compatible bug fixes. +## Unreleased +- `work-on-task-assistant`: the Phase 4 daily-note report may no longer claim `Already tracked` without a matching line in hand, and must quote the matched line verbatim. The phase searched the note correctly but nothing bound the report to the search result, so it could assert a task was tracked in the Must section when the note contained no reference to it at all — indistinguishable from a real match, and leaving the task absent from the day's record until a later `sync-progress` caught it. Observed 2026-08-22, where the gap went unnoticed for roughly three hours + ## v0.114.4 - `task complete`: the parent-goal roll-up now accepts an in-progress checkbox (`- [/]`), not just `- [ ]`. It matched only the pending marker, so a goal entry that existed and correctly named the task was skipped whenever the task was marked in-progress — and that is precisely the state a task being completed is usually in. The result was a `checkbox not found for task ... in goal ...` warning, task completion succeeding anyway, and the goal silently left stale. Both markers now roll up to `- [x]` diff --git a/agents/work-on-task-assistant.md b/agents/work-on-task-assistant.md index 9ad626d..7f0901a 100644 --- a/agents/work-on-task-assistant.md +++ b/agents/work-on-task-assistant.md @@ -146,6 +146,7 @@ A prerequisite's status is the single fact that decides whether work can start. - Read `{daily_dir}/YYYY-MM-DD.md` - If missing: report `ℹ️ Daily note missing. Run /start-day` and continue - Search for `[[{task_name}]]` or `{jira_id}` + - This search is the ONLY basis for the "already tracked" report. Never report `Already tracked` without a matching line in hand — quote it verbatim (`ℹ️ Already tracked: `). A tracking claim that names a section but no line is unverified, and reads identically to a real match while the task is in fact absent from the day's record. Observed 2026-08-22: the agent reported `Already tracked ([/] [[Review MoneyMoney - 2026W34-sat]] in Must section)` for a task that appeared nowhere in the note; it went untracked for three hours until `/vault-cli:sync-progress` caught it. - Add `- [/] [[{task_name}]]` or `- [/] {jira_id} {summary}` to Must section if absent - If found with `[ ]` → upgrade to `[/]`; if `[/]` or `[x]` → skip