Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Where CognoKratos fits

Learn the architecture. Then choose the implementation.

Engineers who build agents choose from an ecosystem that is large and moving fast. There are courses that teach fundamentals, frameworks and managed platforms that run agents, durable runtimes that keep them alive, policy engines that constrain them, protocols that connect them, and wallet/payment infrastructure that lets them touch value.

CognoKratos does not try to replace those projects. It teaches the architectural boundaries between them: what each component guarantees, what it leaves to you, and what must remain true when an implementation changes.

Part I is now a concrete example. simple-agent-template originally used NVIDIA NeMo Agent Toolkit. It now uses Rig + Rust on main, while the retired NAT implementation is preserved at nat-1.9-final. The migration did not erase the architecture; it exposed which properties were really architectural.

Between the fundamentals and the implementation

flowchart TB
    F["Learn the fundamentals<br/>Hugging Face · Microsoft · AWS · Anthropic · OpenAI"]
    C["CognoKratos<br/>architecture and trust boundaries<br/>between components"]
    F --> C
    C --> FW["Frameworks and runtimes<br/>Rig · Strands · OpenAI Agents SDK<br/>Dapr Agents · durable workflow engines"]
    C --> GV["Governance and policy<br/>Agent Governance Toolkit · OPA · Cedar · OpenFGA"]
    C --> IN["Identity, value and settlement<br/>OIDC · SPIFFE · ERC-8004<br/>x402 · AP2 · wallet infrastructure"]
    FW --> S["Your system"]
    GV --> S
    IN --> S

These projects are not alternatives to CognoKratos. They solve implementation problems. CognoKratos focuses on the questions that survive the choice of implementation: who is acting, what can be invoked, who has authority, what survives failure, what evidence exists, and where secrets or value are held.

How the book labels external projects

The book uses three lightweight labels. They answer one engineering question: how tightly is this project coupled to a particular vendor or platform? They say nothing about quality.

Ecosystem-specific ecosystem-specific
Materially tied to one vendor's managed platform, hosted service, API or product ecosystem. This can be exactly the right choice when that ecosystem already matches your system.

Portable open source portable open source
Open-source software you can run yourself across providers or environments, even when one company leads development. Rig, Strands Agents, the OpenAI Agents SDK, Dapr Agents, Temporal and many governance toolkits fit this category. Historical NeMo Agent Toolkit also belonged here; Part I preserves its final implementation for comparison even though it is no longer the canonical runtime.

Open standard / infrastructure open standard / infrastructure
Protocols, specifications and open infrastructure intended to work across stacks: MCP, A2A, OpenID Connect, SPIFFE, OpenTelemetry conventions, OPA, Cedar, OpenFGA and similar components.

The labels are intentionally coarse. Portable software can still have provider-specific features; open specifications differ in maturity and governance; managed services operate under shared responsibility rather than removing responsibility.

Learning resources are described by the ecosystem they teach through rather than by one of these labels. See If you are new to agents.

The ecosystem by trust boundary

The table maps the book's eight boundaries to examples of external work. The examples illustrate a boundary; none closes it automatically.

BoundaryWhat CognoKratos studiesExternal examples
IdentityWho is acting?OpenID Connect, SPIFFE, identity registries
CapabilityWhat can it reach or invoke?MCP tool surfaces, cloud IAM, tool gateways
PolicyIs this action permitted?OPA, Cedar, OpenFGA, governance toolkits
DurabilityWhat survives failure?Dapr Agents, Temporal, durable workflow engines
AuthorityWho makes the action binding?human approval, deterministic authorisation, signed mandates
EvidenceCan the action be reconstructed or proven?OpenTelemetry, audit stores, signed records
CustodyWho controls secrets or value?KMS/HSM, wallet infrastructure, key services
SettlementHow does an authorised economic action become final?payment rails, x402-style protocols, blockchain settlement

Two cautions apply to every row. First, a product that touches a boundary rarely closes it: a policy engine evaluates the rules you write, and an audit store keeps what you send it. Second, adopting infrastructure adds trust: the service that holds keys, evaluates policy or records evidence becomes part of the system you must reason about.

A short guide to the ecosystem

What follows is orientation, not a market survey. Each part ends with a few resources chosen for its problem.

Agent frameworks and runtimes

  • Rig portable open source — the current Part I agent framework. Its small surface makes application-owned controls visible.
  • Strands Agents portable open source — an open-source SDK with multiple model providers.
  • OpenAI Agents SDK portable open source — agents, tools, guardrails, HITL and tracing in a compact SDK.
  • Dapr Agents portable open source and Temporal portable open source — useful reference points when durability becomes the primary problem.
  • NVIDIA NeMo remains important to this book as an ecosystem of specialised agent/safety/evaluation components and as the historical runtime behind Part I's migration record. The retired NAT implementation is not presented as the current Part I runtime.

Governance and policy

  • Open Policy Agent, Cedar and OpenFGA open standard / infrastructure — different approaches to policy and authorisation outside the model.
  • Portable governance toolkits and managed policy services occupy different points on the implementation spectrum, but the architectural question remains the same: what action is being decided, for which identity, with which evidence?

Identity and capability protocols

  • OpenID Connect open standard / infrastructure — the identity layer Part I's gateway uses for human users.
  • SPIFFE open standard / infrastructure — workload identity when services, not only people, need verifiable identities.
  • Model Context Protocol open standard / infrastructure — the tool protocol used across the curriculum. MCP is a protocol, not a security model; safety depends on what is exposed and how callers are authenticated and authorised.

Cryptographic and economic infrastructure

Part IV deliberately stops before signing or settlement. External wallet, KMS, HSM and payment infrastructure can provide those capabilities, but adopting one moves custody and settlement trust into that component. Protocols such as x402 or signed-payment mandates are useful examples of how economic intent can be bound to protocol messages; they do not remove the need for application-level identity, authority and audit.

The implementation spectrum

Every boundary can be implemented at different distances from your own code:

flowchart TB
    A["Managed platform"]
    B["Portable open-source framework"]
    C["Open standards and components"]
    D["Minimal or custom implementation"]
    T(["more convenience"]) --- A --- B --- C --- D --- O(["more ownership"])

Towards the top, more implementation and operational responsibility is delegated. Some controls become properties of a managed service and its configuration rather than of your own code. That moves trust boundaries; it does not remove your side of a shared responsibility.

Towards the bottom you own more: every property is visible and testable in your code, and every property is also your responsibility.

The lesson is not that the bottom is better. The right position depends on risk, operational constraints, compliance needs, portability, expertise and economics. It can differ from one boundary to the next in the same system.

Recognising the architecture after a change

The implementation may change. The engineering property should survive.

Part I now demonstrates this with an actual migration. NAT 1.9 was replaced by Rig/Rust. The agent loop, guardrail implementation and packaging changed; the identity boundary, MCP capability boundary, approval verifier, service contract, evaluation specification and OpenTelemetry boundary remained.

Read Framework replacement as an architectural test for the synthesis and the imported Framework migration for the detailed engineering record.

This is the portability test the rest of the book keeps applying: can you name the property without naming the framework, and can you prove the replacement still provides it?

How external references are maintained

External links are orientation, not dependencies of the build. They change more quickly than the pinned CognoKratos repositories, so the book treats them as context rather than as guarantees. When an external project materially changes, the relevant book-owned synthesis page should be updated without rewriting the pinned project chapters.