Repository navigation
fix(chat): Fix the product gaps behind the flaky integration evals - #2055
Merged
Merged
Conversation
Integration evals failed in 26 of the last 60 workflow runs. Five cases caused almost all failures. Four showed a product gap, and one eval tested its contract in a slow way. - Event selectors: a plugin resource type can declare the shape of its identifiers. Core rejects a watch or event automation whose identifier does not fit its resource type, and the error names the type that fits. GitHub declares the shape of all five resource types. - Event type search: one matching term is enough, and resource types that match more terms come first. A query such as "GitHub events" returned nothing before. - Guardian: an automation's credential mode applies to its later runs. The policy no longer compares it with the credential fact of the current action. - Automation instructions: the create and update tools reject an instruction that names the requester by display name without their Slack mention. - The handoff continuity eval asks for a memory-defined review verdict as a reaction, with no sandbox work. The turn takes 32 to 40 seconds instead of 50 to 75. The public web Message test awaits the title work that the worker gives to `waitUntil`. It polled for 5 seconds before. Refs #2001 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
marked this pull request as ready for review
October 7, 2026 15:04
Sentry Evalsjunior-guardian
Base commit junior-integration
Base commit |
…ier error The Guardian rule now uses the policy's own term for the credential fact of the current action, and it states the conclusion: a difference from an automation's credential mode is not a gap to confirm. The identifier error names the resourceType parameter and gives the values that fit the identifier. Refs #2001 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
4 screenshot changes — 4 changed · 0 added · 0 removed Review screenshots in Frameshift
|
This was referenced Nov 6, 2026
BYK
added a commit
that referenced
this pull request
Nov 7, 2026
…tions (#2850) Fixes #2849. A child agent that handles a watch event reports it by provider handle ("BYK requested changes on #2055"). The parent then mentioned the reviewer in Slack and also named them in the third person. The #2248 "you" rule only reached the child, and the child's reply goes to the parent, not to the person. The identity now travels up as a Slack mention in the text. There's no new storage, and it works at any depth: - **Event task input** (`peopleTags`): `If your reply is to <@U…>, write to them as "you". Otherwise call them <@U…>, not "BYK".` This replaces `If you mention <@U…>, write to them as "you", and do not also call them "BYK".` - **Child agent runs**: the reply goes to the parent agent, so the child calls each person by the Slack mention its input gives, not by a handle or a name. - **Agent input rules** (root and middle children): a child agent calls people by mention. When your reply is to a person that a child agent names, write to them as "you", and don't also name them in the third person. A grandchild writes the mention, the middle child keeps it (its reply is to its parent), and the root writes to the person as "you". ## Tests - I updated the `peopleTags` text in the task-input unit snapshots and in `event-wake-delay`. - New eval in `evals/coding/subscriptions.eval.ts`: the requester reviews the PR, and the review reaches the thread through a child agent result. **I did not run it locally.** The sandbox has Node 22 and no `ROACH_TOKEN`, and Roach needs Node 24.14+. The existing #2248 eval ("address them once as you") also covers the reworded event rule. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:local%3Aweb%3A53d78c3a2094119fd5c9c136 --> -- [View Session in Sentry](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A53d78c3a2094119fd5c9c136/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Integration evals failed in 26 of the last 60 workflow runs, and five cases caused almost all of the failures. Four of them showed a product gap. The fifth tested its contract in a slow way. This change fixes each cause, so the evals are a stable base for the rest of #2001.
resourceType: "issue"with the identifiergetsentry/junior. Nothing checked that an identifier fits its resource type.credentialModewith the credential fact of the current action, then asked the user to confirm what they had requested.Event identifier shapes
events.resourceTypes[].identifieris a new optional field of the plugin event contract:{ format, pattern }. GitHub declares it for all five resource types. Watches, event automation tools, and dashboard edits use the same check. Event type search returns the format.The agent now gets this error and corrects the call:
A resource type without a declared shape accepts any identifier, as before. Linear has the same ambiguity between
issueandteamand does not declare a shape yet.Requester mention
This is a behavior change. An instruction that contains the requester's display name must also contain
<@U…>. The check covers only the requester, because that is the one name core can map to a user ID. An update is checked only when it changes the instruction.Handoff eval
The old eval made the agent do a full code cleanup after the handoff. Most of the time went to sandbox work that the contract does not need, and the explicit-request variant passed before #1938, so it protected nothing.
The new case keeps the same history and the forced profile switch. The request is a term that only memory defines: give a review verdict as a reaction. The eval asserts a completed
handoffand then anaddReaction.compactContextForHandoffThe summary sometimes carries the request by itself, so the eval does not fail every time without the fix. #1938 recorded the same limit.
Evidence
Each case was sampled in one run after its fix:
issuefirst, got the error, and corrected torepository.Also in this change
conversation-turn-work.test.tspolled 5 seconds for a title that comes from a live model call, and it failed once onmain. It now awaits the title work that the worker gives towaitUntil.Not fixed
watched-message-behavior.test.tsfailed one CI run on an error after teardown. It has no teardown and belongs to the passive routing group of One fixture for agent tests: run(), continue(), and loaded history #2001.Refs #2001
🤖 Generated with Claude Code