fix(event-triage): never notify about a filtered event
Nightly Build / build (push) Successful in 40s
Nightly Build / build (push) Successful in 40s
Triage was applying the user's notification preferences correctly and then
calling notify() anyway, with the filtering itself as the summary ("filtered
as generic marketing per user preferences") — the interruption the rule was
written to prevent, delivered with an explanation attached.
Nothing in the prompt said that notify() *is* the interruption, so using it as
a record of the decision looked coherent. Say it plainly instead, in the three
places the model passes through: notify delivers immediately and has no silent
variant, a rule that filters a category means no call at all, and a summary
that mentions filtering is the tell that the rule is about to be broken. The
tool description carries the same statement at the call site.
This commit is contained in:
@@ -17,10 +17,13 @@ pub fn make_tool(hub: Arc<ChatHub>, default_source: impl Into<String>) -> Interf
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": crate::tools::tool_names::NOTIFY,
|
||||
"description": "Surface a single event to the user's home conversation as a structured \
|
||||
notification. Call once per event worth surfacing. Provide factual, \
|
||||
third-person data about the event — do NOT write a message to the user; \
|
||||
the main agent composes the user-facing wording from these fields.",
|
||||
"description": "Interrupt the user: deliver a single event to their home conversation, \
|
||||
and to their devices, right away. Call once per event worth surfacing, \
|
||||
and NOT AT ALL for an event you decided to filter out — there is no \
|
||||
silent or informational variant, so a notification saying an event was \
|
||||
filtered interrupts exactly as much as the event would have. Provide \
|
||||
factual, third-person data about the event — do NOT write a message to \
|
||||
the user; the main agent composes the user-facing wording from these fields.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user