ORCH-118: LLM call-site map, control-path axis, roadmap & usage policy (docs+tests only) #140

Merged
admin merged 12 commits from feature/ORCH-118-orch-replace-avoidable-llm-con into main 2026-06-16 00:42:50 +03:00
Owner

ORCH-118 — replace avoidable LLM control paths (inventory-first, docs+tests only)

Zonтичный follow-up RCA-трека ORCH-114/117. Выпускает доказательную карту мест вызова LLM, control-path-ось «avoidable», roadmap детерминированных замен и нормативную политику — прибитые к коду структурными анти-дрейф тестами. Раннеры замен не реализуются (FR-7).

Что в PR

  • docs/architecture/llm-call-sites.md — карта + машинно-читаемый блок инвентаря (id|role|location|output_consumer|consults_llm|axis|avoidable|classification) + control-path-разметка + классификация + keep-LLM-обоснования + раздел детерминизма не-агентских путей (FR-1/2/3/8).
  • docs/architecture/llm-determinization-roadmap.md — упорядоченные кандидаты по роли, оценка экономии из agent_runs, первый срез = deployer (staging-status) (FR-4). Без выдуманных Plane-ID (R3/NFR-6).
  • docs/architecture/llm-usage-policy.md — нормативный принцип, критерии keep/replace через ось, определение «avoidable LLM control path» как двухбитного предиката (FR-5/8).
  • tests/test_llm_call_site_inventory.py — TC-01/02/03/04/05/06/09/12/13/14.
  • tests/test_llm_determinization_docs.py — TC-07/08/11.
  • CHANGELOG.md + docs/overview/tech-quality-security.md — golden-source sync (AC-8). (Секция README + adr-0047 заведены на стадии architecture.)

Ключевой результат

  • avoidable LLM control paths = {tester, deployer}; control-path-но-keep = {reviewer}; не-control-path (P) = {analyst, architect, developer}; эталон = {deploy-finalizer, post-deploy-monitor}.
  • Единственный транспорт LLM-консультации = launcher._spawn (S0); иного транспорта нет (TC-12).
  • Дискриминатор всех тестов — «консультирует LLM», а не «спавнит subprocess».

