Adds an internal/presence package that ticks every 30s (configurable
via presence_interval_seconds), reads each bound agent's sm.Machine
state through host.ReadAgentState, maps to Fabric's 6-status enum,
and PUTs diffs to /api/agents/:userId/presence on every guild the
agent belongs to.
Semantic mapping (the part flagged "needed" in the prior README):
idle → idle
working → on_call
busy → busy
offline → offline
exhausted/unknown reserved for backend-side fallbacks; we don't push.
Tick is mutex-guarded (avoids the upsert race the openclaw incident
called out in agent-presence.service.ts) and diff-gated so writes are
sparse. Token-cache invalidation on PUT failure handles guild JWT
rotation.
fabric.Client gains SetAgentPresence helper. README marks F-5b ✅.
Plexum-fabric-channel-plugin
Native Plexum channel plugin connecting Plexum agents to Fabric guilds as
real channel members. Port of Fabric.OpenclawPlugin — delivered in phases.
Status
| Phase | Scope | Status |
|---|---|---|
| F-1 | identity + REST + plugin scaffold + send outbound |
✅ |
| F-2 | socket.io inbound + wakeup gate + token refresh + per-channel serial | ✅ |
| F-3 | exponential reconnect backoff | ✅ |
| F-4 | tool surface batch 1 (8 tools) | ✅ |
| F-5 | command-sync (slash autocomplete) | ✅ |
| F-6 | attachments → temp-dir + footer | ✅ |
| F-7 | sub-discussion KV + create-*-channel + discussion-complete | ✅ |
| F-8 | coalesce parity | ⏭ no-op — Plexum doesn't segment deliver |
| F-5b | presence-sync | ✅ |
Agent-facing tools (16)
send— host-driven channel outbound (channel manager → plugin)fabric-send-message,fabric-send-sys-msg— post normal / system msgsfabric-channel-list,fabric-guild-list— discoveryfabric-message-history— paginate by seqfabric-channel,fabric-channel-set-purpose— channel metadatafabric-canvas— get/share/update/remove canvascreate-{chat,work,report,discussion}-channel— create new channelsdiscussion-complete— summary + closecreate-sub-discussion,close-sub-discussion— sub-discussion lifecycle
Install
cd ~/Plexum-fabric-channel-plugin
./scripts/install.sh # build + install plugin + register CLI
Then:
-
Mint a Center API key for each Plexum agent that should speak in Fabric:
docker exec fabric-backend-center node dist/cli.js user apikey --email <agent-email> -
Register the key with Plexum:
plexum-fabric-register --agent-id alice --api-key fak_xxxx # writes ~/.plexum/fabric-identity.json -
Configure plugin-level settings at
~/.plexum/plugins/plexum-fabric-channel/config.json:{ "center_api_base": "http://localhost:7001/api", "commands_sync_key": "...", "presence_interval_seconds": 30 }presence_interval_seconds(F-5b) controls how often the plugin polls each bound agent'ssm.Machinestate via the hostplexum/host/agent-state/readRPC and pushes diffs toPUT /api/agents/:userId/presenceon every guild the agent belongs to. Defaults to 30s; set to 0 to fall back to default. The mapping isidle→idle,working→on_call,busy→busy,offline→offline(Fabric'sexhausted/unknownare reserved for backend-side fallbacks; we don't push them). Diff-gated so writes are sparse. -
Bind a Plexum channel name to a Fabric channel at
~/.plexum/channels/<plexum-channel-name>.json:{ "agent_id": "alice", "plugin": "plexum-fabric-channel", "fabric": { "guild_node_id": "test-guild1", "channel_id": "ch_xxxxxxxxx" } } -
Allow the plugin in
~/.plexum/plexum.json:{"plugins": {"allow": ["plexum-fabric-channel"]}} -
Restart the gateway:
systemctl --user restart plexum
What you get in F-1
- Plugin loads at gateway start, validates every bound agent's API key
against Center via
agentLogin, and warms a session per agent. sendMCP tool posts plain text to the bound Fabric channel as the agent user.- No inbound yet — Fabric → Plexum routing arrives in F-2.
Build manually
go build -o bin/plexum-fabric-channel-plugin ./cmd/plexum-fabric-channel-plugin
go build -o bin/plexum-fabric-register ./cmd/plexum-fabric-register
License
Same as Plexum.