Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6c321ea
fix: export OTLP over HTTP when the OTel variables ask for it (#679)
a-ratz Oct 25, 2026
e4d48b6
Merge pull request #684 from whiteducksoftware/fix/679-otlp-http
a-ratz Oct 25, 2026
97d8d84
feat: a span per model call in the OpenTelemetry GenAI conventions (#…
a-ratz Oct 25, 2026
cd9d0bb
docs: screenshots for the PR of #680 (removed in the next commit)
a-ratz Oct 25, 2026
966eaca
docs: remove the PR screenshots of #680
a-ratz Oct 25, 2026
594b89c
docs: one more screenshot for the PR of #680 (removed in the next com…
a-ratz Oct 25, 2026
9096fd2
docs: remove the PR screenshot of #680
a-ratz Oct 25, 2026
c375665
fix: Responses API usage and the conventions' message schema (#680, r…
a-ratz Oct 25, 2026
9efdda4
fix: one span per call for nested agents, Responses API tool calls (#…
a-ratz Oct 25, 2026
8b74d7d
Merge pull request #686 from whiteducksoftware/feat/680-genai-spans
a-ratz Oct 25, 2026
d9a8336
feat: a run's traces group into one session or thread (#681)
a-ratz Oct 25, 2026
dc07b34
docs: screenshots for the PR of #681 (removed in the next commit)
a-ratz Oct 25, 2026
e3b1ca4
docs: remove the PR screenshots of #681
a-ratz Oct 25, 2026
b91b26f
fix: only a context names the run, a payload field does not (#681, re…
a-ratz Oct 25, 2026
1cf4577
fix: the run comes from the bound ctx or a Context, never a payload (…
a-ratz Oct 25, 2026
196ca60
Merge pull request #687 from whiteducksoftware/feat/681-session-id
a-ratz Oct 25, 2026
869ba53
docs: a guide for tracing backends, comparisons without claims about …
a-ratz Oct 25, 2026
1681335
docs: screenshots for the PR of #682 (removed in the next commit)
a-ratz Oct 25, 2026
1c9aaac
docs: remove the PR screenshots of #682
a-ratz Oct 25, 2026
d89a558
docs: exported spans carry tokens, backends estimate the cost (#682, …
a-ratz Oct 25, 2026
5746ef1
docs: portable base64 for the Langfuse header (#682, review round 2)
a-ratz Oct 25, 2026
4b9fa88
docs: the README's observability section names the export (#682)
a-ratz Oct 25, 2026
503bc10
docs: README screenshot for the PR of #682 (removed in the next commit)
a-ratz Oct 25, 2026
823beae
docs: remove the README screenshot of #682
a-ratz Oct 25, 2026
32a4710
Merge pull request #688 from whiteducksoftware/docs/682-tracing-backends
a-ratz Oct 25, 2026
ef8db47
fix: close the litellm and dnspython Dependabot alerts on main (#689)
a-ratz Nov 3, 2026
4e73117
Merge pull request #690 from whiteducksoftware/fix/689-security-deps
a-ratz Nov 3, 2026
067ab59
chore: bump version to 0.5.800
a-ratz Nov 3, 2026
63ff5ab
Merge pull request #691 from whiteducksoftware/chore/bump-0.5.800
a-ratz Nov 3, 2026
004db71
Merge main into ui-rework: release 0.5.800 with the tracing and depen…
a-ratz Nov 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,12 +356,14 @@ The blackboard is in memory by default. Two persistent stores come with Flock:
- filters by correlation id and time;
- publish artifacts and run agents from the browser.
- **Trace viewer:** timeline, statistics, RED metrics, dependencies and configuration.
- **Tracing:** `FLOCK_AUTO_TRACE=true` and `FLOCK_TRACE_FILE=true` record every operation with its inputs and outputs as OpenTelemetry spans in `.flock/traces.duckdb`. Query them with SQL, or export them via OTLP.
- **Tracing:** `FLOCK_AUTO_TRACE=true` and `FLOCK_TRACE_FILE=true` record every operation with its inputs and outputs as OpenTelemetry spans in `.flock/traces.duckdb`. Query them with SQL.
- **Export:** `OTEL_EXPORTER_OTLP_ENDPOINT` sends the same spans over OTLP (gRPC or HTTP) to Langfuse, Opik, Arize Phoenix, Jaeger, MLflow or any other OpenTelemetry backend. Each model call is a span in the OpenTelemetry GenAI conventions, with model, provider, tokens and agent. A run's traces become one Langfuse session or one Opik thread.
- **Tokens and cost:** per agent run, in the dashboard and on the trace.
- **REST API:**
- `POST`/`GET /api/v1/artifacts`, `POST /api/v1/agents/{name}/run`, `GET /api/v1/correlations/{id}/status`, `/health` and `/metrics`;
- OpenAPI docs at `/docs`.

📖 [Dashboard](https://whiteducksoftware.github.io/flock/guides/dashboard/) · [Tracing](https://whiteducksoftware.github.io/flock/guides/tracing/) · [REST API](https://whiteducksoftware.github.io/flock/guides/rest-api/)
📖 [Dashboard](https://whiteducksoftware.github.io/flock/guides/dashboard/) · [Tracing](https://whiteducksoftware.github.io/flock/guides/tracing/) · [Tracing backends](https://whiteducksoftware.github.io/flock/guides/tracing/backends/) · [REST API](https://whiteducksoftware.github.io/flock/guides/rest-api/)

---

Expand Down
6 changes: 6 additions & 0 deletions docs/about/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ search:
- **Dashboard rework: agent cards, chips and edges** (frontend 0.2.2, #560, part of #557) - An agent is a calm card on the tokens: a status dot, its name and a tag (`LLM`, `OpenClaw`, `source`, `◆ Route` for deciders, or the schedule with a clock), then its ports: `IN`, `AND` and `JOIN` rows by subscription, `OUT` rows, mono type names without their module path and counts that flash when they change. Running agents get an amber border and, for LLMs, a ticker of the latest tokens; failed agents a coral border and a row with the error type and time that opens that run in the trace viewer; scheduled agents the next run, the run number and the last run; joins and batches a dashed box with the key or progress and a countdown, the missing part hatched. Below a zoom of 0.55 agents become chips (status, name, one count), which replaces the compact view setting. Edges are neutral lines labelled `SupportTicket · 8`, `◆ billing · 3` for decision options, dotted with a hatch swatch for UNSURE and dashed for pending joins and batches; they turn amber and move only while their target agent works on that type. The minimap moved top right and shows running and failed agents. The agent color, shadow and pulse settings are gone: status colors are the design's signals.
- **Dashboard rework: the shell** (frontend 0.2.1, #559, part of #557) - One header row: the flock wordmark, **Flow / Blackboard** (Ctrl+M), scope chips, the search field (it opens with the command palette in a later item), the **Live** status (Live · Reconnecting (n) · Offline, with the agents and how many run), Publish, settings and shortcuts; it wraps on narrow windows. The scope chips replace the filter pills and the filter flyout: the time chip opens the time range, every active filter is a chip that removes it (type names without their module path), and **+ Filter** (Ctrl+Shift+F) holds the presets, correlation IDs, types, producers, tags and visibility; Ctrl+F opens it on the correlation search. The board shows a skeleton while it first loads, "Nothing on the blackboard yet" with Publish, "Nothing matches these filters" with Show all, load errors with Retry, and a banner while the connection is lost, with the countdown to the next attempt and Retry now. The publish panel no longer opens on load, and open panels are not restored. "Clear all dashboard data" moved to Settings › Advanced; it now clears the dashboard's own database and settings only, where it cleared every database and key of the origin, and it reloads once the deletion is done (or asks to close other dashboard tabs holding it). Fixes along the way: the keyboard shortcuts were registered twice, so Ctrl+M, Ctrl+Shift+P, Ctrl+Shift+F and Ctrl+, toggled twice and did nothing; after a connection error the dashboard did not retry until a 10 s timeout; after reconnecting the board did not reload what was published meanwhile.
- **Dashboard rework: tokens, fonts, icons and themes** (frontend 0.2.0, #558, part of #557) - The "Unfold" design's foundation: the Graphite (default) and Paper themes as tokens on `data-theme`, with four signals (amber happening now, blue decided, a hatch for not sure yet, coral failed) and no glows or gradients; the former palette names point to the tokens until each component is rebuilt. Geist and Geist Mono are bundled (`@fontsource-variable`), so the dashboard works offline. The 336 terminal themes map onto the same tokens, with every text token checked for a contrast of 4.5:1 on cards, and the chosen theme is applied again after a reload (an old "default" is Graphite). Line icons from the mockups as components, and type names without their module path (full name in the tooltip).
- **A run's traces group into one session or thread** (0.5.804, #681) - Every span that knows its run's correlation ID carries it also as `session.id` and `gen_ai.conversation.id`, the attributes Langfuse groups sessions by and Opik threads. `Flock.publish` takes the run from the artifact it returns, since it creates the correlation (its span had none), and model-call spans (`LM.chat`, #680) carry their agent run's correlation, so a session adds up the run's tokens. In a two-agent run, Langfuse grouped the publish trace with both generations into one session, and Opik made it one thread. `Flock.run_until_idle` covers every run and carries none. See [auto-tracing](../guides/tracing/auto-tracing.md#span-attributes).
- **A span per model call, in the OpenTelemetry GenAI conventions** (0.5.803, #680) - Every model call of the DSPy engine gets an `LM.chat` span under the engine's span (named after Flock's `Service.operation` scheme, which the trace viewer splits at the first dot; the conventions' `chat {model}` would split inside model names such as `gpt-4.1`), with `gen_ai.operation.name`, `gen_ai.provider.name`, `gen_ai.request.model`, `gen_ai.response.model`, the call's `gen_ai.usage.input_tokens` and `gen_ai.usage.output_tokens` (streamed calls included), the request parameters, the response ID and finish reasons, and the Flock agent as `gen_ai.agent.name`. Observability tools read these attributes; Flock's run totals (`flock.usage.*`, #571) are in a namespace of their own, so until now a two-agent run showed 29 spans and no model call in Langfuse and Opik. With this release the same run shows two generations with model and tokens in Langfuse, and two LLM spans with model, tokens and estimated cost in Opik. Message content is recorded only with `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true`, in the conventions' message schema and within `FLOCK_TRACE_MAX_ATTRIBUTE_BYTES`; Responses API usage (`input_tokens`, `output_tokens`) is read as well as Chat Completions usage; `FLOCK_TRACE_IGNORE='["LM.chat"]'` leaves the spans out. A DSPy callback (`flock.logging.genai_spans.GenAISpans`) creates the spans, next to the callbacks already set in DSPy, and only while auto-tracing is on. See [auto-tracing](../guides/tracing/auto-tracing.md#model-calls-genai-spans).
- **A REST publish can name its run** (0.5.801, #618) - `POST /api/v1/artifacts` takes an optional `correlation_id` (1 to 256 letters, digits or `._:-`, so the status route finds it), and `POST /api/v1/artifacts/upload` the same as a form field: artifacts published with one ID are one run, as for `flock.publish(..., correlation_id=)`, so an app can publish every step of a game or every stroke of a drawing into one run. Without it, each publish starts a run of its own, as before. With a webhook, a named run's deliveries are numbered across its requests. In both HTTP services.
- **Smaller spans: a cap per input and output, short artifacts** (0.5.791, #601) - A span keeps each input and its output as JSON up to `FLOCK_TRACE_MAX_ATTRIBUTE_BYTES` (4096 by default, 0 for no cap), marker and escaping included; a longer value becomes `{"truncated": true, "bytes": ..., "preview": ...}` with as much of its start as fits, never splitting a character. Artifacts in inputs and outputs are kept as their type, ID, producer and payload, without visibility, tags and timestamps. With the triage demo and the dashboard open at `FLOCK_TRACE_LEVEL=all`, 30 seconds of spans went from 7.4 to 6.3 MB of attributes and the largest span from 48 to 10 KB; at `agents` the average span went from 5.8 to 4.7 KB. The tracing guide's attribute table names `input.*`, `output.value`, `output.type` and `output.length` (it said `result.*`).
- **Trace levels: agent work by default, Flock's internals on request** (0.5.790, #601) - `FLOCK_TRACE_LEVEL=agents` (the default) traces workflow roots, `Agent.execute`, engines, the agent's own utility components, decision requests, tool and MCP calls, and errors. `FLOCK_TRACE_LEVEL=all` also traces Flock's internals, as every release did until now: the dashboard serving itself (`DashboardEventCollector`, `GraphAssembler`, FastAPI's spans of the server's requests), the built-in orchestrator components (circuit breaker, deduplication, collection, activation, timer) and building and registering (`Flock.agent`, `register_agent`, `serve`, ...). With the triage demo and the dashboard open, 30 seconds wrote 208 spans at `agents` and 1,551 at `all`. Classes mark themselves with `__trace_level__ = "all"`, single methods with `@trace_level("all")` (`flock.logging.auto_trace`). See [auto-tracing](../guides/tracing/auto-tracing.md#trace-level-flock_trace_level).
Expand Down Expand Up @@ -120,6 +122,9 @@ search:
- **The board refreshes while events keep coming** (#638) - The dashboard fetched its snapshot only after 500 ms without any event, so a steady stream (the Snake demo, one event about every 150 ms) never refreshed counters, decision bars and delivery lines until it paused. It now refreshes at most every 500 ms while events come, and once after the last.
- **A Blackboard lane takes its title from what the run started with** (part of #557). It took the earliest artifact's, and a wall clock that stepped back between an artifact and its decision (WSL's time sync does every 30 s) named the lane after the decision's question ("ColorBin" instead of "yellow square"). The run's start time comes from that artifact too.
- **The Blackboard's lanes keep to the board's filters while agents write** (#616, part of #557). A streaming preview that arrived over the WebSocket after the last refresh was added without the filter check the refresh applies, so under a filter (a followed run, a type, a producer) every agent writing in another run showed as a lane of its own. New previews now pass the same check: correlation, type, producer, visibility, the time range, and no tag filter (a preview has no tags yet).
- **Tracing guides: a guide for observability backends, comparisons without claims about other tools** (#682). [Tracing backends](../guides/tracing/backends.md) has the settings for Langfuse, Opik, Arize Phoenix, Jaeger and MLflow, each checked with a two-agent run against a local instance, and what each shows of a Flock run. The comparison sections in "Using Tracing Effectively" and "Production Tracing" listed other tools under "❌" with claims nobody had checked, and said cost tracking was missing although #571 added it; they now describe local tracing and export side by side. The README's Observability section names the export, the model-call spans, sessions and threads, and the run totals.
- **Trace viewer: long attribute keys no longer run into their values** (frontend 0.1.37, #680). The span details showed their keys in a 120 px column, and a longer key, such as `flock.usage.cost_usd` (#571) or the `gen_ai.*` keys of model calls, ran into its value. The key column now fits the longest key, up to 40 % of the width, and wraps a key only beyond that.
- **Auto-tracing exports OTLP over HTTP too** (#679). The OTLP exporter was always gRPC: auto-tracing read only `OTEL_EXPORTER_OTLP_ENDPOINT`, and `OTEL_EXPORTER_OTLP_PROTOCOL`, which the tracing guides already documented, was ignored. Tools that take OTLP over HTTP only (Langfuse, Opik, MLflow) could not receive Flock's traces. Auto-tracing now follows the OpenTelemetry variables: `OTEL_EXPORTER_OTLP_TRACES_PROTOCOL` or `OTEL_EXPORTER_OTLP_PROTOCOL` chooses `grpc` (still the default) or `http/protobuf`, `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` is used as given and also switches export on, over HTTP the base endpoint gets `/v1/traces`, and headers come from `OTEL_EXPORTER_OTLP_HEADERS`. An empty endpoint variable now counts as unset, as the spec says. Tested by sending a two-agent run to Langfuse v4 and Opik with these variables alone. See [auto-tracing](../guides/tracing/auto-tracing.md#export-over-otlp-grpc-or-http).
- **Jupyter development tools no longer leak Referer tokens in server error logs** ([GHSA-c3mw-737p-c7g2](https://github.com/advisories/GHSA-c3mw-737p-c7g2)). The lockfile updates `jupyter-server` from 2.20.0 to 2.21.0, which redacts tokens in the Referer header when logging server errors. Jupyter is a development dependency; Flock's FastAPI dashboard and API do not use this server. Existing development environments need `uv sync --locked --dev` (with their usual extra flags) and a restart of any running Jupyter server.
- **Tracing no longer slows a flock down or bloats the trace file** (#601). The DuckDB, OTLP, file and SQLite exporters ran behind OpenTelemetry's `SimpleSpanProcessor`: every span that ended was written at once, mostly on the event loop, and the DuckDB exporter opened the file and inserted one row with its own commit per span. With `FLOCK_TRACE_FILE=true` the triage demo ran 3 agent runs in 30 s, and the file grew to about 100 times its data. The exporters now run behind a `BatchSpanProcessor` (a batch at least every second; `OTEL_BSP_*` variables and `TelemetryConfig(batch_processor_options=...)` tune it), the DuckDB exporter writes a batch in one transaction with 128 rows per statement (20,000 spans of 6 KB: 174 s before, 23 s now), and `Flock.shutdown()` writes the spans still waiting (at most five seconds, also when OpenTelemetry's flush blocks on a slow exporter); `Flock.clear_traces()` and the dashboard's clear write them before deleting, so they do not come back. Trace files lose the indexes on `service`, `start_time`, `name` and `created_at`, which sped up no query of the dashboard; `trace_id` keeps its index. See [auto-tracing](../guides/tracing/auto-tracing.md#export-in-batches).
- **Dashboard trace reads and span exports no longer fail when they meet** (#599). The tracer's DuckDB exporter and the dashboard's trace endpoints use the same file in the same process, the exporter with DuckDB's default configuration and the endpoints read-only. DuckDB refuses a second connection to a file in one process with another configuration, so span batches were lost and trace requests answered `[]` whenever the two met (308 lost batches in a few minutes of the dashboard demo). The endpoints now connect like the exporter and share its database.
Expand Down Expand Up @@ -165,6 +170,7 @@ search:

### 🔒 Security

- **Two Dependabot alerts on `main` closed** (#689). LiteLLM 1.100.4 fixes GHSA-7hp6-4w63-5g45, a privilege escalation in the LiteLLM proxy server, which Flock does not run; the pin moves with this dependency bump, as CONTRIBUTING.md asks for proxy-only advisories. dnspython 2.9.1 in the lockfile fixes GHSA-45c3-73f7-pv4m, excessive CPU use when parsing DNS messages (it comes in through `pydantic[email]`). From 1.100 on, LiteLLM requires boto3, so boto3 and botocore are now installed with Flock.
- **113 Dependabot alerts on `main` closed** (backend 0.5.802, frontend 0.1.36, #676). Pillow 13.0.0 fixes 41 advisories, six of them critical (among them a JPEG decoder buffer overflow reachable through dashboard image uploads); `fastembed` goes to 0.9.1 for it, because 0.9.0 requires `pillow<13`. MCP SDK 1.30.0, and in the lockfile certifi 2026.10.23, aiohttp 3.14.5, filelock 4.2.4, OpenTelemetry 1.45.1, and for development GitPython 3.2.1, nbconvert 7.17.2 and virtualenv 21.14.13; vitest 4.1.12 for the frontend tests. Pillow 13's breaking changes do not reach Flock: `Image.from_pil` converts every picture to RGB or RGBA before it saves it.
- Patched vulnerable dependencies: anyio, PyJWT, cryptography, urllib3, python-multipart, Starlette, MCP SDK, tornado, gitpython, fsspec, json-repair, mistune, orjson, pymdown-extensions, soupsieve, virtualenv, bleach, idna, multidict, oauthlib, requests, setuptools, pygments, Jupyter and mkdocs-material dev tooling, and the dashboard's dev tooling (Vitest 4, Vite 7.3.7). Removing PyTorch, Transformers and sentence-transformers closes their advisories as well.
- The Quality Gates workflow limits its `GITHUB_TOKEN` to `contents: read` (#661, code scanning alert 98); its jobs only check out and run checks.
Expand Down
Loading
Loading