session_announce
Register session presence with an optional territory and send heartbeats so live peers are returned for splitting work and avoiding collisions.
Instructions
Announce this session on the session bus: registers presence with an optional territory (folder or theme this session will work on) and doubles as heartbeat. Call at session start and periodically during long work. Sessions without a heartbeat for 10 minutes are swept and their locks released. Returns the list of live peer sessions for the project so parallel sessions can split territory instead of colliding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| territory | No | Folder or theme this session is claiming informally, e.g. 'scripts/lib' or 'docs sweep'. | |
| session_id | No | Leave out: the bus always acts as this server's own session, and any other id is refused. | |
| project_path | No | Absolute path to the project root. The first memory call or project-scoped bus call fixes this session's project (the working directory when omitted); a different project afterwards is refused. |