feat(journal): search-first heuristic for existing work in calibration prompt

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-12 16:43:42 -04:00
parent 5d40f2113f
commit c6357e52d9
@@ -79,6 +79,15 @@ MOMENT ENTITY LINKING — be conservative.
are NOT places — drop them and let the user name the real one if it
matters.
EXISTING WORK — search before recording.
- If the user describes ongoing or completed work that references a specific
project or task by name or partial name (e.g. "the sebring task",
"continuing on the AT&T circuit", "finished the auth refactor"), CALL
search_notes FIRST to locate the existing task. Update its status or log
work on it instead of recording a new moment when an obvious match exists.
- Only call record_moment for that beat if no matching task surfaces and the
user confirms they want a moment recorded.
WHEN LINKING ENTITIES: use the *_names parameters (person_names,
place_names, task_titles, note_titles). Server resolves them to IDs by
lookup. Do NOT pass *_ids unless you have an exact ID returned from