Applies to:
- Plan -
- Deployment -
Summary
Symptom: a trace shows a page-deletion-like event. Likely cause: an initial patch wrote escaped<page> markup that the detector flagged, then a later updatePage call removed that write.
Recommended fix: inspect both the initial patch span and the later updatePage span; share the full trace context with support, or provide trace bytes via the CLI.
What is happening
An automated detector can flag a patch that contains escaped page markup as a deletion-like event. If a laterupdatePage call removes that bad write, the overall sequence can look like a transient deletion.
The detector may report a false positive if it analyses only the first span instead of the full trace sequence.
Trigger conditions:
- A patch span includes escaped page markup, for example
<page>. - A subsequent
updatePagespan undoes or removes that patch. - Analysis focuses on a single span or runs after the state has already been corrected.
- The initial patch contains the visible symptom: the escaped tag.
- The corrective
updatePagehappens later and can be missed by fast or partial analysis.
Fix or suggestion
Option 1: Inspect the trace spans (most common fix)
- Open the full trace for the incident.
- Search spans for
patchandupdatePagecalls in the same trace. - Inspect the request body and timestamp for the first patch span. Look for escaped page markup, for example:
- Inspect the later
updatePagespan to confirm it removed or replaced the bad write. - Share the trace ID, the relevant span IDs, and the short timestamp window with support. If support needs to inspect the trace directly, grant temporary workspace access before handoff.
Option 2: Provide trace bytes or use the CLI (alternative)
- Download the full trace bytes using your preferred tool or the Braintrust CLI.
- Use the correct Braintrust API base URL for your deployment:
- US:
https://api.braintrust.dev - EU:
https://api-eu.braintrust.dev - Self-hosted: your configured Braintrust API base URL
- US:
- Attach the full trace file when requesting support, including the trace ID and timestamp window.
- If helpful, also include the matching
patchandupdatePagespan payloads. - Note time sensitivity: automated analysis is most useful when it can run within about 1 minute of receiving the trace.
How to confirm it worked
- The initial patch span no longer contains escaped
<page>markup, or a laterupdatePagespan clearly shows the correction. - The detector no longer reports a deletion when analysis includes both spans.