Skip to content

Comments

bridge: rename slack-bridge to broker-gateway#155

Open
benvinegar wants to merge 5 commits intomainfrom
bridge/rename-to-broker-gateway
Open

bridge: rename slack-bridge to broker-gateway#155
benvinegar wants to merge 5 commits intomainfrom
bridge/rename-to-broker-gateway

Conversation

@benvinegar
Copy link
Member

Summary

Rename slack-bridge to broker-gateway to reflect multi-channel architecture direction.

What changed

  • Renamed directory:
    • slack-bridge/broker-gateway/
  • Updated all in-repo path references and docs:
    • startup/setup scripts
    • deploy/update/doctor/security scripts
    • tests and test fixtures
    • AGENTS/skill docs
    • lint config and package metadata

Why

slack-bridge was channel-specific naming. broker-gateway better matches current and future scope (Slack + additional channels/control-plane integrations).

Notes

  • This PR is a naming/path migration; runtime script entrypoint remains broker-bridge.mjs.
  • No security protections were intentionally relaxed; security-related paths/rules were migrated to the new location.

Validation

  • npm run lint (environment currently missing shellcheck; existing non-rename lint warnings also present in heartbeat files)
  • Rename consistency verified via repo-wide reference updates.

@greptile-apps
Copy link

greptile-apps bot commented Feb 24, 2026

Greptile Summary

Renames slack-bridge/ directory to broker-gateway/ to reflect multi-channel architecture. Updates 32 files with path references across scripts, tests, docs, and config.

Key changes:

  • Directory rename: slack-bridge/broker-gateway/
  • Updated deployment scripts (bin/deploy.sh, bin/security-audit.sh)
  • Updated runtime scripts (start.sh, pi/skills/control-agent/startup-cleanup.sh)
  • Updated test imports and paths (test/broker-bridge.integration.test.mjs)
  • Updated security hook paths (hooks/pre-commit)
  • Updated lint config (biome.json)

Issues found:

  • .c8rc.json still references slack-bridge/security.mjs (needs broker-gateway/security.mjs)
  • .gitignore still has slack-bridge/ patterns (needs broker-gateway/ patterns)

Confidence Score: 4/5

  • Safe to merge after fixing the two missed path references
  • The rename is comprehensive and consistent across runtime scripts, tests, and security configs. However, two config files (.c8rc.json and .gitignore) have stale slack-bridge references that will cause coverage reporting to fail and potentially commit unwanted files. These are straightforward fixes.
  • Pay attention to .c8rc.json and .gitignore - both need path updates to complete the rename

Important Files Changed

Filename Overview
.c8rc.json Coverage config still references slack-bridge/ instead of broker-gateway/
.gitignore Gitignore entries still reference slack-bridge/ patterns instead of broker-gateway/
start.sh Updated paths, comments, and log file names to broker-gateway
bin/security-audit.sh Updated all bridge path references and output messages to broker-gateway
pi/skills/control-agent/startup-cleanup.sh Updated all bridge references, paths, and messages to broker-gateway
test/broker-bridge.integration.test.mjs Updated all import paths and test paths from slack-bridge to broker-gateway

Last reviewed commit: 3371c31

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

32 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

@greptile-apps
Copy link

greptile-apps bot commented Feb 24, 2026

Additional Comments (2)

.c8rc.json
path needs updating to broker-gateway/security.mjs

    "broker-gateway/security.mjs",
Prompt To Fix With AI
This is a comment left during a code review.
Path: .c8rc.json
Line: 4

Comment:
path needs updating to `broker-gateway/security.mjs`

```suggestion
    "broker-gateway/security.mjs",
```

How can I resolve this? If you propose a fix, please make it concise.

.gitignore
gitignore entries need updating to broker-gateway/

# Broker gateway
broker-gateway/node_modules/
broker-gateway/.env
Prompt To Fix With AI
This is a comment left during a code review.
Path: .gitignore
Line: 5-7

Comment:
gitignore entries need updating to `broker-gateway/`

```suggestion
# Broker gateway
broker-gateway/node_modules/
broker-gateway/.env
```

How can I resolve this? If you propose a fix, please make it concise.

@benvinegar benvinegar force-pushed the bridge/rename-to-broker-gateway branch from 15c3ef3 to 132fc8d Compare February 24, 2026 03:00
- bin/ci/smoke-agent-inference.sh: sends a real LLM prompt via
  session-control RPC, waits for turn_end, validates response.
- Gated by BAUDBOT_CI_INFERENCE_SMOKE=1 (default off for PR CI).
- BAUDBOT_CI_INFERENCE_SMOKE_OPTIONAL=1 for fail-open mode.
- CI_ANTHROPIC_API_KEY injected into agent .env when available.
- bin/ci/droplet.sh run: accepts optional KEY=VALUE env vars to
  forward to the remote droplet script.
- .github/workflows/nightly.yml: daily schedule + manual dispatch,
  runs full integration + inference smoke on both Ubuntu and Arch.
- Remove gating flags — inference smoke runs unconditionally.
- Use anthropic/claude-haiku via BAUDBOT_MODEL override (cheap).
- Add BAUDBOT_MODEL to .env.schema and start.sh model selection.
- Pass CI_ANTHROPIC_API_KEY in integration.yml for every PR run.
- Remove nightly.yml (redundant now that inference runs on all PRs).
return 1
fi
log "injecting CI API key and model override into agent .env"
sed -i "s|^ANTHROPIC_API_KEY=.*|ANTHROPIC_API_KEY=${CI_ANTHROPIC_API_KEY}|" "$AGENT_ENV"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The smoke test's sed command for ANTHROPIC_API_KEY injection is fragile. It fails silently if the key doesn't exist in .env, which occurs when a non-Anthropic LLM is used.
Severity: MEDIUM

Suggested Fix

Update the script to check if ANTHROPIC_API_KEY exists in the .env file before attempting to replace it. If it doesn't exist, append the key and value to the file. This mirrors the safer pattern already used for BAUDBOT_MODEL in the same script.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: bin/ci/smoke-agent-inference.sh#L158

Potential issue: The smoke test script at `bin/ci/smoke-agent-inference.sh` uses a `sed`
command to update the `ANTHROPIC_API_KEY`. This command silently fails if the key is not
already present in the agent's `.env` file. The agent installation process only includes
the API key for the LLM provider selected during setup. Consequently, if an agent is
configured with a provider other than Anthropic, the `.env` file will not contain
`ANTHROPIC_API_KEY`. When the smoke test runs against such a configuration, the key
injection fails, and the subsequent inference test fails with an authentication error,
creating a false negative and making the test fragile.

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