Make persona turns channel-aware
This commit is contained in:
parent
96f4875e1a
commit
ad1e288309
9 changed files with 218 additions and 28 deletions
|
|
@ -159,7 +159,8 @@ Verse-facing service contract: `docs/architecture/voidbot-verse-service-contract
|
|||
- Repo Discord identities
|
||||
- `REPO_DISCORD_IDENTITIES_PATH` points at a private JSON registry of repo id, repo name, display name, optional avatar URL, optional role id, and allowed channel ids. The role is the Discord mention target; the webhook persona is the speech transport.
|
||||
- That registry may also carry `channelPermissions`: per-topic channel entries with a speech threshold and speed multiplier. These are not another transport; they are the permission/salience map for where a Persona may speak. Aquarium is the low-threshold musing lane, while domain channels such as narrative, gamedesign, music, soundtrack, development, programming, visual-effects, machine-learning, and unity3d are available to matching Personas.
|
||||
- Void remains the room-wide moderation/participation agent. Repo Personas are the swarm mouth and should be confined to text `#aquarium` (`1501196543150264332`) through registry allow-lists and `REPO_PERSONA_HEARTBEAT_DEFAULT_CHANNEL_ID`; general is `113786069023064068` and should not be used for autonomous Persona chatter.
|
||||
- Runtime channel access can also come from `INDEX_ALL_CHANNELS=true` or explicit `INDEXED_CHANNEL_IDS`. The heartbeat context assembler discovers readable Discord text channels from the guild, filters excluded channel ids, adds them to the Persona channel plan, and renders each as a separate visible conversation with channel label/id, topic, threshold, and posture. This is how rooms such as `#therapy` and `#memes` stay distinct instead of becoming one blended transcript.
|
||||
- Void remains the room-wide moderation/participation agent. Repo Persona idle/default chatter still prefers text `#aquarium` (`1501196543150264332`) through the default channel and low-threshold speech options, but direct calls, newest current-room turns, and channel-local replies may target any indexed/all-channel runtime grant unless the channel id is explicitly excluded. General is `113786069023064068`; use it only when the current room/direct call makes it the correct venue, not as the autonomous swarm default.
|
||||
- On startup, the bot tries to find or create missing mentionable roles for registered identities in `DISCORD_GUILD_ID`, then writes the role ids back to the private registry. If Discord permissions are missing, it warns and leaves the registry unchanged.
|
||||
- `list_repo_discord_identities` exposes the registered address book to Codex agents, and `post_repo_identity_message` enforces identity/channel registration before posting through the shared webhook pipe.
|
||||
- Each repo identity has a Persona state path, defaulting to `.voidbot/private/repo-personas/<identity>.cc`. The MCP still exposes `read_repo_persona_state` and `apply_repo_persona_state_operation` for diagnostics and explicit administrative use, but normal character turns do not see those tools. The scheduler reads typed state, projects it into lived memory/mood/obligation language, and the Interpreter writes natural character reflection back into typed state operations.
|
||||
|
|
|
|||
Loading…
Reference in a new issue