Repository navigation
Conversation
…sion 75) A sender bot now holds its identities itself, in sender_bot_identities: an identity belongs to one person or one bot, never both, and its messages and mail keep pointing at the identity. A bot has a name, identities and an optional organization, no ties, no tasks, no merge review, and never appears in people.list, its counts, similar or ties. - Store version 75: the upgrade moves each version 74 bot's identities off its person row and logs the move. The row stays, kind 'merged', hidden as a merge's emptied person is, so a move back gives its uid back. sender_bots.person_id goes negative: a 1.0 build reads a bot as its person row, and this names none. - minCompatible stays 73. Triggers keep a 1.0 build apart: a bot's identity gets no link to a person, the person its ingest made goes again, a bot holding identities is not deleted, and a hidden person's kind stays 'merged'. A bot such a build sorts after the upgrade is settled by the next kept list. - Rules: a person whose kind is automated by a program's signal moves to a new bot, as before; a rule's bot goes back to the people its identities came from once the owner writes to it. The domain rule puts the new bots under their organization. - API: people.listBots (query, organization, paging) and showBot (with every move). moveToBot and moveToPerson take sender-bot:<id>, person:<uid> or an identity; a person ref a bot emptied names the bot. - people.list rows lose `bot`; KindSignal loses `owner-choice`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s sort - A re-key onto an identity a bot holds no longer gives it a link too: a trigger takes the moved link off and logs the move, and a bot whose identity is re-keyed onto a person's takes the one that stays. - An account purge removes the person rows its bots emptied, as it removes a purged identity's person. - A bot a 1.0 build sorts onto a person row is settled on the next writable list even when every stored kind is current: that build keeps the kinds it worked out, so nothing else brought the bot here. Checked against cli-core 1.0.0 itself: it syncs, lists, scans and purges a version 75 store without an identity held twice, an empty person left visible or a bot lost. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tity Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
leemour
added a commit
to WireCatLabs/cli-testing
that referenced
this pull request
Nov 25, 2026
…#410) Benchmark for cli-core store version 75 (WireCatLabs/cli-core#3356): with 20,000 synthetic program senders, the first people list holds the write lock for about 1 s, the upgrade from version 74 takes 0.3–3.2 s, warm pages stay under 60 ms. Synthetic data only. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Task
The owner ruled that bots are their own entity, never a person (contact-kinds plan, #3323, step 3 in full). #3339 (store version 74) added
sender_bots, but each bot still sat on a person row. This makes a bot its own row, holding its own identities.Why
A bot anchored on a person still counted as a person: it held
identity_links, could get ties, tasks and merge proposals, and needed abotflag on people rows. Now an identity belongs to exactly one person or one bot.What
sender_bot_identities(identity → bot). The upgrade moves each version 74 bot's identities off its person row and logs every move insender_bot_moves. The emptied person row stays with kindmerged, hidden like a merge's emptied person, so a move back gives its uid back.sender_bots.person_idgoes negative.minCompatiblestays 73. Triggers keep a 1.0 build apart: a bot's identity never gets a person link, the person its ingest makes goes again, a re-keyed link onto a bot's identity moves to the bot, a bot holding identities is not deleted, a hidden person's kind staysmerged. A bot a 1.0 build sorts later is settled on the next writable list. Checked against the published cli-core 1.0.0 itself (sync,people.list,scanMatches({ full: true }), purge): no identity held twice, no empty person visible, no bot lost.people.listBots({ query, organization, limit, offset }),people.showBot(ref)with every move.moveToBot/moveToPersontakesender-bot:<id>,person:<uid>or an identity; a whole history moves and is logged; the owner's choice wins over the rules.SENDER_BOT_PREFIXexported.bot; no compatibilitykind: automatedrow for bots. People marked only by an automated name or a bulk mailbox stayautomated.botrow, ARCHITECTURE, schema docs.Ref is
sender-bot:<id>, notbot:<id>:bot:and*_type = 'bot'already mean AI agents. The owner decides whether to rename the agents' ref in a major.Testing
pnpm typecheck,pnpm lint,pnpm docs:check,pnpm schema:check; full vitest suite: 988 files, 13,676 tests pass.src/store/version-75.test.ts(upgrade from 74 plus 1.0 writes) and rewrittensrc/store/sender-bots.test.ts(rules, owner moves both ways, re-key on either side, purge, search).performance/people/bots.Not done here: memo
bots list/move commands and the Desktop Bots view (until then bots vanish from the Automated tab once a store migrates), a bot sender'srefin mail fields, mention, tracker and author resolution for bot identities.🤖 Generated with Claude Code