GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(tracing): infer error ownership from tracebacks by jshaikScale · Pull Request #496 · scaleapi/scale-agentex-python

Conversation

@jshaikScale

@jshaikScale jshaikScale commented Aug 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

  • automatically infer application vs platform ownership from the innermost relevant traceback frame
  • preserve authoritative precedence: explicit category → canonical categorized error → stack inference → known boundary → scoped mapping → unknown
  • expose immutable module-prefix and normalized file-root ownership rules that are deterministic and testable without mutable global state
  • forward safe classifier provenance to SGP while preserving the existing type, message, and category error fields

Ownership behavior

  • Agentex calling user/agent code that raises → application
  • user code calling Agentex internals that raise → platform
  • ignored third-party/framework frames defer to the nearest relevant owned caller
  • conflicting, empty, relative, archive/obfuscated, or otherwise unresolvable stacks → unknown
  • sync, async, and ADK context managers classify from the original exception traceback and re-raise the original exception unchanged

The classifier never uses exception messages, exception class names, source lines, raw paths, or stack text as inference signals. Telemetry contains only the stable category source, classifier version, and deterministic non-sensitive rule ID.

Tests

  • 198 passed, 2 skipped — full relevant tracing, ADK, and processor suite
  • Ruff lint: passed
  • Ruff format check: passed
  • Pyright: 0 errors, 0 warnings, 0 informations
  • focused mypy: Success: no issues found in 2 source files
  • git diff --check: passed

Limitations and follow-up

  • zip, obfuscated, relative, or otherwise unresolvable frames safely remain unknown unless explicit module ownership is configured
  • applications installed beneath shared site-package roots should configure application module prefixes or file roots
  • non-Agentex producers still require coordinated adoption in the shared scale-gp-beta SDK/repository

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
jshaikScale and others added 9 commits August 3, 2026 13:23
@jshaikScale @cursoragent
feat: propagate error categories to SGP spans
d62ef7d
Capture ADK failures and preserve producer ownership metadata so SGP can distinguish application, platform, and unknown errors.

Co-authored-by: Cursor <[email protected]>
@stainless-app
codegen metadata
8bbfd9c
@jshaikScale @cursoragent
fix: make error ownership classification explicit
f24aef5
Provide typed application and platform error classes with documented ownership boundaries instead of relying on arbitrary exception attributes.

Co-authored-by: Cursor <[email protected]>
@NiteshDhanpal @claude
feat(tracing): propagate OTel trace context across Temporal boundaries (
da7ea15
#485)

Co-authored-by: Claude Opus 4.8 <[email protected]>
@jshaikScale @cursoragent
refactor: use canonical SGP error categories
6f27da0
Require the released tracing SDK types so Agentex no longer maintains a duplicate ownership taxonomy that can drift.

Co-authored-by: Cursor <[email protected]>
@NiteshDhanpal @claude
feat(tracing): correlate business spans with obs via dedicated wrappe…
72732b7
…r span (#484)

Co-authored-by: Claude Opus 4.8 <[email protected]>
@jshaikScale @cursoragent
merge: resolve latest next tracing changes
0f63017
Preserve the newer fail-open observability handling while retaining error category metadata and updated expectations.

Co-authored-by: Cursor <[email protected]>
@jshaikScale @cursoragent
feat(tracing): infer error ownership from tracebacks
329499e
Add configurable frame ownership rules and safe provenance so uncategorized span failures can be attributed without inspecting exception text.

Co-authored-by: Cursor <[email protected]>
@jshaikScale @cursoragent
fix(tracing): keep classifier provenance non-sensitive
21968e1
Use a stable mapping rule identifier instead of emitting custom exception type names in tracing metadata.

Co-authored-by: Cursor <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@jshaikScale @NiteshDhanpal
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.