Files
loki/scripts/test
Mao NakamotoandClaude Opus 4.8 0a1be95c15 feat(agents): surface protocol message type as a feed badge
Realizes the message-taxonomy lesson from Anthropic's multi-agent orchestration
model: agents already agreed to echo a {type, status} schema in message bodies,
so lift `type` (task|result|question|escalation) and `status` and render `type`
as a coloured ui-tag in the comms feed — escalation negative (captain can't miss
it), result positive, question warning, task accent.

Extraction is a targeted regex over the two constrained fields (KISS — no
full-JSON parse), tolerant of pretty-printing and prose, and the body stays SSOT
(payload is not stripped). Degrades to no badge when a message carries no schema.
Verified against the live inbox: the t0-handshake result shows type=result
status=done; prose messages show none. +7 test cases (23 total).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-07 18:07:17 +02:00
..