Evaluator memo

The compiled-formula memo and the no-secret-scope fast path return what the plain evaluator returned.

21 checks in 2 files. Run: cd Typescript && npm run test:perf-fix. Source: Typescript/tests/

eval-compile-cache.test.ts11 checks

The compile memo is keyed on the trimmed text, holds no values, runs after the unsafeEval and grammar checks, is bounded and per kernel. resolveBranchScope without secret scopes equals the original walk and flips when a scope is declared.

perf-fix-kernel.test.ts10 checks

On dist, with the values 4.2.0 gives for the same scripts: formulas follow their inputs on memo hits, the memo is cleared at every secret epoch, the fast path flips at the first scope, scoped answers hold after hydrate and replay.

Last result: 21 passed, 0 failed. Run summary 2026-10-26