mirror of
https://github.com/morluto/rea.git
synced 2026-10-29 02:45:58 +00: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:
1 parent
926e18b3fc
commit
f4322b15ed
34 files changed
+892
-293
No files matched your search
@@ -7,13 +7,22 @@ it("keeps omitted operational choices absent and validates explicit semantic bud
|
||||
javaScriptAnalysisResourceControlsSchema.parse({
|
||||
max_semantic_nodes: 750_000,
|
||||
max_semantic_nodes_per_file: 700_000,
|
||||
max_semantic_unknowns: 500_000,
|
||||
max_semantic_unknowns_per_file: 400_000,
|
||||
}),
|
||||
).toEqual({
|
||||
max_semantic_nodes: 750_000,
|
||||
max_semantic_nodes_per_file: 700_000,
|
||||
max_semantic_unknowns: 500_000,
|
||||
max_semantic_unknowns_per_file: 400_000,
|
||||
});
|
||||
for (const value of [0, -1, 1.5, 1_000_001, Infinity, NaN]) {
|
||||
for (const key of ["max_semantic_nodes", "max_semantic_nodes_per_file"])
|
||||
for (const key of [
|
||||
"max_semantic_nodes",
|
||||
"max_semantic_nodes_per_file",
|
||||
"max_semantic_unknowns",
|
||||
"max_semantic_unknowns_per_file",
|
||||
])
|
||||
expect(
|
||||
javaScriptAnalysisResourceControlsSchema.safeParse({ [key]: value })
|
||||
.success,
|
||||
|
||||
Reference in new issue
Block a user