Repository navigation
feat(annotations): Name each Annotation's object by its subject - #4320
Merged
Merged
Conversation
An Annotation now stores the subject of its object, in the Inbox form (`<plugin>:<kind>` or a core kind), and what the Conversation did to it: created, changed, or attached. Tool and hook results name the subject and the action, with the kinds that the plugin registers in `inboxSubjects`. The subject replaces `objectId`, and the Inbox owner lookup reads it. A trigger fills both columns for rows that old workers write, and for objects whose provider id is not known. Also adds the Annotations design doc and its terms. Co-Authored-By: BYK <[email protected]>
…' into feat/annotation-subjects Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d526076. Configure here.
BYK
approved these changes
Nov 25, 2026
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.

First step of making Conversation Annotations lean pointers. This adds the design doc and gives each Annotation the subject of its object and what the Conversation did to it. Cards and webhooks still read and write the saved JSON. Later PRs read cards live, delete the status writes, and drop the saved facts.
Design and terms
design/annotations.md, linked fromdesign/README.md.Data
junior_conversation_annotationsgainssubject_kind,subject_id, andaction(created | changed | attached), plus an index on the subject.subject_kinduses the Inbox form:<plugin>:<kind>, or a core kind (automation, orlinkwhen the provider id is not known, with the link as the id).created, because the Conversation still created the object.annotationowner lookup reads the subject columns, not the JSONobjectId.objectIdthat feat(github): Add an Inbox item for the assignees of an issue Junior opened #4308 saved. Everything else that has no known id becomes alink. Old JSON rows don't say which Conversation created an object, so the backfill marks themchanged.objectIdindex stays for now because old workers still query it. PR 6 drops it.Plugin API
objectSubjectSchema({kind, id}) replacesobjectAnnotationSchema.objectId.objectAnnotations,afterMcpTool) useannotatedObjectSchema, which adds a requiredaction(created | changed).inboxSubjects. Core rejects any other kind, so an Annotation and an Inbox item about the same object always match.Plugins
calendar_event(ownerannotation).deployment.vercel_inspectDeploymentis read-only, so it no longer returnsobjectAnnotations. Core already rejected that result.issue(labelTicket). The subject id is the Ticket identifier because the hosted MCP does not reliably return the Ticket's uuid. A Ticket that moves to another team changes its identifier.automationsubject,createdfrom the create tool andchangedfrom the update tool.attached, with the plugin's subject when its link type knows the id, elselink.via @BYK.
--
View Session [Sentry]