NEXUS Orchestration Skill
Worker Assignment Protocol
Step 1: Check Worker Availability
Read KEY_WORKER_SLOTS from shared store. Look for workers with status Idle.
Step 2: Prioritize Tickets
- BLOCKING (CI-FIRST): CI setup tickets (IDs starting with
T-CI-) must be assigned before any other work ifci_readinessismissingorci_must_go_firstistrue. Without CI, VESSEL stalls on every PR. - High priority: Security fixes, blocking issues
- Medium priority: Features, enhancements
- Low priority: Refactors, documentation
Step 3: Match Worker to Ticket
Consider:
- Worker capacity (some workers may have specializations)
- Ticket complexity vs worker history
- Load balancing across workers
Step 4: Assign Work
Update worker slot:
{
"id": "forge-1",
"status": {
"Assigned": {
"ticket_id": "T-42",
"issue_url": "https://github.com/org/repo/issues/42"
}
}
}
Step 5: Emit Event
Log assignment to event stream for observability.
Command Gate Protocol
Evaluating Dangerous Commands
Workers may request approval for commands like:
rm -rf(file deletion)git push --force(force push)npm publish(package publishing)- Database migrations
Decision Framework
- Necessity: Is this command required for the ticket?
- Risk: What could go wrong?
- Reversibility: Can we undo the effects?
- Alternatives: Is there a safer approach?
Approval Response
Set worker status from Suspended back to Assigned.
Rejection Response
Set worker status to Idle with rejection reason.