test(server): move the remaining server tests onto the memory contract (P1.5)
- Workspace sessions, fleet runs, agent groups, loops, the file indexer, external tool runs, chat and the health endpoint are checked against the memory store instead of .mind files. Assertions on mind-cache pins and releases go with the pins; the drain and cancellation checks stay. - Delete the sticky-erasure test (harvest import was removed) and the session-distillation test (distillation on workspace activation was removed). - The saved-history retry test checks the conversation only: the failed user turn is kept in workspace memory by design (#3).
This commit is contained in:
@@ -1105,7 +1105,9 @@ describe('persona acceptance prompt budget', () => {
|
||||
});
|
||||
expect(deniedRetry.statusCode).toBe(200);
|
||||
expect(capturedConfig).not.toBeNull();
|
||||
expect(JSON.stringify(capturedConfig)).not.toContain(failedMarker);
|
||||
// Saved history is denied: the failed pair stays out of the conversation.
|
||||
// (The failed user turn itself is in workspace memory by design, #3.)
|
||||
expect(JSON.stringify(capturedConfig!.messages)).not.toContain(failedMarker);
|
||||
|
||||
capturedConfig = null;
|
||||
const followUp = await injectWithAuth(server, {
|
||||
@@ -1121,7 +1123,7 @@ describe('persona acceptance prompt budget', () => {
|
||||
});
|
||||
expect(followUp.statusCode).toBe(200);
|
||||
expect(capturedConfig).not.toBeNull();
|
||||
expect(JSON.stringify(capturedConfig)).toContain(failedMarker);
|
||||
expect(JSON.stringify(capturedConfig!.messages)).toContain(failedMarker);
|
||||
});
|
||||
|
||||
it('does not retain a terminal command response for a saved-history-denied turn', async () => {
|
||||
|
||||
Reference in New Issue
Block a user