Skip to content

refactor(memory): remove frontmatter limit requirement#1484

Merged
sarahwooders merged 2 commits intomainfrom
bob/remove-frontmatter-limit
Mar 22, 2026
Merged

refactor(memory): remove frontmatter limit requirement#1484
sarahwooders merged 2 commits intomainfrom
bob/remove-frontmatter-limit

Conversation

@sarahwooders
Copy link
Contributor

Summary

  • remove limit as a required frontmatter field in memfs pre-commit validation (src/agent/memoryGit.ts)
  • keep limit tolerated as a legacy key for backward compatibility (no hard failure if present)
  • update memory tool frontmatter parsing/rendering to only require/write description (+ optional read_only) in src/tools/impl/Memory.ts
  • update pre-commit hook tests to reflect the new behavior in src/tests/agent/memoryGit.precommit.test.ts

Test plan

  • bun test src/tests/tools/memory-tool.test.ts
  • bun test src/tests/agent/memoryGit.precommit.test.ts (fails in this temp worktree due to missing local module dependencies, unrelated to the change)

👾 Generated with Letta Code

sarahwooders and others added 2 commits March 22, 2026 12:23
Drop `limit` as a required memory frontmatter field in both the memory tool and the memfs pre-commit validator. Keep `limit` tolerated as a legacy key so existing files continue to pass validation while new writes emit only description/read_only.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <[email protected]>
@sarahwooders sarahwooders merged commit d557d47 into main Mar 22, 2026
13 checks passed
@sarahwooders sarahwooders deleted the bob/remove-frontmatter-limit branch March 22, 2026 19:47
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