Qualify point-read RU costs in AI-grounding guidance - #268
Open
Vsevolod Kukol (sevoku) wants to merge 2 commits into
Open
Vsevolod Kukol (sevoku) wants to merge 2 commits into
Vsevolod Kukol (sevoku) wants to merge 2 commits into
Conversation
Vsevolod Kukol (sevoku)
requested review from
Theo van Kraay (TheovanKraay),
Jay Gordon (jaydestro) and
Sajeetharan (sajeetharan)
as code owners
September 22, 2026 13:42
Copilot started reviewing on behalf of
Vsevolod Kukol (sevoku)
September 22, 2026 13:47
View session
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Add the required version bump and retain a quantitative baseline in impactDescription.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (2)
What changed in this PR
Updates AI-grounding guidance to qualify point-read RU costs by item size and consistency level.
Changes:
- Clarifies 1-KB/session-consistency RU examples and larger-item effects.
- Explains stronger consistency costs.
- Removes unconditional latency cost claims and updates the documentation link.
| File | Summary |
|---|---|
skills/cosmosdb-best-practices/rules/pattern-ai-grounding-access.md |
Refines point-read cost and latency guidance. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Vsevolod Kukol (sevoku)
marked this pull request as draft
September 22, 2026 13:52
Vsevolod Kukol (sevoku)
marked this pull request as ready for review
September 22, 2026 14:57
Copilot started reviewing on behalf of
Vsevolod Kukol (sevoku)
September 22, 2026 15:03
View session
This branch has not been 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.


Summary
Qualify the point-read cost claims in
pattern-ai-grounding-access.mdby item size and consistency level, while preserving its recommendation to use point reads when the item ID and partition key are known.Problem
The impact description, Python example comment, and latency explanation present 1 RU as an unconditional cost for a grounding fetch. Larger documents and stronger consistency levels can cost more, so this wording can understate the RU budget for AI retrieval workloads.
Changes
The executable TypeScript and Python examples are unchanged.
Documentation Evidence
Microsoft's point-read cost guidance identifies item size and consistency level as the cost factors and gives these examples:
The consistency section states that strong and bounded-staleness consistency double the RU cost of reads. These examples do not imply a linear per-KB formula or a universal 1-RU charge.
Original Discussion And Scope
Addresses the original review discussion on microsoft/vscode-cosmosdb#3355, including the repeated claim in the same file's prose.
Only this rule changes. The separate LangGraph routing-cost and patch-cost findings are being handled independently.
The impact-description review is addressed in aea15b9. The baseline remains explicitly qualified by item size and consistency. Version metadata is unchanged.