rust(feat): bulk annotation updates - #752
Merged
evan-sift merged 7 commits intoAug 27, 2026
Merged
Conversation
evan-sift
force-pushed
the
rust/bulk-annotations
branch
from
August 26, 2026 07:56
a70ae50 to
2475d86
Compare
evan-sift
changed the base branch from
main
to
rust/mcp-user-defined-functions
August 26, 2026 07:56
evan-sift
force-pushed
the
rust/mcp-user-defined-functions
branch
from
August 26, 2026 08:20
10cd137 to
d23b02f
Compare
evan-sift
force-pushed
the
rust/bulk-annotations
branch
2 times, most recently
from
August 26, 2026 08:20
2475d86 to
e325a9c
Compare
evan-sift
marked this pull request as ready for review
August 26, 2026 08:21
evan-sift
force-pushed
the
rust/bulk-annotations
branch
from
August 26, 2026 17:28
e325a9c to
bc03eb9
Compare
lineville
approved these changes
Aug 26, 2026
evan-sift
force-pushed
the
rust/mcp-user-defined-functions
branch
from
August 27, 2026 04:40
1d4b281 to
57dbeaf
Compare
evan-sift
force-pushed
the
rust/bulk-annotations
branch
from
August 27, 2026 04:40
bc03eb9 to
f0d6aee
Compare
…ting error payloads
evan-sift
force-pushed
the
rust/mcp-user-defined-functions
branch
from
August 27, 2026 19:20
57dbeaf to
1c714d8
Compare
evan-sift
force-pushed
the
rust/bulk-annotations
branch
from
August 27, 2026 19:20
f0d6aee to
8dfa82c
Compare
Co-authored-by: Liam Neville <liam@siftstack.com>
evan-sift
merged commit Aug 27, 2026
8573279
into
rust/mcp-user-defined-functions
12 of 13 checks passed
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.
Description
update_annotationnow updates one or more annotations in a single call. It takes a requiredannotation_idslist (1 to 1000 ids) and applies the same change set to every id.Archiving goes through one
BatchArchiveAnnotationsrequest. Unarchiving clears each annotation's delete date through per-annotationUpdateAnnotationrequests with a bounded fan-out, the mechanism the API documents for restoring an annotation (the dedicated unarchive RPCs are not implemented by the service). Field changes are likewise oneUpdateAnnotationper annotation with the same fan-out. Whenis_archivedis combined with field updates, the updates run first, then the archive or unarchive.Failure handling is explicit rather than all-or-nothing: per-annotation failures come back in
failureswith the id, code, and message next to the successful results, a backend-wide failure stops later batches and reports the untouched ids innot_attempted, and any partial failure sets the tool result'sisErrorflag.next_steptells the agent which ids are safe to retry.Stack note: the bundled agent skill and the 0.5.0 changelog for this whole stack land at the tip (#763).
Verification
cargo test -p sift_mcpon this branch: 430 passed, 0 failed. New tests cover batch construction, per-id failure mapping,not_attemptedreporting on backend-wide failure, archive ordering with combined field updates, bounded fan-out concurrency with order preservation, and parameter validation (empty list, empty ids, over-limit list, no updatable field).cargo fmt --all -- --check: clean.rust/mcp-user-defined-functions).