The flowchart depicts the interaction between an “Agent” and an “Environment,” which is enclosed within a large gray rectangular box. Starting from the top, an “Agent” sends an arrow to a light blue rectangular block labeled “Action.” From “Action,” an arrow points downwards into the “Environment” box to a rectangular block labeled “job underscore tobe underscore execute.” Below “job underscore tobe underscore execute,” an arrow points to a rectangular block labeled “identify existing jobs.” From “identify existing jobs,” three arrows branch downwards to three distinct rectangular blocks: “update job buffer” on the left, “update existing job timestamp” in the center-left, and “update mould underscore state” in the right. From “update job buffer,” an arrow points to “add new job,” which then has a red arrow pointing to “add new job to job underscore state.” From “update existing job timestamp,” an arrow points downward to “add new job to job underscore state,” which subsequently leads to “set new job timestamp,” “identify completed subtasks,” and “update job underscore state; delete completed.” Two red arrows from “update job underscore state; delete completed” point to “release manpower” and “release mould,” respectively. An arrow from “update job underscore state; delete completed” points downward to a green box labeled “job underscore state,” from which a green arrow loops back to “update existing job timestamp.” A red arrow from each “update existing job timestamp” and “add new job to job underscore state” are pointing to “update manpower pool,” which leads to “allocate manpower” that further leads to “release manpower.” An arrow from “release manpower” points downward to a green box “manpower,” from which a green arrow loops back to “update manpower pool.” A red arrow from “identify completed subtasks” is pointing to “release manpower.” From “update mould underscore state,” an arrow points downward to “allocate mould table,” which further leads to “release mould.” An arrow from “release mould” points downward to a green box labeled “num underscore remain underscore mould.” A green arrow from the “Action” box is pointing to a green box labeled “job underscore count,” which then leads to another green box “num underscore remain underscore job” at the bottom right. A green arrow from “num underscore remain underscore job” loops back to “update mould underscore state.” A downward-pointing blue arrow from each “manpower,” “job underscore state,” “num underscore remain underscore mould,” and “num underscore remain underscore job,” are leading to blue boxes labeled “num underscore manpower,” “State,” “num underscore mould,” and “num underscore job,” respectively. These blue boxes are located below the gray “Environment” box. The bottom of these blue boxes are connected via an arrow leading to “Action Masking” at the bottom left, which further connects to the “Agent.”Sharing content requires targeting cookies to be enabled. Please update your cookie preferences to use this feature.