Skip to content

feat(runtime): Add live self diagnostic tool - #1964

Closed
sentry-junior[bot] wants to merge 2 commits into
mainfrom
feat/self-diagnostic
Closed

sentry-junior[bot] wants to merge 2 commits into
mainfrom
feat/self-diagnostic

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Add self_diagnostic so Junior can inspect its current execution instead of answering model questions from memory or repository defaults.

The read-only tool returns the active model, profile, reasoning level, image-input support, and Conversation, Turn, and Run IDs. It lists configured profiles with effective reasoning levels and handoff availability. The callback reads current state after handoff and resume.

The diagnostic also shows the active-history context estimate, model window, effective input budget, and compaction threshold. It reports last-call cache counters and cached input share, plus token counters and estimated USD costs for completed main-model calls in the current execution slice. These counters survive history replacement but reset on resume. They exclude earlier slices, failed calls, and auxiliary models; they are not full Turn or Conversation totals. Missing counters stay unknown, including totals with incomplete reporting.

Each call saves a dated Message card through the existing Item annotation path. Later reads do not replace earlier facts. The result excludes secrets, raw configuration, and prompt content.

This PR is independent of #1946. That PR shows recorded event data; this tool reads live execution state.

via daniel.

--

View Junior Session [Sentry]

Expose current execution settings and available model profiles without relying on remembered configuration. Save diagnostic cards through the existing annotation path.

Co-Authored-By: Daniel Griesser <dgriesser@sentry.io>
@vercel

vercel Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Sep 27, 2026 8:02pm UTC

Request Review

@seer-evals

seer-evals Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Sentry Evals

junior-behavioral

Run Status Passed Failed Errored Cost Tokens Duration
Head Complete 61 8 0 $1.17 2.6M 1,258.71s

Base commit f91232e has no eval run to compare against.

Co-Authored-By: daniel <dgriesser@sentry.io>
@github-actions

Copy link
Copy Markdown

1 screenshot change — 1 changed · 0 added · 0 removed

Review screenshots in Frameshift

Conversation Outbox Author · Desktop
Conversation Outbox Author · Desktop
Changed

@HazAT

HazAT commented Sep 28, 2026

Copy link
Copy Markdown
Member

Let's table this for now, not sure if this tool adds any real value

@HazAT HazAT closed this Sep 28, 2026

This branch was successfully deployed

1 active deployment
Preview – junior-docs — fb680d6f Deployed Sep 27, 2026 by vercel[bot]
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