Skip to content

feat: add opt-in system message records - #44

Merged
devanshrj merged 1 commit into
mainfrom
letta/opt-in-system-records-36ca3650
Aug 19, 2026
Merged

feat: add opt-in system message records#44
devanshrj merged 1 commit into
mainfrom
letta/opt-in-system-records-36ca3650

Conversation

@devanshrj

Copy link
Copy Markdown
Collaborator

Summary

  • add system records to normalized and canonical trajectory contracts
  • keep system messages omitted by default and expose them through filters.systemMessages: "include"
  • decode native Codex system messages and add TypeScript/Python parity
  • bump CANONICAL_SCHEMA_VERSION to 3

Compatibility

Default trajectory output is unchanged. The resolved canonical filter config now includes systemMessages: "omit", so downstream config_hash values will change with this normalizer version.

Validation

  • bun run check (166 passed, 7 dependency-gated skips)
  • PYTHONPATH=python/src python3.12 -m unittest discover -s python/tests -v (11 passed, 1 dependency-gated skip)
  • built-package import smoke test
  • npm pack --dry-run
  • git diff --check

Preserve source-native system messages when explicitly requested while keeping default normalized output unchanged.

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

Co-Authored-By: Letta Code <noreply@letta.com>
@devanshrj
devanshrj merged commit aa83529 into main Aug 19, 2026
1 check passed
@devanshrj
devanshrj deleted the letta/opt-in-system-records-36ca3650 branch August 20, 2026 00:05
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