Repository navigation
Commit de3d05a
feat(telemetry): add masked error message and source stack frames to
* feat(telemetry): add a masked error message template to `error_fingerprint`
`error_fingerprint` carried only a hash of the error. It now also carries
`error_message`: an allowlist template of the error's first line in which
identifiers, numbers, quoted text, names and credential values become `<x>`.
`maskString` and the fingerprint hash input are unchanged.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* fix(telemetry): mask the rest of the line after any credential label
A token with a part starting with a credential stem (pass, secret, token, key, auth,
credential, bearer, pwd, cookie, session) now masks everything after it on the line.
`client_secret: a b c`, `access_token=x y` and `passphrase a b c` sent their values
before.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* fix(telemetry): cut the error line at the first credential word, path or escape
Quoted labels (`"password": x`), backslash-escaped quotes and paths containing
spaces could carry values past the token-by-token template. The line is now cut at
the token holding the first credential stem or path separator and the rest masked.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* docs: qualify the SQL privacy claim for the error_fingerprint template
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* fix(telemetry): cut the error line at a backtick-quoted span
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* fix(telemetry): cut the error line at the first non-ASCII character
Typographic quotes and other non-ASCII delimiters wrapped user content the ASCII
quote handling did not see.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* refactor: build `error_message` from a fixed vocabulary of error words
Split the first line into letter runs and keep only words in
`ERROR_VOCABULARY`; every other run becomes `<x>`. Drops the
punctuation/quote/credential-stem heuristics, which could not be made complete.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>error_fingerprint (#1544)1 parent 3ed4561 commit de3d05a
5 files changed
Lines changed: 550 additions & 15 deletions
File tree
- docs/docs/reference
- packages/opencode
- src
- altimate/telemetry
- session
- test/telemetry
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
0 commit comments