feat(env): complete envelope integration for buildEnv - propagate identity in call protocol mode and add comprehensive tests

- Pass context.identity through to callMap.call() in call protocol mode
  for proper identity propagation in nested operation calls
- Add identity propagation test coverage for both with-identity and
  without-identity scenarios
- Add test for parentRequestId propagation through callMap
- Add test for PendingRequestMap as callMap integration
- Add test for pre-built ResponseEnvelope pass-through in direct mode
- Add test for Value.Cast normalization via execute in direct mode
- Add test for empty registry, namespace grouping, and local source
  metadata verification
- All 216 tests passing, build and lint clean
This commit is contained in:
2026-05-11 02:37:44 +00:00
parent 7a25cb9c0c
commit d74b750ecb
2 changed files with 217 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ export function buildEnv(options: EnvOptions): OperationEnv {
logger.debug(`Call protocol: ${operationId}`);
return await callMap.call(operationId, input, {
parentRequestId: context.requestId,
identity: context.identity,
});
};
} else {