Files
rea/experiments/atomic-codemode/limits.mjs
T
782132cb58 fix(experiment): publish shared execution resource policy
Use one policy for executor defaults, MCP admission and help. Make timeout default/maximum explicit, omit Code Mode limits from direct help, and describe the independent switch facet.

Validate 73 shared tests, both actual MCP catalogs, rejection recovery, and real zlib Evidence access after bounded guest failures. Model results remain pinned to earlier discovery contracts.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
2026-10-16 16:22:38 +00:00

22 lines
746 B
JavaScript

// Shared application resource policy, independent of native wire formats.
export const NATIVE_OUTPUT_BYTES = 8 * 1024 * 1024;
export const MAX_BRIDGE_BYTES = 2 * 1024 * 1024;
// Aggregate selected bytes keep hex at 128 KiB, with headroom for provenance.
export const MAX_BYTE_BATCH_BYTES = 64 * 1024;
// Shared execution defaults/resource bounds and MCP timeout admission policy.
const executionWallMs = 120_000;
export const EXECUTION_LIMITS = Object.freeze({
execution_heap_mib: 64,
execution_stack_bytes: 512 * 1024,
execution_cpu_ms: 2000,
timeout_ms: Object.freeze({
minimum: 100,
maximum: executionWallMs,
default: executionWallMs,
}),
code_utf8_bytes: 32768,
output_utf8_bytes: 32768,
max_host_calls: 64,
});