WFCodeImpl.evaluate(): Build exchange format directly, dropping fake-Z7 round-trip

WFCodeImpl.evaluate() previously synthesised a Z7 wrapper around the implementation solely to feed convertWrappedZObjectToExchangeFormat(), which then walked back out through the same wrapper (Z7K1.Z8K4.K1.Z14K3.Z16K2.Z6K1, findFunctionIdentity on the same synthesised Z8, ...) to produce a flat exchange-format request. The Z8K1/Z8K3 slots on the fake Z8 were never read, and the fullImplementation.asZObject() deep materialisation that fed the round-trip was pure overhead.

Switch to buildExchangeFormatDirect() (landed in function-schemata 09acb0e), which accepts orchestrator-native inputs (functionName, codingLanguage, codeString, returnTypeJSON, argumentEntries) and emits a bit-identical wire request. The expectedRequest deepEqual canaries in test/src/transpilation/evaluatedTests.js exercise both the on-wiki and the bare-Z9-return-type code paths and pass unchanged, confirming no wire drift.

Side cleanup: drop the always-unused originalFunctionCall parameter from Evaluator.evaluate / evaluate_ / evaluateReentrant_ (and the stale "used for type minimization" JSDoc), and remove convertWrappedZObjectToCurrentVersionedBinary, which had no remaining consumers. EvaluatorTest's reentrant-dispatch test loses its now-extra positional argument.

Bug: T426411

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Closes T426411

Merge request reports

Loading