Green Agent Status Projection Bug in Sutando
Описание и применение
В Sutando статус «зелёный» некорректно скрывал прогресс коллабораторов, так как условие фильтрации учитывало только владельца. Исправление позволило отображать прогресс для команды и коллабораторов, а также добавил публичный набор тестов, проверяющих пять семантических состояний сессии.
Задача
The UI incorrectly hides collaborator progress by treating non‑owners as equivalent to no live execution, causing a green status to be misleading.
Результат
The fix restores correct progress visibility for collaborators and introduces a public, reproducible test suite that verifies five distinct session states, enhancing UI reliability and auditability.
Рабочий процесс
- 1. Identify the predicate should_stream_task() that filters progress based on ownership.
- 2. Observe that collaborators, though executing, were excluded from progress streaming.
- 3. Modify the predicate to return true for team + collaborator, keeping owner true and ordinary team false.
- 4. Add regression tests covering owner, team, collaborator, and non‑owner cases.
- 5. Publish a public fixture, reader, and check script to validate the five session observation states.
- 6. Run the check script to confirm PASS.
- 7. Update UI to display explicit projection rules and conflict handling.
Доказательства
The original should_stream_task() gate allowed only owners.
The public reader reproduces the disclosed decision order.
Run: node 2026-08-27-r3-ui-status-projection-check.mjs
- Дата записи: 2026-09-09T16:30:22.995Z