<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Marielle Debeurre on Medium]]></title>
        <description><![CDATA[Stories by Marielle Debeurre on Medium]]></description>
        <link>https://medium.com/@mdebeurr?source=rss-a54c6806c238------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6XLrOuce0DUiZgsSpG1LQQ.jpeg</url>
            <title>Stories by Marielle Debeurre on Medium</title>
            <link>https://medium.com/@mdebeurr?source=rss-a54c6806c238------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:26:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mdebeurr/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Modeling remediation of defects in industry as an AI-enhanced queueing optimization problem…]]></title>
            <link>https://medium.com/@mdebeurr/modeling-remediation-of-defects-in-industry-as-an-ai-enhanced-queueing-optimization-problem-0bfddf2ee771?source=rss-a54c6806c238------2</link>
            <guid isPermaLink="false">https://medium.com/p/0bfddf2ee771</guid>
            <category><![CDATA[identity-management]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Marielle Debeurre]]></dc:creator>
            <pubDate>Fri, 05 Dec 2025 10:24:24 GMT</pubDate>
            <atom:updated>2025-12-05T10:24:24.912Z</atom:updated>
            <content:encoded><![CDATA[<h3>Modeling remediation of defects in industry as an AI-enhanced queueing optimization problem: Building histories from log data</h3><h4>In industrial contexts, defect remediation is the process by which defects, or undesirable conditions or events that require specific treatment to be resolved, are corrected. In our <a href="https://medium.com/@mdebeurr/modeling-remediation-of-defects-in-industry-as-an-ai-enhanced-queueing-optimization-problem-a389f51d784d">previous article</a>, we introduced a queueing model for forecasting and optimizing the defect remediation process. In this work, we show how the model can be enhanced and customized to an organization’s own historical data, and set the stage for introducing agentic AI to accelerate defect remediation optimization. The model is available on <a href="https://github.com/radiantlogicinc/estimating_gen_mc_simulation">GitHub</a>.</h4><p>This article represents part 2 of a series on AI-enhanced defect remediation optimization. For part 1, click <a href="https://medium.com/@mdebeurr/modeling-remediation-of-defects-in-industry-as-an-ai-enhanced-queueing-optimization-problem-a389f51d784d">here</a>.</p><h3>1 Introduction</h3><p>In industry, <em>defects</em> are considered as any risky or undesirable events or circumstances requiring specific and dedicated treatment to resolve. Examples of defects might include warning or failure detections in mechanical systems, contradictory or missing contact information in a software tracking customer profiles or anomalous AI-reviewed X-ray scans awaiting expert review. The process of correcting such defects is known in industry as <em>defect remediation</em>. In previous work, we introduced a queueing system model for forecasting the remediation of defects in industrial settings [1].</p><p>Though generic to many industries, the model was developed with a focus on identity and access management (IAM), a sub-field of cybersecurity, where defects represent situations of heightened vulnerability that violate standard cybersecurity good practices. Security in IAM revolves around protection of the <em>identity</em>, a collective term used to describe the accounts and accesses granted to each individual in an enterprise. Common vulnerabilities in IAM that pose a risk to the organization can be classified into <em>defect types</em> (also called <em>control types</em>), some examples of which include:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vkk5zPvbcxIZ4Dtd0CnueA.png" /><figcaption>Table 1: Example defect control types in IAM.</figcaption></figure><p>Note that the control types of Table 1 are specific to <a href="https://www.radiantlogic.com/">Radiant Logic</a> (see <strong>Acknowledgments</strong>), but the vulnerabilities are general to IAM.</p><p>The model of [1] forecasts the evolution of the defect remediation process based on a system of priority and processing queues representing the remediation teams or agents and available remediation resources, as well as the incidence and remediation rates for each defect type. By varying the input parameters to the simulation, we can optimize the remediation forecast to suit the needs of any organization. In [1], the black-box optimization problem was based on Monte Carlo-style repeated sampling of the defect generation and remediation time histograms, but these histograms were randomly generated (as skew-normal distributions based on the maximum value and skewness coefficient input parameters). In this work, we seek to extend the concepts of [1] while rooting the remediation forecast in the organization’s own historical data.</p><p>Consider the case of an organization that has been manually executing defect remediation on identified defects. We consider that, throughout the defect remediation process, every defect goes through a certain lifecycle, represented as a series of status changes from <em>new</em> to <em>closed</em>. Collecting the status changes in the form of remediation logs, we show in this article how we can construct the generation and remediation histograms used in the backlog predictions of [1]. In other words, it will be shown in this work how an organization’s <em>own historical data</em> is used to inform the process of remediation optimization. In this way, defect remediation optimization can be customized to each situation and each organization as the model is directly supplied by the organization’s own history in carrying out the remediation process. We close this work with a discussion on future integration with an LLM-based artificial intelligence (AI) agent, which is the topic of part 3 of this 3-part series on AI-enhanced defect remediation optimization.</p><h3>2 Problem description</h3><p>In this problem, we seek to build a statistical model for the defect lifecycle based on empirical log data in order to better inform predictions of the defect remediation process. In the queueing optimization problem of [1], a black box generalized Monte Carlo model for predicting the defect remediation process was built around repeated sampling of defect generation and remediation time histograms. The histograms in that problem, however, were defined as input parameters to the simulation as normalized skew-normal distributions. As a next step in the model, we seek to establish these distributions from empirical data, <em>i.e.</em> compute the incoming rate and remediation times of defects directly from historical log data tracking the status changes throughout the defects’ lifetimes. A system diagram for the empirical model is shown in Fig. 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EGxjqTgqUI4H661xOsLo7w.png" /><figcaption>Figure 1: System diagram for the empirical model and the classes <strong>DefectType</strong>, <strong>LogEntry</strong> and <strong>Build Histories</strong>. The initialization, Delta table simulation, and configuration stages are shaded in green, blue and orange, respectively.</figcaption></figure><h4>2.1 Problem set-up</h4><p>The heart of the empirical model lies in the availability of historical remediation log data. The longer the historical log data is tracked, the more reflective the histograms become of any real-life trends hidden within it, and the more likely the forecasted simulations based on these histograms will match reality.</p><p><strong>Format of historical log data<br></strong>During remediation, we consider that all defects follow a lifecycle process that can be modeled as a series of state or status changes in the pattern <em>new</em> → <em>assigned</em> → <em>in-progress</em> → <em>closed</em>, where:</p><ul><li><em>new</em> indicates when a defect is first detected,</li><li><em>assigned </em>indicates that a defect has been assigned to a remediation agent,</li><li><em>in-progress</em> indicates that the assigned remediation agent has begun remediation work on the defect, and</li><li><em>closed </em>indicates that the defect has been remediated and closed out.</li></ul><p>We consider that as defect remediation is being carried out, the status changes of each defect are tracked in the form of historical remediation logs, where each row in the log corresponds to a state change and the timestamp at which the change occurred, across all defects. An example of the remediation logs is shown in Table 2. It is on these historical logs that the entire empirical model is built.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tSA4Wy3RD7YEB1DVN9EytQ.png" /><figcaption>Table 2: Example remediation log tracking the status changes of each defect throughout its lifecycle. Bolded rows indicate the full lifecycle of a single defect (Defect ID 132).</figcaption></figure><p><strong>Empirical model<br></strong>The empirical model as shown in Fig. 1 is built around a three-stage progression: an initialization stage, a Delta table computation stage and a configuration stage, where the updated historical data is configured in <em>JSON </em>files for integration with the forecasting model of [1] and future agentic AI (see section 4).</p><p>In the initialization stage, the log data to process and any stored histories (from already-processed log data) are imported into the model. The imported log data is used to compute the time deltas between each state change of the defect lifecycle for each defect in the log data: Δ <em>new</em> → <em>assigned</em>, Δ <em>assigned</em> → <em>in-progress</em>, Δ <em>in-progress</em> → <em>closed</em>, Δ <em>new</em> → <em>closed — </em>these measured time deltas are collected into the so-called <em>Delta table</em>. The values contained in the Delta table are then appended to the stored histories, from which updated versions of the aforementioned <em>JSON</em> integration files are extracted.</p><h4>2.2 Simulation input and output parameters</h4><p><strong>Input parameters<br></strong>To build the empirical model, only the path to the log data is needed as an input parameter:</p><ul><li><em>path_logs: </em>the path to the log data, stored as a <em>JSON</em> or <em>CSV</em> file</li></ul><p><strong>Output parameters: storing the historical data<br></strong>As discussed previously, the advantage of empirical data serving as the foundation for a forecasting model lies principally in continuous model refinement. Predictions naturally improve in accuracy as more historical data becomes available. For this reason, it is very important that the historical outputs of the empirical model be stored and updated whenever new log data is processed.</p><p>Historical data is stored as <em>JSON</em> files in the <em>simulations</em> folder, described in further detail in Appendix A.</p><h4>2.3 Interpreting the results</h4><p>The empirical model is designed as the central backbone from which other technologies, notably the remediation forecasts of [1] and future agentic behavior, are fed. Three important elements are updated each time the empirical model is run, described below.</p><p><strong>Delta table and timeline figures<br></strong>The first element updated by the empirical model is the Delta table introduced in section 2.1. The Delta table is updated for each control type each time log data is processed. Using the information stored in it, the evolution of the time deltas per defect type can also be tracked, represented graphically as <em>timeline figures</em>. These timeline figures are useful in uncovering patterns (improvements, regressions and anomalies) in the defect remediation process, and furthermore provide a basis for measuring performance <em>according to a sliding window</em>. Averages across the past day, week, month, year, etc., are readily computed from the timeline histories, and anomalous or undesirable events can be highlighted or filtered out according to the sliding window across which the averages are calculated.</p><p>Delta table and timeline figure examples are available in Table 3 and Appendix B, respectively.</p><p><strong>Generation and remediation histograms with <em>queueing_build<br></em></strong>The second element addressed in the empirical model lies in updating the generation and remediation histograms used to build defect backlog forecasts. The generation histograms are built up for each defect type based on the rates of incoming defects in the log data — stored in <em>incoming_dict</em> in Fig. 1. The remediation histograms governing total remediation time per defect — or the full length of the defect lifecycle from <em>new</em> to <em>closed</em> — are likewise built up from the Δ <em>new</em> → <em>closed</em> values stored in the Delta table.</p><p>In the model, the generation and remediation histograms are updated through a function called <em>queueing_build </em>(orange-shaded region in Fig. 1).</p><p><strong>Setting up for agentic behavior with <em>fastworkflow_build<br></em></strong>The final element produced by the empirical model is a setup for integration with generative AI and future agentic behavior with the technology <a href="https://github.com/radiantlogicinc/fastworkflow"><em>fastWorkflow</em></a> [2–4]. In a process similar to <em>queueing_build</em>, the function <em>fastworkflow_build</em> (orange-shaded region in Fig. 1) compiles data from the Delta table, timeline figures, <em>incoming_dict</em> and<em> outgoing_dict</em> into a <em>JSON</em> file structured for future interaction with an AI agent (see section 4.1). In particular, the sliding-window averages mentioned above are computed for the time deltas between state changes as well as for the generated and remediated defects. More details on integration with <em>fastWorkflow</em> are provided in section 4.</p><h3>3 Experiments</h3><p>We now turn to illustrating the functionality described in section 2 with a tangible example. Section 3.1 introduces the process of updating the Delta table and empirical generation and remediation histograms based on the information contained in the historical logs. Then, an updated prediction of the defect backlog <em>rooted in the empirical generation and remediation histograms</em> is presented in section 3.2.</p><p>Previously, generic names for the defect types to simulate were used for the sake of generalizability; in what follows, we substitute these for IAM-specific control types as introduced in section 1.</p><h4>3.1 Building histories from empirical data</h4><p>Recall from sections 2.2 and 2.3 that the Delta table, empirical generation and remediation histograms and <em>fastWorkflow</em> integration file are directly updated with the historical log data stored at <em>path_logs</em>. Therefore, to run the empirical model, only this input parameter is needed:</p><pre>python queueless_main.py <br>--path_logs &#39;defectRemediation_log_simulation_vPrototype_v2.csv&#39;</pre><p>The main body of the model (<em>delta_table_simulation() </em>in Fig. 1) builds the Delta table, an example of which is shown in Table 3 for the first few defects in the log data file (available on GitHub). Timeline figures tracking the daily evolution of the time delta averages are likewise updated across all control types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*acXXcOyF2nLXWzUnLm1qTg.png" /><figcaption>Table 3: First rows of the Delta table computed from the remediation log located <a href="https://github.com/radiantlogicinc/estimating_gen_mc_simulation/blob/remediation-plan/queueless-MC/defectRemediation_log_simulation_vPrototype_v2.csv">here</a>. Note that the columns <strong>Δ <em>new</em> → <em>c</em>losed</strong><em> and </em><strong><em>Date closed</em></strong><em> have been omitted to save space.</em></figcaption></figure><p>Next, <em>queueing_build</em> and <em>fastworkflow_build</em> directly update the generation and remediation distributions and <em>fastWorkflow</em> integration file, respectively; no extra function or file must be run. The updated empirical model is ready to make backlog predictions using the model of [1] and answer common questions through a <em>fastWorkflow</em>-enabled app (see section 4).</p><p>The empirical generation and remediation histograms of this example are shown as contoured outlines in Fig. 3.</p><h4>3.2 Using empirical histograms for enhanced queueing system predictions</h4><p>Now that the empirical generation and remediation histograms have been updated, backlog forecasts with the Monte Carlo-based model of [1] are easily performed. Here, we run a defect backlog prediction for a single defect type, ACC03, with the same input parameters of [1]:</p><pre>python queueing_main.py <br>--defect_labels &#39;ACC03&#39; --defect_priority &#39;11&#39; --initial_backlogs &#39;40&#39; <br>--t_end 50 --resources 10 --resources_qmax 2 --trials 5</pre><p>Notice that the parameters governing the generation and remediation distributions in [1] (<em>maxValue_generation</em>, <em>maxValue_remediation</em>, <em>skewness_generation</em> and <em>skewness_remediation</em>) are missing from the input parameters of [1]. With the empirical model, they are no longer necessary, as the Monte Carlo sampling of defect incidence and remediation time is <em>taken directly from the empirical generation and remediation histograms</em>, respectively, updated in the previous step. As time goes on and more historical log data is processed, backlog predictions only increase in their relevance. The forecast for the evolution of ACCO3 defects in the next 50 hours is shown in Fig. 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SCmfVnVAfemcBD7bFEvHxw.gif" /><figcaption>Figure 2: Animation of the ACC03 backlog prediction of section 3.2. Recalling the “Get clean, Stay clean” model of [1], areas where the backlog is approximately in the “Get clean” phase are colored in red; areas where the backlog is approximately in the “Stay clean” phase in blue. Each dotted trendline represents one simulation, with the box plot mapping the average, maximum and minimum values across all simulations.</figcaption></figure><p>The generation and remediation histograms used in the Monte Carlo prediction are shown in Fig. 3. Note in particular the shape of the generation rate histogram compared with that of [1]; here, the distribution is mostly concentrated at 0 incoming hourly ACC03 defects. This trend is in fact more reflective of reality than a generic skew-normal distribution like that of [1], as very often the number of <em>new</em> defects of a certain control type <em>detected</em> <em>each hour</em> is 0. As more empirical data is tracked, these histograms are increasingly built up to reflect historical remediation trends.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vLlqb6suUzO-liyglpG2mA.png" /><figcaption>Figure 3: Empirical and reconstructed histograms for the number of incoming hourly ACC03 defects (red) and the corresponding remediation times (blue) in the simulation of section 3.2.</figcaption></figure><h3>4 Towards an AI agent for planning defect remediation</h3><p>In the previous work, we emphasized the capability of artificial intelligence— in particular generative AI through natural language interactions with large language models (LLMs) — in enhancing the defect remediation experience through question-answering leading to informed actionable insights. The discussion is extended in this work to begin to bridge the gap between simple question-answering and agentic AI capable of optimizing defect remediation planification and execution on its own.</p><p>In the next sections, we introduce the foundations of the LLM-based AI agent accelerated with the technology <em>fastWorkflow </em>[2–4]. We focus here on preparing the results of the empirical model for integration with the AI agent; building of the agent with <em>fastWorkflow</em> will be the subject of the next article in the series.</p><h4>4.1 Answering questions with <em>fastWorkflow</em></h4><p>In [1], we indicated the importance of integrating a large language model into the backlog forecasts in order to answer questions about the data. Two categories of questions were introduced in [1]; Category 1 questions represented those whose answers were directly available in the remediation forecast, such as:</p><blockquote>“How long on average is a defect waiting in the backlog before beginning remediation?”</blockquote><p>Category 2 questions, in contrast, represented those that required multiple simulations to answer, such as:</p><blockquote>“If I assign 5 remediation teams instead of 10, what is the impact on the remediation effort?”</blockquote><p>In this section, we address enabling the former based on the results of the empirical model and any backlog predictions rooted in them.</p><p>In section 2.3, we described how historical trends are compiled and stored in a <em>JSON</em> file with <em>fastworkflow_build</em>, formatted for easy integration with a <em>fastWorkflow</em> application. At the time of this article, the main results stored in the file include the time deltas between state changes as well as the generated and remediated defects (per hour and per day) averaged across a variable time window (currently ‘day’, ‘month’ and ‘all time’ are implemented) for each control type. From the natural language inputs of the user, the <em>fastWorkflow</em>-enabled AI identifies the context, intent of the user and relevant parameters needed to execute the appropriate command in order to respond to the user’s question [2–4].</p><p>As an example, suppose a user wishes to learn about recent remediation trends restricted to a certain defect type. The user begins a session with the <em>fastWorkflow</em>-enabled application <em>defect_remediation_app</em> and types the following input:</p><blockquote>“How many ACC03 defects were generated yesterday?”</blockquote><p>From this prompt, the application identifies multiple elements: the user is seeking information on the number of generated defects per day of the specific control type ACC03 over a time window of the past day. The application extracts the identified relevant parameters <em>control_type = ‘ACC03’</em> and <em>time_span = ‘day’</em>, and executes the relevant command <em>generated_per_day</em>. The command <em>generated_per_day</em> uses the stored parameter values to compute the answer to the user’s initial query based on the results of <em>fastworkflow_build</em>:</p><blockquote>&gt;&gt; Yesterday, more than 100 ACC03 defects were generated.</blockquote><p>The same approach is readily adopted for answering questions on a remediation forecast simulation [1]. In this way, an interaction between the user and <em>defect_remediation_app</em> enables efficient question-answering <em>always rooted in the client’s own up-to-date historical data</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cdoNHlpBHzt2KJLpJ_0pKg.gif" /><figcaption>Figure 4: A preview of the <strong>fastWorkflow</strong>-enabled <strong>defect_remediation_app</strong> mapping natural language to data contained in <strong>fastworkflow_df</strong>.</figcaption></figure><h4>4.2 Defect remediation optimization with fastWorkflow</h4><p>Though useful, question-answering does not make an AI agentic, the nature of an AI agent being its ability to automate more complex tasks using the tools at its disposal. Such behavior in the context of defect remediation might include running and updating defect backlog predictions as described in [1] in order to optimize the forecast in a certain direction. Recall the category 2 question of the previous section:</p><blockquote>“If I assign 5 remediation teams instead of 10, what is the impact on the remediation effort?”</blockquote><p>From this input, the AI agent identifies the relevant context and parameters: the user seeks to compare two backlog forecasts based on the presence of 5 versus 10 remediation agents. The AI agent updates the relevant input parameters — in this case replacing <em>resources = 10</em> with <em>resources = 5</em> [1]— and initiates a new simulation, which is returned to the user in response to their initial prompt. The user is then free to compare the two backlog forecasts and continue the optimization process with the assistance of the AI agent until a satisfactory result is achieved. A visual representation of this iterative optimization process is shown in Fig. 5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SWliGjRhcfq50mhVz_S-Tg.png" /><figcaption>Figure 5: Schematic of the<strong> fastWorkflow</strong>-enabled agentic <strong>defect_remediation_app</strong>. The AI agent should be capable of answering questions on current and forecasted data and trends, as well as iterating over defect backlog forecasts based on user feedback, ultimately returning an optimized remediation plan.</figcaption></figure><p>In summary, based purely on natural language interactions with the user, the AI agent <em>defect_remediation_app</em> would be capable of:</p><ul><li>answering questions on historical remediation trends, computed from the organization’s own collected historical log data,</li><li>setting up and executing the defect backlog forecasts of [1], iterating if necessary to optimize the defect remediation process, and</li><li>answering questions on trends forecasted in the defect backlog predictions,</li></ul><p>with the ultimate goal of producing an optimized remediation plan relevant to the organization and customized to its needs and goals. Such a defect remediation agent is possible with <em>fastWorkflow </em>[2–4]. The development of this agent will be the subject of part 3 of this series of articles on AI-enhanced defect remediation optimization.</p><h3>5 Conclusion</h3><p>In this work, we have introduced the next step in building an AI-enhanced model for optimizing the defect remediation process that was begun in [1]. This second step elucidates the process of collecting and manipulating historical empirical data in order to instantiate the defect backlog simulations of [1] — instantiated originally with random or generic histograms for defect generation and remediation rates. In this way, black box Monte Carlo sampling for predicting the evolution of the defect backlog in time is rooted in the real trends of the empirical data, represented in the evolving shapes of the defect generation and remediation histograms. As more empirical data becomes available, the Monte Carlo-based forecasts only increase in relevance.</p><p>As described in sections 2 and 4, we have extended in this work the model’s capacity for future integration with an AI agent, a topic first introduced in [1]. In [1], the problem was built within a framework allowing for future integration with large language models (LLMs) for question-answering. Though still relevant in this work, the process of defect remediation optimization is no longer limited to AI-assisted question-answering with the introduction of <em>fastWorkflow</em>. With this technology, we seek to build a fully agentic AI capable of optimizing an organization’s defect remediation process — using the organization’s own data to forecast the evolution of the remediation — purely through a natural language interface.</p><h4>5.1 Future work</h4><p>Immediate future work on AI-enhanced defect remediation optimization is focused on an integration with the technology <em>fastWorkflow</em> enabling LLM-based agentic AI behavior. We seek to build the defect remediation AI agent of Fig. 5, capable of interacting with a user through natural language (NL) to answer questions, receive feedback, update input parameters and make remediation forecasts. The building blocks for intent detection in natural language and deterministic mapping of the NL to the appropriate tools in the workflow are enabled by <em>fastWorkflow</em>.</p><p>In addition, we seek in future versions to allow for greater flexibility in initializing the optimization process, in particular in the presence of defect <em>clusters</em> and nonlinear state evolutions. In the former, we consider that defects may be subject to a clustering algorithm designed to identify common patterns and features among them, such as in [5]. In this case, remediation forecasts and optimization are executed within the bounds of the identified clusters, rather than superposed on all defects. In the case of nonlinear state evolutions, we consider defect lifecycles that are not perfectly linear and exempt of regressions, for example a state passing from <em>new</em> to <em>closed</em> (nonlinear progression) or a state being returned to <em>in-progress</em> from <em>closed</em> (regression). This behavior is currently unaccounted for in the model and should be addressed in future versions.</p><h3>References</h3><p><a href="https://medium.com/@mdebeurr/modeling-remediation-of-defects-in-industry-as-an-ai-enhanced-queueing-optimization-problem-a389f51d784d">[1]</a> Debeurre, M. Modeling remediation of defects in industry as an AI enhanced queueing optimization problem. <em>Medium</em>, 2025.</p><p>[<a href="https://medium.com/@drawal_70062/introducing-fastworkflow-build-reliable-ai-agents-for-complex-large-scale-applications-ed862b4f6467">2</a>] Rawal, D. Introducing fastWorkflow: Build Reliable AI Agents for Complex, Large-Scale Applications. <em>Medium</em>, 2025.</p><p>[<a href="https://medium.com/@drawal_70062/leveraging-class-inheritance-in-fastworkflow-building-advanced-ai-agents-acba3789a8eb">3</a>] Rawal, D. Leveraging Class Inheritance in fastWorkflow: Building Advanced AI Agents. <em>Medium</em>, 2025.</p><p>[<a href="https://medium.com/@drawal_70062/building-complex-context-hierarchies-in-fastworkflow-advanced-ai-agents-c5858fa4dd80">4</a>] Rawal, D. Building Complex Context Hierarchies in fastWorkflow: Advanced AI Agents. <em>Medium</em>, 2025.</p><p>[<a href="https://medium.com/@sanchitsatija55/unveiling-hidden-patterns-an-advanced-generalized-framework-for-automated-insight-discovery-in-5fd945d88dfe">5</a>] Satija, S. Advanced Generalized Framework for Automated Insight Discovery in Tabular Data. <em>Medium, </em>2025.</p><h3>Acknowledgments</h3><p>The author of this work is employed as a Data Scientist at <a href="https://www.radiantlogic.com/">Radiant Logic</a>, an industry leader in the field of IAM. The field of IAM is concerned with the governance and management of user accounts and accesses to applications, platforms and other technology resources with the goal of limiting superfluous or unused accesses that serve as openings for cybersecurity attacks in our increasingly connected world. In this context, the <em>defects</em> of this work are representative of undesirable, risky or anomalous events that must be reviewed and treated by dedicated remediation actors.</p><p>The <a href="https://www.linkedin.com/in/marielle-debeurre/">author</a> of this work would like to thank <a href="https://medium.com/@drawal_70062">Dhar Rawal</a> and Eric Bacher for their assistance and expert opinion in the preparation of this work.</p><h3>Appendix</h3><h4>Appendix A: Storing historical data</h4><p>Historical data is stored in <em>JSON</em> files in a separate <em>simulations</em> folder and is added to and/or updated each time a remediation log is processed by the empirical model. The following data is tracked:</p><ul><li><em>simulations/deltas_df:</em> stores the Delta table (Table 3)</li><li><em>simulations/fastworkflow_df:</em> stores the moving-window averages of the time delta quantities and generated and remediated defects formatted for integration with an <em>fastWorkflow</em>-enabled AI agent</li><li><em>simulations/generation_distributions: </em>stores the histograms tracking the number of hourly incoming defects and formatted for integration with the backlog simulations of [1]</li><li><em>simulations/remediation_distributions: </em>stores the histograms tracking the defect remediation times and formatted for integration with the backlog simulations of [1]</li><li><em>simulations/dicts/empirical_dict: </em>stores historical empirical data covering many metrics (useful in computations)</li><li><em>simulations/dicts/incoming_dict: </em>stores the number of hourly incoming defects per day (useful in computations)</li><li><em>simulations/dicts/outgoing_dict:</em> stores the number of hourly outgoing defects per day (useful in computations)</li><li><em>simulations/dicts/timedeltas_dict: </em>stores the average time delta values per day (useful in computations)</li></ul><h4>Appendix B: Timeline figures</h4><p>Timeline figures track the evolutions of the time deltas stored in the Delta table, and are useful in uncovering patterns in the defect remediation process, such as improvements or regressions in the organization’s performance. Since the values are tracked in time, any averages can be computed according to a specified sliding window (past day, week, month, year, etc.). An example timeline figure is shown in Fig. B.1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LJbk_ck6TAsV9zKX2j9X2A.png" /><figcaption>Figure B.1: Timeline figure for the ACC03 control type, corresponding to the log data of section 3.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0bfddf2ee771" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modeling remediation of defects in industry as an AI-enhanced queueing optimization problem]]></title>
            <link>https://medium.com/@mdebeurr/modeling-remediation-of-defects-in-industry-as-an-ai-enhanced-queueing-optimization-problem-a389f51d784d?source=rss-a54c6806c238------2</link>
            <guid isPermaLink="false">https://medium.com/p/a389f51d784d</guid>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[defect-management]]></category>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[monte-carlo-method]]></category>
            <category><![CDATA[queueing-theory]]></category>
            <dc:creator><![CDATA[Marielle Debeurre]]></dc:creator>
            <pubDate>Wed, 18 Jun 2025 12:37:10 GMT</pubDate>
            <atom:updated>2025-12-05T13:36:42.332Z</atom:updated>
            <content:encoded><![CDATA[<h4>In industrial contexts, defect remediation is the process by which defects, or undesirable conditions or events that require specific treatment to be resolved, are corrected. This work introduces a new line of research focusing on the characterization of the defect remediation process as an AI-enhanced queueing optimization problem. The model is available on <a href="https://github.com/radiantlogicinc/estimating_gen_mc_simulation">GitHub</a>.</h4><h3>1 Introduction</h3><p>In industry, examples abound of queueing systems, where incoming jobs wait some time before processing, are processed and are eventually closed out. Examples include <a href="https://www.sciencedirect.com/science/article/pii/S0959652625002100">users of a park-and-ride system</a>, <a href="https://arxiv.org/abs/2303.07050">X-ray scans that require expert review</a>, or tickets in a software development project management tool like JIRA. The incoming job can also represent a negative event that requires dedicated treatment from remediation actors to resolve, as in the case of <em>defects</em>. The process of correcting defects is known in industrial contexts as <em>defect remediation</em>. In this article, we will present a black box generalized Monte Carlo method for modeling the process of defect remediation as a queueing optimization problem. The black box nature of queueing models means that our model can easily be extended to many industrial applications; the <em>defects</em> of our model are replaced with any incoming jobs requiring a certain processing time to be treated. The model considers only distributions for defect incidence (generation) and the time required to treat defects (remediation time) for Monte Carlo sampling.</p><p>Though generalizable to many industrial fields, the inspiration for this work is the “Get clean, Stay clean” vision for identity hygiene in the field of identity and access management (IAM), a sub-field of cybersecurity (see <strong>Acknowledgments</strong>). In the “Get clean, Stay clean” model, the initial “clean-up” period addresses and remediates vulnerabilities (the defects), and is followed by a long-term period of few vulnerabilities, when any new ones can be treated as soon as they arise. In this work, we are interested in optimizing the “Get clean, Stay clean” process of defect remediation based on common real-world factors such as enterprise resources, the availability of remediation actors and the priority order of defect types. We also seek to enhance the process of defect remediation and render it more accessible to industry professionals through the incorporation of generative artificial intelligence (AI). The introduction of generative AI into the queueing model is discussed in section 4.</p><h3>2 Problem description</h3><p>In this problem, we are concerned with building an optimized plan for remediation of defects. Many different factors must be taken into account when building the remediation plan. First, it should be considered that defects are both incoming (being generated) and outgoing (being remediated) in parallel, although the events occur at non-consistent intervals throughout the simulation. The remediation plan should also consider individual circumstances, such as any existing backlogged defects, the priority ranking of defects and remediation resources and time constraints.</p><p>With all of these considerations taken into account, the process of defect remediation can be outlined as a queueing problem as follows: a central <em>backlog queue</em> is populated with existing backlogged defects at the start of the simulation, and defects are continually added to the backlog as they are generated in time. A number of remediation agents (e.g. teams, employees), represented as <em>processing</em> or <em>remediation queues</em>, begin to treat the defects pulled from the backlog according to a specified priority ranking, the number of remediation agents/queues being governed by the resource constraints of the organization. As time moves forward and the defects are remediated, they are finalized and removed from the processing queues, clearing up space for new defects to be pulled from the backlog to begin remediation.</p><p>A system diagram and application flow diagram for the model are provided in Figures 1 and 2, respectively.</p><h4>2.1 Problem set-up</h4><p>The high-level problem can be deconstructed as follows:</p><ul><li>For each simulation, a master defect log tracks the status of all defects. During the initialization stage (orange-shaded regions in Figs. 1 and 2), defects already existing prior to the start of the simulation populate the backlog queue. Each defect is assigned a remediation time <strong>sampled from the remediation time histograms</strong>, governing the amount of time it takes for the defect to be treated once it has begun processing.</li><li>As the simulation moves forward in time, incoming defects are generated every hour based on <strong>sampling from the incoming defect histograms</strong>, and are added to the backlog queue (red-shaded regions in Figs. 1 and 2). Defects are removed from the backlog queue for processing according to the resource constraints of the processing queues, and are closed when their remediation time is met (blue-shaded regions in Figs. 1 and 2).</li><li>Based on the flows of incoming and outgoing defects as tracked in the defect log, we can estimate the timeline involved to “Get clean,” and predict patterns during the “Stay clean” phase, when treatment of incoming defects is almost instantaneous.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3JvysvhFNT5x2lumI8WjlQ.png" /><figcaption>Figure 1: System diagram for the class <strong>defectRemediationSimulator</strong>.</figcaption></figure><h4><strong>2.2 Simulation input parameters</strong></h4><p>The system-specific input parameters are used to instantiate the simulation (see Fig. 1). They include:</p><ul><li><em>defect_labels</em>: the defect types to simulate</li><li><em>defect_priority</em>:<em> </em>the priority level associated with each defect type</li><li><em>maxValue_generation</em> and <em>skewness_generation</em>: the maximum value and skewness coefficient governing the stochastic distributions for incoming hourly defects (1 pair per defect type)</li><li><em>maxValue_remediation</em> and <em>skewness_remediation</em>: the maximum value and skewness coefficient governing the stochastic distributions for remediation time per defect (1 pair per defect type)</li><li><em>initial_backlogs</em>: the number of existing defects (per defect type) prior to the start of the simulation</li><li><em>t_end</em>: the duration of the simulation. Note that, in this dimensionless model, the time denomination can be anything (seconds, minutes, hours, days, etc.); in our version, we consider the time to represent hours</li><li><em>resources</em>: the number of available remediation agents, represented in the simulation as threaded processing queues</li><li><em>resources_qmax</em>: the maximum number of defects that can be assigned to each processing queue</li></ul><p>See Appendix A for the remaining simulation-specific input parameters.</p><h4><strong>2.3 The functioning of the queues</strong></h4><p>In general, queues can be classified according to how they are serviced, i.e. how the elements contained in the queue are retrieved: in our problem, we make use of two different types of queues, <strong>first in, first out </strong>(FIFO) queues for the processing queues, and <strong>priority</strong> queues for the backlog queue. The next-in-line element of a priority queue is always the highest priority element contained in that queue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5rvXk7PlK-PFGVjkEaJYDg.png" /><figcaption>Figure 2: Application flow diagram.</figcaption></figure><p>The interactions between the queues are governed as follows:</p><ul><li><strong>backlog queue:<em> </em></strong>Items are pushed to and pulled from <em>backlog_queue</em> as they are generated or begin remediation in the processing queues, respectively. The highest priority defect in the backlog is always pulled to fill the next available slot in the processing queues.</li><li><strong>processing queues: </strong>The number and size of the remediation queues are determined by the resource constraints <em>resources</em> and <em>resources_qmax</em>, respectively, for a total of <em>resources</em> <em>⋅ resources_qmax</em> available slots for treating defects (see Figs. 1 and 2). These queues are FIFO queues, not priority queues, since the priority <em>backlog_queue</em> always fills the available processing slots with the highest priority defects.</li></ul><p>At the end of the simulation, the main results are collected into a master dictionary for all simulations. The primary results can be accessed from <em>defect_log</em>, which will have recorded the lifetime of all defects from generation to remediation by updating the status of each defect at defining moments as shown in Fig. 2.</p><h3>3 Experiments</h3><p>In this section, several examples are presented to demonstrate the functionality of the simulation. In sections 3.1 and 3.2, we discuss a realistic test case and indicate how an existing simulation can be used to initialize the starting state for a new simulation. In section 3.3, some “edge” test cases — simulations with 0-value conditions imposed on certain input parameters — are discussed. Although unrealistic in practice, edge cases serve to isolate the effects of certain parameters on the defect remediation process.</p><p>In all experiments, the duration (or continuation) of the simulation is <em>t_end</em> <em>= 50</em>, and all simulations are run 5 times to account for any stochastic differences. We consider as an example scenarios involving 5 different defect types, called <em>type1, type2, type3, type4</em> and <em>type5.</em></p><h4>3.1 Realistic test case</h4><p>The input parameters of the first test case have been selected such as they may be found in real-life applications, namely, without any 0 or unlikely values (hence “realistic”). The following values are selected:</p><ul><li><em>defect_priority</em>: [11, 3, 4, 10, 8] (lower → higher priority)</li><li><em>maxValue_generation</em>:<em> </em>[1, 2, 1, 2, 2]</li><li><em>skewness_generation</em>: [5, 2, 0, -10, -3]</li><li><em>maxValue_remediation</em>: [3.5, 4, 5.5, 4, 5]</li><li><em>skewness_remediation</em>: [-3, 2, -1, 4, -1]</li><li><em>initial_backlogs</em>: [20, 1, 12, 3, 14]</li><li><em>resources</em>: 10</li><li><em>resources_qmax</em>: 2</li></ul><p>The result of the realistic simulation is shown in Fig. 3, which visualizes the defect backlog for all 5 simulations without any distinction made on the basis of the defect type. The box plots and dashed envelope curves indicate the median, maximum and minimum values across the 5 simulations for each hour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Br1Je8VU7k6Kw4pdZHYoew.png" /><figcaption>Figure 3: Visualization of the defect backlog for the realistic test case of section 3.1. Areas where the backlog is approximately in the “Get clean” phase are highlighted in red. Areas where the backlog is approximately in the “Stay clean” phase are highlighted in blue.</figcaption></figure><p>Fig. 3 shows an example of a “standard” defect remediation simulation, with an initial “Get clean” decline of the backlogged defects, followed by a “Stay clean” bottoming out of the curve as the backlog of defects has been cleared out. In Fig. 3, the “Get clean” phase starts at time <em>t = 0</em> and ends a little after <em>t = 10</em>, during which the backlogged defects are steadily treated; these points are marked in red. New defects are still being generated during this time, but the remediation of old defects outpaces the generation of new ones during “Get clean.”</p><p>The simulation then transitions to the “Stay clean” phase, where defects are forwarded to any available processing queue almost as soon as they are created, indicated by the defect backlog hovering close to 0 for the remainder of the simulation. These values are marked in blue.</p><p>An example of the histograms from which the incoming hourly defects and remediation times are sampled is presented in Appendix B.</p><h4>3.2 Continuing an existing simulation</h4><p>In the next example, we consider the case where a simulation should be extended for a longer period of time, as opposed to restarting a brand new simulation. In this case, it suffices to import the state of an existing simulation and continue it for another interval of time (with or without another influx of <em>initial_backlogs</em>). An example of this kind of simulation is shown in Fig. 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gf4g1w8ecAV5LUBJo3yNJQ.png" /><figcaption>Figure 4: Visualization of the defect backlog for the continuation test case of section 3.2.</figcaption></figure><p>The first part of the simulation is that of section 3.1, which becomes the starting point of a second simulation. We consider that some event, perhaps a merger between two enterprises, has triggered an influx of new defects, represented in the second simulation as <em>initial_backlogs</em>. The continued simulation follows the same “Get clean, Stay clean” macro trends as before. Storing and recycling defect remediation simulations in this way allows for more efficient comparison between scenarios.</p><h4>3.3 Edge test cases</h4><h4><strong>No initial backlog</strong></h4><p>Turning now to some special test cases, we first consider the case of no pre-existing backlogged defects (<em>initial_backlogs = 0 </em>for all defect types). The remaining input parameters are the same as those of section 3.1. The results of this simulation are shown in Fig. 5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lIKiRdMar8I4JQbOslXVRw.png" /><figcaption>Figure 5: Visualizations of the defect backlog for the edge test cases of section 3.3, from top to bottom: no initial backlog, no defect generation, no defect remediation.</figcaption></figure><p>The initial defect backlog being 0 at time <em>t = 0</em>, all processing queues begin empty. As time progresses and defects are generated, they are immediately added to the processing queues for treatment. Without any existing backlogged defects, the “Get clean” phase never appears; the simulation begins and remains in “Stay clean for the entire simulation, provided there are enough remediation resources to treat incoming defects.</p><h4><strong>No defect generation</strong></h4><p>Another edge case addresses the case where no new defects are ever generated (<em>maxValue_generation = 0</em> for all defect types). This edge case can be thought of as the “ideal case” scenario.</p><p>As shown in Fig. 5, the behavior of this test case clearly follows a “Get clean” curve down to 0 as the backlogged defects are remediated. The simulation then remains at 0 for all remaining time since no new defects are coming in, representative of a perfect (if unrealistic) “Stay clean.”</p><h4><strong>No defect remediation</strong></h4><p>Finally we consider the inverse case to the previous example, where new defects are generated but not remediated. This edge case can be thought of as the “worst case” scenario. In this example, we have the choice either (1) to fix the remediation time at 0 (<em>maxValue_remediation = 0</em> for all defect types, indicative of no remediation, not infinitely fast remediation), (2) to remove all remediation actors (<em>resources = 0</em>) or (3) both.</p><p>The result shown in Fig. 5 clearly lacks the dual parts of the “Get clean, Stay clean” curve. Without any defect remediation, the backlog instead simply grows for all time as more defects are generated and appended to the backlog.</p><h3>4 Answering questions with the simulations</h3><p>We now turn to the utility of such simulations in real-world applications. We are interested in extracting actionable insights from the results of the simulations, particularly in a question-and-answer format suitable to integration with a large language model (discussed below).</p><p>Two categories of questions can be answered with the defect remediation simulations presented in this work.</p><p>The first and computationally cheaper category represents those questions that can be answered with the information directly stored in the master defect log: for each defect, its ID, <em>defect_type</em>, <em>t_created</em>, <em>remediation_time</em>, <em>processing_start_time</em>, and <em>processing_end_time</em> are all immediately available, as well as the <em>processing_queue</em> it was assigned to (recall Fig. 2).</p><p>It becomes very easy, then, to answer questions such as:</p><blockquote>“How long on average is a defect waiting in the backlog before beginning remediation?”</blockquote><blockquote><em>(Answer: 39 minutes, for the realistic simulation of Fig. 3)</em></blockquote><p>by computing the difference between each defect’s <em>processing_start_time</em> (if available) and <em>t_created. </em>The answer can be further refined by <em>defect_type</em>, or by which <em>processing_queue</em> the defect was assigned to, such as in:</p><blockquote>“What remediation team treated the most defects?”</blockquote><blockquote><em>(Answer: </em>processing_queue<em> 1, for a total of 45 defects in Fig. 3)</em></blockquote><p>which can be useful in extracting insights for project management.</p><p>The second and more computationally expensive category of questions corresponds to those that, at the time of this article, require multiple simulations to answer. In this category, we find questions that seek to compare and contrast multiple simulations, for example:</p><blockquote>“If I assign 5 remediation teams instead of 10, what is the impact on the remediation effort?”</blockquote><p>The goal of category 2 simulations is to optimize the result in a specific direction, such as to meet a deadline, minimize the waste of resources, or respond to requirements imposed by an upcoming audit or government regulation. The answers to category 2 questions may or may not have a quantitative answer; either way, a qualitative comparison of multiple simulations will inform the actionable insights.</p><h4>4.1 Integration with an LLM</h4><p>In general, artificial intelligence (AI) is used as an umbrella term to refer to the capacity of machines and computers to reproduce human-like intelligence and thinking by means of computational algorithms. Large language models (LLMs) represent a class of generative AI models that autoregressively predict tokens (words or parts of words) to construct sequences of text, also called natural language. They are commonly used as a means for distilling information in the form of text (in a process called <em>inference</em>) based on a user-provided input (called a <em>prompt</em>) from the vast quantities of textual information reviewed while the weights of the model (called <em>embeddings</em>) were being developed (in a process called <em>training</em>).</p><p>In the context of our work, the LLM would intervene to enable the question-and-answer format introduced in the previous section. Recall one of the questions from the previous section:</p><blockquote>“How long on average is a defect waiting in the backlog before beginning remediation?”</blockquote><p>From this prompt, the LLM must be capable of extracting the intent and appropriate variables from the question; in other words, the LLM must be able to associate such phrases as “waiting in the backlog” with <em>t_created</em> and “beginning remediation” to <em>processing_start_time</em>, with the element “[h]ow long” pointing to a difference between the two.</p><p>It must be emphasized that this task is <strong>not</strong> trivial. The LLM, whether fine-tuned to a specific purpose or not, remains simply an algorithm, a collection of weights associated to parts of words that are predicted based on the previous words in the sentence. It does not think as a human brain might, so that things that appear obvious to humans may be quite difficult for the LLM to realize. For example, the LLM could erroneously associate the variable <em>remediation_time</em> to “before beginning remediation,” and subsequently compute a response to the initial question that is factually incorrect, though seemingly plausible (called a <em>hallucination</em>). Hallucinations remain one of the biggest risks associated with the use of LLMs.</p><p>Proper integration of an LLM into queueing problems would result in a highly effective tool for optimizing tasks such as defect remediation. The LLM allows anyone to interact with the simulation regardless of technical proficiency since it requires only natural language as an input. Any user can run simulations, update and compare them, have their questions answered in real time, and extract the actionable insights needed to make critical decisions.</p><h3>5 Conclusion</h3><p>In this work, we have presented a black box generalized Monte Carlo method for optimizing the planning of defect remediation, and have shown how this method in its current form can be used to estimate a timeline in line with a “Get clean, Stay clean” vision for treatment of defects. The inputs to the simulation are highly customizable and the results general, such that with only a few modifications of the inputs, the method can be transformed to represent a wide variety of industrial applications. With this method, important criteria including existing backlogged defects, the priority order of defect remediation and customer resources and constraints are incorporated into the simulation. The simulation visualizes the evolution of backlogged defects based on these criteria and repeated sampling of incoming defect and remediation time histograms.</p><p>We are principally interested in extracting actionable insights from such queueing and prediction problems, and have shown in section 4 how conclusions can be pulled from the results in a question-and-answer format suitable to future integration with an LLM. Combining the power of prediction with the accessibility of an LLM will almost certainly lead to greater efficiency and newer, more profound insights into the optimization of defect remediation and other similar queueing and scheduling applications.</p><p><em>This article has been abridged from a scientific research paper, to appear on arXiv. It represents part 1 of an ongoing research project. Please refer to our </em><a href="https://github.com/radiantlogicinc/estimating_gen_mc_simulation"><em>GitHub</em></a><em> for updates on this project.</em></p><h3>Acknowledgments</h3><p>The author of this work is employed as a Data Scientist at <a href="https://www.radiantlogic.com/">Radiant Logic</a>, an industry leader in the field of IAM. The field of IAM is concerned with the governance and management of user accounts and accesses to applications, platforms and other technology resources with the goal of limiting superfluous or unused accesses that serve as openings for cybersecurity attacks in our increasingly connected world. In this context, the <em>defects</em> of this work are representative of undesirable, risky or anomalous events that must be reviewed and treated by dedicated remediation actors.</p><p>The <a href="https://www.linkedin.com/in/marielle-debeurre/">author</a> of this work would like to thank <a href="https://medium.com/@drawal_70062">Dhar Rawal</a>, Eric Bacher, Nicolas Lagorce, Maurice Amsellem and Maxime Grodet for their assistance and expert opinion in the preparation of this work.</p><h3>Appendix</h3><h4>Appendix A: Simulation-specific parameters</h4><p>In addition to the system-specific parameters introduced in section 2.2, there are input parameters specific to the simulation currently being realized. These include <em>trials</em>, governing the number of times the same simulation is run to account for stochastic differences between simulations, and parameters for loading and/or storing simulation states:</p><ul><li><em>check_initial_state</em> and <em>path_initial_state</em>: if <em>check_initial_state</em> is <em>True</em>, the state of an existing simulation stored as a pickled JSON file at <em>path_initial_state</em> is loaded as the starting point for the current simulation</li><li><em>export_final_state</em> and <em>path_final_state</em>: if <em>export_final_state</em> is <em>True</em>, the final state of the current simulation is exported as a pickled JSON file to <em>path_final_state</em></li></ul><h4>Appendix B: Realistic test case histograms</h4><p>The generalized Monte Carlo method of repeated sampling from histograms is used in this model to develop a black box-style model capable of broad generalization among industrial applications. The theoretical histograms for incoming defects and remediation times are established in the initialization stage, from which samples are taken to use during the defect backlog simulation (refer to section 2).</p><p>The distributions for the realistic test case of section 3.1 are recreated in Fig. B.1 for all defect types, where the contour represents the theoretical histograms, and the shaded portions indicate the sampled values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jEMAnJj7Dnkgb2h3BdpMrw.png" /><figcaption>Figure B.1: Theoretical and reconstructed histograms for number of incoming hourly defects (red) and the corresponding remediation times (blue) for each defect type in the realistic test case of section 3.1. For each skew-normal distribution, α represents the skewness coefficient.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a389f51d784d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>