fix(core): enforce parallel task tracker updates#24477
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request improves the agent's task tracking efficiency and reliability by enforcing parallel updates. By instructing the agent to bundle tracker updates with other tool executions, the system reduces the number of turns required for task management and ensures the tracker state remains synchronized with the actual work performed. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new 'PARALLEL UPDATES' guideline to the task tracking system, instructing the model to combine tracker updates with other tool calls in a single turn for better efficiency. Corresponding updates were made to the prompt snippets and snapshots, along with a new evaluation test to verify this behavior. Feedback was provided regarding the risk of race conditions when performing parallel updates to the tracker, suggesting the use of synchronous I/O or avoiding parallel execution in test contexts to ensure data integrity.
6e30d6c to
f61a069
Compare
|
Size Change: +350 B (0%) Total Size: 33.9 MB
ℹ️ View Unchanged
|
|
✅ 55 tests passed successfully on gemini-3-flash-preview. 🧠 Model Steering GuidanceThis PR modifies files that affect the model's behavior (prompts, tools, or instructions).
This is an automated guidance message triggered by steering logic signatures. |
This commit updates the system prompt to explicitly instruct the agent to batch tracker_update_task calls with other tool calls in the same turn, improving the speed and visual consistency of the task tracking process. Fixes #23129
f61a069 to
b7ce517
Compare
🛑 Action Required: Evaluation ApprovalSteering changes have been detected in this PR. To prevent regressions, a maintainer must approve the evaluation run before this PR can be merged. Maintainers:
Once approved, the evaluation results will be posted here automatically. |
Co-authored-by: anj-s <anjalisridhar@google.com>
Co-authored-by: anj-s <anjalisridhar@google.com>
This PR updates the system prompt's TASK MANAGEMENT PROTOCOL to explicitly instruct the agent to batch tracker_update_task calls with other tool calls in the same turn. This prevents the tracker from getting out of sync during multi-step processes and improves overall agent speed and efficiency. Fixes #23129