LogisticsRnD · branch chief/38c18fdf1d · 2026-10-26 · not deployed yet

LogisticsRnD now reports its failures to Chief

One logger, wired into every entry point, sends labelled warning and error events from any user to Chief, so Chief can group them into issues. Merging and deploying are up to Chief's test gate; nothing here is live in production yet.

~100API routes covered through one wrapper
38existing error/warn logs converted
13of them downgraded or marked expected
366/366tests passing (10 new)

Before → after

How it works

What reports what

AreaEvents
Every API routeapi.<route>: refusals warn, defects and 5xx error, signed-out/stale tab expected
Pages, server actions, proxy, processunhandled.*, process.uncaught_exception, process.unhandled_rejection
Browserclient.uncaught_error, client.unhandled_rejection (React render crashes arrive this way too)
Logisticsanalysis created/queued/ready/failed, upload completed, checklist, document drafts, B/L request drafted/delivered/refused by Outlook
Claude runsllm.subscription_run (every failed model run, limits are warnings), llm.tool_failed
Assistant, dashboards, knowledgerequest failed/succeeded, build and refresh failures, extraction and indexing failures
Approved external writesproposals.execution_failed, proposals.invite_email_failed, proposals.executed
Background jobsjobs.<job> per workspace; a busy lease is expected
Integrationssync, Composio rate limits, GitHub, data connections, Recall webhooks and calls, Telegram, Browser Use, voice
Auth and healthsign-in, sign-in failed, sign-out revoke failed, health check failed

Existing logs: audit result

All 38 server-side console.error/console.warn calls are now Chief events with fixed message templates. The error text goes to ctx and the stack.

Verification

Not done or not verified

Tradeoffs

Branch and commits