Skip to content

Mentions & collaboration

Naming a colleague is a platform capability, not a feature of a chat screen. A mention attaches to a body and a record; it works on a message, a note, a comment, or any other text field on any object, because the layer that raises it reads every changed string field on every save rather than a declared list of them. A platform that built mentions into one surface would build them again on the next one.

This page is the record of what a mention does. The mechanics — the grammar, the picker, the notification — are the easy half. The load-bearing half is the four questions below, each of which has exactly one answer on this platform and a reason it is that answer.

A mention is stored as a reference, not a name:

<@person:6f1c8a3e-…-…|Morgan Lee>
<@record:contact/9ab2f1d4-…-…|Acme Ltd>

@Morgan is what somebody types; it is not what is kept. Two people share a first name the day the second one joins, and a name is wrong the moment somebody is renamed — a body that stored the name would then point at the wrong person, or at nobody, and would go on looking correct in both cases. So the id is the claim and the label is the courtesy: what the writer saw when they chose, kept so the sentence still reads the way it was written after the person is renamed.

The grammar is implemented three times — in the kernel, in the component library’s writing side, and in the message-body reader — because the library ships with zero runtime dependencies and shares no code with the kernel, which is a property worth more than one implementation. The three are held together by a fixture all their suites read, asserting that the same inputs give the same tokens. Two parsers that agree because a test says so is a different thing from two that happen to agree today.

A mention whose reference is malformed is not a mention: it stays in the body as the characters somebody typed. The alternative is carrying an unresolvable reference into storage and into a notification raise, where it becomes a lookup that cannot succeed and an error nobody can act on.

Any person in the caller’s org whose principal is not deactivated. invited and locked are offered on purpose: somebody who has not signed in yet, or whose account is temporarily shut, is still a colleague, and a mention is how they find out something is waiting for them. deactivated means they have left, and offering them is offering a person who will never read it.

Scoped to the org and nothing narrower — see What a mention grants for why it is not scoped to the record.

Typing @ in a message composer with mentions set opens a picker. The box reports what has been typed through a mention-query event; the surface answers it — who exists and who may be named is not a question a component can answer. Choosing a candidate inserts the written-down form, so no surface formats the grammar by hand.

The @ must open a word — start of text, or after whitespace or an opening bracket. That one rule is what stops someone@example.test from opening a picker in the middle of an email address.

Nothing. A mention notifies, and that is the whole of it.

It does not grant Why not
Access to the record the body sits on A mention is a reference kept in a body somebody else may read later, and this platform already decided how those behave: the target is resolved when followed, in the reader’s own access context, never pre-authorized. Granting from a mention would be a second write path into the access plane, and there is one write path.
Visibility — appearing in a list, a sidebar, or a member set Not expressible, and deliberately so. Record-triggered automation is the single effectful tier, and its compiler accepts set_field and emit_event — there is no step that creates a related record. So “naming somebody adds them to the thing” has no authored mechanism. Writing it from one screen instead would make the grant a property of that screen, which is the failure this capability was separated out to avoid.
Membership of a conversation or channel Membership carries a person’s own state — their read mark, their unsent draft. A third party typing a name must not author a row that is semantically somebody else’s. And an org-wide picker plus an automatic member row means anybody can fill anybody’s sidebar by typing.

This is not the leftover answer. A mention is a direct address, not an authorization. The notification reaches the person wherever they are; whether they can open what it points at is the access model’s question, and the access model already has an answer. The two concerns stay separate because the moment a mention grants something, every body on the platform becomes a place access can be handed out from — by anybody who can type.

Participation-based access is also not expressible in authored metadata today for an independent reason: a sharing rule grants to a role or a group, never to a set of participants. A capability that needed “everyone who took part can see it” would need that gap closed first, and closing it is not this capability’s job.

A mention of somebody who cannot see the record

Section titled “A mention of somebody who cannot see the record”

They are notified anyway, they are told nothing about the record, and they are refused at the door if they follow the link.

