Commit Graph

232 Commits

Author SHA1 Message Date
1199d5aa7a tester(ET): auto-commit from tester run_id=201
All checks were successful
CI / test (push) Successful in 15s
CI / test (pull_request) Successful in 14s
2026-06-06 20:53:03 +00:00
ab6fdffad3 reviewer(ET): auto-commit from reviewer run_id=199
All checks were successful
CI / test (push) Successful in 16s
CI / test (pull_request) Successful in 16s
2026-06-06 20:49:24 +00:00
0a18bf7952 fix(deploy): clear stale self-deploy markers on rollback; document env
All checks were successful
CI / test (push) Successful in 17s
CI / test (pull_request) Successful in 16s
Re-deploy after a FAILED prod deploy wedged the task on `deploy`: the
sentinel markers (approve-requested/initiated/result) are keyed by the
stable work_item_id, so after the БАГ-8 rollback (deploy -> development)
and a developer fix, Phase B's idempotency-guard saw a STALE `initiated`
and became a no-op — the detached hook never re-launched and the
finalizer was never enqueued. Add self_deploy.clear_state (never-raise,
idempotent) and call it on the check_deploy_status FAILED rollback and at
the start of Phase A, so every fresh prod-deploy pass starts clean.

Also document the new ORCH_SELF_DEPLOY_* / ORCH_DEPLOY_* descriptors in
the canonical .env.example (CLAUDE.md rule #8, ТЗ §2.6), modelled on the
ORCH-043 merge-gate block (placeholders only, secrets not committed).

Contracts untouched: STAGE_TRANSITIONS, QG_CHECKS, _parse_deploy_status,
БАГ-8, merge-gate.

Refs: ORCH-036
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 20:42:38 +00:00
fdc112d775 reviewer(ET): auto-commit from reviewer run_id=195
All checks were successful
CI / test (push) Successful in 16s
CI / test (pull_request) Successful in 15s
2026-06-06 20:18:30 +00:00
2c3c662a28 feat(deploy): build-once SOURCE_IMAGE retag in hook + deploy-stage docs
All checks were successful
CI / test (push) Successful in 17s
CI / test (pull_request) Successful in 18s
Add the optional, backward-compatible SOURCE_IMAGE branch to
orchestrator-deploy-hook.sh: when set, retag the staging-validated image
onto TARGET_IMAGE (docker tag) before `up -d --no-build` instead of
rebuilding — guarantees prod runs the exact artefact that passed staging
(AC-7 / TC-14). Unset -> prior behaviour; exit-code contract (0/1/2) and
health-loop untouched.

Update golden-source docs (AC-13): rewrite deployer.md `deploy` stage from
"paper SUCCESS" to the executable self-deploy (Phase A/B/C, no self-restart
from inside the container) and add the ORCH-036 CHANGELOG entry.

Refs: ORCH-036

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 20:05:35 +00:00
be980e2a44 developer(ET): auto-commit from developer run_id=192
Some checks failed
CI / test (push) Failing after 17s
2026-06-06 20:01:07 +00:00
1acbb1d28d architect(ET): auto-commit from architect run_id=190
All checks were successful
CI / test (push) Successful in 18s
2026-06-06 19:25:16 +00:00
785ca744c6 analyst(ET): auto-commit from analyst run_id=189
All checks were successful
CI / test (push) Successful in 16s
2026-06-06 18:55:53 +00:00
4bbda63935 docs: init ORCH-036 business request
All checks were successful
CI / test (push) Successful in 17s
2026-06-06 21:51:17 +03:00
c21a279565 Merge pull request 'feat(merge-gate): auto-rebase onto current main + re-test + serialise merges (ORCH-043)' (#54) from feature/ORCH-043-merge-gate-auto-rebase-re-test into main
Some checks failed
CI / test (push) Has been cancelled
2026-06-06 21:24:33 +03:00
d9afb3a10d docs(ORCH-043): deploy gate log — deploy_status SUCCESS
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 17:45:13 +00:00
8447853db8 deployer(ET): auto-commit from deployer run_id=187
All checks were successful
CI / test (push) Successful in 16s
CI / test (pull_request) Successful in 16s
2026-06-06 17:41:23 +00:00
5dc5893a49 docs(ORCH-043): staging gate log — staging_status SUCCESS
Live staging-stand suite (scripts/staging_check.py, stub mode) ran inside
orchestrator-staging: 10/10 checks PASS, exit code 0. Merge-gate edge
(deploy-staging → deploy) cleared for ORCH-043.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 17:41:06 +00:00
581a8b595a tester(ET): auto-commit from tester run_id=186
All checks were successful
CI / test (push) Successful in 17s
CI / test (pull_request) Successful in 15s
2026-06-06 17:38:38 +00:00
ba51aa17bc reviewer(ET): auto-commit from reviewer run_id=185
All checks were successful
CI / test (push) Successful in 19s
CI / test (pull_request) Successful in 18s
2026-06-06 17:37:05 +00:00
00d69d9e27 feat(merge-gate): auto-rebase onto current main + re-test + serialise merges
All checks were successful
CI / test (push) Successful in 15s
CI / test (pull_request) Successful in 17s
Deterministic (no-LLM) sub-gate on the deploy-staging -> deploy edge that
catches a feature branch up to the CURRENT origin/main, re-tests the combined
tree, and serialises merges with a per-repo file lease — so two green parallel
branches can no longer break main (self-hosting safety for the orchestrator repo).

- src/merge_gate.py: branch_is_behind_main, auto_rebase_onto_main (push
  --force-with-lease ONLY the task branch, NEVER main), retest_branch, and a
  file merge-lease (atomic O_CREAT|O_EXCL, holder-aware release, stale reclaim).
  Strict never-raise contract; all git ops in the per-branch worktree.
- src/qg/checks.py: check_branch_mergeable composes the primitives under the
  lease; registered in QG_CHECKS. Conditional rollout (merge_gate_enabled /
  merge_gate_repos, default self-hosting only).
- src/stage_engine.py: sub-gate hook on deploy-staging (not a new stage). PASS ->
  advance; "merge-lock busy" -> DEFER (re-queue with available_at, anti-deadlock
  at max_concurrency=1, capped); conflict/red re-test -> rollback to development
  + developer retry (capped by MAX_DEVELOPER_RETRIES). Lease released on
  deploy->done / rollback / PR-merged webhook.
- src/db.py: enqueue_job(available_at_delay_s=...) for the defer (no schema change).
- src/webhooks/gitea.py: holder-aware lease release on PR-merged.
- src/config.py + .env.example: ORCH_MERGE_* settings.

Docs: README + adr-0006 (architect) already cover the design; CHANGELOG updated.
Tests: test_merge_gate.py, test_qg_merge_gate.py, test_merge_gate_race.py,
test_stage_engine.py::TestMergeGate, test_config.py, QG-registry snapshot.
Full suite: 535 passed.

Refs: ORCH-043

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 17:32:50 +00:00
ad1589084b architect(ET): auto-commit from architect run_id=183
All checks were successful
CI / test (push) Successful in 14s
2026-06-06 17:16:00 +00:00
77e7205ce8 analyst(ET): auto-commit from analyst run_id=182
All checks were successful
CI / test (push) Successful in 14s
2026-06-06 16:39:20 +00:00
445807dd90 docs: init ORCH-043 business request
All checks were successful
CI / test (push) Successful in 14s
2026-06-06 19:31:37 +03:00
39cb5dde70 Merge pull request 'fix(infra): ORCH-040 run containers as host uid 1000:1000 (not root)' (#53) from feature/ORCH-040-root-git into main
Some checks failed
CI / test (push) Has been cancelled
2026-06-06 19:26:35 +03:00
7b748b7ac5 docs(ORCH-040): deploy gate log — deploy_status SUCCESS
Self-hosting deploy verdict: artifact validated (staging gate green, compose
user=1000:1000 with МИНА 1 group_add intact). Prod cut-over handed to Owner
(P-1…P-4 + deploy hook) — in-task prod restart not performed by design.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 15:11:08 +00:00
bcf5256731 deployer(ET): auto-commit from deployer run_id=180
All checks were successful
CI / test (push) Successful in 15s
CI / test (pull_request) Successful in 14s
2026-06-06 15:09:01 +00:00
80275a3336 docs(ORCH-040): staging gate log — staging_status SUCCESS (10/10)
Staging check suite passed 10/10 (exit 0), run canonically inside
orchestrator-staging via the Docker Engine API (docker exec equivalent).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 15:08:50 +00:00
59e47ba067 tester(ET): auto-commit from tester run_id=179
All checks were successful
CI / test (push) Successful in 14s
CI / test (pull_request) Successful in 14s
2026-06-06 15:07:07 +00:00
be64761654 reviewer(ET): auto-commit from reviewer run_id=178
All checks were successful
CI / test (push) Successful in 13s
CI / test (pull_request) Successful in 13s
2026-06-06 15:05:26 +00:00
f81715bd39 fix(infra): run orchestrator containers as host uid 1000:1000 (not root)
All checks were successful
CI / test (push) Successful in 12s
CI / test (pull_request) Successful in 12s
Both compose services (orchestrator, orchestrator-staging) now declare
user: "1000:1000" so pipeline artifacts (git worktree, docs/work-items
commits) are created as slin:slin on the host — git pull/reset under slin
no longer fail with permission errors. docker.sock access preserved via
group_add: ["999"]. SSH mount target aligned with the launcher-forced
HOME=/home/slin (/root/.ssh -> /home/slin/.ssh). launcher.py and Dockerfile
unchanged. INFRA.md and CHANGELOG.md updated; host-prerequisites (P-1..P-4)
documented.

Refs: ORCH-040

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 15:02:33 +00:00
fe5eb38af2 architect(ET): auto-commit from architect run_id=176
All checks were successful
CI / test (push) Successful in 14s
2026-06-06 14:59:07 +00:00
5436c4110e analyst(ET): auto-commit from analyst run_id=175
All checks were successful
CI / test (push) Successful in 13s
2026-06-06 14:55:35 +00:00
8e91c8c23c analyst(ET): auto-commit from analyst run_id=174
All checks were successful
CI / test (push) Successful in 14s
2026-06-06 14:49:21 +00:00
83e26279bf docs: init ORCH-040 business request
All checks were successful
CI / test (push) Successful in 14s
2026-06-06 17:46:34 +03:00
3441f01650 Merge pull request 'feat(notifications): ORCH-042 Telegram tracker bump mode + russification' (#52) from feature/ORCH-042-telegram-live-tracker-bump into main
Some checks failed
CI / test (push) Has been cancelled
2026-06-06 13:48:55 +03:00
18378c2713 docs(ORCH-042): add deploy log (deploy_status: SUCCESS)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 10:22:01 +00:00
753eea37fc deployer(ET): auto-commit from deployer run_id=172
All checks were successful
CI / test (push) Successful in 13s
CI / test (pull_request) Successful in 12s
2026-06-06 10:20:02 +00:00
efbd8b7b8f docs(ORCH-042): add staging gate log (staging_status: SUCCESS)
Staging check suite ran inside orchestrator-staging (port 8501): 10/10 PASS.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 10:19:50 +00:00
6ef28efccd tester(ET): auto-commit from tester run_id=171
All checks were successful
CI / test (push) Successful in 14s
CI / test (pull_request) Successful in 12s
2026-06-06 10:17:45 +00:00
52cfe51bd8 reviewer(ET): auto-commit from reviewer run_id=170
All checks were successful
CI / test (push) Successful in 12s
CI / test (pull_request) Successful in 12s
2026-06-06 10:16:31 +00:00
05c17135c1 feat(notifications): add bump mode + russify Telegram live-tracker
All checks were successful
CI / test (push) Successful in 13s
CI / test (pull_request) Successful in 13s
ORCH-042: new ORCH_TRACKER_MODE (Settings.tracker_mode, default edit) selects
the live-tracker card behaviour. bump mode re-creates the card at the bottom of
the chat on every update (delete_telegram + send silently + repoint message_id),
keeping the "one card per task" invariant: <=1 new message per call, repoint
only on successful send, delete result never gates the send. New never-raising
delete_telegram helper. Anything != "bump" resolves to edit (zero regression).

Also russify/cosmetic-fix the card text (both modes): "Подтверждение BRD" label,
 after approve-gate, Russian stage labels, "📦 Внедрено". Docs updated in the
same PR (CHANGELOG, internals.md, .env.example).

Refs: ORCH-042

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 10:13:49 +00:00
0ac50b8c73 architect(ET): auto-commit from architect run_id=168
All checks were successful
CI / test (push) Successful in 12s
2026-06-06 10:05:26 +00:00
66100855f6 analyst(ET): auto-commit from analyst run_id=167
All checks were successful
CI / test (push) Successful in 15s
2026-06-06 09:49:58 +00:00
3f23897327 docs: init ORCH-042 business request
All checks were successful
CI / test (push) Successful in 13s
2026-06-06 12:27:13 +03:00
ed10f28879 docs(ORCH-044): add deploy log (deploy_status: SUCCESS)
Some checks failed
CI / test (push) Has been cancelled
Artifact-only production deploy verdict for ORCH-044. All gates green
(review APPROVED, tests PASS, staging SUCCESS 10/10). src/ runtime
changed → real rebuild+restart of prod orchestrator (8500) delegated to
Owner-run deploy hook (ORCH-36); prod container not touched by agent.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 08:45:08 +00:00
45480966c1 Merge pull request '#51' staging-log/ORCH-044 into main 2026-06-06 11:42:58 +03:00
a662eeb2a1 docs(ORCH-044): staging gate log — SUCCESS (10/10, B6 registry isolation PASS)
All checks were successful
CI / test (pull_request) Successful in 15s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 08:42:47 +00:00
507c225175 Merge pull request 'docs(history): LESSONS_ORCH-048' (#49) from docs/lessons-orch-048 into main
Some checks failed
CI / test (push) Has been cancelled
2026-06-06 10:30:51 +03:00
a8221f01c8 docs(history): LESSONS_ORCH-048 — staging B6 isolation, variant (v), chicken-egg lesson
All checks were successful
CI / test (pull_request) Successful in 12s
2026-06-06 10:30:50 +03:00
2a36ed80b9 fix(staging_check): ORCH-048 B6 reads registry inside staging container (variant v)
ADR-001 in-container run; removes host-path hack; _evaluate_b6 pure fn; deployer.md+STAGING_CHECK.md updated. Staging 10/10 PASS incl B6.
2026-06-06 10:24:10 +03:00
3f1f3fc73b Merge pull request 'docs(ORCH-048): prod deploy log — SUCCESS (bind-mount-only, prod untouched)' (#48) from deploy-log/ORCH-048-20260606T071157 into main 2026-06-06 10:12:28 +03:00
8a70398496 docs(ORCH-048): prod deploy log — SUCCESS (bind-mount-only, prod untouched, staging gate green)
All checks were successful
CI / test (pull_request) Successful in 14s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 07:11:57 +00:00
9c1c028dc1 Merge pull request 'docs(ORCH-048): staging gate log — SUCCESS (10/10, B6 registry isolation PASS)' (#47) from staging-log/ORCH-048-20260606T071003 into main 2026-06-06 10:10:18 +03:00
81e6ec5a20 docs(ORCH-048): staging gate log — SUCCESS (10/10, B6 registry isolation PASS)
All checks were successful
CI / test (pull_request) Successful in 13s
Staging suite run inside orchestrator-staging via docker exec (canonical,
ADR-001). All 10/10 checks pass, exit 0. B6 now reads registry from the
running staging instance's own process-env -> sandbox present, prod ET/ORCH
absent, no false FAIL / spurious rollback.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 07:10:03 +00:00