Structural boundaries and scope
This page is a theory note. It expands the topic in short chapters and defines terminology without duplicating the formal specification documents.
The diagram has a transparent background and is intended to be read together with the caption and the sections below.
Related wiki pages: VM, event stream, VSA, bounded closure, consistency contract.
Related specs: DS001, DS007, DS010.
Overview
Correctness claims require scope. Real corpora contain incompatible sources, hypothetical statements, and quoted passages. If the system treats all statements as globally active, bounded closure either explodes in contradictions or becomes meaningless because conflicts are ignored.
Boundaries as signals
Structural boundaries include headings, paragraphs, lists, quotes, definitions, and procedural steps. In multimodal inputs, boundaries also include temporal segments and scene changes. VSAVM treats these separators as explicit events so the VM can localize inference without guessing.
Separators are not only for training; they are required for correctness. Transitive closure and contradiction detection are infeasible without context and scope. Separators define what belongs to the same paragraph or section and what belongs to a different chapter, enabling the system to maintain local theories without collapsing all knowledge into a single inconsistent base.
Implementation snapshot (current code)
Scope derivation is intentionally structural and enforced by the core identifier layer:
- Events carry
contextPath(array of strings) whenever an ingest pipeline can provide stable structure (DS007). - DS010 separator detection can infer boundary candidates from similarity gradients in a modality-agnostic VSA embedding (
detectStructuralSeparators). - Scope IDs are created structurally using
createStructuralScopeId(events, position, separators):- If an event has
contextPath, it becomes the scope path. - Otherwise a fallback path is built from the strongest detected separators.
- If an event has
- Hardcoded “domain scopes” are rejected:
createScopeIdthrows if the path begins with['domain', ...]. - Containment queries are prefix-based: a shorter path selects a larger region (see
scopeContains). - Facts are scoped: contradiction checks are only meaningful inside a scope.
Scope-aware correctness
A contradiction is defined canonically as the same fact identifier appearing with opposing polarity inside the same scope. Structural separators define that scope, and the VM carries scope through execution. This enables local theories that remain coherent even when global reconciliation is not possible under budget.
This structural scoping is the minimal requirement for a practical non-contradiction promise when the corpus is imperfect or contains conflicting sources.
Practical outcomes
Scope enables conditional reasoning across sources. A claim can be robust within a scope while being conditional across scopes. This makes the system useful under real-world inconsistency without abandoning the non-contradiction promise.
References
Scope (computer science) (Wikipedia) Context (computing) (Wikipedia) Consistency (Wikipedia)