Skip to content

Add durable MLflow agent server - #468

Closed
shivam5 wants to merge 3 commits into
databricks:mainfrom
shivam5:durable-agent-server
Closed

Add durable MLflow agent server#468
shivam5 wants to merge 3 commits into
databricks:mainfrom
shivam5:durable-agent-server

Conversation

@shivam5

@shivam5 shivam5 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

What did you change, and why?

Change: Add DatabricksDurableAgentServer, an MLflow AgentServer subclass backed by DatabricksDurableRuntime. It preserves the standard @invoke() handler, AgentServer validation/tracing/header propagation/chat proxy, and adds blocking/background execution, Lakebase recovery, and result retrieval. Adapt examples/openai-sdk-agent to use this abstraction and document the DX and inheritance tradeoff.

Why: This is a sibling design alternative to #466 and #467 for comparing a transport-neutral runtime, a standalone composed server, and an AgentServer-derived server. The application no longer owns FastAPI or status-response glue; the library accepts tighter coupling to AgentServer's protected route and invoke hooks.

How do you know it works?

Testing: Added tests for inheritance, AgentServer validation, @invoke() dispatch, durable attempt context, blocking/background/retrieval/cache/error behavior, lifecycle, health, and /agent/info. The focused server and durable-runtime suites pass (30 tests) against both MLflow 3.10.1 and 3.15.1. Repository formatting and lint pass; ty check completes with three pre-existing unused-ignore warnings. The included live stop/start observations are explicitly identified as results from the shared runtime baseline; this transport variant was not separately deployed.

@shivam5

shivam5 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

This is a POC PR - moved the PR to #467

@shivam5 shivam5 closed this Aug 20, 2026
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