Skip to content
This repository was archived by the owner on Feb 21, 2026. It is now read-only.
This repository was archived by the owner on Feb 21, 2026. It is now read-only.

[Upstream PR #249] Orchestration Kernel + External Access Broker #86

Description

@Peyton-Spencer

Upstream Reference

PR: nanocoai#249
Status: OPEN (created Feb 15, 11:47 UTC)
Author: Josuedutra
Severity: ARCHITECTURAL OVERHAUL

Summary

Major architectural addition introducing deterministic orchestration state machine and capability-based external access framework.

Components

Orchestration Kernel v0:

  • Deterministic state machine: INBOX → TRIAGED → READY → DOING → REVIEW → APPROVAL → DONE
  • Task lifecycle management with state transitions
  • Optimistic locking for concurrent updates

External Access Broker v0:

  • Capability-based external access with L0-L3 security levels
  • HMAC-SHA256 request signing (per-group IPC secret)
  • Idempotent dispatch with optimistic locking
  • Backpressure (max 5 pending ext_calls per group)
  • L3 two-man rule (requires 2+ governance approvals from different groups)
  • Mandatory expiry for L2/L3 capabilities (7 days)
  • Deny-wins precedence in capability checks
  • Append-only audit trail

Providers:

  • GitHub Provider: 16 actions (repos, PRs, issues, checks, branch protection)
  • Cloud Logs Provider: 3 actions (log access, search, export)

Architectural Impact

CRITICAL — This introduces a complete governance framework that could replace/enhance our current multi-agent coordination architecture.

Key Questions:

  1. How does this compare to our current IPC/task delegation system?
  2. Can we adopt the governance state machine for team coordination?
  3. Does the capability-based security model fit our use cases?
  4. Should we wait for upstream stabilization or adopt early?

Relevance

VERY HIGH — Directly addresses:

  • Multi-agent task coordination (state machine)
  • External service access (capability-based security)
  • Governance and approval flows (separation of powers)
  • Audit trail and compliance

Action Plan

Phase 1: Architecture Review (2-3 days)

  • Deep dive into orchestration kernel state machine
  • Analyze external access broker capability model
  • Compare with existing OmniAura IPC/task delegation architecture
  • Identify integration points and conflicts
  • Assess security model fit for our use cases

Phase 2: Integration Decision

  • Decide: adopt, adapt, or defer
  • If adopting: plan migration strategy from current IPC system
  • If adapting: identify components to cherry-pick
  • If deferring: document reasons and set review timeline

Phase 3: Implementation (if adopting/adapting)

  • Implement integration on feature branch
  • Update multi-agent coordination to use orchestration kernel
  • Migrate external tool access to broker framework
  • Add tests for state transitions and capability checks

Phase 4: Validation

  • Test with existing agent workflows
  • Validate governance flows (L0-L3 security levels)
  • Performance testing with backpressure limits
  • Security audit of HMAC signing and capability checks

Timeline

  • Review: This week (urgent - architectural decision needed)
  • Implementation: Next sprint (if adopted)
  • Estimated Effort: HIGH (2-3 days review + 5-7 days implementation)

Related Issues

Tracking

  • Monitor upstream PR for merge status
  • Track implementation changes and API evolution
  • Check for breaking changes before merge
  • Plan merge strategy (likely significant conflicts)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions