← Назад к задаче

owner-result-report.md

Owner result UX and report fallback — evidence

Date: 2026-11-27. Scope: console only. No restart, no production DB changes (tests use temporary DBs). No model calls anywhere in the new code. Security rules (docs/operating-model/02-security.md) followed: no protection added to any file, no secrets printed, reversible edits.

What changed

FileChange
console/owner_result.py (new)Structured-summary parser, report path resolver, safe Markdown renderer, owner summary and report pages
console/app.pyNew GET /tasks/{id}/summary; GET /tasks/{id}/report rewritten (shared _task_view)
console/templates/owner_task.htmlCard: 3-line preview paragraph + Результат button + «Технический отчёт» link (old 105/550-char truncated <details> removed)
console/static/app.css.result-preview (3-line clamp), .result-actions, .result-open (44px tap target). Mobile menu CSS/markup untouched
dispatcher/control_plane_dispatcher.pyRuntime delivery contract now asks executors for a Russian ## Сводка для владельца block (Итог: / Проблемы: / Решение:) right after FACTORY_OUTCOME. Takes effect only after a dispatcher restart (not done)
control_plane/tests/test_owner_result.py (new)8 tests

Behaviour

Tests

.venv/bin/python -m unittest control_plane.tests.test_owner_result → 8 tests OK:
structured summary full and untruncated; historical fallback without fabrication; script/img/javascript: neutralised; card preview + button + line-clamp CSS; report with relative path, absolute path, missing file, no path, unknown task (404); path confinement (/etc, .., secrets); authorised artifact links; mobile viewport/overflow rules (width=device-width, overflow-wrap:anywhere, scrollable tables).

Full suite (discover -s control_plane/tests): 140 tests, 15 failing (12 FAIL, 3 ERROR). I checked these against a baseline with my template and dispatcher edits reverted: the same failures occur (owner_decisions ×4 expecting a decision panel/technical-details markup the current templates do not have; runtime/supervisor/approved_runtime/executor_policy fallback tests ×11). None are caused by this task and I did not fix them (out of scope). All new tests pass.

Limits / not verified

Материалы