Files
agents/control-plane/migrations/004_create_execution_vcs.sql
zeekayandGitHub 5b5cf9e9db feat: merge AgentField control plane + SDKs as Hanzo Agents (#1)
Transforms hanzoai/agents from a marketplace config repo into a full
agent orchestration platform by merging the AgentField infrastructure:

- Go control plane (K8s-like agent orchestration, service mesh, DAG workflows)
- Python SDK (FastAPI-based agent framework, LiteLLM, memory, DID/VC)
- TypeScript SDK (@hanzo/agents - Vercel AI SDK, MCP, workflows)
- Go SDK (idiomatic agent builder + client)
- React 19 embedded dashboard (XyFlow DAGs, Recharts, Radix UI)
- Docker/K8s/Helm deployment configs
- Examples: hello world, deep research, RAG, simulation, benchmarks
- Functional test suite across Python/Go/TypeScript

All references rebranded: AgentField → Hanzo Agents
- Module: github.com/hanzoai/agents/control-plane
- Python: hanzo_agents
- TypeScript: @hanzo/agents
- Go: github.com/hanzoai/agents/sdk/go
- Env vars: HANZO_AGENTS_*
- Config: hanzo-agents.yaml

Previous marketplace configs moved to config/ directory.
2026-02-09 18:53:09 -08:00

40 lines
2.0 KiB
SQL

-- Migration: Create Execution VCs table
-- Description: Execution verifiable credentials for individual component executions
-- Created: 2025-01-08
CREATE TABLE IF NOT EXISTS execution_vcs (
vc_id TEXT PRIMARY KEY,
execution_id TEXT NOT NULL,
workflow_id TEXT NOT NULL,
session_id TEXT NOT NULL,
issuer_did TEXT NOT NULL,
target_did TEXT,
caller_did TEXT NOT NULL,
vc_document TEXT NOT NULL, -- JSON document containing the full VC
signature TEXT NOT NULL,
storage_uri TEXT DEFAULT '',
document_size_bytes INTEGER DEFAULT 0,
input_hash TEXT NOT NULL,
output_hash TEXT NOT NULL,
status TEXT NOT NULL DEFAULT 'pending' CHECK (status IN ('pending', 'completed', 'failed', 'revoked')),
parent_vc_id TEXT, -- For VC chains
child_vc_ids TEXT DEFAULT '[]', -- JSON array of child VC IDs
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (parent_vc_id) REFERENCES execution_vcs(vc_id) ON DELETE SET NULL
);
-- Indexes for performance
CREATE INDEX IF NOT EXISTS idx_execution_vcs_execution_id ON execution_vcs(execution_id);
CREATE INDEX IF NOT EXISTS idx_execution_vcs_workflow_id ON execution_vcs(workflow_id);
CREATE INDEX IF NOT EXISTS idx_execution_vcs_session_id ON execution_vcs(session_id);
CREATE INDEX IF NOT EXISTS idx_execution_vcs_issuer_did ON execution_vcs(issuer_did);
CREATE INDEX IF NOT EXISTS idx_execution_vcs_target_did ON execution_vcs(target_did);
CREATE INDEX IF NOT EXISTS idx_execution_vcs_caller_did ON execution_vcs(caller_did);
CREATE INDEX IF NOT EXISTS idx_execution_vcs_status ON execution_vcs(status);
CREATE INDEX IF NOT EXISTS idx_execution_vcs_storage_uri ON execution_vcs(storage_uri);
CREATE INDEX IF NOT EXISTS idx_execution_vcs_parent_vc_id ON execution_vcs(parent_vc_id);
CREATE INDEX IF NOT EXISTS idx_execution_vcs_created_at ON execution_vcs(created_at);
CREATE UNIQUE INDEX IF NOT EXISTS idx_execution_vcs_execution_unique ON execution_vcs(execution_id, issuer_did, target_did);