Concretely:

  • The raise does not consult access. It takes a body, a subject and an author, and tells the people named in the body. It does not decide who may read what it was handed.
  • The notification body is static and carries no merge fields. It reads “You were mentioned. Follow the link to see where, if the record is one you can read.” There is no field value in it to leak, by construction rather than by care.
  • Rendering is per-recipient and under field-level security. The platform’s rule is that a merge field the recipient cannot read never resolves to its value, gated by the same read check the record store masks columns with. A notification type that did carry a readable field would be subject to that rule; this one has nothing to subject.
  • The subject reference is not a grant. It is resolved when followed, in the reader’s access context.
  • It does disclose that a record with this object key and id exists, to somebody who may not be able to read it. That is stated rather than left for somebody to discover. It is the raiser’s choice: a notification about a record is addressed to a person on purpose.

Because the alternative fails worse, and it fails silently. Suppressing the notification means the writer believes they tagged somebody and nothing happened — the action had no effect, and the only signal is a styling difference in their own message that they have no reason to look at. “Did nothing, quietly” is the single worst outcome available here.

Notifying instead makes the outcome legible to both people: the person named knows a colleague wants them and can ask for access; the writer’s action did what they meant it to do. The disclosure that is traded for it is bounded to existence, and it is written down above.

This is a deliberate divergence from the incumbent — see How Salesforce does it.

Resolved, and drawn as absent rather than as present.

People are the one mention kind that is resolved before drawing, and that asymmetry is deliberate. There is no link to follow into a person and no access plane over principals, so “has this person left?” has nowhere else to be asked. A mention of somebody who has gone must be able to say so rather than name them as if they were still here.

Every id asked about comes back, present or not: an absent answer and “we did not look” are indistinguishable to a caller, and a renderer that cannot tell them apart draws a mention of somebody who has left exactly like a mention of somebody who is here.

When a person is gone, the label the writer chose is kept and the mention is marked absent. The current name of somebody who has left is not the resolver’s to hand out, and the sentence was written around the label — replacing it would rewrite what somebody said.

Records are not resolved before drawing, for the reasons in the table above: pre-authorising would cost a record read per mention per reader, and a mention would vanish for a reader who cannot open the record, which silently changes what somebody wrote. Refusing at the door is the honest behaviour, and the door is where it already happens.

Two kinds, person and record. The grammar admits no third.

A group mention is refused, and not as a deferral — it is a different capability that already exists elsewhere.

  • A mention is a direct address. The raise refuses to collapse mentions for exactly this reason: folding three different people’s mentions of you into one “3 mentions” is the thing people open the app to read individually. A group mention is the opposite of a direct address. It is a broadcast.
  • A broadcast already has a transport. Notifications carry targeting rules that resolve role and group closures, including nesting and role-and-subordinates. That is where “tell this set of people” belongs, with a declared type and a preference surface behind it.
  • Expansion on the save path is unbounded. Group membership nests, and one @group could resolve to an arbitrary number of recipients inside an ordinary save’s transaction. The resolver’s 200-person ceiling exists because a caller supplies the ids; a group whose expansion happens after the grammar makes that ceiling unenforceable at the point it is stated.

Addressing the assistant is what posting in a channel already is. A mention that also addressed it would be a second door to one behaviour, with the ambiguity that comes free: @assistant can you look at this would both name a recipient and trigger a reply, and nothing would say which of the two the writer meant.

The identity model agrees independently. A principal is a person or a service, and the mention candidate query returns people only — so a service identity is never offered even where one exists. The assistant is not a principal at all.

Named here so it is not smuggled in later: reactions, pinning and message editing are separate decisions with their own justifications. Tagging does not bring them, and nothing on this page should be read as having decided them. Each one changes what a stored body means — a reaction adds a second write path onto a message somebody else owns, pinning adds an ordering nobody authored, editing changes what a reader already read — and each deserves its own argument.

