Skip to content

fix(brain): re-route escalation sink kasra → river (brain absorbed to prime) - #224

Merged
servathadi merged 1 commit into
mainfrom
brain-escalation-to-river-20260815
Aug 15, 2026
Merged

servathadi merged 1 commit into
mainfrom
brain-escalation-to-river-20260815

Conversation

@servathadi

Copy link
Copy Markdown
Collaborator

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_STREAMsos:stream:project:sos:agent:river; brain.escalation event target: agent:kasraagent:river.
  • sovereign/brain.py: failure-escalation bus_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

  • Code-assignment defaults (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.
  • This is Part 2 of the brain→prime absorption. Part 1 (routing reconciliation) landed as fix(brain): route dead executors to live kasra + fix hermes path #223.

Test

python3 -m py_compile clean on both files.

…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.
@cursor

cursor Bot commented Aug 15, 2026

Copy link
Copy Markdown

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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@servathadi
servathadi merged commit 5594c9f into main Aug 15, 2026
1 check passed
@servathadi
servathadi deleted the brain-escalation-to-river-20260815 branch August 15, 2026 16:19
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