Skip to content

Tag invalid-value errors with an opaque field+value locator#20

Merged
riccardo-perotti merged 2 commits into
masterfrom
rp.notkt.invalid-value-locator
Jun 12, 2026
Merged

Tag invalid-value errors with an opaque field+value locator#20
riccardo-perotti merged 2 commits into
masterfrom
rp.notkt.invalid-value-locator

Conversation

@riccardo-perotti

Copy link
Copy Markdown

Field::makevalue now stamps the otherwise-anonymous invalid value error with an opaque locator:

invalid value [c37.225.1486:len15_digit+comma]

Format: <dbr_instances.tag>.<dbr_tables.id>.<dbr_fields.id>:<value-shape> — numeric ids + a value shape (length/char-classes/ref/undef), never schema names or the raw value, so it's safe for external consumers. Resolve the ids against the dbr config to recover the field.

Inserted before the at FILE line N backtrace so UnRPC's $-anchored strip still removes the file path and code=internal_error is preserved. Locator-building is guarded so it can never mask the original error.

(Rebased clean onto current master; supersedes #19, which was cut from a stale master and carried an unrelated CI commit.)

🤖 Generated with Claude Code

riccardo-perotti and others added 2 commits June 11, 2026 15:01
Tag the otherwise-anonymous "invalid value" with
<dbr_instances.tag>.<dbr_tables.id>.<dbr_fields.id>:<value-shape> so it can
be traced to a field and value-shape from logs, without leaking schema names
or the offending value to outside consumers. Inserted before the "at FILE
line N" backtrace so UnRPC's strip still removes the path and code=internal_error
is preserved.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@riccardo-perotti riccardo-perotti merged commit 8b33236 into master Jun 12, 2026
1 check passed
@riccardo-perotti riccardo-perotti deleted the rp.notkt.invalid-value-locator branch June 12, 2026 15:38
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