Skip to content

feat: wire edge API to message bus - #19

Open
attaboy11 wants to merge 1 commit into
Clawland-AI:mainfrom
attaboy11:attaboy11/edge-api-message-bus
Open

feat: wire edge API to message bus#19
attaboy11 wants to merge 1 commit into
Clawland-AI:mainfrom
attaboy11:attaboy11/edge-api-message-bus

Conversation

@attaboy11

@attaboy11 attaboy11 commented May 30, 2026

Copy link
Copy Markdown

Summary

  • Implements the public Clawland bounty-board Edge HTTP Server scope from bounty: edge HTTP server for PicClaw #22: POST /api/command, POST /api/message, GET /api/status, and GET /api/health.
  • Wires command/message requests into the existing pkg/bus.MessageBus so Fleet/L2/L3 calls enter the agent loop instead of being log-only.
  • Keeps existing /healthz and /api/v1/* routes as compatibility aliases.
  • Adds focused edge server tests for health/status, invalid JSON, command acceptance, and message publishing.
  • Fixes the deterministic gene selector tie-breaker that made the repository-wide test suite fail on main, so the bounty change can be validated with the full suite.

Fixes #22.
Bounty board reference: https://clawland.ai/pages/bounty (Edge HTTP Server for PicClaw).

Validation

Re-run for bounty issue #22:

  • go test ./...
  • go vet ./...
  • git diff --check

Result: PR is mergeable and the repository-wide Go test suite is green with this branch.

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.

bounty: edge HTTP server for PicClaw

1 participant