Skip to content

Mega 2.0: live LLM worker in full-pipeline#99

Merged
vladmesh merged 5 commits into
mainfrom
pipeline/codegen_orchestrator-627
Jul 18, 2026
Merged

Mega 2.0: live LLM worker in full-pipeline#99
vladmesh merged 5 commits into
mainfrom
pipeline/codegen_orchestrator-627

Conversation

@vladmesh

Copy link
Copy Markdown
Owner

Расширяет THE MEGA TEST на реального LLM-воркера (agent_type=claude) поверх noop-пути. Живой прогон зелёный: noop 7/7 + LLM 5/5 (scaffold → live Claude пишет бэкенд → deploy success → /health 200 → non-LLM QA passed).

Ключевое:

  • Live-фикстура backend-проекта без required user-секретов; noop-путь сохранён.
  • Проба env-контракта различает required и опциональные user_secret-записи; test_no_user_secrets_required смотрит только на required (шаблонные DATABASE_URL/ASYNC_DATABASE_URL — required: false, резолвятся из инфры).
  • Дефолт worker subprocess timeout 300 → 900, чтобы живой LLM-агент не убивался посреди правки (в пределах harness LLM_ENGINEERING_TIMEOUT). Noop-раннер сохраняет свой короткий таймаут.
  • worker mem 4G для claude/factory, hardening factory-startup, cleanup принимает docker no-such-object.
  • COMPOSE_PROJECT_NAME и HOST_CLAUDE_DIR задокументированы в .env.example.

make test-unit / lint зелёные.

vladmesh and others added 5 commits July 18, 2026 02:50
…timeout default

The live LLM mega passes end to end (scaffold -> live Claude worker -> deploy
-> /health -> QA). Two fixes close the last gaps a real worker exposed:

- test_no_user_secrets_required asserted user_secret_entries == [], counting
  optional overrides. The backend template declares DATABASE_URL/ASYNC_DATABASE_URL
  as source: user_secret, required: false, resolved from the allocated postgres.
  Only required user secrets dead-end deploy (WAITING_FOR_USER_SECRET), so the
  contract probe now reports required_user_secret_entries and the test checks that.
- Raise the worker subprocess timeout default 300 -> 900 (worker-manager and
  worker-wrapper) so a live LLM agent process is not killed mid-edit; stays within
  the harness LLM_ENGINEERING_TIMEOUT. The noop runner keeps its own short timeout.

Document COMPOSE_PROJECT_NAME and HOST_CLAUDE_DIR (isolated worker session copy)
in .env.example so live tests and the stack agree regardless of checkout dir.
@vladmesh
vladmesh merged commit e3ec469 into main Jul 18, 2026
17 checks passed
@vladmesh
vladmesh deleted the pipeline/codegen_orchestrator-627 branch July 18, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant