Scope Wall.Test
Path:
loom-sprint-scaffold/loom/tests/memory/scope-wall.test.tsRelative: loom/tests/memory/scope-wall.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 266Bytes: 8,984Imports: 5Exports: 0has tests
Content Preview
- /**
- * ScopeWall tests (H4.3).
- *
- * Proves:
- * - Same-scope read works (constructor requires scope)
- * - Cross-scope without crossScopeRead impossible by API shape
- * - crossScopeRead logs caller + reason
- * - isAccessible works for same/different scope
- */
- import { describe, expect, test } from "bun:test";
- import { Database } from "bun:sqlite";
- import { ScopeWall } from "../../src/memory/core/scope-wall";
- import { FakeD1, FakeBlobStore, setupMemoryDb } from "./helpers";
- import type {