Skip to main content
Structure Discovery learns which eligible fields, combinations, and bounded temporal relationships predict a declared target. It exposes the resulting interpretable rules with supporting and contradicting evidence through induced_structure and learning_state. Declare the target and event boundary before sending completed events.

Minimal configuration

Start with "representation": {"enabled": true}, which applies the server defaults (maximum_order: 2, maximum_lag: 3, minimum_support: 12, episode_path: "metadata.episode_id").
An empty feature_paths list enables discovery from eligible scalar fields. The target, text, timestamps, identifier-like fields, and most metadata are excluded from automatic raw features. Supply discrete or binned categorical or boolean inputs (such as "load_band": "high" or "signal_a": true): raw continuous floats leave representation permanently inactive (active_count: 0). Include metadata.episode_id on every event so @lag rules stay within one episode.

What Discovery can form

Structure Discovery can use current fields, combinations of fields, and bounded temporal relationships when those patterns are useful for the declared target. The public controls you usually need are: Start with "representation": {"enabled": true}. Increase order or lag only when the task actually requires more complex combinations or longer temporal context.
Structure Discovery evaluates the supplied observations against the target declared by the application.

Event shape

Supply discrete or binned categorical or boolean inputs for representation (raw continuous floats leave representation inactive at active_count: 0). Send metadata.episode_id on every event so @lag candidates stay within one episode, and keep a stable step order inside each episode. If events are independent, assign separate episode IDs or omit representation.

Inspect event admission

The event response includes structure_eligibility. Check whether the event was accepted, whether the sample count changed, which feature and target paths were admitted, and whether representation discovery is ready. Read the selected paths from learner state because they depend on the admitted evidence.

Query induced structure

induced_structure can expose the current hypotheses, their conditions and predictions, and the evidence that supports or contradicts them. Representation state is available at:
For read-only inspection without issuing a prediction query, call POST /domains/{domain_id}/explain with update_memory_state: false (pass "context": {"values": ...} when inspecting active structure state). Alongside learning_state.subsystems.autonomous_structure (status, active_hypotheses, candidate_hypotheses, retired_hypotheses, model_version, and drift), induced_structure exposes selections, discovered_relations, hypotheses, and representation. For normal use, inspect readiness, selected paths, active representations, model version, and the supporting or contradicting evidence attached to the current result.

Explicit versus discovered features

If feature_paths is non-empty, those base paths define the authoritative feature surface. Representation discovery can still evaluate combinations and lags derived from those fields.
Use this mixed mode after reviewing automatic discovery or when governance requires an approved input list.

Prevent accidental leakage

Validate induced structure with these checks:
  1. Confirm the target is absent from query context.
  2. Remove target-derived scores, post-outcome flags, evaluator labels, and correct-action fields.
  3. Partition training and evaluation by entity or episode.
  4. For a frozen comparison, stop learner updates before scoring held-out data.
  5. Compare against a simple single-field or best-feature selector.
  6. Inspect whether a suspicious identifier or timestamp became predictive.
  7. Repeat across seeds or independent streams when reporting performance.
Causal interpretation of a discovered association requires intervention evidence and a valid intervention protocol.

Working alongside futures and value learning

Within a Domain, Structure Discovery (learning.structure), Probabilistic futures (learning.transition.futures), and Value learning (/value/*) each expose their own typed outputs: induced_structure returns interpretable rules, combinations, and bounded lags with traceable evidence; futures returns state-conditioned joint distributions; and the value learner learns persistent state values, event probabilities, and bounded outcome expectations. Track rule coverage separately from accuracy when induced rules cover a subset of contexts, and materialize reviewed discovered patterns as explicit pre-outcome inputs whenever you want them to feed a separate predictive contract.
  • No effect on futures kernel weights: Enabling learning.structure.representation does not alter learning.transition.futures neighbor weights or forecasts. Consume Structure Discovery through return_fields: ["induced_structure"], or materialize reviewed patterns as explicit pre-outcome inputs if another learner should use them.
  • Inspecting active results: Request return_fields: ["induced_structure"] on POST /query and accept either "selected" or "predicted" for induced_structure.status. When calling POST /domains/{domain_id}/explain, pass a populated context object to inspect active structure state.
  • Optional latency tuning: On larger streams, you can set rebuild_interval: 16 and beam_width: 16 under representation to bound rebuild overhead.

When to pin the structure

Keep discovery active while the feature surface is intentionally open and monitored. Pin base paths when:
  • The Domain enters a regulated or audited workflow.
  • Field semantics are versioned by an upstream contract.
  • Availability changes must produce an explicit failure.
  • A frozen evaluation requires a stable representation.
The active rules can continue updating from evidence even when the permitted base paths are explicit.

Discovery overview

Review the Discovery paths and their admission requirements.

Transition Discovery

Discover executable input projections and compatible causal bindings.

Sequential Discovery

Discover state-dependent action values and delayed credit across episodes.

Complete examples

Run transition, structural, sequential, and mixed workflows.

Value learning

Learn persistent state values for unfinished states, planning evaluators, event probabilities, and bounded expectations from recorded outcomes.

Probabilistic futures

Forecast state-conditioned joint outcome distributions and marginals through learning.transition.futures.