Skip to main content
These examples cover numeric and categorical Transition Discovery, Structure Discovery, Sequential Discovery, and mixed causal-binding discovery.

Run one complete Discovery tutorial

Create a fresh Domain, submit the included observations, inspect before/after responses, and query retained state from one Python file.
Choose a declaration below, then use the shared create → ingest → inspect → query loop. These payloads extend the complete tutorial; HTTP and contracts describes schema coverage. All examples use:
Export a bearer token before running them:
The hosted API derives tenant ownership and effective session identity from the bearer token. Request examples use session_id: ignored for compatibility.

Choose a declaration

This Domain declares the numeric target and lets Adapt-1 discover the stable input projection.
Send complete observations in order. The first events can return projection_accumulating. Continue while storage succeeds and inspect the projection until it becomes ready.At query time, omit the target:
Verify:

Sequential Discovery

Use Sequential Discovery when actions change later states and later rewards should revise earlier choices. An opaque-action loop can expose public observation fields and legal actions while leaving their useful action values and action-effect structure for Adapt-1 to form:
  1. query current public state
  2. execute the selected legal action
  3. observe the public next state and native reward
  4. return episode ID, step, next state, reward, and terminal status
  5. query again from retained Discovery state
Configure learning.sequential.enabled: true with real episode, step, next-state, reward, and terminal paths. Preserve the selected policy and decision_id through execution. Inspect sequential sample counts and selection attribution before claiming that retained state influenced a later action. See Sequential Discovery for the starting declaration and Sequential learning, advanced for the full policy, reward, training, and evaluation contract.

Executable runner pattern

The following is a zero-start online pattern shared by the Discovery paths. For separate acquisition, run the evidence-formation steps before the declared new-run boundary, then freeze the resulting state or continue adapting according to the protocol:
  1. create a unique Domain
  2. send eligible events or feedback
  3. inspect path-specific admission on every write
  4. wait for usable discovered state
  5. query, select, or predict
  6. return the observable consequence when applicable
  7. verify that a later result uses the intended retained state
Use a fresh unique domain_id for an independent rerun. When one reported run starts empty and retains state across its own episodes, later episodes show within-run retention rather than separate acquisition. For held-out frozen evaluation, split entities or episodes before ingestion, form state only on the acquisition partition, record the final learner state and version, stop event and feedback writes, and verify state identity remains unchanged through scoring.

Common setup failures

Discovery

Understand the Discovery boundary and lifecycle.

Transition Discovery

Review projection fields, revisions, and causal bindings.

Structure Discovery

Review discovered fields, combinations, temporal relationships, and induced rules.

Sequential Discovery

Review ordered feedback, delayed credit, readiness, and action attribution.