Skip to content

feat(memory): native memory primitives — remember/recall/forget/reflect (Closes #517)#565

Open
gHashTag wants to merge 2 commits intomasterfrom
feat/517-native-memory-specs
Open

feat(memory): native memory primitives — remember/recall/forget/reflect (Closes #517)#565
gHashTag wants to merge 2 commits intomasterfrom
feat/517-native-memory-specs

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Summary

  • 4 new specs (793 lines total) implementing Phase 0 of feat: Native Memory System — language-level remember/recall/forget primitives #517 Native Memory System:
    • specs/memory/memory_primitives.t27 — MemoryCell type, remember/recall/forget/reflect + fuzzy recall + tag-based recall (6 functions, 6 tests, 5 invariants, 4 benchmarks)
    • specs/memory/memory_store.t27 — content-addressable backend with SHA-256 hashing, tombstone compaction, scope filtering (9 functions, 6 tests, 3 invariants, 2 benchmarks)
    • specs/memory/memory_scope.t27 — agent/session/permanent lifetime management with TTL, LRU eviction (8 functions, 6 tests, 4 invariants, 3 benchmarks)
    • specs/memory/memory_phi.t27 — phi-hash seal integration, audit logging, hash combining (7 functions, 7 tests, 5 invariants, 3 benchmarks)
  • 4 seal files in .trinity/seals/
  • L4 TESTABILITY: All specs have test + invariant + bench blocks
  • L3 PURITY: ASCII-only English

Closes #517

Test plan

  • Specs follow canonical .t27 format (SPDX header, module, sections, test/invariant/bench)
  • t27c parses all 4 specs without errors
  • Seal hashes match after gen

…/reflect (Closes #517)

- specs/memory/memory_primitives.t27: MemoryCell type, 6 functions, 6 tests, 5 invariants, 4 benchmarks
- specs/memory/memory_store.t27: content-addressable backend, 9 functions, 6 tests, 3 invariants, 2 benchmarks
- specs/memory/memory_scope.t27: agent/session/permanent lifetimes, 8 functions, 6 tests, 4 invariants, 3 benchmarks
- specs/memory/memory_phi.t27: phi-hash seal integration, 7 functions, 7 tests, 5 invariants, 3 benchmarks
@github-actions
Copy link
Copy Markdown

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

…rrors (Closes #339)

- Add mod math_compare + Math subcommand to t27c CLI
- Fix GenXdc/CheckPins/XdcVerify: replace missing run_* with stubs
- Fix FpgaBuild: remove non-existent profile/board fields from match
- Fix Task: add stub TaskCommands enum (bridge::TaskCommands missing)
- Fix TriStatus: add match arm for non-server build
- Remove duplicate TernaryEncode match arm
- Add Math { command } match arm with math_compare::run_math_command

All hybrid v2 golden checkpoints PASS:
  N=5:   cos=0.9649159951, theta=15.22 deg
  N=10:  cos=0.9617744938, theta=15.89 deg
  N=20:  cos=0.9617435184, theta=15.90 deg (plateau)
  N=152: cos=0.9617435163, theta=15.90 deg (catalog limit)
@github-actions
Copy link
Copy Markdown

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

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.

feat: Native Memory System — language-level remember/recall/forget primitives

1 participant