Frontmatter
| id | 9746 |
| title | Isolate AI unit test artifacts to local tmp directory |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Apr 6, 2026, 9:58 PM |
| updatedAt | Apr 6, 2026, 10:00 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9746 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 6, 2026, 10:00 PM |
Isolate AI unit test artifacts to local tmp directory
Closedbugai

Description
Currently, Playwright unit tests for the AI memory-core components (
DreamService,FileSystemIngestor,GraphService, etc.) are leaking artifacts such as SQLite test databases and mock markdown files into theos.tmpdir()and occasionally the true repository root if path resolution fails.This is causing file pollution during local test executions and potential test-suite fragility.
Required Changes
aiConfigoverrides (e.g.,testDbPath,mockFsRoot,handoffFilePath) to map exclusively to<rootDir>/tmp/.beforeAll/beforeEach) to automaticallyfs.mkdirSyncthetmpfolder if it doesn't already exist.tmpduringafterAllchecks.