mirror of
https://github.com/morluto/rea
synced 2026-10-28 23:11:11 -04:00
fix(javascript): bound semantic unknown retention at projection
Admit unknowns before canonical construction and provenance interning. Offer independent per-file and application capacities through CLI, Evidence and the owned analysis worker, and reject over-allocation during streamed decoding. Report examined omitted emission occurrences by family and reason without retaining discarded identities. Preserve omission-free graph identities and distinguish node truncation from overall partial coverage. Fixes #4797
This commit is contained in:
@@ -4,6 +4,7 @@ import type {
|
||||
JavaScriptSemanticGraphNode,
|
||||
JavaScriptSemanticGraphRelation,
|
||||
JavaScriptSemanticGraphUnknown,
|
||||
JavaScriptSemanticUnknownOmission,
|
||||
} from "./javascriptSemanticGraphSchemas.js";
|
||||
|
||||
/** File-local facts transported before binding them to the containing application graph. */
|
||||
@@ -13,6 +14,13 @@ export interface JavaScriptSemanticFileProjection {
|
||||
readonly nodes: readonly JavaScriptSemanticGraphNode[];
|
||||
readonly relations: readonly JavaScriptSemanticGraphRelation[];
|
||||
readonly unknowns: readonly JavaScriptSemanticGraphUnknown[];
|
||||
readonly omittedUnknownOccurrences?: readonly JavaScriptSemanticUnknownOmission[];
|
||||
readonly fingerprints: readonly JavaScriptSemanticFingerprint[];
|
||||
readonly truncated: boolean;
|
||||
readonly nodesTruncated: boolean;
|
||||
}
|
||||
|
||||
/** Independent retained capacities offered to one source projection. */
|
||||
export interface JavaScriptSemanticProjectionCapacity {
|
||||
readonly nodes: number;
|
||||
readonly unknowns: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user