Coordination bus

From oyi77/1ai-skills · View interactive version

Coordination bus is an AI agent skill from the GitHub repository oyi77/1ai-skills. Use when two or more agents share work, when a task spans sessions, or when claiming, heartbeating, completing, or blocking a coordination bus task. The bus is the single source of truth for who owns what — never coordinate through private agreement.

How to use this skill

Skill file

Coordination Bus

When to Use

Trigger phrases:

Use cases:

When NOT to use:

Overview

The coordination bus (1ai-hub /coordination) records WHO owns WHAT task, what it depends on, and whether product-gate docs exist. A second claim on an owned task is rejected — the rejection is the conflict signal, not a bug.

Protocol

  1. Claim before work: claim <task-id> as <your-agent-id> — via chat (CoordinationExecutor) or REST POST /coordination/tasks/{id}/claim with {"owner_agent": "..."}.
  2. Heartbeat while working: heartbeat <task-id> as <owner> or POST .../heartbeat. First heartbeat moves claimed → in_progress. Stale heartbeat (>15 min) flags the task stuck in daemon supervision.
  3. Finish: complete <task-id> as <owner> or POST .../complete. Blocked: block <task-id> as <owner>: <reason> or POST .../block with {"reason": "..."}.
  4. Dependencies: a task with depends_on cannot be claimed until the dependency is done. The bus rejects with blocked: dependency <id> is <status>.
  5. Product gate: user-facing tasks carry gate_required. Record docs via POST .../gate-docs with {"docs": "path/to/brainstorm.md,..."} before active work. Daemon flags gate violations every 60s.

Status

Anti-Rationalization Table

| Rationalization | Reality |

|---|---|

| "I'll just tell the other agent directly" | Private agreement is invisible to the daemon. Claim on the bus or the work doesn't exist. |

| "The claim rejection is a bug" | The rejection IS the conflict signal. Talk to the owner, don't retry. |

| "Gate docs later" | Active work without gate docs is flagged every 60s. Record docs first. |

| "Small task, skip the bus" | If two agents can touch it, it's not small. Claim it. |

Process

  1. Check — coord status [repo]: is the task free? Are dependencies done?
  2. Claim — claim <id> as <owner>; rejection means someone owns it.
  3. Work — heartbeat periodically; record gate docs if required.
  4. Close — complete with detail, or block with reason.

Verification

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.