Skip to content

fix(core): preserve agent source through note materialization - #1505

Merged
phernandez merged 1 commit into
mainfrom
codex-agent-note-source
Sep 8, 2026
Merged

phernandez merged 1 commit into
mainfrom
codex-agent-note-source

Conversation

@phernandez

Copy link
Copy Markdown
Member

Cloud's managed agents accept notes with source=agent_runtime. The materialization payload currently rejects that source, leaving an accepted note at DB version 2 while Tigris remains at version 1. This was observed in the real webhook/Gateway/MCP acceptance run for basicmachines-co/basic-memory-cloud#2003.

Add agent_runtime to the shared source vocabulary so queue payloads and object metadata preserve the managed origin. This lets Cloud suppress recursive agent dispatch without preventing materialization.

Validation: the new payload-to-object-provenance regression failed with the observed validation error before the change; it and five materialization matching tests pass after it. Ruff and the full uv run --extra milvus ty check src tests test-int pass. The initial just fast-check reached type checking but lacked the optional Milvus dependency; the complete type check passed once that dependency was supplied. Cloud's live materialization rerun is pending the dependency update.

Signed-off-by: phernandez <paul@basicmachines.co>
@phernandez
phernandez marked this pull request as ready for review September 8, 2026 00:12
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-08T00:15:25.569809Z d40cfd1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@phernandez
phernandez merged commit c50ed11 into main Sep 8, 2026
34 checks passed
@phernandez
phernandez deleted the codex-agent-note-source branch September 8, 2026 01:06
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