Q125: imports stream through a bounded window and refuse files over 1 GiB

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 20:17:28 -04:00
1 parent 7a9059fbea
commit 11cdc4af20
5 files changed
+131 -43

No files matched your search

+3 -3
View File
@@ -459,7 +459,7 @@ describe("domain services", () => {
connection.close();
});
test("imports files with checksum, scan labels, object refs, and workspace grants", () => {
test("imports files with checksum, scan labels, object refs, and workspace grants", async () => {
const connection = createConnection();
const organization = new OrganizationService(connection.db);
const snapshot = new SnapshotService(connection.db);
@@ -483,8 +483,8 @@ describe("domain services", () => {
goal: "Ship a verified control plane.",
});
});
const cleanFileId = fileService.importPath(orgId, cleanPath, null);
const blockedFileId = fileService.importPath(orgId, secretPath, null);
const cleanFileId = await fileService.importPath(orgId, cleanPath, null);
const blockedFileId = await fileService.importPath(orgId, secretPath, null);
const state = snapshot.load();
const cleanFile = state.files.find((file) => file.id === cleanFileId);