github Aspegio/nelson v2.0.0

latest releases: v2.2.4, v2.2.3, v2.2.1...
one month ago

What's New

Cross-Mission Memory Store (#94)

  • Persistent pattern library (.nelson/memory/patterns.json): accumulates adopt/avoid patterns from every mission
  • Standing order stats (.nelson/memory/standing-order-stats.json): tracks violation frequency and correlations across missions
  • Pattern capture: stand-down now accepts --adopt and --avoid flags to record reusable patterns
  • Intelligence brief (brief command): pre-mission command that surfaces relevant patterns, win rate, standing order hot spots, and context-matched precedents
  • Cross-mission analytics (analytics command): focused metric queries (success-rate, standing-orders, efficiency) with text and JSON output
  • Index sync: running index backfills the memory store for missions completed before this feature existed

Modular Architecture

  • Split monolithic nelson-data.py (2500+ lines) into 5 focused modules:
    • nelson-data.py — thin CLI entry point (340 lines)
    • nelson_data_utils.py — shared I/O, validation, constants
    • nelson_data_memory.py — cross-mission memory store
    • nelson_data_lifecycle.py — mission lifecycle commands
    • nelson_data_fleet.py — fleet intelligence and analytics
  • Test suite split into 3 files with shared conftest.py

Bug Fixes

  • Replaced bare open()+try/finally lock pattern with _file_lock() context manager across all lock sites
  • Fixed mid-file import and replaced time.sleep with deterministic mission IDs in tests
  • Fixed duplicate record-building code in cmd_index() that ran outside the file lock

Test Coverage

  • 234 total tests (182 scripts + 52 hooks), all passing
  • 21 new tests for memory store, brief, analytics, and index sync

Don't miss a new nelson release

NewReleases is sending notifications on new releases.