Exception: Pikuri::Tasks::DuplicateItem

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pikuri/tasks/list.rb

Overview

Raised by List#add when a new item’s content already appears in the list. Items are addressed by Item#id, so duplicates would not be ambiguous — they are rejected because a duplicate is almost always an LLM mistake (re-sending an already-captured plan), and catching it early keeps the list coherent. The exception carries the offending content string so the tool layer can surface it verbatim in the “Error: …” observation.