1. Decoupled Attributes Serialization:
• Removed all serialize() methods from AttributableObject
(attribute.ts), WorldState (world.ts), and Entity (entity.ts).
• Implemented a standalone, uncoupled function
serializeAttributes(attributes: Attribute[]): string in attribute.ts.
This function receives an array of attributes and outputs their
formatted
representation.
2. System Objective Serializer:
• Implemented serializeObjectiveWorldState(worldState:
WorldState): string in world.ts for system LLMs that need objective
reality dumps (e.g. validators and intent decoders). It manually
retrieves and formats attributes using serializeAttributes()
alongside class-specific fields like locationId .
3. System prompt updates:
• Updated LLMValidator (llm-validator.ts), TimeDeltaGenerator
(delta.ts), and IntentDecoder (intent-decoder.ts) to use the new
standalone serializeObjectiveWorldState(worldState) helper imported
from @omnia/core .
4. Unit Tests (Tier 1):
• Updated core.test.ts to verify serializeAttributes and
serializeObjectiveWorldState utilities directly.