# hsaidno-cpu/hypersystem-orchestrator architecture

> Architecture diagram of the GitHub repository hsaidno-cpu/hypersystem-orchestrator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hsaidno-cpu/hypersystem-orchestrator
- Repository: https://github.com/hsaidno-cpu/hypersystem-orchestrator

## Overview

Hypersystem Orchestrator is an ecosystem governance and coordination repository, not a monorepo of executable plugins. Its main workflow registers independent plugin sources and their status, applies compatibility and distribution eligibility, then resolves a plan-only package selection; Mission Control and synchronization services provide an operational view of ecosystem status. Separate capabilities include controlled HSO workflow execution and a narrowly scoped Remote MCP skill-invocation pilot. The README documents product boundaries and distribution behavior; source excerpts show selected runtime calls. Other subsystem links are omitted where the supplied excerpts do not establish them.

Main entry points: [`supabase`](https://github.com/hsaidno-cpu/hypersystem-orchestrator/tree/main/supabase) (Operational snapshot store), [`catalog/plugins.json`](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/catalog/plugins.json) (Plugin catalog), [`tools/resolve_distribution.py`](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/tools/resolve_distribution.py) (Plan-only resolver), [`tools/remote_mcp_responses_adapter.py`](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/tools/remote_mcp_responses_adapter.py) (Remote MCP adapter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_registry["Ecosystem Registry"]
  node_catalog[("Plugin catalog<br/>[plugins.json]")]
  node_instruction_index[("Instruction snapshots")]
  node_compatibility["Compatibility policy"]
  node_contracts["Cross-project contracts"]
  node_governance["Governance boundaries"]
end

subgraph group_distribution["Distribution Planning"]
  node_distribution_registry[("Package eligibility")]
  node_platform_registry[("Platform adapters")]
  node_manifest["Selection manifest"]
  node_resolver["Plan-only resolver"]
end

subgraph group_operations["Operations Control"]
  node_mission_ui["Mission Control dashboard<br/>[page.tsx]"]
  node_login["Email login<br/>[login-form.tsx]"]
  node_auth_callback["Auth callback<br/>[route.ts]"]
  node_refresh_button["Refresh control<br/>[refresh-button.tsx]"]
  node_refresh_route["Refresh endpoint<br/>[route.ts]"]
  node_supabase[("Operational snapshot store")]
end

subgraph group_runtime["Workflow Runtime"]
  node_workflow_planner["Workflow planner"]
  node_orchestrator["Controlled HSO runtime"]
  node_approval["P0 approval issuance"]
  node_prepare["P0 workflow preparation"]
  node_mcp_adapter["Remote MCP adapter"]
end

subgraph group_integration["Federation Integrations"]
  node_reconcile["HSO reconciliation<br/>[index.ts]"]
  node_github_webhook["GitHub webhook<br/>[index.ts]"]
  node_notion_webhook["Notion webhook<br/>[index.ts]"]
  node_federation["PRE federation<br/>[index.ts]"]
end

node_operator(("Ecosystem operator"))
node_plugin_sources["Independent plugin sources"]
node_remote_services{{"OpenAI and Remote MCP"}}

node_operator -->|"registers identities"| node_catalog
node_plugin_sources -->|"source status"| node_catalog
node_operator -->|"selects packages"| node_manifest
node_catalog -->|"indexes snapshots"| node_instruction_index
node_catalog -->|"applies policy"| node_compatibility
node_operator -->|"follows boundaries"| node_governance
node_manifest -->|"resolves plan"| node_resolver
node_distribution_registry -->|"filters eligible packages"| node_resolver
node_platform_registry -->|"selects platform"| node_resolver
node_resolver -->|"returns blockers or plan"| node_operator
node_contracts -->|"defines package contracts"| node_distribution_registry
node_operator -->|"requests sign-in"| node_login
node_login -->|"redirects after login"| node_auth_callback
node_auth_callback -->|"redirects on success"| node_mission_ui
node_mission_ui -->|"reads operational records"| node_supabase
node_mission_ui -->|"renders control"| node_refresh_button
node_refresh_button -->|"posts refresh request"| node_refresh_route
node_refresh_route -->|"checks member access"| node_supabase
node_refresh_route -->|"requests reconciliation"| node_reconcile
node_github_webhook -.->|"records webhook event"| node_supabase
node_notion_webhook -.->|"records webhook event"| node_supabase
node_federation -.->|"federates registry data"| node_supabase
node_operator -->|"plans workflow"| node_workflow_planner
node_workflow_planner -.->|"runtime handoff"| node_orchestrator
node_orchestrator -->|"dispatches adapter"| node_mcp_adapter
node_approval -->|"uses adapter helpers"| node_mcp_adapter
node_prepare -->|"uses adapter helpers"| node_mcp_adapter
node_mcp_adapter -->|"calls APIs"| node_remote_services

click node_catalog "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/catalog/plugins.json"
click node_instruction_index "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/catalog/instruction-snapshots.json"
click node_compatibility "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/catalog/compatibility-matrix.json"
click node_contracts "https://github.com/hsaidno-cpu/hypersystem-orchestrator/tree/main/contracts"
click node_governance "https://github.com/hsaidno-cpu/hypersystem-orchestrator/tree/main/architecture"
click node_distribution_registry "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/catalog/distribution-registry.json"
click node_platform_registry "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/catalog/platform-registry.json"
click node_manifest "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/distribution/manifests/manifest.example.json"
click node_resolver "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/tools/resolve_distribution.py"
click node_mission_ui "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/apps/mission-control/src/app/page.tsx"
click node_login "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/apps/mission-control/src/app/login/login-form.tsx"
click node_auth_callback "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/apps/mission-control/src/app/auth/callback/route.ts"
click node_refresh_button "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/apps/mission-control/src/app/refresh-button.tsx"
click node_refresh_route "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/apps/mission-control/src/app/api/refresh/route.ts"
click node_supabase "https://github.com/hsaidno-cpu/hypersystem-orchestrator/tree/main/supabase"
click node_reconcile "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/supabase/functions/hso-reconcile/index.ts"
click node_github_webhook "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/supabase/functions/hso-github-webhook/index.ts"
click node_notion_webhook "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/supabase/functions/hso-notion-webhook/index.ts"
click node_federation "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/supabase/functions/pre-core-federation/index.ts"
click node_workflow_planner "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/tools/plan_hso_workflow.py"
click node_orchestrator "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/tools/hso_super_orchestrator.py"
click node_approval "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/tools/issue_p0_skill_approval.py"
click node_prepare "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/tools/prepare_p0_skill_workflow.py"
click node_mcp_adapter "https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/tools/remote_mcp_responses_adapter.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_catalog,node_instruction_index,node_compatibility,node_contracts,node_governance toneBlue
class node_distribution_registry,node_platform_registry,node_manifest,node_resolver toneAmber
class node_mission_ui,node_login,node_auth_callback,node_refresh_button,node_refresh_route,node_supabase toneMint
class node_workflow_planner,node_orchestrator,node_approval,node_prepare,node_mcp_adapter toneRose
class node_reconcile,node_github_webhook,node_notion_webhook,node_federation,node_operator,node_plugin_sources,node_remote_services toneIndigo
```

## Components

### Ecosystem Registry

- [Plugin catalog](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/catalog/plugins.json): `catalog/plugins.json`
- [Instruction snapshots](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/catalog/instruction-snapshots.json): `catalog/instruction-snapshots.json`
- [Compatibility policy](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/catalog/compatibility-matrix.json): `catalog/compatibility-matrix.json`
- [Cross-project contracts](https://github.com/hsaidno-cpu/hypersystem-orchestrator/tree/main/contracts): `contracts`
- [Governance boundaries](https://github.com/hsaidno-cpu/hypersystem-orchestrator/tree/main/architecture): `architecture`

### Distribution Planning

- [Package eligibility](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/catalog/distribution-registry.json): `catalog/distribution-registry.json`
- [Platform adapters](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/catalog/platform-registry.json): `catalog/platform-registry.json`
- [Selection manifest](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/distribution/manifests/manifest.example.json): `distribution/manifests/manifest.example.json`
- [Plan-only resolver](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/tools/resolve_distribution.py): `tools/resolve_distribution.py`

### Operations Control

- [Mission Control dashboard](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/apps/mission-control/src/app/page.tsx): `apps/mission-control/src/app/page.tsx`
- [Email login](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/apps/mission-control/src/app/login/login-form.tsx): `apps/mission-control/src/app/login/login-form.tsx`
- [Auth callback](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/apps/mission-control/src/app/auth/callback/route.ts): `apps/mission-control/src/app/auth/callback/route.ts`
- [Refresh control](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/apps/mission-control/src/app/refresh-button.tsx): `apps/mission-control/src/app/refresh-button.tsx`
- [Refresh endpoint](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/apps/mission-control/src/app/api/refresh/route.ts): `apps/mission-control/src/app/api/refresh/route.ts`
- [Operational snapshot store](https://github.com/hsaidno-cpu/hypersystem-orchestrator/tree/main/supabase): `supabase`

### Workflow Runtime

- [Workflow planner](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/tools/plan_hso_workflow.py): `tools/plan_hso_workflow.py`
- [Controlled HSO runtime](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/tools/hso_super_orchestrator.py): `tools/hso_super_orchestrator.py`
- [P0 approval issuance](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/tools/issue_p0_skill_approval.py): `tools/issue_p0_skill_approval.py`
- [P0 workflow preparation](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/tools/prepare_p0_skill_workflow.py): `tools/prepare_p0_skill_workflow.py`
- [Remote MCP adapter](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/tools/remote_mcp_responses_adapter.py): `tools/remote_mcp_responses_adapter.py`

### Federation Integrations

- [HSO reconciliation](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/supabase/functions/hso-reconcile/index.ts): `supabase/functions/hso-reconcile/index.ts`
- [GitHub webhook](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/supabase/functions/hso-github-webhook/index.ts): `supabase/functions/hso-github-webhook/index.ts`
- [Notion webhook](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/supabase/functions/hso-notion-webhook/index.ts): `supabase/functions/hso-notion-webhook/index.ts`
- [PRE federation](https://github.com/hsaidno-cpu/hypersystem-orchestrator/blob/main/supabase/functions/pre-core-federation/index.ts): `supabase/functions/pre-core-federation/index.ts`

### Other components

- **Ecosystem operator**
- **Independent plugin sources**
- **OpenAI and Remote MCP**

## Connections

- Ecosystem operator → Plugin catalog: registers identities (evidence: `README.md`)
- Independent plugin sources → Plugin catalog: source status (evidence: `README.md`)
- Ecosystem operator → Selection manifest: selects packages (evidence: `README.md`)
- Plugin catalog → Instruction snapshots: indexes snapshots (evidence: `README.md`)
- Plugin catalog → Compatibility policy: applies policy (evidence: `README.md`)
- Ecosystem operator → Governance boundaries: follows boundaries (evidence: `README.md`)
- Selection manifest → Plan-only resolver: resolves plan (evidence: `README.md`)
- Package eligibility → Plan-only resolver: filters eligible packages (evidence: `README.md`)
- Platform adapters → Plan-only resolver: selects platform (evidence: `README.md`)
- Plan-only resolver → Ecosystem operator: returns blockers or plan (evidence: `README.md`)
- Cross-project contracts → Package eligibility: defines package contracts (evidence: `README.md`)
- Ecosystem operator → Email login: requests sign-in (evidence: `apps/mission-control/src/app/login/login-form.tsx`)
- Email login → Auth callback: redirects after login (evidence: `apps/mission-control/src/app/login/login-form.tsx`)
- Auth callback → Mission Control dashboard: redirects on success (evidence: `apps/mission-control/src/app/auth/callback/route.ts`)
- Mission Control dashboard → Operational snapshot store: reads operational records (evidence: `apps/mission-control/src/app/page.tsx`)
- Mission Control dashboard → Refresh control: renders control (evidence: `apps/mission-control/src/app/page.tsx`)
- Refresh control → Refresh endpoint: posts refresh request (evidence: `apps/mission-control/src/app/refresh-button.tsx`)
- Refresh endpoint → Operational snapshot store: checks member access (evidence: `apps/mission-control/src/app/api/refresh/route.ts`)
- Refresh endpoint → HSO reconciliation: requests reconciliation (evidence: `apps/mission-control/src/app/api/refresh/route.ts`)
- GitHub webhook → Operational snapshot store: records webhook event
- Notion webhook → Operational snapshot store: records webhook event
- PRE federation → Operational snapshot store: federates registry data
- Ecosystem operator → Workflow planner: plans workflow (evidence: `README.md`)
- Workflow planner → Controlled HSO runtime: runtime handoff
- Controlled HSO runtime → Remote MCP adapter: dispatches adapter (evidence: `tools/hso_super_orchestrator.py`)
- P0 approval issuance → Remote MCP adapter: uses adapter helpers (evidence: `tools/issue_p0_skill_approval.py`)
- P0 workflow preparation → Remote MCP adapter: uses adapter helpers (evidence: `tools/prepare_p0_skill_workflow.py`)
- Remote MCP adapter → OpenAI and Remote MCP: calls APIs (evidence: `tools/remote_mcp_responses_adapter.py`)