Инварианты / скоуп

  • Docs + tests only: src/** не тронут → STAGE_TRANSITIONS / реестр и имена QG_CHECKS/check_* / machine-verdict-ключи / схема БД — байт-в-байт (TC-09). kill-switch не нужен (нет рантайм-поведения).
  • Self-hosting-безопасно: не деплоит/не рестартит прод/не трогает main.

Проверки

  • ruff check новых файлов — чисто.
  • pytest tests/ -q2081 passed (13 новых тестов зелёные).

Refs: ORCH-118

🤖 Generated with Claude Code

## ORCH-118 — replace avoidable LLM control paths (inventory-first, docs+tests only) Zonтичный follow-up RCA-трека ORCH-114/117. Выпускает **доказательную карту** мест вызова LLM, control-path-ось «avoidable», roadmap детерминированных замен и нормативную политику — прибитые к коду структурными анти-дрейф тестами. **Раннеры замен не реализуются** (FR-7). ### Что в PR - **`docs/architecture/llm-call-sites.md`** — карта + машинно-читаемый блок инвентаря (`id|role|location|output_consumer|consults_llm|axis|avoidable|classification`) + control-path-разметка + классификация + keep-LLM-обоснования + раздел детерминизма не-агентских путей (FR-1/2/3/8). - **`docs/architecture/llm-determinization-roadmap.md`** — упорядоченные кандидаты **по роли**, оценка экономии из `agent_runs`, первый срез = **deployer (staging-status)** (FR-4). Без выдуманных Plane-ID (R3/NFR-6). - **`docs/architecture/llm-usage-policy.md`** — нормативный принцип, критерии keep/replace через ось, определение «avoidable LLM control path» как двухбитного предиката (FR-5/8). - **`tests/test_llm_call_site_inventory.py`** — TC-01/02/03/04/05/06/09/12/13/14. - **`tests/test_llm_determinization_docs.py`** — TC-07/08/11. - **`CHANGELOG.md`** + **`docs/overview/tech-quality-security.md`** — golden-source sync (AC-8). (Секция README + adr-0047 заведены на стадии architecture.) ### Ключевой результат - **avoidable LLM control paths = `{tester, deployer}`**; control-path-но-keep = `{reviewer}`; не-control-path (P) = `{analyst, architect, developer}`; эталон = `{deploy-finalizer, post-deploy-monitor}`. - Единственный транспорт LLM-консультации = `launcher._spawn` (S0); иного транспорта нет (TC-12). - Дискриминатор всех тестов — **«консультирует LLM», а не «спавнит subprocess»**. ### Инварианты / скоуп - **Docs + tests only:** `src/**` не тронут → `STAGE_TRANSITIONS` / реестр и имена `QG_CHECKS`/`check_*` / machine-verdict-ключи / схема БД — **байт-в-байт** (TC-09). kill-switch не нужен (нет рантайм-поведения). - Self-hosting-безопасно: не деплоит/не рестартит прод/не трогает `main`. ### Проверки - `ruff check` новых файлов — чисто. - `pytest tests/ -q` — **2081 passed** (13 новых тестов зелёные). Refs: ORCH-118 🤖 Generated with [Claude Code](https://claude.com/claude-code)
admin added 8 commits 2026-06-16 00:13:45 +03:00
docs: init ORCH-118 business request
All checks were successful
CI / test (push) Successful in 1m12s
729caf8e2f
analyst(ET): auto-commit from analyst run_id=722
All checks were successful
CI / test (push) Successful in 1m9s
d60980c149
analyst(ET): auto-commit from analyst run_id=723
All checks were successful
CI / test (push) Successful in 1m10s
c7bed44845
analyst(ET): auto-commit from analyst run_id=724
All checks were successful
CI / test (push) Successful in 1m8s
bc5d550965
analyst(ET): auto-commit from analyst run_id=725
All checks were successful
CI / test (push) Successful in 1m9s
55c13abb9a
analyst(ET): auto-commit from analyst run_id=726
All checks were successful
CI / test (push) Successful in 1m7s
70171eb1c1
architect(ET): auto-commit from architect run_id=727
All checks were successful
CI / test (push) Successful in 1m7s
7597804f8c
docs(llm): LLM call-site map, control-path axis, roadmap & usage policy + anti-drift tests
All checks were successful
CI / test (push) Successful in 1m8s
CI / test (pull_request) Successful in 1m10s
9710d5f80d
ORCH-118 (inventory-first, docs+tests only): publish an evidence-based map of
every place the orchestrator's control flow consumes (or can consume) an LLM
judgment, mark the control-path axis (C control-path vs P artifact-producer),
define "avoidable LLM control path" as a checkable two-bit predicate, classify
each call-site, and order the deterministic-replacement roadmap. Pin the map to
code with offline structural anti-drift tests.

- docs/architecture/llm-call-sites.md   — map + machine-readable inventory block
  + control-path axis + classification + keep-LLM justifications + deterministic
  non-agent paths (FR-1/FR-2/FR-3/FR-8).
- docs/architecture/llm-determinization-roadmap.md — ordered candidates BY ROLE,
  savings sourced from agent_runs, recommended first slice = deployer staging
  (FR-4). No fabricated follow-up Plane-IDs (R3/NFR-6).
- docs/architecture/llm-usage-policy.md — normative principle, keep/replace
  criteria via the axis, definition of "avoidable LLM control path" (FR-5/FR-8).
- tests/test_llm_call_site_inventory.py — TC-01/02/03/04/05/06/09/12/13/14.
- tests/test_llm_determinization_docs.py — TC-07/08/11.
- CHANGELOG.md + docs/overview/tech-quality-security.md — golden-source sync (AC-8).

Avoidable LLM control paths = {tester, deployer}; control-path-keep = {reviewer};
not-control-path (P) = {analyst, architect, developer}. Single LLM transport =
launcher._spawn (S0); no alternative transport (TC-12). Runtime untouched:
STAGE_TRANSITIONS / QG_CHECKS / check_* / machine-verdict keys / DB schema are
byte-for-byte; no replacement runners implemented (FR-7). Full suite: 2081 passed.

Refs: ORCH-118
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
admin added 1 commit 2026-06-16 00:22:53 +03:00
reviewer(ET): auto-commit from reviewer run_id=729
All checks were successful
CI / test (push) Successful in 1m10s
CI / test (pull_request) Successful in 1m11s
5b36ca0a82
admin added 1 commit 2026-06-16 00:25:41 +03:00
tester(ET): auto-commit from tester run_id=730
All checks were successful
CI / test (push) Successful in 1m7s
CI / test (pull_request) Successful in 1m7s
20fbb2e202
admin added 1 commit 2026-06-16 00:28:54 +03:00
docs(ORCH-118): staging gate log — staging_status SUCCESS (infra-waived C9a/C9b)
All checks were successful
CI / test (push) Successful in 1m13s
CI / test (pull_request) Successful in 1m14s
b93b4587ad
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
admin merged commit e0d0c32888 into main 2026-06-16 00:42:50 +03:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/orchestrator#140