Dashboardopencode-loreResponses failed projections and usage …

Responses failed projections and usage accounting

Category: gotcha
Confidence: 1.00
ID: 01a0aba0-010c-7513-bdf1-066fb93e5b32
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 0yjugA0mK4GfBAsLB
Created: 2026-09-14 08:01:01
Updated: 2026-09-16 19:09:45

Content

Trap: exposing accumulated output from failed Responses, trusting failed terminal identity/model/time/diagnostics, or waiting for downstream demand before accounting seems useful, but unsuccessful output is non-authoritative and cancellation or backpressure can suppress usage. Fix: after transactional rollback, finalize unsuccessful completion exactly once before any demand wait or fallible enqueue. Preserve only validated private usage for accounting; keep public usage null and callback output empty. Failed projections must expose empty output, content, and rawOutputItems, retain trusted created/in-progress metadata, and emit the fixed sanitized failure.

Move to: