Skip to content

Implement Stage 12 freshness system - #12

Merged
aarambh-darshan merged 1 commit into
mainfrom
stage-12-freshness-system
Jul 3, 2026
Merged

Implement Stage 12 freshness system#12
aarambh-darshan merged 1 commit into
mainfrom
stage-12-freshness-system

Conversation

@aarambh-darshan

Copy link
Copy Markdown
Member

Summary

  • Add manas-learn freshness APIs for Timeless, Slow, Fast, and Realtime categories
  • Detect freshness during teach and stamp source plus freshness metadata onto learned hidden neurons
  • Add stale-neuron warnings to Trainer query results and manas ask output
  • Preserve freshness metadata through .manas persistence coverage
  • Mark Stage 12 complete in README, ROADMAP, ARCHITECTURE, and CHANGELOG

Public API changes

  • Add FreshnessCategory and FreshnessWarning exports from manas-learn
  • Add detect_freshness, freshness_age_days, is_stale, and staleness_warning helpers
  • Add Trainer::learn_with_source_and_freshness while keeping learn_with_source compatible
  • Extend QueryResult with freshness_warning: Option

Testing

  • cargo fmt --all -- --check
  • cargo test -p manas-learn freshness
  • cargo test -p manas-learn query
  • cargo test -p manas-cli
  • cargo test -p manas-store
  • cargo test --workspace
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo build --workspace --release

@aarambh-darshan
aarambh-darshan merged commit 6116f6c into main Jul 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant