mirror of
https://github.com/morluto/rea.git
synced 2026-11-11 01:13:39 +00:00
fix(javascript): bound local getter-result expansion
Charge inner alias and branch work to the existing getter query budget before allocating queued states. Widen local suffixes during fallback so a single getter cannot reintroduce path permutations. Validation: two new class/object controls fail on the baseline; 411 tests across eight affected files pass. Public CLI baseline/candidate controls preserve unrelated observations and expose intended partial resource coverage. Typecheck/lint, docs and formatting pass. Diagnostic costs retained; no speed or token reduction claim. This fixes a separate getter gap and does not resolve the getter-free Qodo input. Refs #3839.
This commit is contained in:
1 parent
d5be402fb3
commit
0c7b6d834a
4 files changed
+83
-20
No files matched your search
@@ -7,7 +7,7 @@ import type {
|
||||
export const SEMANTIC_PRIMITIVE_CANDIDATE_LIMIT = 256;
|
||||
/** Maximum active expression nesting during inert semantic evaluation. */
|
||||
export const SEMANTIC_EXPRESSION_DEPTH_LIMIT = 256;
|
||||
/** Distinct getter, receiver and path states retained in one precise query. */
|
||||
/** Getter jobs and local result work retained in one precise query. */
|
||||
export const SEMANTIC_GETTER_EXPANSION_LIMIT = 512;
|
||||
/** Bound normalized strings and transient keys independently of transport limits. */
|
||||
export const SEMANTIC_PRIMITIVE_JSON_BYTES_LIMIT = 1_048_576;
|
||||
@@ -20,7 +20,7 @@ const RESOURCE_LIMIT_REASON: Record<JavaScriptSemanticResourceLimit, string> = {
|
||||
"expression-depth":
|
||||
"Semantic expression depth budget exceeded (maximum 256 nested expressions).",
|
||||
"getter-expansion":
|
||||
"Getter expansion was conservatively bounded (maximum 512 distinct states or a growing receiver cycle).",
|
||||
"Getter expansion was conservatively bounded (maximum 512 scheduled states or a growing receiver cycle).",
|
||||
};
|
||||
|
||||
/** Check UTF-16 length against worst-case JSON escaping without flattening. */
|
||||
|
||||
Reference in new issue
Block a user