really fix unit test scope now (undo some of the previous changes to
AgentValidatorSecondPass and implement
AgentValidator.resolve(UserSpecOrModuleCall) based on the old QueryTool
implementation)