Scope Wall.Test

loom-sprint-scaffoldtesttypescript
Path: loom-sprint-scaffold/loom/tests/memory/scope-wall.test.tsRelative: loom/tests/memory/scope-wall.test.tsSubproject: loom-sprint-scaffoldCategory: tests
Lines: 266Bytes: 8,984Imports: 5Exports: 0has tests

Content Preview

  1. /**
  2. * ScopeWall tests (H4.3).
  3. *
  4. * Proves:
  5. * - Same-scope read works (constructor requires scope)
  6. * - Cross-scope without crossScopeRead impossible by API shape
  7. * - crossScopeRead logs caller + reason
  8. * - isAccessible works for same/different scope
  9. */
  10. import { describe, expect, test } from "bun:test";
  11. import { Database } from "bun:sqlite";
  12. import { ScopeWall } from "../../src/memory/core/scope-wall";
  13. import { FakeD1, FakeBlobStore, setupMemoryDb } from "./helpers";
  14. import type {