Scope Wall

loom-sprint-scaffoldsourcetypescript
Path: loom-sprint-scaffold/loom/src/memory/core/scope-wall.tsRelative: loom/src/memory/core/scope-wall.tsSubproject: loom-sprint-scaffoldCategory: other
Lines: 117Bytes: 3,264Imports: 3Exports: 1

Content Preview

  1. /**
  2. * H4.3 — Scope Wall.
  3. *
  4. * All reads/writes carry a required scope. Default read path filters to the
  5. * caller's scope. Cross-scope access ONLY via crossScopeRead() which logs a
  6. * structured record (caller + reason) and appends a trace event.
  7. *
  8. * Enforced by construction: scope is a required constructor parameter, not an
  9. * optional filter. No other code path may join across scopes.
  10. */
  11. import { newEventId } from "../../lib/ids";
  12. import { createLogger } from "../../lib/logger";
  13. import t