Repository navigation
Every Bot is told who the person is, so it calls them you - #2887
Queued
davidmckayv wants to merge 1 commit into
Queued
davidmckayv wants to merge 1 commit into
davidmckayv wants to merge 1 commit into
Conversation
Bots are told to call the person "you", and nothing told them who the person was. Summarising a meeting the person had been in, a Bot wrote about them by name, in the third person. personGuidance(name, email) says who they are, to say "you" where a document, meeting or message clearly involves them, and to say who it takes them to be where it might be someone else with the same name. It goes to every Bot alike as the AG-UI context entry "OpenBot person" (PERSON_CONTEXT). The Mastra harness now puts that entry in front of its model, and the connected-agent docs describe it.
davidmckayv
marked this pull request as ready for review
December 3, 2026 18:42
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 3, 2026 18:42
davidmckayv
added this pull request to the merge queue
Dec 3, 2026
Any commits made after this event will not be merged.
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.
What changed and why
Asked to summarise a meeting the person had been in, a Bot wrote about them in the third person, by their own name ("Heidi will review..."). Every Bot is told to call the person "you", and nothing told it who the person was.
shared/bot-prompt.ts:personGuidance(name, email)says who the person is, to call them "you" and "your" where a document, meeting or message clearly involves them as a speaker, sender, owner or assignee, and to say "{name}, who I take to be you" where it might be someone else with the same name. With a name alone (OpenBot Desktop) it names them alone; with neither it is empty. A tag in a name is escaped so it cannot open a section of the prompt.PERSON_CONTEXT("OpenBot person"): the AG-UI context entry it goes in. Every Bot is sent the same entry, OpenBot's own included, so a connected Bot gets exactly what a built-in one does, over plain AG-UI.agent-mastra: the Mastra harness dropsOpenBot ...context entries it does not know, so it now putsOpenBot personin front of its model, after OpenBot's guidance and before the caller's context.docs/coworkers.md: "What your agent is sent" describes the new entry.The AG-UI shape is unchanged: one more context entry, and an agent that ignores it behaves as before.
Red/green
shared/bot-prompt.test.ts,personGuidance: name and address, name alone, address alone, neither (empty), and a tag in a name. New function, so red before (not exported) and green after.agent-mastra/src/mastra/index.test.ts, "tells the model who the person is": red before (the entry was dropped with every otherOpenBot ...entry), green after.Tested
bun test shared/bot-prompt.test.ts,bun test agent-mastra/src/mastra/index.test.ts.OpenBot personnaming the person. No screen changes in this PR, so there are no before and after screenshots.Changelog
Bots.
OpenBot person, the same entry OpenBot's own Bots get.