Skip to content

yailabs/yai

Repository files navigation

YAI

local control runtime for case-bound AI operation
Cases, subjects, policy gates, receipts, records, projections, and operational memory.


Runtime Core License

YAI

YAI is a local runtime for binding AI-mediated activity to operational cases. It does not run models. It controls the boundary around model, provider, tool, operator, and system activity: which case it belongs to, which subjects it touches, which policy applies, what was allowed or blocked, what receipt was produced, and what record, projection, or memory can be derived from the result.

Status

YAI is an early source-available repository. It is public for technical evaluation and review, and is not production-ready unless explicitly stated.

The command and test surface is still stabilizing. The legal posture is defined in LICENSE.md and docs/legal.md.

Why This Exists

Model output can cross into tools, files, services, provider calls, memory, workflows, and operator decisions. Once that happens, generation quality is not enough.

The runtime needs case binding, policy and control decisions, receipts, records, projection, and recovery material. It needs to know which subject or provider boundary was touched, what was allowed or blocked, what evidence was produced, and what state can safely be derived for future work.

YAI exists to make that boundary explicit and inspectable on a local machine.

What YAI Is

YAI treats work as bounded cases. A case is the operational frame that gives subjects, providers, attempted operations, policy decisions, receipts, records, projections, and memory a shared context.

Subjects and providers are things inside or around a case: files, services, repositories, operators, tools, models, processes, provider engines, or external systems. Providers participate at a boundary; they do not become authority over the case.

An attempted operation is evaluated through control material: policy gates, decisions, obligations, and effect or observation boundaries. The result should leave a receipt and durable record.

Projection and memory are derived from operational residue. They are controlled views over case state, not substitutes for the records and receipts that explain what happened.

Design Constraints

YAI is built around a few constraints:

  • The model is not the system boundary; the case is the operational boundary.
  • Model and provider output is candidate material, not authority.
  • Effects need receipts, not only logs.
  • Records are durable operational material, not chat history.
  • Projections and memory are derived from residue, not free text alone.
  • Provider engines remain separate and may be local, remote, custom, or mocked.
  • Enforcement strength depends on the boundary YAI owns, interposes, or observes.

What YAI Is Not

YAI is not:

  • an inference engine
  • a model provider
  • a chatbot framework
  • a generic agent framework
  • a workflow builder
  • a cloud platform
  • a TUI or client application
  • a generic policy engine
  • a generic audit logger

Inference engines and model servers remain external providers. Systems such as llama.cpp, Ollama, vLLM, MLX, custom servers, or remote APIs may be used around a YAI case, but this README does not claim tested support for each provider.

Operational Model

When a model, provider, tool, operator, script, or system attempts work inside a case, YAI tries to turn that activity into inspectable operational material:

input/proposal -> case binding -> subject/provider boundary -> control decision -> effect/observation -> receipt -> record -> projection/memory
  • input/proposal: candidate material from a model, provider, operator, tool, script, or system.
  • case binding: assigns the activity to a bounded operational context.
  • subject/provider boundary: identifies what entity or external boundary is involved.
  • control decision: allows, blocks, constrains, or attaches obligations.
  • effect/observation: executes, imports, observes, calls, reads, writes, or blocks at a boundary.
  • receipt: structured evidence of the result.
  • record: durable material for reconstruction and inspection.
  • projection/memory: controlled views and derived operational memory for future work.

Current Validation

Repository-level entrypoints:

make info
make check

Deeper runtime and lab validation lives in the engineering and lab docs. The README is not the full command reference.

Agent-facing ownership rules live in:

work/archive/engineering-snapshots/file-header-standard.md
work/agents/agent-operating-appendix.md

The current command surface is documented in work/spines/command-surface.md. Treat that document as the current command reference until docs/commands.md is split out. Failures from unrelated dirty work should be reported, not hidden.

Current Implementation Surface

This repository currently contains:

  • cmd/ contains local binaries such as yai and yaid.
  • system/ contains the C daemon, host-boundary, control, carrier, bridge, and transitional shim surface.
  • engine/ contains the Rust operational data engine being consolidated.
  • include/ contains public and system ABI headers.
  • tests/ contains smoke and validation tests.
  • Current command docs cover hot-state and record-store inspection.
  • LMDB record-store commands are manually validated through yai store status, yai store summary and yai store record get/list.
  • Control/carrier substrate posture is inspectable through yai carrier families.
  • Some C data-plane paths remain transitional while Rust engine ownership is consolidated.

Repository Layout

include/    public and system ABI headers
system/     C system boundary: daemon, host boundary, carriers, control, FFI bridges
engine/     Rust operational data engine
cmd/        local binaries: yai and yaid
proto/      schemas, fixtures, and protocol material
docs/       architecture, engineering notes, ADRs, legal notes
tests/      smoke and validation tests
tools/      checks and developer utilities
vendor/     vendored support code
examples/   examples when present
packaging/  packaging material when present

The current source boundary is described in work/spines/source-surface.md.

Documentation

Engineering references may still include internal or historical material. The public documentation surface is being split into shorter focused pages.

License And Contributions

YAI is source-available, not open source by default. Source access is for technical evaluation and review unless another file or component explicitly grants different rights.

Technical feedback is welcome. Broad external contribution is not open yet unless maintainers explicitly scope the change.

Current Limitations

  • Early source-available repository.
  • Not production-ready unless explicitly stated.
  • Command and test surfaces are still stabilizing.
  • Public docs are being separated from older architecture, manual, and planning material.
  • Provider/backend mentions should not be read as tested provider breadth.
  • Data-plane ownership is still being consolidated between transitional C paths and the Rust engine.
  • Commercial or public launch use still requires legal review and explicit permission under the source-available posture.

About

A system for governed intelligence, accountable action, and evolving memory.

Topics

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.md

Contributing

Security policy

Stars

Watchers

Forks

Contributors