Skip to content

v1.33.0 — Docker-Isolated Build Execution

Choose a tag to compare

@B2JK-Industry B2JK-Industry released this 01 Apr 21:47
· 53 commits to main since this release

Docker-Isolated Build Execution with Auto-Fix Retry

What's New

Docker Project Executor (agent/build/docker_executor.py)

  • /build now runs generated projects entirely inside Docker containers
  • Phases: pip install (with network) → pytest (no network) → ruff lint
  • Safety: 512MB RAM, 1 CPU, 5min timeout, read-only mount

Auto-Fix Retry Loop

  • When tests fail, Opus receives test output + source code
  • Generates fixed code → re-runs tests in Docker → up to 2 retries
  • Full cycle each retry: write → install → test

Build Pipeline Integration

  • Codegen-produced builds route through Docker executor
  • Falls back to host verification if Docker unavailable
  • Docker results stored in job metadata

Improved Reporting

  • Telegram/API shows: files, deps, tests, lint, retries, LLM cost
  • Failed builds show test output for debugging

End-to-End Flow

/build . --description "URL shortener with FastAPI"
  → Opus generates 6+ files ($0.15)
  → Docker: pip install deps
  → Docker: pytest (isolated, no network)
  → If fail: Opus fixes → retry
  → Report: files=6 | tests=PASS | lint=PASS

Full Changelog: v1.32.0...v1.33.0