You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(bots): record a bot's status to another bot on its item instead of waking it - #51362
A bot's orca orchestration send --type status to another bot, or to one of its own other chats, no longer stores mail or wakes the recipient. Orca records it as a passive Orca comment on the item it is about, and the receipt says so:
Recorded on item 12; NOT delivered, Docs won't see it until it reads that item (orca bot item show 12). If Docs must act on this (an approval, a stop, an instruction), send it as a handoff instead.
The item it records on:
the item --item <n> names,
else, for a bot's worker, the sender bot's item that links its dispatch,
else, the item request (bot item add --for) that woke the sending turn,
else, the sending chat's one open item.
Only open items count, and a status between bot-group members is delivered as before. The usual bot checks run first (bots off, paused, already in that chat). With several open items, or none, the send is refused, nothing is sent, and the refusal names the next command (--item <n>, or question/handoff if action is needed). --file with a status is refused before anything is claimed.
Waiting asks: answers go as replies
A question or handoff can take more than one reply (an acceptance now, the result later). Each reply wakes the asker, and the owner's request card shows the newest reply. The first reply still records answered. Group rooms still refuse a second answer.
A bot's status to a bot that sent its chat a question or handoff in the last 24 h is refused, with nothing sent, and the refusal points to reply --id: " is waiting on your answer to its question msg_X, so nothing was sent. If this answers , reply with orca orchestration reply --id msg_X. If it asks to do something, send it as a handoff. If it's only FYI, there's nothing to send."
The wait ends early when the ask's item (from bot item add --for or send --item, stored by uid) is closed or gone. A status whose --item names a different item than the ask's is recorded, not refused. Cross-bot only. The lookup also matches asks the coordinator-mail trigger stored as run:<id>. bot_requests gets an index on (from_bot_id, to_bot_id, created_at) for it.
No content heuristics: owner approvals, stops and instructions are steered to handoffs by the receipt, the refusal and the rule text, not by parsing the message.
Item maker comments and paired-computer mail carry their own message id and keep their current delivery. An older peer's status mail is still accepted.
An older runtime given a new CLI still delivers the status as mail. An older CLI given a new runtime prints the receipt's next line, because the receipt keeps an empty messages list.
Rules text
AGENT_STATUS_RULE: "Status never wakes: put where your work stands on your item (bot) or task (worker), and read theirs there. To answer an agent waiting on you, whether accepting or reporting the result, reply to its message (orca orchestration reply --id ); to make one act, or to pass on your owner's decision or an instruction, send a question or handoff (--item only for the recipient's item it is about)." It replaces the old wake copies in the send and task-update help, the bot preamble, the bot-type refusal, root help and the orca-cli bots guide (bundled guides regenerated). The bot preamble adds that a status on an item is not delivered, so anything the other side must act on goes as a handoff.
Why: over 3 days, 654 bot→bot status sends each woke the recipient for a full turn (~620k tokens). 523 bot requests went to the sender's own other chats, in chains up to 16 deep.
Tests
bot-status-note.test.ts (real items store, real send path):
a status to another bot or to the bot's own other chat makes no message row and no wake, and leaves one comment on the right item;
several open items or none are refused, with nothing sent;
a question and a handoff still wake;
a status to a waiting asker is refused, including an ask stored as run:<id>;
an accepted handoff's result reply wakes the asker again, and the card RPC shows the result;
a closed item ends the wait;
a status with a different --item is recorded, not refused.
Fail-before: the test commit alone (424a61b) fails the status cases. Real-agent QA with Claude and Codex bots (11 runs on omarchy) is in the QA summary comments; the wording was tuned from what real bots got wrong.
Performance
Less work: a bot's status send makes one item-store write instead of storing mail and waking the recipient for a full agent turn (~620k tokens each). The waiting-ask check reads one indexed query over a 24 h window, only on this send path.
Risk
Level: Medium. A bot that relied on status mail to make another bot act now gets a receipt or refusal telling it to reply or hand off. Paired-computer and item-comment mail are untouched. To back it out, revert the PR: recorded notes are ordinary item comments, and the only schema change is an IF NOT EXISTS index.
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
Bot status sends from an acting bot now record a comment on a selected item instead of delivering a message or waking the target. The send result reports the item and bot. Questions, handoffs, and replies continue to use message delivery. Shared guidance and CLI documentation describe the status behavior and when agents should message one another.
Merge Risk: Low · previous review 04361
Bot status sends now record a comment on an item instead of waking the recipient. One narrow edge case remains: a status send with files could slip past the file refusal if the first session-host initialization fails and a later retry succeeds. The impact is small, an @path reference appearing in the recorded comment. It can be addressed as a follow-up.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: a bot's status message to another bot is recorded on its item instead of waking the recipient. It uses the conventional fix(bots) prefix, and the scope matches the raw…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description covers the core change: bot-to-bot status sends are recorded as passive item comments instead of being delivered or waking the recipient. It explains item selection precedence, refusal…
Full details: Title check
Explanation
The title names the main change: a bot's status message to another bot is recorded on its item instead of waking the recipient. It uses the conventional fix(bots) prefix, and the scope matches the raw summary and objectives.
Full details: Description check
Explanation
The description covers the core change: bot-to-bot status sends are recorded as passive item comments instead of being delivered or waking the recipient. It explains item selection precedence, refusal behavior, compatibility with older peers and runtimes, the new AGENT_STATUS_RULE text, the rationale (654 status sends over three days, about 620k tokens), tests, performance, and risk with a backout path. It does not fill in the template's ELI5 section, and the 'What Changed' and 'Why' sections are present but do not use the template headings. The Linked Issue section is missing: it has no 'Fixes #' reference. The Visual Proof section is also missing, although the change is a behavior change to CLI output and help text. The Testing checkboxes are not ticked, the Performance section is filled in, and the Risk level is given as Medium. The AI Disclosure and Agent skill upstream boundary sections are not addressed. The description is substantive, so the check passes, but the missing sections should be added before merge.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Fail-before (test commit 424a61b alone, without the fix, on M4Air):
× to another bot: no message, no wake, a note on the item, a receipt naming it
× to the bot's own other chat: no message, no wake, a note on the item, a receipt naming it
× refuses, naming the items, when the chat has several open items or none
✓ a question still lands as mail and wakes the bot
✓ a handoff still lands as mail and wakes the bot
✓ a reply to a question still wakes the asker
AssertionError: expected { n: 1 } to deeply equal { n: +0 }
AssertionError: promise resolved "{ message: { …(13) }, …(1) }" instead of rejecting
Tests 3 failed | 3 passed (6)
With the fix, all 6 pass in CI (unit shards green on 779803f).
Files skipped from review as they are similar to previous changes: 1
src/main/bots/bot-request-policy.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Status sends with files can bypass the refusal when the host is not installed.
assertNoStatusFiles decides whether the sender is a bot with botOfSession. That helper reads the default structured-session host, which is null until the host is installed. The guard does not install it. withItemMailFiles installs it only after the guard has run, and only when files are present.
Session callers are not affected. Their session is verified against the host before the guard runs. A sender that resolves only through the creator session has no such check. If the host is not yet installed, the guard returns without refusing. withItemMailFiles then admits the attachments. A non-image file then appears as an @path reference in the body of the recorded item comment.
Resolve the sender's bot on an initialized host before assertNoStatusFiles decides, whenever the status send includes files. The refusal must hold on that path. Keep the existing behavior for sends without files.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 0436100: when a status carries files, assertNoStatusFiles now awaits ensureStructuredAgentSessionHost() before it places the sender, so a worker sender resolved only through its creator session is still refused before withItemMailFiles claims anything.
#!/bin/bashset -u
echo"=== Host initialization definitions and state ==="
rg -n -C 5 'ensureStructuredAgentSessionHost\s*[:=(]|ensureStructuredAgentSessionHost\s*\(' src/main/runtime src/main/native-chat -g '*.ts'| head -300
echo"=== Sender resolution outline ==="
ast-grep outline src/main/runtime/rpc/methods/orchestration/messaging/bot-recipient.ts --items all
echo"=== Sender resolution source ==="
cat -n src/main/runtime/rpc/methods/orchestration/messaging/bot-recipient.ts | sed -n '1,220p'echo"=== Status handler and call ==="
cat -n src/main/runtime/rpc/methods/orchestration/messaging/bot-request-send.ts | sed -n '1,150p'
cat -n src/main/runtime/rpc/methods/orchestration/messaging/bot-status-note.ts | sed -n '40,140p'
Length of output: 59720
Script executed:
#!/bin/bashset -u
echo"=== Item routing ==="
cat -n src/main/runtime/rpc/methods/orchestration/messaging/bot-chat-address.ts | sed -n '38,108p'echo"=== Worker sender resolution ==="
cat -n src/main/runtime/rpc/methods/orchestration/messaging/bot-recipient.ts | sed -n '217,286p'echo"=== Host installation ==="
ast-grep outline src/main/runtime/agent-session/installation/structured-agent-session-runtime.ts --items all
cat -n src/main/runtime/agent-session/installation/structured-agent-session-runtime.ts | sed -n '35,100p'echo"=== Runtime bootstrap ==="
ast-grep outline src/main/runtime/agent-session/installation/runtime-structured-agent-session-bootstrap.ts --items all
cat -n src/main/runtime/agent-session/installation/runtime-structured-agent-session-bootstrap.ts | sed -n '1,180p'
Length of output: 26562
@brennanb2025 The guard now initializes the host before checking the sender, but one failure case remains.
At Line 65, assertNoStatusFiles suppresses initialization errors. If that attempt fails, withItemMailFiles can retry successfully and claim the files after the guard has returned. A non-image file can then appear as an @path reference in the recorded status.
Please fail the send if host initialization fails. A regression test can make the first initialization fail and the second succeed, then check that no file is claimed. I did not run tests, and I am not marking the finding as addressed.
If you found this review helpful, would you consider giving us a shout-out on X?
Final head: 3160f76. Real Claude bots (Opus 5.5, medium) and Codex bots (GPT-6.2-Sol, high) ran in an isolated dev copy. The evidence is snap.sh dumps of message rows, turns per chat and item events, plus real transcripts. The real config hashes matched before and after each run; run 6 is the one exception, below.
(a) A status to another bot about an item: no wake, the note on the right item, and B later reads it with bot item show and answers correctly
PASS
2 (Claude and Codex senders, B reads it), 3 (Claude), 6 (Claude, no offer to resend)
qa-evidence-run2/a, run3/dana, run6/jo
(a') Codex sender's status naming its own item with --item
PASS
2
qa-evidence-run2/cara/18-21
(b) A status to the bot's own other chat: the note on its item, no message row, no turn
PASS
2 (clean bot), 3
qa-evidence-run2/cara, run3/dana
(c) Several open items, no --item: refused with the list, the bot picks one, no loop
PASS
3 (c2: named one item), 4 (Codex), 5 and 6 (c1: nothing to record, no offer)
run3/dana, run4/hal, run5/ivy, run6/jo
(d) No open item: d1 refused or declined, no item made, no offer; d2 action needed, so handoff and B wakes
PASS
2 (d2), 4 (x3: real refusal followed), 5 (d1)
run2/d, run4/x, run5/ivy
(e) question and handoff still wake B, B acts, and the answer comes back
PASS
2
qa-evidence-run2/e
(f) A group-room status keeps delivering as before (message row, no receipt)
PASS
2
qa-evidence-run2/f
(g) Transcript review
PASS at the final head
6
qa-evidence-run6/g
Confusion found and fixed along the way (each fixed in the PR, then rerun)
Run 1: the receipt "Nothing was delivered" made a Claude bot resend the FYI as a question. The receipt was reworded.
Run 1: a status could not name the sender's own item with --item. That is now allowed.
Run 2: bots still framed a recorded status as undelivered and offered to resend; one opened a Needs-you item to ask. The receipt now reads "Done: B has this on item n… not a failed delivery… don't resend it or offer to", and the preamble got a matching line. Also, a bot looped over two items, so the several-items refusal now says "Send it again once, with --item ".
Run 3: a bot made an item just to hold an FYI. The preamble and both refusals now say "don't make an item to hold it".
Runs 4 and 5: with no item fitting, or with a status the bot had commented itself, bots offered to send it as mail. The preamble and refusals now say "or offer to send it as a message", and the no-resend rule covers a status the bot commented itself.
Notes
From run 4 on, fresh bots record a status with bot item comment on their own item, following the preamble, rather than send --type status. Both are passive and wake no one. The send path's receipts and refusals were exercised in runs 2-3 and were unchanged after run 4.
Run 6: ~/.codex/config.toml changed between runs and during run 6 while no Codex turn ran. This is likely Orca's known pre-trust of worktrees in that file; it's for the record only.
Reports: ~/orca-qa/pr-51362/qa-report-run1.md, -run2.md, -run3.md, -run4.md, -run5.md, -run6.md (this Mac). The full evidence is on omarchy at the path above.
Follow-up: awaited status (head 18fbbb8, runs 7-8, tickets 13538 and 13555)
The fix: a status from B to A while A has an open question or handoff to B's chat is sent through orchestration.reply and wakes A. The rule line, receipt and refusals now name orca orchestration reply --id <msg>.
Run 7 was BLOCKED: Codex load-balancer capacity on omarchy, and nothing was tested. Run 8: PASS.
Flow
Answer row (type / reply_to)
Asker turns
Sent with
w1: Claude Kai asks Claude Mo "tell me when the PR is ready"
w3: Kai hands Mo the FAQ typo, "tell me when done"
status / msg_1ae86e245b37
8 → 9, Kai closed item 27
reply
w2: Codex Lu asks Kai
status / msg_9e37433300d6
6 → 7, Lu continued
reply
Mo answers Kai's question with send --type status
status / msg_240b159c9869, outcome answered
16 → 18, Kai continued
status, rerouted to reply; receipt understood, no resend
r1: plain FYI, nothing awaited
no row
Kai 6 → 6
none
r3: no fitting item
no row, no item, no mail offer
6 → 6
none
Transcripts:
Real bots answered waiting bots with orchestration reply unprompted, Claude and Codex alike. No retries, no acknowledgements, no status used to request action.
Pre-existing behavior, unchanged by this PR: the turn-end " ended its turn without answering your question" notice made askers escalate a deferred ask to Needs you. The late reply still landed, was marked answered and woke them.
A question or handoff can take more than one reply (an acceptance, then the result), and each reply wakes the asker.
A bot's --type status to a bot that sent it a question or handoff in the last 24 h (unless that ask's item is closed) is refused, with nothing sent, and names orca orchestration reply --id <ask>.
The ask lookup now also finds asks stored as run:<id> (bug 1).
m1: P (Claude) asks Q (Claude) "tell me when the PR is ready"; Q accepts, then later sends the result
9
PASS. Rows 35 (acceptance) and 36 (result), both reply_to the ask; P's turns 2 → 3 → 4, and P acted on "ready"
qa-evidence-run9/a
m2: Q is made to send --type status to a waiting P
9
PASS. Refused with "P is waiting on your answer to its question msg_a843df66036d, so nothing was sent. Reply with orca orchestration reply --id … if this answers P; if it's only FYI for P, there's nothing to send." Q replied at once (row 43); P's turns 9 → 10. Asked in plain words, Q chose reply by itself
qa-evidence-run9/a/08b
m3: Z (Codex) asks P; P accepts, then later sends the result
9
PASS. The result reply (row 48) woke Z, which continued. P sent its acceptance as a new question; fixed in f29dfd3
qa-evidence-run9/a
F: S (Codex) asks R (Claude)
10
PASS. Acceptance row 55 and result row 56, both replies; S's turns 4 → 5 → 6, and S continued
qa-evidence-run10/d
V: R asks S
10
PASS. S's acceptance row 58 and result row 59 are replies; R's turns 6 → 7 → 8, and R continued
qa-evidence-run10/d
c1: owner decision relayed to a bot's own other chat
9, 10
PASS. Sent as handoff (rows 51 and 60); the other chat woke and acted
qa-evidence-run9/b, run10/d
r1: plain FYI with nothing awaited
9
PASS. No row, no wake, no offer to resend
qa-evidence-run9/b
r2: no fitting item
9
PASS. Refused; no item, no mail
qa-evidence-run9/b
g: transcripts
9, 10
PASS at f29dfd3: no loops, no retried status, no status used to ask for action, no items made just to hold a status. Run 9's two wording findings (own-item --item, an acceptance sent as a question) are fixed in f29dfd3 and confirmed in run 10
qa-report-run9.md, run10.md
Minor: twice a bot combined --chat and --item on a handoff, was refused ("not both"), and resent correctly with one retry. The real config hashes were unchanged in both runs.
Real-agent QA, runs 12 and 13 at 57becca (Claude Opus 5.5 medium and Codex GPT-6.2-Sol high bots)
Run 12 was on omarchy and run 13 on Windows high spec. Each run used new bots, a dev copy and the Codex driver.
Case
Result
Notes
(a) Owner approval, STOP and squash-merge relayed to the bot's own other chat, by Claude
PASS, first try
Each went as a handoff. The owning chat woke and acted, or held for the STOP.
(a) Approval and STOP relayed by Codex
PASS, first try
Each went as a handoff, and the owning chat woke.
(b) "Stop local checks", Codex to Claude and Claude to Codex, with no recent ask
PASS, first try
Each went as a handoff, and the recipient woke and answered.
(b) "Nudge stalled workers" while the recipient's asks to the sender are waiting
PASS, first try
It went as a handoff, not a reply on the unrelated thread.
(i) A handoff accepted, then its result sent
PASS
The second reply was accepted and woke the asker. The expanded card shows the result, not the first reply.
(c) Accept now, result later, on a question, both directions
Result leg PASS; acceptance leg not as intended
Each result was a reply --id that woke the asker once, and the card shows it. But both askers wrote "no need to answer before then", so the recipients accepted only with a comment on their item. Orca's existing end-of-turn notice ("ended its turn without answering") then woke the asker.
(ii) A status naming a different --item is recorded
Not reached by bots; unit-tested
Both bots chose bot item comment on their own item for the FYI. That gives the same outcome: no row and no wake.
(ii) A status naming the asked-about item is refused toward reply --id
PASS
The refusal printed word for word, with no row made.
(iii) A second reply in a group room
PASS, unchanged
Refused with "You already answered that request", and no new row.
Plain FYI
PASS
Recorded with the "NOT delivered" receipt: no wake, no resend.
Transcripts showed no loops, no resends after a receipt, and no acknowledgement mail. Every instruction went as a handoff. The real config hashes were unchanged.
Seen, not changed here:
When an unanswered outcome later becomes answered, its recorded_at stays at the time Orca's notice was sent. This was already the case before this PR.
The reason will be displayed to describe this comment to others. Learn more.
Worker updates miss their coordinator
A worker started by Ranger's non-Home chat can send --to bot:Ranger --item <n> --type status, naming that chat's item. This branch skips the item's chat and leaves the recipient as Ranger's Home Chat. Orca records a passive comment instead of waking the coordinator. If Home started the worker, Orca refuses it as bot_self instead.
Preserve item-to-chat routing for workers mailing their own coordinator before deciding whether to record a status.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
The reason will be displayed to describe this comment to others. Learn more.
Open items miss new notes
The saved comment does not tell open item views to refresh. orcaComment only writes to the store, while open views reread on onBotsChanged. Someone already viewing the item can keep seeing the old comments after this send succeeds.
Call runtime.botItems.changed([item]) after the write, as noteTerminalFallbackOnItem does. This refreshes the page without waking an agent.
…er or closed items
Group rooms still refuse a second answer. An ask stores its item's uid; a status
naming a different item than the waiting ask's is recorded, and a closed or
missing item ends the wait. Index bot_requests by sender and recipient.
The reason will be displayed to describe this comment to others. Learn more.
Cards miss next-day results
Once a request is 24 hours old, botRequestCardRereads stops refreshing a mounted card that already shows an acceptance. Replies have no matching time limit, so a result sent the next day can reach the asker while the card keeps showing “on it.” Reopening the card fetches the latest answer, but it should keep refreshing when later replies arrive rather than freezing at the status-refusal deadline.
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
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 changes
A bot's
orca orchestration send --type statusto another bot, or to one of its own other chats, no longer stores mail or wakes the recipient. Orca records it as a passive Orca comment on the item it is about, and the receipt says so:The item it records on:
--item <n>names,bot item add --for) that woke the sending turn,Only open items count, and a status between bot-group members is delivered as before. The usual bot checks run first (bots off, paused, already in that chat). With several open items, or none, the send is refused, nothing is sent, and the refusal names the next command (
--item <n>, or question/handoff if action is needed).--filewith a status is refused before anything is claimed.Waiting asks: answers go as replies
answered. Group rooms still refuse a second answer.reply --id: " is waiting on your answer to its question msg_X, so nothing was sent. If this answers , reply withorca orchestration reply --id msg_X. If it asks to do something, send it as a handoff. If it's only FYI, there's nothing to send."bot item add --fororsend --item, stored by uid) is closed or gone. A status whose--itemnames a different item than the ask's is recorded, not refused. Cross-bot only. The lookup also matches asks the coordinator-mail trigger stored asrun:<id>.bot_requestsgets an index on (from_bot_id, to_bot_id, created_at) for it.Unchanged
questionandhandoffto bots,orchestration reply, escalations and worker↔coordinatorsendstill wake (feat(orchestration): clarify send wake contract and add passive task-update --note #49416's rule is unchanged).nextline, because the receipt keeps an emptymessageslist.Rules text
AGENT_STATUS_RULE: "Status never wakes: put where your work stands on your item (bot) or task (worker), and read theirs there. To answer an agent waiting on you, whether accepting or reporting the result, reply to its message (orca orchestration reply --id ); to make one act, or to pass on your owner's decision or an instruction, send a question or handoff (--item only for the recipient's item it is about)." It replaces the old wake copies in thesendandtask-updatehelp, the bot preamble, the bot-type refusal, root help and the orca-cli bots guide (bundled guides regenerated). The bot preamble adds that a status on an item is not delivered, so anything the other side must act on goes as a handoff.Why: over 3 days, 654 bot→bot status sends each woke the recipient for a full turn (~620k tokens). 523 bot requests went to the sender's own other chats, in chains up to 16 deep.
Tests
bot-status-note.test.ts(real items store, real send path):run:<id>;--itemis recorded, not refused.Fail-before: the test commit alone (424a61b) fails the status cases. Real-agent QA with Claude and Codex bots (11 runs on omarchy) is in the QA summary comments; the wording was tuned from what real bots got wrong.
Performance
Less work: a bot's status send makes one item-store write instead of storing mail and waking the recipient for a full agent turn (~620k tokens each). The waiting-ask check reads one indexed query over a 24 h window, only on this send path.
Risk
Level: Medium. A bot that relied on status mail to make another bot act now gets a receipt or refusal telling it to reply or hand off. Paired-computer and item-comment mail are untouched. To back it out, revert the PR: recorded notes are ordinary item comments, and the only schema change is an
IF NOT EXISTSindex.