🤖 config: restrict main clawdinator discord scope to clawdinators-test

What:
- remove #clawdributors-test and #clawdributors channel IDs from `nix/hosts/clawdinator-common.nix`
- keep only channel `1458426982579830908` (#clawdinators-test) in the main Discord allowlist
- simplify now-unused sendPolicy deny rules tied to removed channels
- align docs/memory/workspace references to #clawdinators-test only

Why:
- enforce single-channel listening surface for main clawdinator instances
- eliminate stale channel references that could cause operator confusion
- keep runtime config and docs aligned

Tests:
- nix shell nixpkgs#shellcheck nixpkgs#shfmt -c bash scripts/lint-shell.sh (pass)
- nix eval --raw .#nixosConfigurations.clawdinator-1.config.system.build.toplevel.drvPath --accept-flake-config >/dev/null (pass)
- nix eval --raw .#nixosConfigurations.clawdinator-2.config.system.build.toplevel.drvPath --accept-flake-config >/dev/null (pass)
This commit is contained in:
joshp123 2026-02-23 17:20:38 +01:00
parent 33755bec7a
commit 4a40ae24e2
6 changed files with 7 additions and 30 deletions

View File

@ -63,7 +63,7 @@ The patterns here work for any NixOS workload on AWS:
The opinionated bits for running AI coding agents:
- **Discord gateway**: Responds in `#clawdributors-test`
- **Discord gateway**: Responds in `#clawdinators-test`
- **GitHub integration**: Monitors issues/PRs, mints short-lived tokens via GitHub App
- **Hive-mind memory**: Shared EFS mount for cross-instance state
- **Personality system**: SOUL.md, IDENTITY.md, workspace templates
@ -74,7 +74,7 @@ The opinionated bits for running AI coding agents:
## CLAWDINATOR Spec
- CLAWDINATORS are named `CLAWDINATOR-{1..n}`.
- CLAWDINATORS connect to Discord; start in `#clawdributors-test`.
- CLAWDINATORS connect to Discord; start in `#clawdinators-test`.
- CLAWDINATORS are ephemeral, but share memory (hive mind).
- CLAWDINATORS are br00tal. Soul lives in `SOUL.md` and must be distilled into workspace docs.
- CLAWDINATORS respond only to maintainers.
@ -250,7 +250,7 @@ tofu apply
### Verify
```bash
# Check Discord - CLAWDINATOR should announce itself in #clawdributors-test
# Check Discord - CLAWDINATOR should announce itself in #clawdinators-test
# Check GitHub - should see activity in openclaw org repos
```

View File

@ -5,7 +5,7 @@ This directory will define the declarative configuration for CLAWDINATOR instanc
Planned fields:
- instance_name (CLAWDINATOR-1, etc.)
- discord_bot_token (per instance)
- discord_channel (#clawdributors-test)
- discord_channel (#clawdinators-test)
- github_pat (read-only)
- memory_path (/var/lib/clawd/memory)
- persona (Claude)

View File

@ -129,8 +129,7 @@ This mints a new GitHub App token and updates GH CLI auth at `/var/lib/clawd/gh/
### Discord Channels
### ACTIVE channels to discuss with maintainers
- #clawdributors-test maintainer coordination (primary channel for maintainer discussion). Laser focus on project priorities.
- #clawdinators-test meta-discussion about clawdinators project. use for debugging etc.
- #clawdinators-test maintainer coordination + meta-discussion about clawdinators project.
### MONITOR these (lurk, stay silent. replies are disabled.):
- #help — support fires
@ -138,7 +137,6 @@ This mints a new GitHub App token and updates GH CLI auth at `/var/lib/clawd/gh/
- #models — model discussions
- #skills — skill showcases
- #clawdhub — hub activity
- #clawdributors — contributor coordination
## Repos
These are seeded on boot into `/var/lib/clawd/repos`.

View File

@ -4,7 +4,7 @@ Acceptance criteria:
- One AWS host provisioned from an AMI built from this repo.
- Host created via OpenTofu using `infra/opentofu/aws`.
- NixOS config applied via Nix (module or flake).
- CLAWDINATOR-1 connects to Discord #clawdributors-test.
- CLAWDINATOR-1 connects to Discord #clawdinators-test.
- GitHub integration is read-only.
- Shared memory directory mounted and writable.
- Discord allowlist configured (guild + channels).

View File

@ -11,8 +11,6 @@ Active IDs:
- Guild ID: 1456350064065904867
- Main CLAWDINATOR allowlist:
- 1458426982579830908 (#clawdinators-test, mention-only)
- 1458138963067011176 (#clawdributors-test, lurk-only; replies denied)
- 1458141495701012561 (#clawdributors, lurk-only; replies denied)
- BABELFISH channels:
- 1467469670192910387 (#help-中文, translation-only; no mentions required)
- 1468983176620675132 (#tech-中国, translation-only; no mentions required)

View File

@ -148,16 +148,7 @@ in
};
session.sendPolicy = {
default = "allow";
rules = [
{
action = "deny";
match.keyPrefix = "agent:main:discord:channel:1458138963067011176";
}
{
action = "deny";
match.keyPrefix = "agent:main:discord:channel:1458141495701012561";
}
];
rules = [ ];
};
messages.groupChat = {
mentionPatterns = [];
@ -195,16 +186,6 @@ in
requireMention = true;
users = [ "*" ];
};
# #clawdributors-test (lurk only; replies denied via sendPolicy)
"1458138963067011176" = {
allow = true;
requireMention = false;
};
# #clawdributors (lurk only; replies denied via sendPolicy)
"1458141495701012561" = {
allow = true;
requireMention = false;
};
};
};
};