When What happens
A record is saved Every changed string field is read for the grammar — not a declared list of them
On the save’s own transaction The raise runs in the save’s effects phase. If the save rolls back, so does the notification: a mention notification for a body that was never stored is a link to nothing
On an update Only the people this write added are told, compared as sets of people rather than as text. Moving a mention to another sentence, or re-typing the same name, adds nobody
Three mentions of one person One notification. Mentioning somebody three times in a sentence is emphasis
A mention of yourself Not notified. On a surface where people repeat each other’s words back, being told you mentioned yourself is constant noise
A mention of somebody not in this org Not notified, and not drawn as present. The grammar is text somebody typed, and taken at its word it would write a recipient row for a person who does not exist — or a value the column cannot hold, failing the insert and rolling back the save that was storing the body. A record must not be refused because of what its prose looks like
Past the 200-person ceiling Capped, not refused — first-appearance order, so the names written first are kept. The route refuses an over-long body outright, but a raise runs on a save that is otherwise fine, and losing the record to tell the 201st person is the wrong way round
Channel preferences Honoured. A channel somebody turned off yields a stated suppression rather than a silent drop
Collapse Off, on purpose. See Not a group
Limit Value Why
Candidates per query 20 A picker is a shortlist, not a directory dump
Candidate query length 100 characters A person types a word; a pasted paragraph is not a name
Half-typed mention, before the picker gives up 50 characters, 2 words Without a ceiling one stray @ leaves the picker open for the rest of the message, over a query nobody is typing. Two words because people have surnames and type them
Body length the resolver will parse 64 KiB 64 KiB is a generous message. The cap exists because the route is open to anybody signed in: a body of a hundred thousand well-formed mentions parses to a hundred thousand ids and goes into one query
Distinct people resolved per body 200 Well past any real message. Past the ceiling the answer is a refusal rather than a truncation, because a caller that asked about 500 people and got 200 back cannot tell which 300 were dropped
Notification channels in-app and push on by default; email and chat off The type’s own declaration, read rather than restated, so the preference a person sets against it is the preference the raise honours

The candidate route and the resolve route are both open to anybody signed in, with no permission required. Both are therefore capped. The asymmetry is worth stating because it was the shape of a real defect: the candidate route capped its one parameter from the start precisely because a caller supplies it, and the resolve route — the same door, the same anybody-in-the-org — capped nothing.

Salesforce’s feed mention is scoped to the feed, and its answer to the access question is the opposite of this platform’s.

Mentioning someone who cannot see the record suppresses the mention. The @mention renders as a grey link, the person cannot see the post, and they are not notified about it. Security and sharing are enforced by making the mention inert.

That is a coherent position — nothing is disclosed — and this platform rejects it for the reason in Why not suppress it: it converts “you cannot see this” into “your colleague’s action silently did nothing”, and the writer learns it from a colour. CAOS trades the existence of the record for both people knowing what happened.

Salesforce permits group mentions; this platform does not, and routes that need to notification targeting instead. Salesforce caps the mention search at 25 matching records and a post at 25 mentions.

The deeper difference is where the capability lives. The incumbent answer to collaboration is a feed bolted onto records, with the assistant somewhere else entirely — and that feed is now switched off by default for new customers, which is as clear a signal as a vendor gives that the shape was wrong. Here the conversation, the people and the assistant are one surface, and the mention is a platform capability underneath all three rather than a feature of any of them.

There is nothing to declare. A package that wants mentions authors no metadata for them:

  • record.mentioned is a platform built-in in the base notification-type catalogue, seeded into every org at provisioning. A package does not ship it and must not redeclare it.
  • There is no raise verb. The notifications noun carries list, mark-read, preview and test-send. Raising happens by storing the body — the save reads it.
  • The mentions noun carries candidates and resolve, both mounted always-on like data and search.

So a surface that wants mentions needs three things, none of them metadata: a composer with mentions set, an answer to its mention-query from the candidates route, and — if it draws bodies that may name people who have left — a call to resolve for the people in the bodies it is about to draw.

  • @Mention People and Groups in Chatter Posts and Comments — Salesforce Help — the 25-match search cap, the 25-mention post cap, group mentions, and the grey-link behaviour for a person without access to the record or the group: they cannot see the post and are not notified.
  • Unable to @Mention a Specific User or Chatter Group — Salesforce Help — the access and membership conditions under which a mention cannot be made at all.
  • kernel/src/mentions/ — the grammar, the resolver and the raise, each with the argument for its own shape in its header.
  • kernel/src/notifications/inbox.ts — per-recipient rendering under field-level security, and the written statement that a subject reference discloses existence.
  • kernel/src/save/pipeline.ts — the every-changed-string-field read that makes a mention work on any object.
  • caos-ui/src/mention-token.ts and caos-ui/src/message-body.ts — the writing side and the reading side, and the fixture that holds them to the kernel’s grammar.