Flow Debugger: surface site-side trace truncation (Truncated / LogsTruncated on the wire) #54

Closed
opened 2026-11-06 15:24:39 -05:00 by dohertj2 · 1 comment
Owner

Register row 112 (deferred-work register).

ScriptCallResult / RouteToCallResponse carry TraceEvents but no Truncated/LogsTruncated flags, so the page's truncation badges reflect central's FlowTraceCollector only; a site run whose collector dropped rows returns a silently short list. The 1 MB byte budget makes this reachable sooner. Fix: trailing bool Truncated + LogsTruncated on both records, new field on RouteToCallResponseDto (regen via docker/regen-proto.sh sitecommand), and FlowDebugRunner ORing them into FlowDebugRunResult.

Revisit trigger (from register): First Live run that shows fewer site steps than its Replay.

Current state: Not done. Replay is never truncated (site audit rows are written in full).

Source: docs/plans/2026-07-08-deferred-work-register.md row 112

Register row 112 (deferred-work register). `ScriptCallResult` / `RouteToCallResponse` carry `TraceEvents` but no `Truncated`/`LogsTruncated` flags, so the page's truncation badges reflect central's `FlowTraceCollector` only; a site run whose collector dropped rows returns a silently short list. The 1 MB byte budget makes this reachable sooner. Fix: trailing `bool Truncated` + `LogsTruncated` on both records, new field on `RouteToCallResponseDto` (regen via `docker/regen-proto.sh sitecommand`), and `FlowDebugRunner` ORing them into `FlowDebugRunResult`. **Revisit trigger (from register):** First Live run that shows fewer site steps than its Replay. **Current state:** Not done. Replay is never truncated (site audit rows are written in full). Source: `docs/plans/2026-07-08-deferred-work-register.md` row 112
dohertj2 added the type:followuppriority:p3migrated labels 2026-11-06 15:24:39 -05:00
Author
Owner

Fixed on main 6d5bb618: ScriptCallResult / RouteToCallResponse carry Truncated + LogsTruncated from the site trace collector (RouteToCallResponseDto fields 8/9, additive); FlowDebugRunner ORs them with central's flags on the script-entry path. The method-entry path also dropped them — RouteHelper.WithTraceSink gains an optional truncation callback preserved across all With* copies. Evidence: SiteRuntime 1004, ManagementService 721, InboundAPI 371, Communication 816 passed; 10 cases fail without the fix.

Fixed on main 6d5bb618: ScriptCallResult / RouteToCallResponse carry `Truncated` + `LogsTruncated` from the site trace collector (RouteToCallResponseDto fields 8/9, additive); FlowDebugRunner ORs them with central's flags on the script-entry path. The method-entry path also dropped them — RouteHelper.WithTraceSink gains an optional truncation callback preserved across all With* copies. Evidence: SiteRuntime 1004, ManagementService 721, InboundAPI 371, Communication 816 passed; 10 cases fail without the fix.
Sign in to join this conversation.