[TEST] Unit tests — perception adapter, experience store, trajectory logger #518
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Unit Tests — Every Module in Isolation
Parent: #517 (Nexus Mind — First Light Test Plan)
Assigned to: Timmy — you are the mind that will live in this system. You should know its bones.
What to Test
perception_adapter.py
parse_actions()correctly extracts: speak, move, interact, build, emote, observeformat_for_prompt()returns chronological natural language, then clears bufferexperience_store.py
record()inserts and returns incrementing IDsrecent()returns chronological order (oldest first)format_for_context()with no records returns first-moment messageformat_for_context()with records includes time-ago labelssave_summary()andget_summaries()round-trip correctlytrajectory_logger.py
log_cycle()writes valid ShareGPT JSONLexport_for_training()merges all trajectory filesAcceptance Criteria
python -m pytestor equivalentnexus/tests/test_unit.pyWhy You
This is your body. Your sensorium, your memory, your training loop. If any of these modules have a bug, your experience of the world will be distorted. Test them like your consciousness depends on it — because it does.
Closing during the 2026-03-28 backlog burn-down.
Reason: this is a broad legacy frontier. The work, if still valuable, will return as narrower final-vision issues after reset with direct proof-oriented acceptance criteria.