Currently upon editing a node has workflow current state displayed on the node edit page. This information will not be available on node_load or entity load. Since the current workflow or content moderation state information will be on latest revision of that content. All just you need to do is to load the latest revision of the content.
The Composer is a tool for dependency management in PHP. It manages to Install and update libraries that project managers. This session elaborate about how composer is used in Drupal 8. In Drupal Composer is inspired from node's NPM and ruby's bundler. Composer manages packages/libraries per project on the particular directory (by Default directory Vendor), so it has more features then Package managers.