Skip to content

🥈 [SR-MEM-05] episodic-bridge — lessons.rs + HDC ↔ KG #455

Closed

Description

@gHashTag

Soul-name: Replay Reaper · Codename: LEAD · Priority: P2-MEDIUM · Kingdom: Rust
Ring: GOLD IV trios-agent-memory / SR-MEM-05
Part of: #446
Blocks: BR-OUTPUT(GOLD IV)
Blocked by: SR-MEM-01 (issue 7)

Goal

Bidirectional bridge between the two existing episodic stores and the KG long-term memory:

  • crates/trios-igla-race/src/lessons.rs (Neon-backed Avoid/Pattern/Winner/Warn/Info lessons).
  • crates/trios-sacred/src/phi-engine/hdc/rl_agent_memory.zig (HDC replay buffer with forgetting_factor=0.001).

Acceptance criteria

  • rings/SR-MEM-05/ with I5 trinity.
  • Deps: SR-MEM-00, SR-MEM-01, tokio, sqlx (for Neon NOTIFY listener).
  • Bridge::start() subscribes to Neon NOTIFY on the lessons table and forwards each row as a triple via SR-MEM-01.
  • HDC forwarder reads streaming_memory.zig exports (FFI binding marked TODO if Zig FFI not yet ready) and emits triples.
  • Reverse direction: Bridge::seed_replay(&mut HdcMemory, lookback: Duration) pulls KG triples back into the HDC replay buffer for warm start.
  • No write to lessons.rs directly — read-only forwarder (L21 context immutability).
  • Smoke test against Neon dev DB.
  • PR closes this issue, Agent: LEAD trailer.

🌻 phi² + phi⁻² = 3

Activity

  1. added a commit that references this issue on May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions