Properties of dynamic executor
Report of dynamic test functions execution
contracts/common.md#principled-implementation Loose mode records test errors and continues, returning them in execution records. Discovery, module import and completion-listener failures are outside that test-error policy and reject the run.
contracts/common.md#clear-and-simple-design A one-line binding of the shared pipeline with the loose flag.
Prepare dynamic executor in loose mode.
Loose mode records test failures and continues with subsequent tests. Discovery, import and completion-listener errors still reject the run. assert rejects on a test failure after active tasks settle.
Processing cost: The shared executor discovers modules once, dispatches each queue index once and walks each admitted export; this entry only selects the failure policy.
Reuse: Discovery and module loading are shared by the tests of one run. New runs rediscover files; Node owns module caching, so editing an already imported module does not promise reload in the same process.
Resource ownership: One run owns the discovered module queue, visited directory set and report. At most the requested number of module tasks are active, all are awaited before success or strict rejection, and returned records transfer to the caller. Listener failure also settles workers; cancellation and unloading Node cached modules are not provided.