Skip to content

[agentbricks] Prototype lean workers with web search and warm pool - #917

Draft
jamesbxwu wants to merge 26 commits into
codex/agentbricks-sandbox-warm-poolfrom
codex/agentbricks-lean-worker-prototype
Draft

jamesbxwu wants to merge 26 commits into
codex/agentbricks-sandbox-warm-poolfrom
codex/agentbricks-lean-worker-prototype

Conversation

@jamesbxwu

@jamesbxwu jamesbxwu commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Simple chat workers import a broad management and model-logging dependency graph. This draft separates databricks-agentkit-runtime, owning databricks_agentkit, from databricks-agentbricks, owning CLI/templates and depending on the exact paired SDK version. Ordinary CLI installs retain management/template capabilities; workers can choose tracing and framework extras directly. Wheel file sets are disjoint.

The shared lifecycle imports with CLI, server, SQL, transport and framework imports blocked. It is suitable for native async MAR adapters without importing the Apps entry point. Includes the prior deferred imports, bytecode compilation, bounded import read-ahead and demo builder. Stacked on #915, retaining manual warm spares, session UI, canonical invocation API and Apps-owned dispatch/reconciliation. Sandbox-side polling/claiming and the Omnigent callback/history-commit bridge are follow-ups, not implemented here.

Paired artifacts now flow through release stamping and the suite harness. Stamping updates SDK/CLI versions and their exact dependency together; suites build/vendor both wheels and validate matching versions. Published CLI installs stage the exact SDK [sandbox] requirement from the configured package index, without requiring a checkout. Editable development installs retain content-versioned paired wheel builds. CLI help/reference and bundled deployment guidance reflect this distinction. Publishing remains disabled; nothing is released by this PR.

No additional deploy flags or existing Runtime Store schema changes. The SDK suite harness adds --runtime-wheel for prebuilt test artifacts, with automatic sibling discovery.

Validation: 363 sandbox tests and 425 existing CLI/server/runtime tests passed at the composed head; focused CLI/packaging/lifecycle checks also passed. Two private gRPC checks skipped. Release-stamping tests passed. Automated publishing remains disabled. Built both ordinary and content-versioned wheel pairs; verified matching versions, exact SDK pins and disjoint files. Installed the paired wheels with dependencies in a fresh venv, checked CLI help, blocked-import lifecycle loading, and source-free staging with the sandbox extra.

Live validation: deployed a0bd7d8 on e2-dogfood and compared with b87f2f0 using the same frozen LangGraph agent, model and App. Three cold sessions per build: median readiness 17.9 → 18.6 s, warm first text 4.0 → 4.1 s and confirmed stop 23.0 → 22.7 s. One prepared-pool allocation per build: 3.0 → 3.2 s. Memory, tools, persistent worker reuse, stop/resume, progressive SSE, canonical invocation replay and the browser chat/stop flow passed. Shutdown outliers reached 75 s; this small sample does not establish tail-latency equivalence. Raw captures stay outside the PR.

Full upgrade validation from the legacy monolithic distribution, the minimum-version/integration matrix, native MAR adapter/runner wiring, paired release-workflow wiring, trusted-publisher setup for the SDK remain release prerequisites. The old monolithic App upgrade deleted overlapping SDK files during the baseline rollout and required a one-time reinstall; that upgrade path is not release-qualified. The tested workflow patch is retained locally: GitHub rejected workflow updates because the current OAuth login lacks workflow scope. Keep as a demonstration draft.

Local editable installation · Investigation · Latest deployed App, running the composed head with two warm spares.

@jamesbxwu jamesbxwu changed the title [agentbricks] Prototype a tracing-only sandbox worker dependency graph [agentbricks] Prototype lean sandbox workers with install-time compilation Nov 14, 2026
@jamesbxwu jamesbxwu changed the title [agentbricks] Prototype lean sandbox workers with install-time compilation [agentbricks] Prototype lean sandbox workers with managed web search Nov 14, 2026
@jamesbxwu jamesbxwu changed the title [agentbricks] Prototype lean sandbox workers with managed web search [agentbricks] Prototype lean workers with web search and warm pool Nov 14, 2026
@jamesbxwu
jamesbxwu added this pull request to stack #918 November 16, 2026 06:16

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant