diazmelgarejo/orama-system/gossip-bus
Claude Code and agent skill by diazmelgarejo/orama-system
- community
Checking that the SKILL.md file is still in the repository.
Operate the GossipBus event bus for multi-agent coordination across both transports: intra-host (same-machine, SQLite FTS5 event log) and inter-host (LAN peer, WS/SSE + file-drop fallback). Activates for: gossip bus, emit event, agent coordination events, cross-machine messaging, mac win peer sync, lan peer channel, peer file drop, intra-host vs inter-host gossip.
Install
npx vskill@latest install diazmelgarejo/orama-system/gossip-busSKILL.md
The same SKILL.md was published earlier as diazmelgarejo/orama-system/gossip-bus.
GossipBus
Purpose
Give agents one event-bus concept — "gossip" — that works whether the peers sharing state are worktrees/processes on the same machine or separate Mac/Win hosts on the LAN. The wire differs; the envelope shape and the intent (append an event, let others discover it) do not.
When to Use
- Two or more agents (same machine, different git worktrees, or different
hosts) need to see each other's claims, heartbeats, or coordination events.
- You're deciding whether same-machine coordination needs new infrastructure
— it almost never does; reuse GossipBus first (see Core Concepts).
- You need to hand data or a task assignment to the Mac or Win peer over the
LAN and don't know whether the WS channel is currently live.
Core Concepts
Two transports, one mental model — always pick by locality, not preference:
| Transport | Scope | Implementation | Backing store | |
|---|---|---|---|---|
| Intra-host | Same machine, cross-process/cross-worktree | orchestrator/gossip_bus.py (GossipBus class) — Perpetua-Tools | perpetua_core.db SQLite, FTS5 keyword search + optional bge-m3 embed | |
| Inter-host (LAN) | Mac ↔ Win, different machines | src/orama_system/lan_peer_channel.py (WS-primary, SSE fallback) + lan_peer_files.py (file-drop) — orama-system | WS/SSE live stream, or ~/.openclaw/state/lan_peer/{inbox,outbox}/ markdown/plain-text files when both wires are down |
Intra-host is the default. Do not build new infrastructure for same-machine, cross-worktree, or cross-process coordination — GossipBus is already local-only by design (SQLite file path resolved via git rev-parse --git-common-dir, so every worktree of the same repo shares one bus with zero new env vars). This was independently re-derived and validated in the same session by two concurrent agents; see docs/LESSONS.md (lesson fc6e8293ab26, Perpetua-Tools).
Inter-host only when the peer is a different machine. The LAN peer channel is a state machine, not a single call:
Two consecutive WS failures demote to SSE before the retry cycle. If both wires are down, lan_peer_files.py / lan_peer_assign.py still deliver via plain file drops to the peer's inbox — no streaming required, at the cost of latency. Never assume WS is live; the channel abstraction (lan_peer_channel.py) is the only thing that should know which wire is current.
Two boards, and drop evidence
team_broadcast is a runtime harness mailbox, not GossipBus. They are two boards. A post there does not write this board. The harness mailbox is not wired to the intra-host event log, so a broadcast there is not a GossipBus row. Emit coordination events with GossipBus.emit.
Judge a LAN file drop by that drop's own JSON. Report delivery only when ok is exactly true, received_at is present, and bytes equals the expected file size. A missing metadata sidecar is normal. Acceptance by the portal or the assign script is not proof the peer stored the bytes.
Intra-host GossipBus and the LAN peer channel are two boards. A note on one is not a note on the other. A queued outbox item is not delivery.
Peer IP is never hardcoded — both transports that need it read ~/.openclaw/state/last_discovery.json (endpoints.mac/endpoints.win), kept fresh by the com.orama.network-watch launchd watcher. See CLAUDE-instru.md INVARIANT on Win LM Studio IP for the same rule applied elsewhere.
Instructions
Provenance, endorsement, and takeover
Before emitting a coordination event that attributes work, endorses a result, or resumes another agent's work, follow the canonical `author-actor-takeover-policy.md`. Keep the originating author distinct from the current operating actor; an actor's self-reported ID is not independently verified identity. Pair every substantive agent_note with an agent_pulse, and use GossipBus.emit rather than writing the SQLite store directly.
Intra-host: emit and query
heartbeat_monitor.py and scripts/agent_coordination.py already consume this bus — see the agent-coordination-heartbeat skill before building a parallel liveness mechanism.
Inter-host: LAN peer
Prefer the channel abstraction over touching WS/SSE directly:
For file-drop handoff (no live wire needed):
Full operator playbook: bin/orama-system/skills/hermes-harness/references/lan-peer-self-talk.md.
Boundaries
Always Do
- Pick the transport by locality (same machine vs. different host) — never
route intra-host coordination over the LAN peer channel just because it exists.
- Let
lan_peer_channel.pyown WS/SSE/DISCONNECTED state; don't branch on
transport state in calling code.
- Read peer IPs from
last_discovery.json; never hardcode or curl-sweep. - Preserve explicit author, actor, endorsement, and takeover provenance for
coordination claims; disclose unverified identity or incomplete evidence.
Ask First
- Adding a third transport or bypassing the channel abstraction.
- Lowering LAN peer retry/backoff timings in production.
Never Do
- Build new same-machine coordination infrastructure when
GossipBusalready
covers it.
- Delete gossip/heartbeat events to hide dead agents or failed hand-offs.
- Reassign authorship silently, spoof another agent's liveness/status, or turn
review evidence into approval or authorization.
- Hardcode LAN peer IPs or credentials in payloads.
- Treat
team_broadcastas GossipBus, or treat portal acceptance as proof
the peer stored the bytes.
Examples
Cross-machine task hand-off when WS is down (falls back to file-drop automatically once WS/SSE both fail):
References
- Intra-host implementation:
orchestrator/gossip_bus.py(Perpetua-Tools) - Inter-host implementation:
src/orama_system/lan_peer_channel.py,
src/orama_system/lan_peer_files.py (orama-system)
- LAN peer operator playbook:
bin/orama-system/skills/hermes-harness/references/lan-peer-self-talk.md - Guide:
docs/guides/lan-peer-bidirectional-talk-2026-06-28.md - Related skill: `../agent-coordination-heartbeat/SKILL.md` — heartbeats are emitted onto the intra-host GossipBus
- Related skill: `../agent-methodology/SKILL.md` — Context Immersion (stage 1) should check GossipBus/LAN peer state before assuming an agent is silent because it's dead
- Tests:
tests/test_gossip_bus.py(Perpetua-Tools),tests/test_lan_peer_channel.py,tests/test_lan_peer_files.py,tests/test_lan_peer_assign.py(orama-system)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbin/orama-system/skills/gossip-bus/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/diazmelgarejo/orama-system/gossip-bus)