UAM creation
A practical memory walkthrough: initialize, retrieve, learn, and preserve an individual agent’s experience.
Hypothetical example: an Excel specialist
An agent called Weekly Planner creates timetables. Its package defines the spreadsheet role and tools. Its individual UAM stores verified preferences and task experiences. These examples illustrate the intended behavior; field names and method arguments must match the installed UAM implementation.
File ownership
The installed agent uses data/uam/weekly-planner.uam. Keep its stable agent ID when updating the framework. A different installed identity needs a separate memory file; a public agent package should not carry the developer’s private work history.
First initialization
- Register the installed agent with its stable ID and framework identity.
- Let RuXt’s memory manager create or open the agent’s UAM.
- Initialize schema and version metadata through the memory manager.
- Check ownership before exposing search, export, or update operations.
- Confirm the same file is reopened after a dashboard restart.
Do not manually create an empty file with a .uam extension. It must be initialized as a valid UAM database by the runtime.
What to save
User: “For school timetables, shade weekends blue.” Record the explicit preference with its source task, project scope where appropriate, timestamps, confidence, and verification status. Store a compact task outcome when the timetable is delivered.
An inferred preference such as “The user always wants blue” is weaker evidence. Keep it as a candidate until supported. A project preference should not silently become a global rule.
Retrieval decisions
- “Hello” can skip memory retrieval.
- “Make another school timetable” can search scoped timetable preferences.
- “Change Monday’s lesson” should reuse the current project state and relevant correction.
- “Write a birthday message” should not inject unrelated spreadsheet experiences.
Avoid duplicate memories within a request. Reuse valid caches when available. Stateless AI requests may still require resending the minimum necessary memory context.
Feedback and validated learning
If a user rates the work poorly because holidays were missing, link the correction to the task. Record the proposed lesson with its source. Validate the lesson before treating it as trusted experience. On a later timetable request, retrieve that lesson when applicable and check whether the result improves.
Saving a lesson alone does not prove learning. Compare later task quality, correction counts, and token usage against a no-memory baseline.
Verification checklist
- Agent A cannot retrieve Agent B’s private memories through ordinary access.
- A correction supersedes the outdated preference.
- Deleted records stop appearing in search.
- Repeated unrelated requests do not trigger unnecessary retrieval.
- A restored backup preserves task and feedback links.
- Monitoring reports retrieval counts and token estimates without leaking memory contents.