Open Source Execution Foundation

Declare the action once. Route to REST, CLI, Cron, and AI Agents.

Nexss Kernel, Transport, and TransportAI provide a zero-allocation, typed Go foundation for building resilient microservices, deterministic DAG workflows, and AI agent interfaces without vendor lock-in.

  • KERNEL
  • TRANSPORT
  • TRANSPORTAI
  • ZERO-ALLOC

01 Core Execution Engine

nexssp/kernel

Typed action lifecycle with sub-microsecond dispatch (< 50ns/op). Context-based RBAC, idempotency, exponential jitter retries, fenced distributed locks, sagas, and DAG pipelines.

  • Zero reflection & zero allocations on the hot path
  • Context guards (RequireRole, RequireTenant, PIITracker)
  • Fenced monotonic distributed locking (split-brain safe)
  • Deterministic parallel DAG engine (ai/dag) & Sagas
Repository

02 Multi-Protocol Adapters

nexssp/transport

Bind kernel actions simultaneously to HTTP/REST, Server-Sent Events, CLI subcommands, in-process event bus, cron schedules, and priority worker queues.

  • thttp: REST, SSE, streaming NDJSON & tag binding
  • tcli: Flag parsing (cli:"flag,f"), args & auto-generated help
  • cron & tworker: Scheduled jobs & background workers
  • taskqueue: High/Normal/Low priority lanes with DLQ
Repository

03 AI Agent Protocols

nexssp/transportai

Turn existing business actions directly into AI Agent tools for Anthropic Claude, Cursor, Windsurf, and multi-agent coordination frameworks.

  • tmcp: Model Context Protocol (MCP) over stdio & SSE
  • ta2a: Agent2Agent protocol with Agent Cards & task states
  • Automated tool schema generation from Go structs
  • Dynamic prompt templates with variable validation
Repository

Pattern

Engineered for Real-World Complexity

From single multi-protocol endpoints to deterministic AI graphs and split-brain-safe distributed execution.

go source example
package main

import (
    "context"
    "fmt"
    "time"

    "github.com/nexssp/kernel/action"
    "github.com/nexssp/transport/cron"
    "github.com/nexssp/transport/tbus"
    "github.com/nexssp/transport/tcli"
    "github.com/nexssp/transport/thttp"
)

type CreateOrderReq struct {
    CustomerID string `json:"customer_id" cli:"customer,c" validate:"required"`
    SKU        string `json:"sku" cli:"sku,s" validate:"required"`
    Quantity   int    `json:"quantity" cli:"qty,q" validate:"min=1"`
}

type Order struct {
    ID     string  `json:"id"`
    Status string  `json:"status"`
    Total  float64 `json:"total"`
}

// Declare pure business logic once with production-grade contracts
var CreateOrder = action.New("orders.create", func(ctx context.Context, req CreateOrderReq) (Order, error) {
    // Pure domain logic — independent of transports and database drivers
    return orders.Create(ctx, req)
}).
    Description("Creates an order, reserves inventory, and charges the customer").
    // Multi-protocol bindings
    Route(
        thttp.POST("/v1/orders"),
        tcli.Command("order create", "Provision a new customer order"),
        tbus.Topic("orders.created"),
        cron.Every(1 * time.Hour), // Optional scheduled execution
    ).
    // Security & Tenancy Guards
    RequireAuth().
    RequireRole("operator").
    RequirePermission("orders:write").
    RequireTenant().
    // Resilience & Delivery Contracts
    Idempotent(). // Deduplicates replay requests via distributed store
    Timeout(3 * time.Second).
    Retry(3, action.ExponentialJitter(50*time.Millisecond, time.Second)).
    RateLimit(100, 20).
    Transactional(db).
    Audited(auditLogger, "billing", func(req CreateOrderReq, res Order) string {
        return fmt.Sprintf("order_id=%s sku=%s customer=%s", res.ID, req.SKU, req.CustomerID)
    }).
    Build()

All execution pipelines compile into zero-allocation call graphs at Build() time. Context authorization, idempotency, distributed locks, and sagas execute with strict Go idioms.

Next step

The foundation is open. Senior systems delivery is our craft.

Use the open-source packages directly, or partner with NEXSS to build, scale, and modernize your mission-critical software systems.