Add transactional batch rule#190
Conversation
TheovanKraay
left a comment
There was a problem hiding this comment.
Thanks for this one! Transactional batch isn't covered by any existing rule, so this fills a real gap. A few things needed before it's mergeable:
- Missing eval task. Please add a task file in tasks.
- Missing AGENTS.md rebuild. Run npm run build and commit the updated AGENTS.md.
- Duplicate heading. Remove the ## Use Transactional Batch... heading from the rule body (compile.js generates a numbered heading automatically).
- Rule content could be stronger. It would be great to mention the batch limits (100 operations, 2 MB total payload) and the importance of checking individual operation results via response.GetOperationResultAtIndex(), since the batch can return 200 overall but have individual failures.
One more thing: we recently merged a skill split (#204) that added topic-specific skills alongside the monolith. We're in a transitional phase where both coexist while we evaluate whether agent routing can handle the split on its own. Until that's resolved, new rules need to live in both places. Since this is an sdk- prefixed rule, please copy skills/cosmosdb-best-practices/rules/sdk-transactional-batch.md to skills/cosmosdb-sdk/rules/sdk-transactional-batch.md and then run npm run build to regenerate AGENTS.md for both skills.
Thanks again for the contribution!
|
@avinashkamat48 there are some ongoing changes being evaluated to the structure that could require this to be modified. you'll definetely get notice when it's time to make any changes to avoid merge conflicts. |
Summary
Verification
Closes #168