Skip to main content
Both authored and Discovery setups use a Domain to define the public task contract and scope its evidence and learned state. Use this guide to author explicit, reviewed learner-facing structure. Use Discovery when eligible inputs, representations, or supported bindings should form from admitted evidence. Choose the acquisition schedule separately. An authored Domain can begin with empty task-specific learned state, and a Discovery Domain can acquire state before frozen use.
Describe the application interaction before configuring learners. Use defaults until the task requires additional configuration. For continuing evidence or constraints without a declared task grammar, use the State gateway.

Define the interaction

Use entities, relations, policies, hypotheses, transition mappings, grouping, and support controls as needed to express the contract. For Domain policy selection, declare each selectable option in the top-level hypotheses array when creating the Domain. Give competing options the same relation and each option a unique, non-null policy identifier. See Declare policy choices for a minimal example and the feedback loop.

Design examples and checks

Example:
Translate the completed worksheet into the fields accepted by the relevant API request.
The worksheet above describes one work-routing Domain. The complete interaction keeps the Domain, the current observation, the Core result, and the external consequence separate.Preserve the returned route and record any validation or override before execution, so feedback can identify the route that actually ran.
When applicable evidence is admitted, support, learned relationships, policy or transition state, and a later result may change. The later result may also remain the same.Within the declared lifecycle, the Domain contract, public vocabulary, result type, and ownership boundary stay fixed. External state and external execution remain outside Core.Verify event eligibility and learner admission where exposed. Preserve the documented state changes and the later result to assess whether admitted evidence affected behavior.

What belongs in the Domain

Include public task semantics that remain stable across the intended scope: A Domain may declare that completed is a positive native outcome. Include a rule connecting an action to completion only when that rule is public task information. A fresh Domain can expose the task vocabulary with an empty task-specific learning history. Core can then learn the action-effect mapping from admitted evidence.
Use the smallest loop that matches the application:
  1. observe
  2. query or select
  3. commit to the value actually used
  4. execute or use it outside Core
  5. observe the consequence
  6. record the transition or submit feedback
  7. query again
Record the returned value, the value the application actually selected, and the exact operation executed. They may differ because of validation, overrides, ties, or downstream constraints.The consequence must be attributable to the applicable event or decision. Do not attach a later outcome to an earlier choice merely because both occurred in the same session.

Choose learning only after the loop exists

Use sequential credit when an earlier action changes the state encountered later and a later outcome should revise that earlier action.
Transition prediction, bounded objective scoring, and action value are different:
Assign each relationship in a Domain its own evidence and result meanings.

One Domain or several

Reuse one Domain when all of these remain compatible:
  • Public task semantics.
  • Result contract and units.
  • Consequence or feedback meaning.
  • Event and episode boundary.
  • State retention and evaluation lifecycle.
Use separate Domains when incompatible target geometries, feedback meanings, or evaluation boundaries require isolated state, including workflows fed by the same source. One Core instance can retain several Domains. Every operation addresses one domain_id, so their evidence and learned state remain separate.

State lifecycle

Name the lifecycle before evaluation: State carried from an earlier pass or episode inside the same zero-start run is within-run retention. A cold run begins with its Domain definition in place. Frozen evaluation applies acquired state with writes disabled; held-out transfer evaluates that state on the excluded partition.

Minimal route map

The Domain returned by create or read is the resolved contract and may include defaults filled by Adapt-1. Send only the fields your integration needs. Returned defaults do not need to be copied into later create requests. Inspect admission for each configured learner and its applicable version after an event write, including when the later result remains unchanged.
Correct the design before implementation when any of these are true:

Choose how a Domain learns

Compare multistep action, hidden-process discovery, and structured prediction patterns.

Transition learning, advanced

Configure an observable before-state, action, target, support, grouping, and abstention contract.

Learn from outcomes

Bind decisions, commitments, execution, consequences, and scoped feedback.

Run an inspectable workflow

Preserve ordered provenance and verify the selected state lifecycle.