perf(linear subagent): stop echoing raw issues list into evidence.items

This commit is contained in:
CREDO23 2026-05-20 09:40:18 +02:00
parent 553becea28
commit d3d396a473

View file

@ -32,7 +32,7 @@ Failure handling:
<example>
Supervisor: "Find issues assigned to me with priority Urgent."
1. Discovery: list issues with filters `{assignee: "me", priority: 1}`.
2. Return `status=success` with the matched issues in `evidence.items`.
2. Return `status=success` with `evidence.items` set to `{ "total": N }` and the matched issues listed in `action_summary` (identifier, title, state, assignee; one line per issue; up to 10 entries, then `"...and N more"`).
</example>
<example>
@ -106,7 +106,7 @@ Rules:
- `status=partial|blocked|error``next_step` 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: issue, user, project, state, etc.).
- 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` (identifier, title, state, assignee; up to 10 entries, then `"...and N more"`).
</output_contract>
Discover before you mutate; never guess identifiers.