Skip to content

🥉 [SR-MEM-00] memory-types — anti-amnesia foundation (GOLD IV bottom) #449

Closed

Description

@gHashTag

Soul-name: Memory Mason · Codename: LEAD · Priority: P2-MEDIUM · Kingdom: Rust
Ring: GOLD IV trios-agent-memory / SR-MEM-00 (bottom of GOLD IV)
Part of: #446
Blocks: SR-MEM-01..06, BR-OUTPUT(GOLD IV)
Blocked by: —

Goal

Define dependency-free types for the agent-memory layer that addresses agent amnesia. Backed by existing infrastructure: zig-knowledge-graph, crates/trios-kg, crates/trios-igla-race/src/lessons.rs, and the HDC episodic agents in crates/trios-sacred/src/phi-engine/hdc/.

Acceptance criteria

  • crates/trios-agent-memory/ GOLD scaffold (RING.md, Cargo.toml, src/lib.rs facade ≤ 50 LoC).
  • crates/trios-agent-memory/rings/SR-MEM-00/ with README.md, TASK.md, AGENTS.md, Cargo.toml, src/lib.rs (I5).
  • Deps: serde + serde_json + uuid + chrono + sha2 only.
  • Public types: TripleId([u8; 32]), Provenance { agent_id, task_id, source_sha, ts }, enum AgentRole { Scarab, Gardener, Trainer, Doctor, Claude, Lead }, enum MemoryKind { Working, Session, LongTerm, Episodic, Semantic }, enum ForgetPolicy { GdprByAgent(AgentRole), AgeOlderThan(Duration), PredicateMatches(String) }, Triple { subject, predicate, object, provenance }.
  • TripleId::from_triple() is content-addressed (SHA-256 of subject + predicate + object), proven idempotent in tests.
  • Roundtrip JSON tests for every type.
  • cargo test -p trios-agent-memory-sr-mem-00 --no-deps green in < 5 s.
  • PR closes this issue, Agent: LEAD trailer.

Notes

  • See findings on existing memory primitives: lessons.rs (8 KB Neon-backed lesson store with Avoid/Pattern/Winner/Warn/Info types), hdc/rl_agent_memory.zig (replay buffer), hdc/streaming_memory.zig.

🌻 phi² + phi⁻² = 3

Activity

  1. added a commit that references this issue on May 2, 2026
    890f45b
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