Expand description
The experience core: memory for tree-structured, highly repetitive observations such as agent trajectories over accessibility trees.
One observation step is interned into a hash-consed term arena, cut into regions that the existing lexical index searches, and compared with the previous step of its episode to update a table of what each action changes. Equal structure is stored once; every holder of a node is counted, so purging an episode frees exactly what no other episode shares.
Re-exports§
pub use self::form::Control;pub use self::form::ControlOption;pub use self::target::ActionRecord;pub use self::target::ActionTarget;pub use self::target::ActionTargets;pub use self::target::OccurrenceNode;pub use self::target::OccurrenceRef;pub use self::target::Resolution;pub use self::target::TargetRole;pub use self::target::Unresolved;pub use self::tree::parse_indented;pub use self::tree::Action;pub use self::tree::TreeNode;
Modules§
- diff
- Row-aware differences between two observations of one episode.
- enablement
- Conditions under which an action takes effect, learned as a version space.
- form
- Form state: the controls of one observation (text fields, selects, checkboxes, buttons) with their values and selected options, parsed at ingest from the accessibility-tree text of the step and rendered at query time as a compact table before the page text.
- procedures
- Reusable procedures learned from episodes, and their revision by later observations.
- store
- The durable experience store: one
Experiencewith a write-ahead journal and a snapshot in a store directory (docs/file-format/index.md). - target
- The authoritative record of an action and the occurrence it targeted.
- tree
- Input tree type, the accessibility-tree text parser, page templates and action labels.
Structs§
- Effect
Hit - An action-effect row found by search.
idis the stable index id,x{template}:{action}. - Effect
View - Episode
Hit - Episode
View - Experience
- Experience
Config - Bounds on what one observation may contain; trees come from outside the process.
- Experience
Stats - Observation
- One observation step to ingest.
- Observation
Input - An observation with the accessibility-tree text of its page, one
[id] role 'name' propsnode per line. WithExperienceConfig::form_statethe controls are parsed from the text at ingest and stored with the step; the text itself is not stored. - Owned
Observation - An owned observation, the form that arrives as JSON.
- Path
Entry - Provenance
- Purge
Report - Region
Hit - Template
Info
Enums§
Constants§
- ACCESSIBILITY_
TREE_ KEY - The JSON key of an observation that carries the accessibility-tree text of its page.
- SNAPSHOT_
FILE
Functions§
- check_
observation_ value - Checks the bounds of a JSON observation (depth, node count, string and id bytes) by walking
the value, so an oversized tree is refused before it is copied into a
TreeNode. - detect_
observation - Recognizes a tree-structured observation by its shape: an object holding an
episodestring, astepnumber and atreeobject. Anything else is an ordinary memory. - is_
observation_ object is_observation_shapefor an object already in hand.- is_
observation_ shape - Whether the value has the shape of an observation: an object holding an
episodestring, astepnumber and atreeobject. It does not check the rest of the fields. - rank_
fusion_ score - The weight a result at 1-based
rankcarries when ranked lists are merged by reciprocal rank fusion:1 / (60 + rank). The memory API and the MCP server merge region hits with document hits by this rule, since the two lists come from separate lexical indexes.