feat(trace): enforce metadata-only privacy and OTLP mapping - #2919
feat(trace): enforce metadata-only privacy and OTLP mapping#2919alectimison-maker wants to merge 3 commits into
Conversation
|
@alectimison-maker is attempting to deploy a commit to the esokullu's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Review findings:
Validation performed: |
|
Addressed both review findings in commit
Added regression coverage through the privacy projection, both Markdown serializers, the OTLP converter, and the Traces UI contract. Validation: |
Summary
This PR establishes a privacy-preserving trace pipeline and collector-compatible OTLP mapping. The motivation is to keep default traces useful for diagnosis without persisting message content, model output, tool payloads, or screenshots, while ensuring intentional redaction is not reported as a failure or an empty response.
Privacy behavior
lossless_traceopt-in preserves bounded content recording and screenshot storage.Redaction semantics
resultStatus(success,error, orunknown) and an optional boundedresultErrorCode.toolCallCountandempty, so a tool-call-only response is not rendered asEMPTY_RESPONSEafter tool-call details are removed.OTLP behavior
parentSpanId.Compatibility and risks
Validation
node test/run.js— 2046 passed; 2 unrelated repository baseline failures remain:npm run test:toolbar-guard— 33 passednpm run test:security— 60/60 checks passedgit diff --check— passedReview context
The redaction and consumer behavior in this PR were refined in response to maintainer review on PR #2919. No separate issue is linked.