Meaning and contracts
Exact schema execution, typed contracts, pack compilation, reference replay, reward aggregation, semantic hashes, a local Postgres lifecycle, and a safe stdio MCP adapter.
@t2kai/core + @t2kai/mcp
Open developer runtime
T2K gives your application a persistent semantic layer for what exists, what is true now, what matters, what is allowed, what ran, and what happened next. You keep the model runtime and tools. T2K keeps the decision legible and governable.
A real package boundary
T2K does not require your agent, connector framework, or vertical workflow to move inside Studio. Each runtime remains independently testable, versioned, and replaceable.
Exact schema execution, typed contracts, pack compilation, reference replay, reward aggregation, semantic hashes, a local Postgres lifecycle, and a safe stdio MCP adapter.
@t2kai/core + @t2kai/mcp
Registry, graph ownership, evidence, Decision Contexts, authority, episodes, active policy delivery, held-out replay, human review, REST, MCP, and audit.
studio.t2k.ai
Domain packs, business facts, model runtime, tools, connectors, execution, measurements, and the user experience.
your agent or product
Open developer runtime
The standard, compiler, typed contracts, client, reference evaluator, deterministic reward engine, local Postgres lifecycle, conformance kit, synthetic Harborlight replay, tested project scaffold, and local MCP adapter are public under Apache-2.0. The core packages have registry provenance; all three clean-install paths are verified on Node 20 and 22.
npx create-t2k@latest my-decision-loopcd my-decision-loop && npm startnpx -y @t2kai/mcp@latestnpm run db:up && npm run lifecycleontology + facts + policies + evidencerecommendation != authorizationontology-pack.json
decision-context.json
policies/
baseline.json
candidate.json
episodes/
holdout.json
compose.yml
src/
run.mjs
lifecycle.mjs
$ npm start
replay.status passed
candidate.action rebalance_route
recommendation.status eligible_for_human_review
authorization.status not_authorized
$ npm run lifecycle
persisted.episodes 24
persisted.executionReceipts 24
promotion.version 1.1.0
rollback.restoredVersion 1.0.0
eventChain.valid true
Canonical agent loop
Each boundary creates an object you can inspect later. No outcome silently becomes truth, reward, or a production policy update.
Four compatible interfaces
T2kClient covers hosted registry, graph, decision, execution, learning, publication, and rollback workflows. @t2kai/core@0.2.0 also exports the local lifecycle from @t2kai/core/postgres; it and create-t2k@0.2.0 are published with GitHub Actions provenance and verified registry attestations.
@t2kai/mcp@0.1.0 starts database-free and read-only. Optional writes use one fixed agent identity. Human approval, authorization, closure, evaluation, promotion, deployment, and rollback are never exposed.
Approved Studio integrations call versioned /api/v1 routes with scoped API keys. Never ship keys in browser code.
Connect at POST /api/mcp for workspace and graph operations. Hosted MCP obeys Studio scope, graph, mount, authority, and lifecycle controls.
GET /api/healthGET /api/ready/schemas/t2k-ontology-pack.v1.schema.jsonatomic activation + rollbackStart with one decision
Compile a small pack, bind a private graph, and close one measurable episode end to end.