> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reilabs.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Core

> How Core combines declared interface semantics, live evidence, and revisable state to form and apply task structure.

Core is REI's continuing neuro-symbolic learning and reasoning substrate, where declared public task semantics, live evidence, and revisable state meet. A Core instance begins without accumulated local history and changes through use: observations can form task-relevant structure, repeated support can stabilize it, corrections can revise it, weak support can fade, and later work begins from what the instance has already formed.

A response is a snapshot of Core's activity, not its definition. Core uses what it has formed to interpret new work, compare possibilities, expose support and conflict, and revise what later work begins from. Language can sit at a boundary to encode an interaction or articulate a result, but it does not do the continuing reasoning or own the state.

## The external contract

<div className="my-8">
  <div className="grid gap-2 md:grid-cols-5 md:items-stretch">
    <div className="rounded-lg border border-zinc-200 bg-zinc-50 p-4 dark:border-zinc-800 dark:bg-zinc-900">
      <div className="text-xs font-semibold uppercase tracking-wider text-zinc-500 dark:text-zinc-400">Public task boundary</div>
      <div className="mt-2 text-base font-semibold text-zinc-950 dark:text-zinc-50">Context entering the instance</div>
      <div className="mt-1 text-sm leading-6 text-zinc-600 dark:text-zinc-400">Declared semantics, interactions, events, constraints, relations, or outcome signals</div>
    </div>

    <div className="flex rotate-90 items-center justify-center py-1 text-lg text-zinc-400 dark:text-zinc-600 md:rotate-0" aria-hidden="true">→</div>

    <div className="rounded-lg border border-teal-300 bg-teal-50 p-4 dark:border-teal-700 dark:bg-teal-950">
      <div className="text-xs font-semibold uppercase tracking-wider text-teal-700 dark:text-teal-300">Reasoning substrate</div>
      <div className="mt-2 text-base font-semibold text-zinc-950 dark:text-zinc-50">Core</div>
      <div className="mt-1 text-sm leading-6 text-zinc-700 dark:text-zinc-300">A continuing substrate where declared meaning and live evidence form and revise task structure</div>
    </div>

    <div className="flex rotate-90 items-center justify-center py-1 text-lg text-zinc-400 dark:text-zinc-600 md:rotate-0" aria-hidden="true">→</div>

    <div className="rounded-lg border border-zinc-200 bg-zinc-50 p-4 dark:border-zinc-800 dark:bg-zinc-900">
      <div className="text-xs font-semibold uppercase tracking-wider text-zinc-500 dark:text-zinc-400">Application boundary</div>
      <div className="mt-2 text-base font-semibold text-zinc-950 dark:text-zinc-50">Current task view</div>
      <div className="mt-1 text-sm leading-6 text-zinc-600 dark:text-zinc-400">A decision or interpretation, its support and uncertainty, and any relevant state change</div>
    </div>
  </div>

  <p className="mt-3 text-sm leading-6 text-zinc-500 dark:text-zinc-400">
    This is the public contract around Core, not a sequence of internal modules. The current task view reflects both the declared task frame and the evidence-shaped state of the instance.
  </p>
</div>

## What changes through use

* A fresh instance begins without accumulated local history.
* Observations, outcomes, and corrections can form or revise task-relevant structure during operation.
* Repeated support can stabilize structure while weak support loses influence and multiple supported associations can remain active together.
* Available product surfaces can expose a current result, state, and supporting evidence.

This describes observable behavior rather than internal implementation details.

## Configured explicitly, formed through use

Core can begin operating without a task-specific dataset, labeled demonstrations, solved trajectories, or an offline task-training phase. This does not mean zero configuration: the public task interface may still be declared explicitly, while task-local structure forms from live evidence.

A fresh Core instance begins without accumulated local task history, not without an interface. The surrounding application or domain should declare the meanings that are public parts of that interface: observation fields, available operations, action semantics, native outcome types, and the expected result shape.

Core should still have to learn the episode-specific structure: which visible object has which role, which action works in the current context, which sequence reaches the goal, and which reusable mechanism the evidence supports.

| Belongs in the declared boundary                                                    | Must form from live evidence                                                                  |
| ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| Coordinate systems, field meanings, available actions, and native outcome semantics | Hidden roles, task-specific mappings, useful procedures, and causal mechanisms                |
| Candidate hypothesis vocabulary, rules of representation, and output contracts      | Which hypothesis is supported, what should be selected now, and how later evidence revises it |

Withholding public action or outcome semantics from Core while supplying them to another agent changes the information condition. It does not isolate reasoning quality.

## Two public surfaces

| Surface  | How it meets Core                              | Why it exists                                                                                        |
| -------- | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| Adapt-1  | Direct programmatic access                     | Lets an application work with Core's evolving task context, Domains, evidence, and adaptive behavior |
| Rei Chat | Conversational input and language articulation | Lets a person interact with the same continuing Core instance through dialogue                       |

Both are interfaces to Core. They differ in how an application or person meets the substrate, not in who owns the continuing reasoning or state. Persistent state belongs to the selected Core instance, not to the surface. Direct use also avoids making language quality, token use, or articulation latency part of the reasoning path.

## Persistent, associative, and revisable

Persistence includes more than retained content. Several supported associations can remain active together, repeated support can make useful structure more influential, and later evidence can change what carries support.

This is useful only while state remains correctable. Evidence inspection, explicit correction, isolation, reset controls, and failure-aware operation and validation are therefore part of the product contract.

## Choose a surface

<CardGroup cols={2}>
  <Card title="Build with Adapt-1" href="/docs/neuroadapt/overview">
    Bring Core's continuing reasoning into an application without a conversational layer.
  </Card>

  <Card title="Explore Rei Chat" href="/docs/rei-chat/overview">
    Use the conversational demo to experience continuity and revision through language.
  </Card>
</CardGroup>
