Skip to content

yailabs/yai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

986 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YAI

Cut the Fog.
Governed operational systems for accountable action.


Stage Runtime Records License

What YAI Is

YAI is a governed case-native runtime.

It is designed for environments where operators, software, models, providers, and agents can all contribute to work, but action still has to remain attached to context, authority, evidence, durable state, and reviewable outcomes.

YAI is not a chat wrapper, not a ticket board, and not a loose collection of automation hooks. It is a system for governed action: work enters with case meaning, passes through decision posture, executes through bounded runtime surfaces, and leaves behind inspectable facts.

The case is the operational boundary. Control decides whether action is fit to proceed. Runtime carries out the work. State preserves what became true. Lineage and analytics help reuse what was learned without turning derived views into authority.

Why It Exists

Organizations do not usually struggle to generate output. They struggle to keep output attached to responsibility.

YAI exists for environments where teams need:

  • AI activity tied to business context instead of disconnected prompts
  • accountable execution rather than silent side effects
  • durable records instead of fragile session memory
  • reviewable operational history instead of opaque agent behavior
  • reusable insight without confusing recall, projections, or analytics with primary truth

How The System Operates

YAI is built to keep the full operating chain explicit and separated by plane:

identity -> case -> governance -> control -> orchestration
         -> agents / skills / providers / models
         -> runtime -> events / records / state records
         -> state -> knowledge / lineage -> analytics

In the repository today, that stack is expressed like this:

  1. Identity in identity/ defines principal, authorization, machine posture, and entitlement vocabulary for the runtime boundary.
  2. Case in case/ localizes the work boundary through identity, continuity, structure, topology, progression, qualification, chronology, and surface nuclei.
  3. Governance in governance/ qualifies posture and resolves declarative control inputs into runtime decisions, effects, and evidence linkage.
  4. Control in control/ is the canonical control-plane root for mediation, observation, enforcement, registry, subjects, and evidence capture.
  5. Orchestration in orchestration/ coordinates planning, routing, handoff, recovery, and state; the separate flow/ root remains a graph/flow surface that orchestration projects through.
  6. Agents, skills, providers, and models live in agents/, skills/, providers/, and models/ as the operating capability planes that compose, route, bind, and execute work under governance and control.
  7. Runtime in runtime/ carries execution through boundary adapters, carriers, connections, lifecycle, machine, observation, sessions, and operator surfaces.
  8. Public contracts are exposed in include/events/, include/records/, and include/state_records/ as the current event, record, and State Records contract spine.
  9. State in state/ owns persisted operational state through state/records/ and backend substrates through state/substrate/.
  10. Knowledge in knowledge/ owns ingest, context, retrieval, inference, memory, query, topology, and lineage-related surfaces. In the current repo, lineage is still surfaced inside the knowledge plane rather than as a separate root.
  11. Analytics in analytics/ remains the observation/inspection side of the system: useful for derived understanding, but not the primary truth surface.

Around that operating chain, specs/ holds canonical spec surfaces, tools/ supports repository and runtime operations, tests/ carries harnesses, packaging/ carries distribution layouts, and Documentation/ explains the system.

The architectural point is deliberate: YAI separates qualification, control, execution, durable state, lineage, and observation so that no derived surface quietly becomes authority.

Dev-Wrapper Boundary

This repository also contains development and ops bootstrap surfaces such as make yai, make info, make install, and make install-service.

Those surfaces are dev-wrapper surfaces. They can build, inspect, install, or bootstrap local runtime artifacts, but they are not the canonical domain command model and they do not own auth, case selection, operator context, readiness, or operational authorization.

The installed yai CLI remains the canonical user-facing command surface. Makefile targets and service bootstrap assets are repository and host-ops surfaces around the runtime, not replacements for yai auth ..., yai case ..., yai runtime status, or future runtime-control commands.

V19 adds one more boundary: future controlPlan semantics are declarative plan or projection only. They are not proof that runtime start/stop/restart executed, and they do not turn Makefile or service bootstrap surfaces into canonical runtime control.

Core System View

At a system level, YAI brings together a few distinct responsibilities:

  • Case keeps work tied to a real operational boundary.
  • Control governs whether action should proceed and under what posture.
  • Runtime carries work into executable surfaces.
  • State preserves accepted facts, records, and outcomes.
  • Lineage keeps connection and traceability across meaning and reuse.
  • Analytics provides observation and derived understanding without becoming truth.

This repository is the core YAI runtime/source tree. It contains the runtime, governance, case, state, knowledge, analytics, and public contract surfaces that make that model concrete. It is under active development, with the newer Event, Record, and State Records contracts now forming the stabilization spine.

Start Here

If you want the fast path into the system, start here:

Canonical operator flow for the CLI:

which yai
yai ...

If you are looking at the current contract spine specifically, begin with:

Availability And Licensing

YAI is the YAI Community Source Tree.

It is available for learning, evaluation, development, research, prototyping, and other non-production use. Production, organizational, persistent, collaborative, customer-affecting, or business-critical use requires a commercial license.

Use these as the licensing source of truth:

Repository governance and contribution rules live here:

About

Core system for governed cases, runtime execution, and accountable action.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors

Languages