Changelog
Notable changes to the control plane, grouped by version.
All notable changes to this project are documented here.
The format follows Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
Added
-
Conversation session affinity on the vLLM router: when
x-conversation-idis present, later turns reuse the last healthy host for that profile so prefix / KV cache stays warm. Load-based pick still runs on the first turn and when the pinned host is down, in cooldown, or excluded. Kill switch:VLLM_SESSION_AFFINITY_ENABLED. -
Vulcan/Docker production image: root
Dockerfile(Node 22, non-root,HEALTHCHECKonGET /api/health, listens onPORT, default 3000) anddocker/vulcan-entrypoint.sh, which exits non-zero when a required env var is missing and runsdrizzle-kit migrateonly whenRUN_MIGRATIONS=true(neverpush). Deploy handoff inVULCAN-DEPLOY.MD.GET /api/healthreports the commit from theGIT_COMMITbuild arg when there is no.git. -
Tracing retention: the new
purge-old-tracingcron (daily 01:30, Bun script +GET /api/cron/purge-old-tracing) deletestraces,spans, andmetricsrows older than 14 days in 5000-row batches.metrics_latest(newest value per series) is never purged. Without it the tracing tables grew unbounded (~3 GB over two months on ETI). -
External vLLM backend probe:
GET /api/cron/probe-vllm-backends(CRON_SECRET) runs/health, then a non-streaming chat completion, then a streaming one (15s timeout each) against every enabled non-Bob backend and writesbackend_availability. Live chat traffic no longer marks backends up/down. Crontab hits the endpoint every 15s (four staggeredsleeplines). -
token_usage_log/projects_llm_usage_logcolumnsintended_backend_idandactual_backend_idso failovers record which host was selected vs which host served the request. Agent and project Requests Browser tables show the serving backend, with a failover badge when intended ≠ actual; row detail lists both ids. The browser chrome is a single toolbar (search / refresh / filters), with accessible icon buttons, a dialog for saving presets, and a failover callout in row detail. -
Restored the admin Requests Browser (
/admin/requests-browser/agentand/project, plus Runtime/Project API response browsers) that liststoken_usage_log/projects_llm_usage_log/ external API response rows with filters, charts, and row detail./admin/token-usageredirects to the agent view. -
Restored the admin Stats dashboard at
/stats(request volume, tokens, latency, project comparison) backed by daily rollups. -
Recreated
token_usage_dailyandapi_response_dailyplus thesummarize-usage(00:30) andmark-stuck-pending(hourly) crons so stats and the request browser keep writing after the 31-day raw-log purge.
Changed
- ETI deploys again via systemd blue/green (
deploy-eti/deploy.sh), not Dokploy/Vulcan. Laptopbash deploy.shrsyncs the working tree and runs--no-pullso otelvm does not need github.ibm.com. nginxproxy_passis rewritten from any current upstream (including leftover Traefik:8080). GET /api/healthandGET /api/comprehensive-healthincludevllmBackends: live parallelGET /healthper enabled backend (HTTP status, latency, up / down / skipped). Bob is listed as skipped. Comprehensive-health returns 502 when every probed vLLM backend is down, andstatus: "degraded"when some are down. Cheap/api/healthstays 200 so process liveness is separate.- Platform watchdog cron (
assert-platform-health, every 5 minutes): hostname registry, disk, Vault seal, cheapGET /api/health, probe freshness, and health-agentsignedIn. Pages Slack (platform_health) on change. Admin Backend Availability shows UNKNOWN whenlast_probe_atis older than two minutes instead of a stale UP. Deploy installs Vault systemd drop-ins (order after Docker + unseal after every start) and Docker json-file log rotation. - Bob backends are isolated from vLLM detection and failover. The availability
probe cron skips
provider=bobhosts. Chat routing never sends a Bob request through failover onto another model, and never sends a failed vLLM request onto Bob (disconnect, latency, availability, and preference retries).
Fixed
/sign-inshowed the Single User Mode card ("Single-user mode is not enabled.") instead of IBM W3 ID in the Docker/Vulcan image. The page was prerendered atnext build, where OIDC vars are absent, so the build-time auth mode was baked in. It now renders per request from runtime env.- Clean installs (no
package-lock.json, which is gitignored) no longer resolvebetter-auth1.7.x, which dropsgenericOAuthClientand breaksnext build. The dependency range is now~1.6.9. self-host/Containerfilebuilds from a clean clone again (the lockfile is optional; npm 11 is used because npm 10 crashes on this dependency tree).- The nightly
purge-old-usagecron no longer crashes withERR_INVALID_ARG_TYPE: the batchedDELETEbound its cutoff as a rawDate, which the postgres-js driver cannot serialize throughdb.execute. Cutoffs are now bound as ISO strings (the bug silently disabled the 31-day purge, growingtoken_usage_logto ~2.1 GB / 2.7M rows with 89 days of history on ETI). - Disconnect-based conversation failover no longer pins conversations to a
model profile with no configured backend.
resolveFailoverModelskips unbacked candidates (and skips recording entirely when nothing is backed), andisProfileAvailablenow treats a known profile family without a backend for the exact profile id as unavailable, so the chat route's availability gate rescues already-pinned conversations onto a working profile instead of failing every request withNo VLLM backends configured(thellm-imagephantom-failover alert storm on ETI, 2026-10-28). - Project chat completion requests for a model profile with no enabled backend
now return
400with codemodel_not_configured, the requested profile, and corrective steps instead of a generic500. The error confirms that the API key was accepted. Usage logs also retain the requested model. - Raised the Next.js middleware request-body cap (
proxyClientMaxBodySize) to 100MB. Agent chat-completion requests replay full session histories with base64 screenshots and exceed the 10MB default, which silently truncated bodies and surfaced asInvalid JSON body400s on/api/projects/{id}/chat/completions. - vLLM router load-balancing now falls back to SGLang Prometheus names
(
sglang:num_running_reqs,sglang:num_queue_reqs) when the vLLM running/waiting gauges are missing, so SGLang backends are scored by real queue depth instead of always looking idle. - The ETI host registry (
deploy-hosts.inc.sh) only knew the hostnamecopilot-backend-staging. After a reboot cloud-init renames the VM tobotadmin-server, so thekeep-health-agent-sessionandprobe-vllm-backendscrons exited withunknown host, the health bot-agents were never re-authenticated, and/api/comprehensive-healthreturned 502. Thehostnamefield now accepts comma-separated aliases and the ETI entry lists both names.
0.4.0 - 2026-09-10
Added
- Daily usage log purge cron (
scripts/cron/purge-old-usage.ts, 01:00): deletestoken_usage_logandprojects_llm_usage_logrows older than 31 days in batches. Manual trigger:GET /api/cron/purge-old-usage. - Copy as curl on
/admin/vllm-backends: icon button builds a hello-worldPOST {apiBase}/chat/completionscommand with the live API key from the backend's env var so admins can paste it into a shell. The button spinner paints immediately while the key is fetched. - Red bell on Skills / Agents in the top nav when a repository you added failed its last sync or needs a new token. Same cue on project Skills and Agent packs in the sidebar when a linked repo needs attention, and on the Skills Repositories tab (banner plus the affected cards).
- Pie chart on a selected run in
/projects/{id}/tracesshowing where LLM and tool time went (grouped by model / tool name; nested wrappers omitted). - Selected-run timeline shows LLM and tool avg / p95 call durations.
- Ready-made frontend UIs you can download from the dashboard
(
/api/download-frontend-boilerplate): the web chat app (github.ibm.com/copilot/local-agent-frontend) and the Electron desktop app (github.ibm.com/copilot/Bot-Platform-Desktop). Docs cover.env, which bot-agent features each UI supports, and the Launch-an-agent guide ends with connecting that runtime to a UI. - Common-flows guide for inviting a teammate to a project (project admin only, pick an email and role).
- Common-flows guide for adding a project secret (project admin only).
- Common-flows guide for installing a skill: registry or bring-your-own GitHub repo, then catalog-only / all-agents / specific-agent delivery.
- Common-flows guide for adding a custom LLM (Bob or your endpoint; prefer a project secret — see Add a project secret).
- Test Connection on add/edit MCP dialogs (HTTP Streamable only) lists tools from the remote server before saving.
Changed
- Tracing and metrics on project settings, traces, and metrics pages share one
enable toggle. Flipping it writes both
tracingEnabledandmetricsEnabled. Traces and metrics pages show that toggle only while collection is off; turn it off again from project settings. - Run timeline span inspector sits under Conversations (the leftover left-column space). Tool calls show parsed arguments — bash command, browser URL, cron schedule, delegate task — instead of a raw attributes JSON blob.
- Common flows moved from the top-nav ? icon to a labeled Help Flows item in the main nav (and the mobile menu).
Fixed
- Project pages no longer grow a blank outer scrollbar under nested lists
(traces conversations/runs). Padding lives inside the content column so
min-h-fullcannot add empty scroll. - Traces uses a single page scroller like metrics and skills: conversation,
run, waterfall, and span-inspector lists no longer nest their own
vertical scrollbars. Selecting a run scrolls only the project
mainpane, soscrollIntoViewcannot open a second document scrollbar. - ETI Vault app token 403 after ~32 days idle: periodic token renew cron plus
deploy-eti/vault-rotate-app-token.sh. Deploy env-drift no longer treats colocated*.test.tsenv refs or optionalFRONTEND_BOILERPLATE_DISTas required.
0.3.0 - 2026-09-03
Added
- Run waterfall on
/projects/{id}/traces: selecting a run shows every LLM and tool span on one timeline (nested subagent traces included). Toggle “All Spans” for agent/subagent rows; click a bar for attributes. Drag a time window on the overview strip to zoom a long run. Corner timestamps, run start/end guides, and elapsed-time summary sit on the selected run. - Agent tracing & metrics:
traces/spans/metrics/metrics_latestschema, a batched non-blocking trace writer, span recording in/api/runtime/chat(grouped byx-conversation-id/x-run-id/x-trace-id),POST /api/runtime/tracesso bot-agent can report agent/tool/subagent run structure, and new dashboards at/projects/{id}/traces(summary, conversation picker, run timeline, span waterfall) and/projects/{id}/metrics(latest metrics + trends), all URL-deep-linkable. - Per-project tracing/metrics flags (
project.tracing_enabled,project.metrics_enabled), default off for new and existing projects. Toggles live in project settings and on the traces/metrics pages. When off,/api/runtime/tracesand the chat proxy skip the write buffer (cached viaTimedCacheMap) so disabled projects create no database write load. - Common-flows guide for adding a stdio or HTTP MCP server to a project.
Changed
- Bot-agent dashboard downloads now serve the latest GitHub Release from
github.ibm.com/copilot/bot-agent(viaGITHUB_IBM_ACCESS_TOKEN) instead of a manually managedBOT_AGENT_DISTfolder, and show that version in the UI. - Changelog now lives at
content/docs/changelog.mdxand is published under Getting Started at/docs/changelog. - Schema workflow docs now require
npm run db:generatethennpm run db:migrate; do not usedrizzle-kit push.
Removed
- Legacy observability system:
chat_call_capture, daily usage rollups and their crons, consolidation/aggregation library, observability/stats dashboards, and the mirrored/api/cliusage endpoints. Token-usage logging, rate limits, and LLM failover are retained.
Fixed
- Project list/table three-dot action menu is no longer clipped by the overflow container; the dropdown now portals above the list.
- IaaS Vault app token 403 after ~32 days idle: periodic token renew cron plus
deploy-iaas/vault-rotate-app-token.shso deploys do not need a full Vault re-bootstrap. - Production builds no longer fetch Geist, JetBrains Mono, or Material Symbols
from Google Fonts. Fonts are self-hosted with
next/font/localso firewalled hosts can build without reachingfonts.googleapis.com. - IaaS production type-check no longer fails on traces Recharts
labelFormatter(it now returns a string). - Deep-linked conversation/run filters on traces apply on first load (React Strict Mode was cancelling the deferred load).
0.2.0 - 2026-08-31
Added
- Project MCP servers UI, shared service, and
/api/cli/projects/{id}/mcproutes for managing workspace*.mcp.config.jsonfiles (notlocal.mcp.config.json). Docs:content/docs/mcp.mdx.
Fixed
- Blue-green deploy no longer dies at
npm installwhenregistry.npmjs.orgis firewalled. If the registry is unreachable, deploy keeps the existingnode_modulesinstead of failing withETARGETon versions not in the local npm cache (for exampleadm-zip@0.6.0).
0.1.0 - 2026-08-31
First tagged release of the bot-admin-server control plane. Version 0.1.0
matches package.json and is the starting point for GitHub Releases.
Added
- IBM W3 ID OIDC sign-in via Better Auth, with
new_user,whitelisted_user, andadminroles, pre-approved emails, and an append-only admin audit log. - Project dashboard: members, invitations, agents, files/workspaces, skills, secrets, vault config, custom LLM backends, API keys, and settings.
- Shared service layer used by both the web app and the Go CLI (
/api/cli/**). - Device OAuth (RFC 8628) for CLI login and live-DB role checks on every CLI request.
- Runtime API for bot-agent: session exchange/refresh, LLM chat proxy (SSE), model catalog, and workspace zip delivery.
- IBM-wide skills registry with GitHub sync, project install, and agent deployment.
- Agents marketplace for pre-built subagent packages and project install.
- Platform Vault plus per-project Bring-Your-Own HashiCorp Vault secrets.
- BYO LLM API key overrides keyed by project, conversation, and model.
- Sticky per-conversation failover onto a cheaper model after a dropped stream.
- Observability dashboards, usage tracking, health endpoints, and Slack alerts.
- Blue-green deploy kits for the ETI and IaaS hosts.
- Interactive common-flows guide for launching an agent.
- SemVer in
package.json, this changelog, andnpm run releaseto publish source archives to GitHub Releases.
Security
- Dependabot upgrades for Next.js 16.3.1 and adm-zip 0.6.x.