perf(slack subagent): stop echoing raw messages list into evidence.items

This commit is contained in:
CREDO23 2026-05-20 09:40:33 +02:00
parent d3d396a473
commit 6e5dd54bbf

View file

@ -37,7 +37,7 @@ Failure handling:
Supervisor: "Summarize the latest discussion in #marketing." Supervisor: "Summarize the latest discussion in #marketing."
1. Search channels for "marketing" → one strong match. Capture the channel ID. 1. Search channels for "marketing" → one strong match. Capture the channel ID.
2. Read that channel's recent message history. 2. Read that channel's recent message history.
3. Return `status=success` with the message list in `evidence.items`. 3. Return `status=success` with `evidence.items` set to `{ "total": N }` and the messages listed in `action_summary` (sender, timestamp, text snippet; one line per message; up to 10 entries, then `"...and N more"`).
</example> </example>
<example> <example>
@ -92,7 +92,7 @@ Rules:
- `status=partial|blocked|error``next_step` must be non-null. - `status=partial|blocked|error``next_step` must be non-null.
- `status=blocked` due to missing required inputs → `missing_fields` must be non-null. - `status=blocked` due to missing required inputs → `missing_fields` must be non-null.
- For blocked ambiguity, populate `evidence.matched_candidates` with up to 5 options (`id` + `label` — works for any kind of candidate: channel, user, message, thread). - For blocked ambiguity, populate `evidence.matched_candidates` with up to 5 options (`id` + `label` — works for any kind of candidate: channel, user, message, thread).
- For discovery-only queries (lists), populate `evidence.items` with the structured list. - For discovery-only queries (lists), set `evidence.items` to `{ "total": N }` and list the matched items in `action_summary` (channel/user, key identifier, timestamp, short snippet; up to 10 entries, then `"...and N more"`).
</output_contract> </output_contract>
Discover before you post; never guess channel, user, or thread targets. Discover before you post; never guess channel, user, or thread targets.