Skip to content
Workbench
Esc
↑↓navigate↵open⌘Jpreview
On this page

Raindrop AI observability

Configure Team and Jev decision traces, collection boundaries, and bounded delivery.

Enable collection

Production routes telemetry to the workbench-prod project, named Workbench Production, using the two fields on the production vault’s Environment item. The committed production environment contains only their Proton Pass references. Preview and development remain unconfigured by default.

Set both RAINDROP_WRITE_KEY and RAINDROP_PROJECT_ID for the intended environment. Without either value, collection is disabled. Use an SDK write key, rather than a Query API key, from the existing team’s Raindrop account. Select the project slug explicitly; Raindrop can create a project when it first receives an unknown slug, so verify the selection before enabling it.

Store the write key in the stage’s Proton Pass vault and commit only its pass:// reference, following credentials. For personal development, use ignored .env.development.local and a development key. Alchemy supplies the redacted Worker secret, project binding and RAINDROP_STAGE. Restart local development after configuration changes; deployed bindings change through the reviewed deployment workflow. See the CLI configuration reference.

Collection contract

The existing Pi Durable hooks send model and tool spans through Raindrop’s official @raindrop-ai/ai-sdk/workers manual API. This does not wrap or replace the agent runtime with Vercel AI SDK. The dedicated Pi subscriber targets pi-agent-core; the Workers SDK exposes the public manual span API our durable hooks need.

Each Team operation has a team_operation event with identity team:<operation-id>. Model and tool spans share that event and the native Pi conversation ID:

Collected Detail
Identity Opaque operation/session IDs and fixed user identifier workbench-team-agent
Runtime Stage, configured model, SDK package/version and JavaScript runtime/version
Model response Plain reply text, stop reason, token usage, and provider-exposed plaintext reasoning
Tool execution Tool name, call ID, arguments, text results, elapsed time and success/error status, including nested native tool hooks
Errors Fixed classification and an HTTP 4xx/5xx status when recognizable in a failed step’s diagnostics or error output
Timing Model request start and provider duration; tool start memoized in its durable task and elapsed time

Reply, reasoning, tool arguments and combined tool text results are each capped at 16,384 characters. Tool arguments use the SDK’s bounded JSON serialization. Tool arguments and results pass through its best-effort secret redaction: secret-shaped object fields (such as apiKey, authorization and password) and recognized URL credentials are masked. Text results containing valid JSON receive the same object-field redaction. Arbitrary secrets embedded in code, plain text or truncated/invalid JSON are not reliably detected. This is not a complete secret or PII filter.

Tool spans now expose codemode code, exec commands and text output. Arguments and results can include customer chat, financial information or file contents returned as text; that content is exported within the limits above. Non-text results such as images, tool UI details/structured metadata, redacted thinking, thinking/text signatures, attachments, request/system prompts, provider payloads, raw model error messages and diagnostic bodies remain excluded. Model replies and reasoning can also quote customer information. Tool output stays on its own span and does not replace the event’s model reply. Previously recorded spans cannot be backfilled.

last_step and the latest model’s stop_reason describe the last observed boundary, not the final business outcome. A failing step adds had_error: true; later successful steps do not intentionally reset that marker. A tool error can therefore remain visible even when the agent recovers and eventually replies successfully.

Private and personal agents, compaction, browser internals and HTTP requests outside the traced model/tool boundaries are not covered. A tool that embeds an error in successful text without setting native isError or an error diagnostic can still appear successful. Cancellation or failure before a terminal hook may be absent. Spans correlate by operation but do not reconstruct a complete durable parent/child execution graph.

Jev decisions

Team visual composition uses Jev.observedLayer to observe Effect’s validated DecisionModel.decide and decideSettled results. This is application instrumentation through the SDK’s supported manual span API, not a named Raindrop Jev integration or an automatic Effect-span exporter. Other workflows must opt in at their owning runtime boundary.

Each request creates a separate jev_decision event named Jev composition, with purpose: composition. Its conversationId is the saved Workbench conversation UUID; the existing Team event still uses Pi’s native conversation ID. message_id, operation_id, team_event_id and tool_call_id link it to the exact invocation, including when native sessions are reused. Jev events never replace the Team event’s model reply.

Collected fields are the configured model, elapsed time, reported input/output token counts, named structured answers, choice/rating labels and probability distributions, confidence when supplied, and box coordinates for locate decisions. Unanswered settled decisions contain only their reason category. The pinned Effect TypeSafe provider does not retain the resolved response model, so the configured alias is not proof of a particular model version; unreported usage remains absent.

The combined answer JSON is capped at 16,384 characters, with at most 64 answers and 64 unanswered categories. Decision names are capped at 128 characters; labels/distribution keys at 256 characters, with at most 256 distribution entries per answer. Large output can be truncated and may cease to be valid JSON. Labels and decision names can contain customer-derived information; they are exported. State, chat context, question instructions/criteria, images, file payloads, raw provider metadata and raw errors are excluded from these dedicated observations. The existing outer tool trace retains its separate collection policy above.

Failures carry a safe Effect AI reason tag, defect, timeout or interrupted. An outer deadline interrupts the observed decision, so its inner span reports interrupted; that alone cannot distinguish a caller timeout from another cancellation. A returned decision is not proof that the application admitted or displayed its result. Telemetry failure cannot change the decision result or cancellation. Composition events are best effort and may duplicate after durable replay.

The preview-only Team participation policy is a separate integration: it needs exact saved-message correlation and its chosen action/final admission after server checks, including quiet decisions with no Wes run. This base does not enable participation tracing or configure preview telemetry.

Delivery and limits

Each observed boundary gets a short-lived SDK client with tracing enabled, Git discovery and local Workshop mirroring disabled. Delivery and immediate SDK shutdown run together inside the owning Durable Object’s waitUntil lifetime. Shutdown has a two-second deadline covering in-flight delivery and SDK retries; leftovers are discarded. AI work does not await telemetry delivery. The SDK emits its own transport diagnostics; keep RAINDROP_DEBUG unset or false in production.

This is best-effort telemetry. Process termination can lose spans, and durable recovery can replay a hook. Operation event IDs remain stable, but generated span IDs can repeat observations as separate spans; there is no exactly-once guarantee or durable telemetry outbox.

The pinned Alchemy 2.0.0-beta.85 core and Cloudflare packages have no Raindrop provider. Existing Alchemy bindings configure the SDK without additional infrastructure resources.

Was this page helpful?