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").
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
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 includesstructure_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:
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
Iffeature_paths is non-empty, those base paths define the authoritative feature surface. Representation discovery can still evaluate combinations and lags derived from those fields.
Prevent accidental leakage
Validate induced structure with these checks:- Confirm the target is absent from query context.
- Remove target-derived scores, post-outcome flags, evaluator labels, and correct-action fields.
- Partition training and evaluation by entity or episode.
- For a frozen comparison, stop learner updates before scoring held-out data.
- Compare against a simple single-field or best-feature selector.
- Inspect whether a suspicious identifier or timestamp became predictive.
- Repeat across seeds or independent streams when reporting performance.
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.
Runtime notes: futures isolation, inspection, and latency tuning
Runtime notes: futures isolation, inspection, and latency tuning
- No effect on
futureskernel weights: Enablinglearning.structure.representationdoes not alterlearning.transition.futuresneighbor weights or forecasts. Consume Structure Discovery throughreturn_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"]onPOST /queryand accept either"selected"or"predicted"forinduced_structure.status. When callingPOST /domains/{domain_id}/explain, pass a populatedcontextobject to inspect active structure state. - Optional latency tuning: On larger streams, you can set
rebuild_interval: 16andbeam_width: 16underrepresentationto 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.
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.