test(provenance): cover the enforced branch of the agent memory surface - #6497
Conversation
The agent's stored-memory read was the only durable-provenance check site with no test of its enforced path, and the only one whose control flow was restructured by hand. Pin both directions against the shape that failed in production: an unrecorded memory reads through and reports, and the same memory refuses once the memory surface is closed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Adds two cases for Reviewed by Cursor Bugbot for commit c380918. Configure here. |
Greptile SummaryAdds focused test coverage for stored agent memories whose secret provenance is unknown.
Confidence Score: 5/5The PR appears safe to merge because the added tests accurately cover both provenance-enforcement states. The module mock supplies the runtime exports consumed by the memory handler, test state is reset between cases, and the enforced case reaches the intended rejection branch without another viable earlier failure.
|
| Filename | Overview |
|---|---|
| apps/sim/executor/handlers/agent/memory.test.ts | The added mocks and assertions accurately exercise both open and enforced branches for unknown stored-memory provenance without introducing an actionable issue. |
Reviews (1): Last reviewed commit: "test(provenance): cover the enforced bra..." | Re-trigger Greptile
Summary
Add test for memory surface.
Type of Change
Testing
N/A
Checklist