Giving Our AI Creature Smarter Mission Awareness & Priority Intelligence
In this update, we gave the local indoor AI agent a major intelligence upgrade. Instead of treating every object in a room with equal weight, the creature can now evaluate how relevant each object, doorway, or clue is to its active mission, keep track of that priority across its spatial memory, and expose its real-time focus directly in the interface. Here is a detailed breakdown of everything we added:
1. **Dynamic Mission Interest Scoring (interesse_pct & motivo_interesse)** Every mapped element is now scored dynamically from 0% to 100% based on the current mission, active sub-objective, target item, and room context. Structural walls stay at a baseline 5% so they never distract navigation, neutral furniture sits around 10%–28%, doorways and passages scale up (55%–80%) when the agent needs to explore or change rooms, and objects matching the mission or target jump to 85%–100%. Each score also stores an explicit explanation tag (motivo_interesse) showing why the agent cares about that item.
2. **Out-of-Room Clue Detection** If the mission expects a target item in a specific room (for example, searching for a box of rice in the kitchen) and the agent spots a matching item in an unexpected location, the scoring engine automatically boosts its interest to 100% (indizio_fuori_stanza). This allows the creature to recognize high-value clues immediately rather than ignoring them until reaching the expected room.
3. **Preliminary Visual Relevance in the Vision Layer (VLM)** During scene analysis, the vision module now assigns each detected object a preliminary mission-relevance score (pertinenza_missione_pct) alongside an overall scene relevance rating (pertinenza_scena_pct). This bridges raw visual perception and high-level spatial memory right from the first frame an object appears.
4. **Priority-Weighted Object Catalog & RAG Retrieval** The persistent object catalog now synchronizes interesse_pct across sessions and observations. When building the retrieval-augmented context (catalogo_oggetti_rag) for the reasoning model, items are ranked by mission interest rather than simple sighting frequency—preventing common background furniture from crowding out mission-critical objects.
5. **Priority-Guided Reasoning & Decision Hierarchy** The 2D map snapshot sent to the reasoning engine is now sorted by interesse_pct (highest first) and paired with an explicit three-tier decision hierarchy: * P1 — Safety & Environment Comprehension: Avoid collisions, clarify the current room, and catalog visible doorways or passages. * P2 — Mission Interest & Clues: Prioritize inspecting, aligning with, or approaching high-interest elements and out-of-room clues ahead of low-interest clutter. * P3 — Target Acquisition & Manipulation: Approach and interact with the target object once path and distance constraints are satisfied.
6. **Centralized Tuning Parameters** All interest weights and thresholds (base object score, wall score, doorway baseline, token match, target match, and out-of-room clue boost) are now centralized in sim_config.py, making it easy to fine-tune the agent's curiosity and focus without touching core logic.
7. **Full Observability in the 2D Map & Live Simulator GUI** * 2D Map Tooltips & Side Panel: Hovering over any mapped element displays its interesse_pct and motivo_interesse, while the object list includes filters for minimum interest (>= 50%, >= 80%) and sorting by interest ascending or descending. * Live "Top interesse" Status Badge: The main simulator control bar now displays the highest-interest non-wall object currently mapped in real time, giving immediate visibility into what the creature is focusing on at every step.