MLflow destination
Fleet sends traces to a local MLflow OSS server on the loopback address, configured in[mlflow.local]. The shipped port is 5001. Fleet RLM no longer supports Databricks managed MLflow or Unity Catalog trace storage. To read traces you stored in Unity Catalog with an earlier release, use your own Databricks tooling.
Fleet keeps separate experiments for runtime Turns, evaluation, and GEPA optimization.
Override any value with the matching
FLEET_MLFLOW_LOCAL_* variable. See the configuration reference.
Local MLflow
fleet cli starts a local MLflow server on port 5001 if none is running, and stores its data in .fleet/mlflow. If a server already answers on that port, fleet cli reuses it.
fleet serve and the standalone fleet eval, fleet trace, and fleet optimize commands don’t start MLflow. They fail with Local MLflow is not reachable at http://127.0.0.1:5001 until you start it with fleet cli or run an MLflow server yourself.
PostgreSQL and S3 storage for local MLflow
By default, the MLflow server thatfleet cli and fleet web start keeps its tracking data in a SQLite file and its artifacts in local files under .fleet/mlflow. To store them elsewhere, set these variables in .env or the environment:
.env
FLEET_MLFLOW_LOCAL_BACKEND_STORE_URIreplaces the SQLite file with a PostgreSQL backend. Use the SQLAlchemypostgresql+psycopgdriver.FLEET_MLFLOW_LOCAL_ARTIFACT_DESTINATIONmakes the server store and serve artifacts at that S3 location instead of local files.- Fleet forwards
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_DEFAULT_REGION, andMLFLOW_S3_ENDPOINT_URLfrom the environment or.envto the MLflow server it starts.
Encrypted Gateway secrets
When your local MLflow store holds encrypted MLflow Gateway secrets, set the key-encryption settings in.env or the environment:
.env
fleet cli and fleet web forward both variables to the MLflow server they start, so it can decrypt the secrets stored in .fleet/mlflow/mlflow.db. A value in the process environment wins over .env. MLFLOW_CRYPTO_KEK_VERSION must be a positive integer. Set both if you rotated the key.
When fleet cli or fleet web starts or reuses local MLflow, Fleet compares these settings with the secrets in mlflow.db and prints a warning when they conflict. Fleet skips the mlflow.db checks when you set FLEET_MLFLOW_LOCAL_BACKEND_STORE_URI:
- The database holds secrets with a key version above 1, but
MLFLOW_CRYPTO_KEK_PASSPHRASEisn’t set. MLFLOW_CRYPTO_KEK_VERSIONdoesn’t match any key version in the database. Unset, it resolves to1.MLFLOW_CRYPTO_KEK_PASSPHRASEis set, but the MLflow server already running on the port uses the default passphrase. Restart that server with.envloaded, or stop it sofleet clistarts its own.
fleet doctor runs the same check and reports MLflow as blocked when it finds a conflict. See the CLI reference. When you run MLflow yourself, start it with these variables in its environment, for example with uv run --env-file .env mlflow server.
Fleet rejects the retired
FLEET_MLFLOW_MODE, MLFLOW_TRACKING_URI, and MLFLOW_EXPERIMENT_NAME settings in .env with Retired MLflow settings. Use the FLEET_MLFLOW_LOCAL_* variables instead.Find a Turn’s trace
The Turn ID is the trace’sclient_request_id, so you can join a stream event, a stored Turn, and its trace. MLflow also groups traces by Session through the mlflow.trace.session metadata.
In the terminal, /trace prints the most recent persisted trace ID for the Session. /history shows the trace ID next to each saved Turn.
GET /health reports the MLflow destination the server initialized, including mode (always local), tracking_uri, the experiment names, the runtime experiment_id, and ready.
Trace tags
Fleet tags every Turn trace so you can filter and compare runs.Spans
A
sandbox.exec span that bridges host calls contains the host work it waits on. To total Sandbox compute, sum root sandbox.exec spans only, so you don’t count nested work twice.
Workspace transfer spans
Workspace transfer spans show whether time goes to path checks or to the transfer itself. Fleet records them only inside an active trace. They carry these attributes:
Each span’s output records
completed, which is false when the operation failed. Span durations include retries and backoff. Transfer spans nest inside the sandbox.input_* spans, so don’t add nested durations together.
Fleet never records file names, file contents, or credentials on these spans. When a transfer fails, Fleet sets the span status to ERROR without paths or exception details, and the caller still receives the original error.
Verify trace delivery
fleet trace verify flushes pending exports and reads one stored trace back from the configured destination.
Trace export verified with the span count and tracking URI. The command fails if the trace is missing, has no spans, or belongs to a different experiment than the one configured for the scope.