Skip to content

docs(agents): cite installedBy's writers by symbol, and stop implying five - #1223

Open
lilyshen0722 wants to merge 3 commits into
mainfrom
docs/installedby-cite-by-symbol
Open

docs(agents): cite installedBy's writers by symbol, and stop implying five#1223
lilyshen0722 wants to merge 3 commits into
mainfrom
docs/installedby-cite-by-symbol

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

What

Comment only. No behaviour change.

@sprint-review recounted the installedBy writers (57771). The bot half holds at exactly five. The human half doesn't — the comment listed five sites as though that were the set.

There are at least ten originating human-side writes: podController, authController, personaHireService, podCurationService, agentProfile, registry/install, registry/admin, dmService (twice), and one in this very file — the auto-install inside resolveMentionTarget, which writes senderUserId.

Two changes

Line numbers → symbols. Per the rule #1165 earned: a sha 404s and a grep for a symbol fails loudly, but a line number answers wrongly. Five of the six positions this comment cited had already moved.

The count is now a floor, with the grep that reproduces it. The failure wasn't the number being wrong on the day it was written — it was a number frozen into prose where nothing re-derives it.

Residue, stated in the comment

grep -rn 'installedBy:' backend | grep -v __tests__ also returns queries (agentMemoryView, approvalActionService) and propagations of an existing value. Neither writes an identity. Re-deriving that distinction is what separated the ten from a larger raw count — worth naming, since the next person runs the same grep.

Note for whoever merges

Touches the same comment block as #1216, a few lines apart. Non-overlapping hunks, but land them in either order and re-read the block once.

agentMentionService suite green, tsc clean.

🤖 Generated with Claude Code

lilyshen0722 and others added 3 commits August 25, 2026 01:55
@sprint-review (57766): after #1166 this is the only `limit: 10` left in
agent.js, and the reason it is fine is one function away and invisible here.
Anyone who greps the constant after reading that thread has to re-derive the
distinction — two identical strings, opposite significance, no local marker.

No behaviour change. The events fetch went to 1 because fetching an event
CLAIMS it; this endpoint returns pod messages for the echo check and claims
nothing, so ten rows cost ten rows.

Comment rather than a test because there is no wrong behaviour to pin — the
failure mode is a reader's question, and the answer belongs where the
question gets asked.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
… five

@sprint-review recounted (57771) and the bot half holds at exactly five. The
human half does not: the comment listed five sites as though that were the
set, and there are at least ten — podController, authController,
personaHireService, podCurationService, agentProfile, registry/install,
registry/admin, dmService twice, and one in THIS file, the auto-install
inside resolveMentionTarget writing `senderUserId`.

Line numbers dropped for symbols, per the rule #1165 earned: a sha 404s and a
grep for a symbol fails loudly, but a line number answers wrongly. Five of
the six positions this comment cited had already moved.

The count itself is now stated as a floor with the grep that reproduces it,
because the failure here was not the number being wrong on the day — it was
a number frozen into prose where nothing re-derives it. The grep's caveat is
included too: it returns queries (agentMemoryView, approvalActionService) and
propagations of an existing value, neither of which writes an identity.
Re-deriving that distinction is what separated my ten from a larger raw
count.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…iled under queries

@sprint-review 57854 pushed the caller-identity half to "9 or more". Re-derived
against `grep -rn 'installedBy:' backend | grep -v __tests__` (43 non-test
occurrences) and separated writes from filters and propagations:

- Bot identity: exactly 5 (agentAutoJoinService, podWriteAccessService,
  agentsRuntime ×3) — as written, unchanged.
- Caller identity: 12, not 10. The two this comment missed are
  approvalActionService:572 and :660, both `$setOnInsert: { installedBy:
  row.ownerUserId }`. The previous draft named that file under queries ONLY —
  it does both, and listing it on one side made the other side invisible.
- `agentMemoryView:123` is a query filter, not a write, so it does not join
  the human list; the comment already named it as a query and that stands.

The count is now stated as a floor the enumeration reaches, not a census, and
the query/propagation clause names its members so the next reader can tell
which kind each site is without re-running the split.

Comment-only. 62/62 agentMentionService tests green; no tsc errors in this file.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant