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.
| File | Change |
|---|---|
console/owner_result.py (new) | Structured-summary parser, report path resolver, safe Markdown renderer, owner summary and report pages |
console/app.py | New GET /tasks/{id}/summary; GET /tasks/{id}/report rewritten (shared _task_view) |
console/templates/owner_task.html | Card: 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.py | Runtime 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 |
-webkit-line-clamp:3); structured JSON results still show "Structured output recorded"./tasks/{id}/summary: Russian page with Итог / Проблемы / Решение, full text, no truncation, plus «Материалы» links.tasks.result, else from latest execution summary. Missing Решение is filled from task status (factual state, not invented)./tasks/{id}/report still renders the full Markdown file named in the result./tasks/{id}/report fallback: a missing Markdown file no longer returns JSON {"detail":"Report file not found"}. It returns HTTP 200 with the stored result and a note «Отдельный файл отчёта … не найден или не указан». Only a nonexistent task id gives 404; files over 2 MB give 413... escapes, secrets/, privileges/, backups/, dot-directories (the old code would have served secrets/*.md).output/error/verification artifacts via /artifacts/{id}, which keep their own authorization and integrity checks. Back link is a plain /projects/{key}#task-{id} (no javascript:).markdown_it is not installed in .venv, and I did not install packages on the production venv. A small renderer escapes all input first, then emits a closed tag set (headings, lists, code, tables, bold/italic, links with http/https/relative/mailto only). Scripts, raw HTML and javascript: links are rendered inert..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.
## Сводка для владельца heading is the contract; executor output that omits it falls back to the stored-result view.