Appearance
Runtime Execution Map
This page describes the verified execution role of NGB.Runtime.
Verified source anchors
text
NGB.Runtime/NGB.Runtime.csproj
NGB.Runtime/Documents/DocumentService.cs
NGB.Runtime/Reporting/ReportEngine.csRuntime in one sentence
NGB.Runtime is the orchestration center that turns platform metadata/definitions plus persistence abstractions into real business operations.
Dependency shape
The runtime project file directly confirms dependencies on:
NGB.AccountingNGB.Application.AbstractionsNGB.ContractsNGB.DefinitionsNGB.OperationalRegistersNGB.ReferenceRegistersNGB.PersistenceNGB.Metadata
This is the right shape for a runtime core:
- it depends on business engines and abstractions;
- it does not depend on a specific provider package like PostgreSQL;
- provider-specific behavior is expected to sit below runtime.
Document execution center
Verified file:
text
NGB.Runtime/Documents/DocumentService.csWhat the file explicitly centralizes
From constructor dependencies and public methods, DocumentService is the universal runtime façade for:
- document metadata lookup;
- list/page queries;
- single-document reads;
- cross-type lookups by id/query;
- draft create/update/delete;
- post / unpost / repost;
- mark / unmark for deletion;
- derivation actions and draft derivation;
- relationship graph building;
- effects loading;
- payload validation and part validation;
- reference payload enrichment;
- audit write coordination.
Document execution map
Important architectural consequence
This file proves that document behavior in NGB is not split randomly across controllers, repositories, and handlers. The runtime service acts as the main coordination surface.
That is one of the core architectural strengths of the platform.
Reporting execution center
Verified file:
text
NGB.Runtime/Reporting/ReportEngine.csWhat the file explicitly centralizes
From constructor dependencies and method flow, ReportEngine owns:
- definition resolution;
- layout validation;
- execution planning;
- executor invocation;
- sheet building;
- variant resolution;
- filter scope expansion;
- interactive field enrichment;
- rendered-sheet snapshot caching/paging;
- export-sheet execution path.
Reporting execution map
What is especially important in this file
1. Runtime owns semantics, not SQL
The engine decides:
- the effective request;
- the runtime model;
- the plan;
- whether grouped paging must use rendered-sheet snapshots;
- how diagnostics are surfaced.
2. Runtime owns interactive enrichment
The file explicitly enriches document-related report fields with display text and support metadata for UI navigation.
3. Runtime owns composable grouped paging behavior
The file has explicit snapshot-based logic for grouped/pivoted composable reports, which is a higher-level concern than raw SQL paging.
Honest boundary statement
This page does not claim that only these two files matter in runtime. It claims that these two files are verified central execution anchors from which the runtime role can be documented confidently.
Recommended reading order
NGB.Runtime/NGB.Runtime.csprojNGB.Runtime/Documents/DocumentService.csNGB.Runtime/Reporting/ReportEngine.cs