Group task manager attention and escalation UI by task instead of raw signals
Problem
The /status escalation table and heartbeat text output originally rendered one row per raw escalation signal. When a task had multiple signals, it appeared multiple times, which made operator triage noisy and overstated the top-line escalation count.
Context
tasks/tools/tasks_server.pyrenders the operator status page and now also refreshes heartbeat data on/statusload with auto-refresh from mainline work.scripts/task_manager_lib.pyrenders the text heartbeat summary and snapshot payload consumed by the status page.collect_escalation_signals()remains flat in the snapshot; grouping/counting is a presentation concern layered on top of that payload.- Related mainline changes added
display_group-driven status sections and CLI/path convergence that this task must preserve.
Possible Solutions
- Recommended: Keep the snapshot’s raw
escalation.signalslist for detail/debug fidelity, but group rows byslugat render time and count distinct task slugs for operator-facing escalation totals. - Change the snapshot schema to emit grouped structures directly. This is more invasive and unnecessary for the UI/problem at hand.
Plan
- Group escalation rows by task in the
/statusHTML table. - Group escalation lines by task in the text heartbeat summary.
- Count distinct affected tasks for the top-level escalation card while preserving raw signals in the snapshot details.
- Cover the integrated behavior with tasks-server and heartbeat/script tests, then validate the task file.
Implementation Progress
- 2026-03-24: Grouped escalation display by task in the status page and heartbeat summary.
- 2026-03-24: Preserved mainline
/statusheartbeat refresh, auto-refresh, anddisplay_group-driven section behavior during rebase onto latestorigin/main. - 2026-03-24: Updated tests so escalation totals reflect affected tasks while detailed rows still show every underlying signal.
QA Exploration
- [x] N/A — internal operator tool, no browser-facing user flows. Verified via test assertions on rendered HTML.
Review Feedback
- [ ] Review cleared