Skip to content

Commit 3371c31

Browse files
committed
bridge: rename slack-bridge to broker-gateway
1 parent a569cd1 commit 3371c31

32 files changed

+118
-118
lines changed

AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Baudbot is hardened infrastructure for running always-on AI agents.
55
Use this file for **repo-wide** guidance. For directory-specific rules, use the nearest nested `AGENTS.md`:
66
- [`bin/AGENTS.md`](bin/AGENTS.md)
77
- [`pi/extensions/AGENTS.md`](pi/extensions/AGENTS.md)
8-
- [`slack-bridge/AGENTS.md`](slack-bridge/AGENTS.md)
8+
- [`broker-gateway/AGENTS.md`](broker-gateway/AGENTS.md)
99

1010
## How Baudbot works
1111

@@ -16,7 +16,7 @@ Baudbot is a persistent, team-facing coding agent system. It connects to Slack,
1616
```text
1717
Slack
1818
19-
slack-bridge (broker pull-mode or legacy Socket Mode)
19+
broker-gateway (broker pull-mode or legacy Socket Mode)
2020
2121
control-agent (always-on, manages todo/routing/Slack threads)
2222
├── dev-agent(s) — ephemeral coding workers in isolated worktrees
@@ -36,7 +36,7 @@ git commits → PRs → CI feedback → thread updates back to Slack
3636
- `dev-agent/` — coding worker persona
3737
- `sentry-agent/` — incident triage persona
3838
- `pi/settings.json` — pi agent settings
39-
- `slack-bridge/` — Slack integration bridges + security module
39+
- `broker-gateway/` — Slack integration bridges + security module
4040
- `docs/` — architecture/operations/security documentation
4141
- `test/` — vitest wrappers for shell scripts, integration, and legacy Node tests
4242
- `hooks/` — git hooks (security-critical `pre-commit` protecting admin-managed files)

bin/ci/setup-arch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ echo "=== Installing test dependencies ==="
7171
export PATH="/home/baudbot_agent/opt/node/bin:$PATH"
7272
cd /home/baudbot_admin/baudbot
7373
npm install --ignore-scripts 2>&1 | tail -1
74-
cd slack-bridge && npm install 2>&1 | tail -1
74+
cd broker-gateway && npm install 2>&1 | tail -1
7575
cd ..
7676

7777
echo "=== Running tests ==="

bin/ci/setup-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ echo "=== Installing test dependencies ==="
109109
export PATH="/home/baudbot_agent/opt/node/bin:$PATH"
110110
cd /home/baudbot_admin/baudbot
111111
npm install --ignore-scripts 2>&1 | tail -1
112-
cd slack-bridge && npm install 2>&1 | tail -1
112+
cd broker-gateway && npm install 2>&1 | tail -1
113113
cd ..
114114

115115
echo "=== Running tests ==="

bin/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ VEOF
401401
echo ' \"source_sha\": \"$GIT_SHA\",'
402402
echo ' \"files\": {'
403403
first=1
404-
for dir in '$BAUDBOT_HOME/.pi/agent/extensions' '$BAUDBOT_HOME/.pi/agent/skills' '/opt/baudbot/current/slack-bridge' '$BAUDBOT_HOME/runtime/bin'; do
404+
for dir in '$BAUDBOT_HOME/.pi/agent/extensions' '$BAUDBOT_HOME/.pi/agent/skills' '/opt/baudbot/current/broker-gateway' '$BAUDBOT_HOME/runtime/bin'; do
405405
if [ -d \"\$dir\" ]; then
406406
while IFS= read -r f; do
407407
hash=\$(sha256sum \"\$f\" | cut -d' ' -f1)

bin/doctor.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ else
289289
fi
290290
fi
291291

292-
BRIDGE_DIR="$BAUDBOT_CURRENT_LINK/slack-bridge"
292+
BRIDGE_DIR="$BAUDBOT_CURRENT_LINK/broker-gateway"
293293
if [ -d "$BRIDGE_DIR" ] && [ -f "$BRIDGE_DIR/bridge.mjs" ]; then
294294
pass "slack bridge deployed ($BRIDGE_DIR)"
295295
else
@@ -426,7 +426,7 @@ fi
426426
echo ""
427427
echo "Runtime health:"
428428

429-
# Slack bridge
429+
# Broker gateway
430430
if curl -s -o /dev/null -w '%{http_code}' -X POST http://127.0.0.1:7890/send -H 'Content-Type: application/json' -d '{}' 2>/dev/null | grep -q "400"; then
431431
pass "slack bridge responding (port 7890)"
432432
else

bin/lib/baudbot-runtime.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ PY
195195

196196
print_bridge_supervisor_status() {
197197
local agent_user="${BAUDBOT_AGENT_USER:-baudbot_agent}"
198-
local status_file="/home/$agent_user/.pi/agent/slack-bridge-supervisor.json"
198+
local status_file="/home/$agent_user/.pi/agent/broker-gateway-supervisor.json"
199199
local summary=""
200200
local mode=""
201201
local state=""

bin/security-audit.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ else
220220
ok "~/.pi/agent/skills/ is a real directory"
221221
fi
222222

223-
BRIDGE_DIR="$BAUDBOT_CURRENT_LINK/slack-bridge"
223+
BRIDGE_DIR="$BAUDBOT_CURRENT_LINK/broker-gateway"
224224
# shellcheck disable=SC2088
225225
if [ -d "$BRIDGE_DIR" ]; then
226226
ok "Release bridge directory exists ($BRIDGE_DIR)"
@@ -252,8 +252,8 @@ if [ -f "$MANIFEST_FILE" ]; then
252252
for critical_file in \
253253
".pi/agent/extensions/tool-guard.ts" \
254254
".pi/agent/extensions/tool-guard.test.mjs" \
255-
"release/slack-bridge/security.mjs" \
256-
"release/slack-bridge/security.test.mjs"; do
255+
"release/broker-gateway/security.mjs" \
256+
"release/broker-gateway/security.test.mjs"; do
257257

258258
if [[ "$critical_file" == release/* ]]; then
259259
full_path="$BAUDBOT_CURRENT_LINK/${critical_file#release/}"
@@ -444,13 +444,13 @@ echo "Network"
444444
bridge_bind=$(ss -tlnp 2>/dev/null | grep ':7890' | awk '{print $4}' | head -1 || true)
445445
if [ -n "$bridge_bind" ]; then
446446
if echo "$bridge_bind" | grep -q '127.0.0.1'; then
447-
ok "Slack bridge bound to 127.0.0.1:7890"
447+
ok "Broker gateway bound to 127.0.0.1:7890"
448448
else
449-
finding "CRITICAL" "Slack bridge bound to $bridge_bind (not localhost!)" \
449+
finding "CRITICAL" "Broker gateway bound to $bridge_bind (not localhost!)" \
450450
"Should bind to 127.0.0.1 only"
451451
fi
452452
else
453-
finding "INFO" "Slack bridge not running" ""
453+
finding "INFO" "Broker gateway not running" ""
454454
fi
455455

456456
# Check firewall rules

bin/security-audit.test.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ trap cleanup EXIT
1919
setup_base() {
2020
local home="$1"
2121
rm -rf "$home"
22-
mkdir -p "$home/.config" "$home/.ssh" "$home/.pi" "$home/opt/baudbot/current/slack-bridge" "$home/baudbot/.git"
22+
mkdir -p "$home/.config" "$home/.ssh" "$home/.pi" "$home/opt/baudbot/current/broker-gateway" "$home/baudbot/.git"
2323

2424
# Secrets file
2525
echo "SLACK_BOT_TOKEN=xoxb-test" > "$home/.config/.env"
@@ -38,8 +38,8 @@ setup_base() {
3838
echo -e "[user]\n\tname = test\n\temail = test@test.com" > "$home/.gitconfig"
3939

4040
# Bridge security module
41-
echo "// security" > "$home/opt/baudbot/current/slack-bridge/security.mjs"
42-
echo "// tests" > "$home/opt/baudbot/current/slack-bridge/security.test.mjs"
41+
echo "// security" > "$home/opt/baudbot/current/broker-gateway/security.mjs"
42+
echo "// tests" > "$home/opt/baudbot/current/broker-gateway/security.test.mjs"
4343

4444
# Audit log (fallback location)
4545
mkdir -p "$home/logs"
@@ -183,7 +183,7 @@ echo ""
183183
echo "Test: missing bridge security module"
184184
HOME8="$TMPDIR/no-bridge-sec"
185185
setup_base "$HOME8"
186-
rm -f "$HOME8/opt/baudbot/current/slack-bridge/security.mjs"
186+
rm -f "$HOME8/opt/baudbot/current/broker-gateway/security.mjs"
187187

188188
output=$(run_audit "$HOME8")
189189
expect_contains "reports missing security module" "$output" "Bridge security module not found"
@@ -195,7 +195,7 @@ echo ""
195195
echo "Test: missing bridge tests"
196196
HOME9="$TMPDIR/no-bridge-tests"
197197
setup_base "$HOME9"
198-
rm -f "$HOME9/opt/baudbot/current/slack-bridge/security.test.mjs"
198+
rm -f "$HOME9/opt/baudbot/current/broker-gateway/security.test.mjs"
199199

200200
output=$(run_audit "$HOME9")
201201
expect_contains "reports missing tests" "$output" "No tests for bridge security"

bin/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ JS_TEST_FILES=(
4949
pi/extensions/tool-guard.test.mjs
5050
pi/extensions/heartbeat.test.mjs
5151
pi/extensions/memory.test.mjs
52-
slack-bridge/security.test.mjs
52+
broker-gateway/security.test.mjs
5353
bin/scan-extensions.test.mjs
5454
bin/broker-register.test.mjs
5555
)

bin/update-release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,14 @@ EOF
209209

210210
install_release_bridge_dependencies() {
211211
local release_dir="$1"
212-
local bridge_dir="$release_dir/slack-bridge"
212+
local bridge_dir="$release_dir/broker-gateway"
213213

214214
if [ ! -d "$bridge_dir" ] || [ ! -f "$bridge_dir/package.json" ]; then
215-
log "slack-bridge package.json missing; skipping bridge dependency install"
215+
log "broker-gateway package.json missing; skipping bridge dependency install"
216216
return 0
217217
fi
218218

219-
log "installing production Slack bridge dependencies in release"
219+
log "installing production Broker gateway dependencies in release"
220220
rm -rf "$bridge_dir/node_modules"
221221

222222
if [ -f "$bridge_dir/package-lock.json" ]; then

0 commit comments

Comments
 (0)