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:
shumeiko.it
2026-10-24 12:50:23 +02:00
parent 74a4e55be0
commit 122b45990e
12 changed files with 274 additions and 785 deletions

View File

@@ -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 () => {