Skip to content

fix(tracing): scrub error text like content and widen scrubber patterns - #773

Merged
LinuxDevil merged 4 commits into
mainfrom
fix/scrub-error-text
Oct 29, 2026
Merged

LinuxDevil merged 4 commits into
mainfrom
fix/scrub-error-text

Conversation

@LinuxDevil

Copy link
Copy Markdown
Owner

Error messages were recorded on spans unscrubbed, so a token in a provider or tool error reached traces, exports, evaluator payloads and judge prompts; error text now follows redactContent, and the scrubber covers more key shapes.

Ticket: X6 (Forge Observe vs LangSmith evaluation follow-up)

Changes

  • changelog: scrub error text
  • fix(tracing): linear JWT scrub, resumed-run redactor, safe error redactor
  • fix(tracing): scrub error text like content and widen scrubber patterns

Verification: focused vitest, tsc --noEmit, eslint on changed files (details in the review package); full suite and fallow run in CI.

🤖 Generated with Claude Code

@LinuxDevil
LinuxDevil force-pushed the fix/scrub-error-text branch from 11ea1a3 to a9ec7ad Compare October 29, 2026 01:26
LinuxDevil and others added 4 commits October 29, 2026 04:33
recordSpanError, recordToolOutcome and withSpan now run the error message
(attrs.error and status.message) through the run's redactContent choice;
error.type is kept. The scrubber also catches case-insensitive Bearer,
Stripe sk/rk live+test keys, Slack xox tokens, Google AIza keys and JWTs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ctor

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LinuxDevil
LinuxDevil force-pushed the fix/scrub-error-text branch from a9ec7ad to 8aa97db Compare October 29, 2026 01:33
@LinuxDevil
LinuxDevil merged commit d0d06b6 into main Oct 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant