Expand description
VAPP-103: the input LIMITS (catalog/limits.json, generated as
LIMIT_NAMES/LIMIT_VALUES): an agent’s input past one is refused with
an issue, never worked on. Mirrors src/limits.ts; the issue messages
are byte-identical in every core.
Constants§
- MAX_
COMPONENTS - Nodes the reducer places in one surface’s tree (template nodes included), and nodes one layout build holds: the reduced tree’s plus every template item’s subtree.
- MAX_
DEPTH - Nesting levels of the REDUCED tree, after macro expansion (the root =
1): every reduced tree stays inside serde_json’s 128-level recursion
limit (2 JSON levels per node). The stack is never the bound: the
recursive passes grow it on the heap (
crate::roomy/crate::deep;tests/robustness.rslays a 48-level surface out on a 128 KB thread). - MAX_
MESSAGE_ BYTES - One server message as UTF-8 JSON.
- MAX_
POINTER_ BYTES - A data pointer’s length in UTF-8 bytes.
- MAX_
POINTER_ SEGMENTS - A data pointer’s token count.
- MAX_
TEMPLATE_ ITEMS - Template items one surface instantiates.
- USED_
TWICE_ ISSUE - An id placed a second time (two parents, or one parent twice).
Functions§
- components_
issue - depth_
issue - limit
- A limit by name (
maxDepth,maxMessageBytes, …). - message_
bytes_ issue - template_
items_ issue