feat(plane): unified status-comment format with duration line (ORCH-016) #34

Merged
admin merged 9 commits from feature/ORCH-016-plane into main 2026-06-05 17:50:48 +03:00

9 Commits

Author SHA1 Message Date
7481ce334e deployer(ORCH-016): deploy stage SUCCESS (artifact-only verdict)
All checks were successful
CI / test (push) Successful in 11s
CI / test (pull_request) Successful in 11s
Pre-conditions met:
- 12-review.md: APPROVED
- 13-test-report.md: PASS
- 15-staging-log.md: staging_status=SUCCESS (10/10)

Self-hosting policy honored: prod-container orchestrator:8500
NOT restarted in stage scope (CLAUDE.md). Real prod docker
pull/restart is delegated to scripts/orchestrator-deploy-hook.sh
(ORCH-36) on PR merge to main.

Quality Gate field: deploy_status: SUCCESS (uppercase) in
14-deploy-log.md frontmatter.
2026-06-05 12:52:06 +00:00
d4b02ef728 deployer(ORCH-016): staging gate SUCCESS (10/10 checks PASS)
All checks were successful
CI / test (push) Successful in 11s
CI / test (pull_request) Successful in 11s
Ran scripts/staging_check.py --base-url http://localhost:8501 --mode stub
against the live orchestrator-staging instance. All blocks green:
  - SMOKE (A1-A3): health, queue, ORCH_STAGING=true
  - ACCESS (B4-B6): Plane sandbox, Gitea sandbox, registry isolation
  - E2E   (C7-C9b): webhook -> branch -> analyst job enqueued
  - CLEANUP: branch + Plane issue deleted, no leftover task rows

Verdict (machine-readable, YAML frontmatter): staging_status: SUCCESS

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-05 12:49:39 +00:00
2fc3206f83 tester(ET): auto-commit from tester run_id=98
All checks were successful
CI / test (push) Successful in 11s
CI / test (pull_request) Successful in 12s
2026-06-05 12:46:42 +00:00
1778d8f8b8 reviewer(ET): auto-commit from reviewer run_id=97
All checks were successful
CI / test (push) Successful in 12s
CI / test (pull_request) Successful in 11s
2026-06-05 12:44:21 +00:00
0663da6e4c feat(plane): unified status-comment format with duration line (ORCH-016)
All checks were successful
CI / test (push) Successful in 11s
CI / test (pull_request) Successful in 12s
Все агенты (analyst..deployer) теперь пишут финальный коммент через единый
хелпер usage.build_status_comment(...) — заголовок «{icon} {Role} — {описание}»,
опциональная строка Verdict/Status из YAML-frontmatter, строка
«Длительность: 4m 12s» (явный duration_s от launcher, fallback из agent_runs
для аналитика), HTML-блок Документы, тех-хвост <sub>tokens · cost</sub>.

- Новые публичные функции в src/usage.py: build_status_comment, fmt_duration,
  get_agent_duration. usage_comment(...) → тонкая deprecated-обёртка (legacy
  тесты в tests/test_usage.py продолжают работать). artifact_links(...)
  переписан на HTML <li><a>…</a></li> (breaking change для внутреннего API,
  но единственный внешний клиент — _post_usage_comments — мигрирован).
- Новый модуль src/frontmatter.py: defensive YAML reader, никогда не raise.
- stage_engine._build_analyst_ready_comment(...) теперь тонкая обёртка над
  build_status_comment(agent="analyst", ...); task_id пробрасывается из
  _handle_analysis_approved_flow для DB-фоллбэка длительности (AC-14).
- launcher._post_usage_comments(...) принимает duration_s, резолвит stage из
  tasks для deployer и worktree_root для AC-8 graceful skipping.

Тесты (16 файлов, 56 новых тестовых функций, покрывают TC-01..TC-25):
fmt_duration table, build_status_comment по всем агентам, DB-фоллбэк,
authorship под per-agent ботами, дедуп-инвариант, regression на
status-only verdict аналитика и финальный notify_done, snapshot
QG_CHECKS + STAGE_TRANSITIONS.

Документация: docs/architecture/README.md (раздел Plane Sync),
CHANGELOG.md (Unreleased Added/Changed).

Refs: ORCH-016

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-05 12:39:06 +00:00
1150cd9144 architect(ET): auto-commit from architect run_id=95
All checks were successful
CI / test (push) Successful in 12s
2026-06-05 12:15:40 +00:00
57a3f6c9f7 analyst(ET): auto-commit from analyst run_id=94
All checks were successful
CI / test (push) Successful in 13s
2026-06-05 12:05:17 +00:00
0f4d8714dd analyst(ET): auto-commit from analyst run_id=93
All checks were successful
CI / test (push) Successful in 11s
2026-06-05 11:48:54 +00:00
3cb10be03f docs: init ORCH-016 business request
All checks were successful
CI / test (push) Successful in 11s
2026-06-05 14:44:25 +03:00