fix(brain): re-route escalation sink kasra → river (brain absorbed to prime) - #224
Merged
Merged
Conversation
…o prime) - brain service _HUMAN_ESCALATION_STREAM -> river - brain.escalation target agent:kasra -> agent:river - sovereign/brain.py failure escalation bus_send(to=kasra) -> river Part 2 of brain->prime absorption (Hadi directive 2026-08-15). River triages before any human ping; kasra Telegram bridge remains the Hadi path.
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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
Re-route the brain's escalation sink from kasra → river, per Hadi's 2026-08-15 directive ("absorb the brain to prime", River takes the brain).
sos/services/brain/service.py:_HUMAN_ESCALATION_STREAM→sos:stream:project:sos:agent:river;brain.escalationeventtarget: agent:kasra→agent:river.sovereign/brain.py: failure-escalationbus_send(to="kasra")→bus_send(to="river").Why
Kasra is over-the-clock and the brain's escalation to his inbox goes unread. River is now the brain's owner/triage sink: she filters and only pings Hadi (via kasra's Telegram bridge) on true human escalations.
Notes
project_lead or "kasra") are intentionally unchanged — kasra stays the code executor; only escalation moves to river.factory_watchdog.py(alert_hadi → kasra) left as-is: it's a system alert, not the brain.Test
python3 -m py_compileclean on both files.