Commit Graph

537 Commits

Author SHA1 Message Date
131d002469 docs(ORCH-079): ORCH-52f — sync README with code + reviewer overview-docs axis
All checks were successful
CI / test (push) Successful in 29s
CI / test (pull_request) Successful in 30s
Layer 5 (final) of epic ORCH-52. Docs + prompt-only; src/ untouched.

- README.md «Известные ограничения»: fix numbering (was 1,2,3,4,3,4),
  move 6 resolved/obsolete items to «Закрыто (история)» trail with ORCH
  refs, keep only really-open limitations (Telegram-48h ORCH-087,
  task-deps intra-repo ORCH-026, serial-gate ORCH-088). Point-sync stage
  table (development → check_ci_green) and event-routing (ORCH-045).
- reviewer.md: overview-docs axis (axis 4 + constraints) — closing a
  README limitation without updating README → finding ≥P1 (canon 52d
  «»; verdict key + 5 XML sections + 6 schema fields byte-intact).
- tests: new tests/test_readme_limitations.py (numbering + no resolved
  items as open); test_agent_prompts_canon.py asserts the new axis.
- CLAUDE.md / CHANGELOG.md updated; epic ORCH-52 closed (52b→…→52f).

Refs: ORCH-079

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 16:23:17 +03:00
e75f8796f5 architect(ET): auto-commit from architect run_id=472
All checks were successful
CI / test (push) Successful in 31s
2026-06-09 16:16:42 +03:00
85ad27ab8f analyst(ET): auto-commit from analyst run_id=471
All checks were successful
CI / test (push) Successful in 30s
2026-06-09 16:09:15 +03:00
0d20b208a7 docs: init ORCH-079 business request
All checks were successful
CI / test (push) Successful in 29s
2026-06-09 16:04:50 +03:00
55ead46f13 Merge pull request 'ORCH-078 — ORCH-52e: трассировка ORCH-NNN (стандарт маркеров + правило чтения ADR)' (#95) from feature/ORCH-078-orch-52e-orch-nnn into main
Some checks failed
CI / test (push) Has been cancelled
2026-06-09 15:52:57 +03:00
deploy-finalizer
8e2179a890 deploy(ORCH-036): finalize SUCCESS for ORCH-078
All checks were successful
CI / test (push) Successful in 30s
2026-06-09 15:52:56 +03:00
da709895f9 tester(ET): auto-commit from tester run_id=469
All checks were successful
CI / test (push) Successful in 35s
CI / test (pull_request) Successful in 33s
2026-06-09 15:48:43 +03:00
fb9c133ef9 reviewer(ET): auto-commit from reviewer run_id=468 2026-06-09 15:48:43 +03:00
572b3172cd docs(ORCH-078): ORCH-52e — стандарт трассировки ORCH-NNN + правило чтения ADR
Слой 4 (трассировка) эпика ORCH-52, замыкающий цепочку 52b/52c/52d.
Docs + prompts-only: src/**, STAGE_TRANSITIONS, QG_CHECKS, src/frontmatter.py,
схема БД — не тронуты; новый QG не вводится; ретро-фит 51 маркера вне объёма.

- Новый нормативный стандарт docs/_standards/TRACEABILITY.md: формат маркера,
  правило размещения, чтение истории с реальным проверяемым примером
  (src/serial_gate.py → ORCH-088 → ADR-001-serial-gate.md), fallback-доступ
  (git show origin/main:...), анти-археология (3+ → сводный сквозной ADR),
  каноничный текст правила чтения (единый источник).
- Точечные аддитивные врезки в промпты (52d-канон не переписан): developer.md
  (правило чтения чужого маркера + fallback, « X →  Y»), architect.md
  (правило чтения + анти-археология), reviewer.md (усиление оси «Соответствие
  ADR» под-пунктом: слом маркированного инварианта → finding ≥P1). Все три
  ссылаются на единый текст в TRACEABILITY.md, не копируют (анти-дубль BR-6).
- Сопутствующе: CLAUDE.md, docs/architecture/README.md (слой 4 эпика 52),
  CHANGELOG.md.
- Анти-регресс: расширен tests/test_agent_prompts_canon.py (9 новых проверок);
  проверки 52d и test_agent_frontmatter_no_model.py зелёные;
  полный pytest tests/ -q зелёный (1253 passed), src/ не изменён.

Refs: ORCH-078

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 15:48:43 +03:00
14f037a8a9 architect(ET): auto-commit from architect run_id=466 2026-06-09 15:48:43 +03:00
8064ae2c5d analyst(ET): auto-commit from analyst run_id=465 2026-06-09 15:48:43 +03:00
5349a41182 docs: init ORCH-078 business request 2026-06-09 15:48:43 +03:00
e8523ac116 docs(ORCH-078): staging gate log — deploy-staging SUCCESS
Staging suite passed inside orchestrator-staging (exit 0); C9a/C9b waived (ORCH-061).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 15:48:16 +03:00
76a778696c Merge pull request 'ORCH-077 — ORCH-52d: канон Anthropic для 6 промптов + эмиссия frontmatter-схемы 52c' (#94) from feature/ORCH-077-orch-52d-6-anthropic into main
Some checks failed
CI / test (push) Has been cancelled
2026-06-09 15:12:40 +03:00
deploy-finalizer
9fd99cb67a deploy(ORCH-036): finalize SUCCESS for ORCH-077
All checks were successful
CI / test (push) Successful in 31s
2026-06-09 15:12:39 +03:00
7619f12169 tester(ET): auto-commit from tester run_id=463
All checks were successful
CI / test (push) Successful in 35s
CI / test (pull_request) Successful in 30s
2026-06-09 15:08:27 +03:00
93d5c9c296 reviewer(ET): auto-commit from reviewer run_id=462 2026-06-09 15:08:27 +03:00
8beed58d98 docs(prompts): rewrite 6 agent prompts in Anthropic canon + emit 52c schema (ORCH-52d)
Замыкающий слой эпика ORCH-52. Тело всех 6 промптов .openclaw/agents/*.md
переписано в едином каноне Anthropic (5 обязательных XML-секций <context>/
<task>/<deliverables>/<constraints>/<output_format>, запреты « X →  Y»,
<thinking> у решающих ролей), и каждый промпт добровольно эмитит 6-польную
frontmatter-схему 52c (work_item/stage/author_agent/status/created_at/
model_used) аддитивно — рядом с machine-verdict ключом, не меняя его имя/
регистр/значения (verdict:/result:/staging_status:/deploy_status:/
security_status:).

Docs/prompts-only: src/**, STAGE_TRANSITIONS, QG_CHECKS, схема БД не тронуты;
frontmatter_validation_strict остаётся False (enforcement не включён).
Функциональное содержание старых промптов перенесено 1:1 (инвентарь TRZ §FR-6).

- tests/test_agent_prompts_canon.py: структурный анти-регресс (TC-01…TC-07)
- tests/manual/ab_prompt_compare.md: метод A/B (TC-09 / AC-6)
- CLAUDE.md, CHANGELOG.md обновлены; README/ADR — архитектором

Полный регресс pytest tests/ -q зелёный (1244); test_agent_frontmatter_no_model
остаётся зелёным.

Refs: ORCH-077
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 15:08:27 +03:00
b21e9d8898 architect(ET): auto-commit from architect run_id=460 2026-06-09 15:08:27 +03:00
bd5d681083 analyst(ET): auto-commit from analyst run_id=459 2026-06-09 15:08:27 +03:00
9deff540f5 docs: init ORCH-077 business request 2026-06-09 15:08:27 +03:00
8455e31dae deploy-staging(ORCH-077): staging gate SUCCESS
Staging check suite exit 0 (8/10 REAL green; C9a/C9b infra-waived per ORCH-061).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 15:08:02 +03:00
3602eee69f Merge pull request 'ORCH-076 — ORCH-52c: единый frontmatter-контракт (reader/writer/валидатор) + спека handoff' (#92) from feature/ORCH-076-orch-52c-handoff-frontmatter-w into main
Some checks failed
CI / test (push) Has been cancelled
2026-06-09 14:18:43 +03:00
deploy-finalizer
2e27f68958 deploy(ORCH-036): finalize SUCCESS for ORCH-076
All checks were successful
CI / test (push) Successful in 31s
2026-06-09 14:18:42 +03:00
cb9bfcff12 tester(ET): auto-commit from tester run_id=457
All checks were successful
CI / test (push) Successful in 36s
CI / test (pull_request) Successful in 31s
2026-06-09 14:14:30 +03:00
d846910ca6 reviewer(ET): auto-commit from reviewer run_id=456 2026-06-09 14:14:30 +03:00
92961d1d32 refactor(frontmatter): unified frontmatter contract + handoff spec (ORCH-52c)
src/frontmatter.py grows from a single-key reader into the full machine
contract: reader (read_frontmatter_value, unchanged), one parse primitive
(parse_frontmatter), writer (render/write_frontmatter), schema validator
(validate_schema/REQUIRED_FIELDS, warning-only by default) and a shared
strip_frontmatter helper. The five verdict gates (check_reviewer_verdict,
_parse_tests_verdict, _parse_deploy_status, _parse_staging_status,
parse_security_status) now read through the single parse_frontmatter point
instead of duplicated ad-hoc YAML logic; review_parse._strip_frontmatter and
security_gate.extract_security_findings reuse the shared helper.

Strictly backward compatible + never-raise: STAGE_TRANSITIONS, the QG_CHECKS
composition, verdict semantics (incl. ORCH-047 three-field tester + negative
token priority), reason-strings and worktree->origin/main fallback are 1:1.
The schema validator never influences a gate verdict by default; hard-fail is
reserved behind the frontmatter_validation_strict kill-switch (default False).

New formal handoff spec docs/_standards/HANDOFF_PROTOCOL.md ("stage -> required
output" + required frontmatter schema), aligned 1:1 with PIPELINE_DOCS.md.

Tests: test_frontmatter.py (TC-01..07), test_qg_verdicts.py (TC-08..15),
test_security_gate.py (TC-12), test_stages_invariants.py (TC-16). Full
tests/ green (1212).

Refs: ORCH-076

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 14:14:30 +03:00
2030d1627a architect(ET): auto-commit from architect run_id=454 2026-06-09 14:14:30 +03:00
98c50a094b analyst(ET): auto-commit from analyst run_id=453 2026-06-09 14:14:30 +03:00
561f58abe0 docs: init ORCH-076 business request 2026-06-09 14:14:30 +03:00
95d2c2093a Merge pull request 'docs(ORCH-076): staging gate log — SUCCESS' (#93) from docs/ORCH-076-staging-log into main 2026-06-09 14:13:59 +03:00
6868e34d1f docs(ORCH-076): staging gate log — staging_status SUCCESS
All checks were successful
CI / test (pull_request) Successful in 32s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 14:13:42 +03:00
03c6f2a145 Merge pull request 'ORCH-075 — ORCH-52b: стандарт документов (docs/_standards + docs/_templates + ADR-naming)' (#91) from feature/ORCH-075-orch-52b-docs-templates-adr-na into main
Some checks failed
CI / test (push) Has been cancelled
2026-06-09 13:31:18 +03:00
deploy-finalizer
da3e6e8acd deploy(ORCH-036): finalize SUCCESS for ORCH-075
All checks were successful
CI / test (push) Successful in 31s
2026-06-09 13:31:17 +03:00
119b8f2bec tester(ET): auto-commit from tester run_id=451
All checks were successful
CI / test (push) Successful in 36s
CI / test (pull_request) Successful in 32s
2026-06-09 13:25:39 +03:00
138092e040 reviewer(ET): auto-commit from reviewer run_id=450 2026-06-09 13:25:39 +03:00
5e60543232 docs(standards): pipeline docs standard — manifest + templates + ADR-naming
Создан golden source структуры номерных документов work item (ORCH-52b, слой 1
эпика ORCH-52). Docs-only: STAGE_TRANSITIONS / QG_CHECKS / check_* / схема БД не
трогаются (AC-6).

- docs/_standards/PIPELINE_DOCS.md — манифест «стадия→агент→документ→категория→
  гейт→frontmatter machine-key» (сверен с src/stages.py и src/qg/checks.py) +
  раздел ADR-naming. Манифест документирует поведение гейтов, источник истины
  остаётся код (ADR-001 §D2); честно различает machine-verdict (12/13/14/15/17)
  и информационные (00/08/10/16) доки; под-гейты ребра deploy-staging→deploy
  отмечены как врезки в advance_stage.
- docs/_templates/* — 15 копируемых скелетов; машинные доки несут точный
  frontmatter-ключ из _parse_* (verdict/result/deploy_status/staging_status/
  security_status/post_deploy_status).
- Точки-ссылки: CLAUDE.md, docs/architecture/README.md; запись CHANGELOG.
- tests/test_orch_52b_docs_standard.py — TC-01..TC-20 структурные проверки;
  полный pytest tests/ зелёный (1177 passed).

Refs: ORCH-075

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 13:25:39 +03:00
3251c8c4ed architect(ET): auto-commit from architect run_id=448 2026-06-09 13:25:39 +03:00
6511ddadbb analyst(ET): auto-commit from analyst run_id=447 2026-06-09 13:25:39 +03:00
18e98945dd docs: init ORCH-075 business request 2026-06-09 13:25:39 +03:00
0f7db904f1 deploy-staging(ORCH-075): staging gate SUCCESS
Staging suite 8/10 PASS, exit 0. All REAL checks green; C9a/C9b
sandbox-infra waived (ORCH-061). staging_status: SUCCESS.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 13:25:04 +03:00
73d936a4c4 Merge pull request 'feat(labels): auto-mode by Plane labels — autoApprove + autoDeploy (ORCH-089)' (#89) from feature/ORCH-089-autoapprove-brd-autodeploy into main
Some checks failed
CI / test (push) Has been cancelled
2026-06-09 12:38:52 +03:00
deploy-finalizer
a16196d68c deploy(ORCH-036): finalize SUCCESS for ORCH-089
All checks were successful
CI / test (push) Successful in 30s
2026-06-09 12:38:51 +03:00
9b3490ceaa tester(ET): auto-commit from tester run_id=445
All checks were successful
CI / test (push) Successful in 35s
CI / test (pull_request) Successful in 29s
2026-06-09 12:31:24 +03:00
3c407397da reviewer(ET): auto-commit from reviewer run_id=444 2026-06-09 12:31:24 +03:00
a6d0ba51c0 feat(labels): auto-mode by Plane labels — autoApprove + autoDeploy (ORCH-089)
Lift the two HUMAN gates that block an autonomous batch run (epic ORCH-088):
the BRD gate (analysis: manual Approved) and the prod-deploy gate (deploy
Phase A: manual Confirm Deploy, ORCH-059). Selective (a Plane label on the
issue), declarative, reversible, and WITHOUT touching a single technical check.

Additive, mirroring the conditional sub-gates (ORCH-035/043/058/088): leaf
src/labels.py (never-raise) + two point insertions + config flags.
STAGE_TRANSITIONS / QG_CHECKS / check_* / DB schema are NOT touched.

- autoApprove: врезка in _handle_analysis_approved_flow (files_ok branch) ->
  set_issue_approved + log/Telegram/Plane-comment + advance_stage(
  finished_agent=None) — the SAME path a human Approved takes (approved-via-
  status -> analysis->architecture + mark_brd_review_ended). No duplicated
  transition logic; re-entrancy safe.
- autoDeploy: врезка in _handle_self_deploy_phase_a after advance to deploy +
  clear_state -> log/Telegram/Plane-comment + _handle_self_deploy_phase_b
  (INITIATED marker, Deploying, finalizer). Only the indicative human steps are
  skipped. BR-5 holds structurally: Phase A is reached only after the green edge
  sub-gates, so autoDeploy can never deploy a broken build.
- plane_sync: fetch_issue_labels (None on error != []), get_project_labels
  ({normalized_name->uuid}, TTL cache, ambiguity sentinel), set_issue_approved.
- config flags: auto_label_enabled (kill-switch), auto_approve_label/
  auto_deploy_label, auto_label_repos (empty -> self-hosting only),
  auto_label_states_ttl_s. applies() (local) checked FIRST; has_label (network)
  only when applies==True -> zero network / zero regression when disabled (AC-8).
- Fail-safe (never auto on doubt), transparency via log+Telegram+Plane+card,
  read-only auto_labels block in GET /queue.
- Tests TC-01..TC-26 across 7 modules; docs (CLAUDE.md, architecture README,
  CHANGELOG) updated in the same PR.

Refs: ORCH-089

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 12:31:24 +03:00
f7488e9536 architect(ET): auto-commit from architect run_id=442 2026-06-09 12:31:24 +03:00
0b5fede802 analyst(ET): auto-commit from analyst run_id=441 2026-06-09 12:31:24 +03:00
cc2f1885e8 docs: init ORCH-089 business request 2026-06-09 12:31:24 +03:00
c9be0eb4c9 Merge pull request 'docs(ORCH-089): staging gate SUCCESS — 15-staging-log.md' (#90) from chore/ORCH-089-staging-log into main 2026-06-09 12:30:52 +03:00