Dark Factory for Enterprise: A Guide to Agentic Development

Vladimir Lomtev•
Dark Factory for Enterprise: A Guide to Agentic Development

In software development, a Dark Factory is an operating model in which AI agents receive a task, explore the system, make changes, verify the result, and follow the prescribed delivery path. For an existing enterprise project, you can move closer to this mode by preparing context, machine-readable rules, independent verification, and infrastructure that agents can access. Buying a stronger model on its own does not create these conditions.

Prepared by AI Studio by Vladimir Lomtev on November 12, 2026, based on the provided transcript of the talk “Converting an Enterprise Project into a Dark Factory” by Rodion Mostovoy and Maxim Klyuchnikov, the post-talk discussion, and current source materials. This is an independent practical guide for CTOs, engineering leaders, architects, platform teams, and owners of enterprise systems.

We examine the transition of an existing product to more autonomous development. The diagrams and end-to-end example below are proposed ways to organize the work, not an implementation completed by our editorial team. We have no proprietary measurements of performance, cost, or the share of tasks successfully solved. Where we refer to the speakers’ experience and recommendations, that is noted separately; access to critical production is not an automatic consequence of success in a test environment.

Contents

What Dark Factory is and where the line of autonomy lies

In the talk, Dark Factory is described as a system that turns an initial request into a software result. But between those points there is not just one action of “writing code”; there is the entire production process: understanding intent, finding the affected parts of the system, changing the implementation, checking behavior, preparing delivery, and getting feedback.

The term does not define a single mandatory product or a universally accepted maturity level. In one team, autonomy ends at a ready pull request; in another, at deployment to staging; in a third, automatic delivery is allowed for a certain class of changes. So it is more useful to ask not “do we have a Dark Factory?” but which actions, in which environment, and under which constraints the agent performs without a human.

One publicly described approach is the StrongDM Software Factory. Its principles emphasize the original intent, the verification boundary, and feedback, including separate validation scenarios. This is the vendor’s description of a specific approach, not proof that any enterprise is ready for fully automated release. StrongDM Software Factory principles.

For a practical discussion, separate several states:

State What the agent does Where the human decision remains
Assistive mode Explains the code, finds areas, suggests a fix The human defines and performs the change
Change preparation Modifies code and runs the available checks The human reviews and accepts the result
Autonomous work in a limited environment Brings the task to a verified state in a dedicated boundary The human sets the boundaries and approves moving forward
Automated delivery of selected changes Passes through a controlled pipeline according to established rules The process owner defines the allowed class of operations and exceptions

This is a working split for planning, not a certification scale. In one system, different subsystems may be in different states.

Why an existing enterprise system is harder than a new application

A new small service can be designed around a stack that is convenient for an agent. In an existing enterprise system, history is already there: legacy contracts, workarounds, data owners, special permissions, mismatched terminology, and processes that extend beyond a single repository.

A technically correct function can still be the wrong product change. For example, a developer changed the way available balance is calculated but did not account for reservations, quarantined inventory, or the nightly exchange with the accounting system. The compiler is happy, local tests pass, and the customer sees a promise to ship something that cannot be shipped.

In the talk, this complexity is addressed through agent onboarding and infrastructure preparation. The agent needs not only files, but also the rules of the game: what the business terms mean, which constraints must not be violated, how to verify the change, and where to get a trustworthy signal about how the system is behaving.

That is why you should start with a specific process, not with the goal of “automating the entire monolith.” A good starting point is a limited operation with a clear owner, input, output, and way to verify it. The number of lines of code by itself determines neither risk nor readiness for autonomy.

Why model rankings do not replace project readiness

The model and the environment work together. Under harness By the surrounding system model, people usually mean the environment around the model: the available tools, ways to read and modify files, context management, command execution, constraints, and feedback. Comparing models without this layer does a poor job of explaining how an agent will behave in your company.

The speakers discuss Real-SWE as an illustration of the complexity of real-world enterprise tasks. Here, it is important not to turn percentages from a slide into a universal probability of success. As of the date of verification, the original source already describes Real-SWE 1.1: 25 tasks and 18 models, and it also explicitly discusses evaluating combinations of models and their native harnesses, rather than models in isolation. These are the stated parameters of a specific benchmark set. Original source: Specific Labs.

You cannot turn that result into the statement, “our factory will successfully complete the same share of any tasks.” The code, instructions, dependencies, evaluation criteria, and available infrastructure will differ. Even an improvement in finding the right files does not yet mean an improvement in the entire path to an accepted change.

The practical takeaway is to compare working configurations on your own tasks. A stronger model may help, but a poor log interface, an unavailable staging environment, or an unclear business term definition remain separate sources of errors.

Agentic development architecture: which layers need to work together

It is useful to break the system into several layers and name, for each one, the artifact the agent can actually use. The following diagram is an editorial organization of the talk’s ideas for practical application.

Layer What needs to be prepared Which question this answers
Product Purpose, users, load, constraints Why is the change being made?
Knowledge Terms, invariants, decisions, and sources What counts as correct here?
Navigation Repository map, instructions, documentation index Where should the relevant context be found?
Verification Static rules, tests, scenarios, and criteria How do you tell a working result from a plausible one?
Platform Reproducible environments, delivery, data, recovery Where and how should the system be validated end to end?
Tools Controlled read and modify operations What actions are available to the agent?
Governance Permissions, observability, evaluations, and escalation order What can be delegated autonomously, and when should you stop?

The layers are connected. If there is no definition of the available remainder, a test may lock in the wrong formula. If the test is correct but runs in the wrong configuration, it does not confirm release readiness. If the agent can change both the implementation and all success criteria without oversight, a green report loses credibility.

These relationships are exactly what distinguish a development factory from a set of convenient prompts. The full cycle from brief to delivery is covered in the piece on end-to-end agentic development; here the main focus is preparing a large existing system for that cycle.

Start with the product context, not the class diagram

Bridge separately returns to the idea that the agent needs the product explained. Without this, the model can propose technically sophisticated solutions for nonexistent load or, conversely, miss a constraint that is critical for users.

Prepare a short description of the system: who uses it, which operation creates value, which errors are unacceptable, and which characteristics really matter. For an internal tool used by a small team and a public service with peak loads, the engineering trade-offs will differ.

Instead of the task “refactor stock handling,” it is more useful to state the intent: “When placing an order, the customer should see the quantity available for shipment from the selected warehouse. Items in reserve and quarantine must not increase that quantity. The existing exchange with the accounting system must be preserved.”

This is not yet a complete specification, but it is already enough information to ask the right clarifying questions. The agent understands who will use the result and what the constraints are. The specific rules for reservation, update timing, and concurrent operations need to come from the system and be confirmed with the process owner, not inferred from the model’s general knowledge.

The outcome of this stage is a short product description that can be referenced from the task and the documentation. It should help choose a solution, not repeat the company’s marketing copy.

AGENTS.md and progressive disclosure: how to give a map of a large codebase

The talk suggests using instructions as navigation markers: the top level explains how the project is structured, while local files clarify subsystem rules. This approach helps avoid loading all monorepo instructions into context at once.

Progressive disclosure means gradually revealing information as needed. First, the agent reads the map and index, then opens the documents and source files relevant to the task. In a large system, this is more useful than a single giant file where payment-module rules are mixed with mobile UI instructions.

AGENTS.md is a common format for coding agents’ instructions. However, scope, discovery order, and support for nested files depend on the tool. Check the AGENTS.md specification and the documentation for your chosen agent. For Claude Code, separate rules for loading and importing are described in the memory and instructions management documentation. Do not assume that all agents handle any Markdown file the same way.

Suggested documentation structure for a training repository:

AGENTS.md
docs/index.md
docs/product.md
docs/domain/stock.md
docs/architecture/decisions.md
docs/workflows/bug-fix.md
services/catalog/AGENTS.md
services/inventory/AGENTS.md

In the root file, routes are enough: how to build the project, where the domain rules are, which checks are mandatory, and where to go for local constraints. In a subsystem file, include its purpose, boundaries, testing specifics, and links to the relevant documents.

Do not put every implementation detail into the instructions. If information can reliably be extracted from the code, it is more important to teach the agent how to find it. Separately preserve the things the code explains poorly: reasons for decisions, terminology, prohibitions, and non-obvious dependencies.

The readiness signal is when the agent, on a typical question, finds the right subsystem and the mandatory rules without reading the entire repository sequentially. This is a proposed navigation check criterion, not the stated result of our test.

Project glossary: why a dictionary of terms is not enough

One of the most practical points from Mostovoy is the need to work with the system’s language. A simple list of “term — definition” may not be enough. You need to show synonyms, near-but-not-identical concepts, scope, and the connection between a business term and technical entities.

Suppose the project includes stock, balance, available, reserved. Searching for the word stock does not tell you which figure the customer should see. In one context it means physical quantity, in another quantity available for sale, and in a third the balance according to an external system.

In a training example, the glossary can be organized like this:

Concept Meaning in the selected process What not to confuse it with
Physical stock Recorded quantity of goods in the warehouse Quantity available for shipment
Reserve Quantity held under the rules for confirmed transactions Any user intent to buy a product
Available balance The quantity the process allows to be proposed for shipment Just the value of a field with a similar name
Quarantine A designated category that is unavailable for standard shipment under the accepted rule Specific order reserve

This is a fictional definition used for illustration. In your system, a reserve may have several states, and availability may depend on the sales channel, warehouse, and time. A ready-made table cannot be treated as the project truth without verification.

In CodeAlive-AI’s published materials, there is a skill ubiquitous-language devoted to domain-language consistency, thesaurus management, and ambiguity analysis. This confirms that the described tool exists, but it does not mean that installing it will automatically resolve all domain contradictions. Description of ubiquitous-language.

Tacit knowledge: what to extract from Git, tickets, discussions, and meetings

Tacit knowledge, or implicit knowledge, is what the team takes into account in its work but has not expressed in a convenient, verifiable document. For example: "this record must not be deleted until the nightly export is complete" or "the weird flag is needed for the legacy client that has not migrated yet."

The report proposes collecting this kind of knowledge from code, change history, tickets, pull requests, discussions, and meeting transcripts. The sources complement one another. Code shows implemented behavior, discussion shows intent, and history shows why the workaround appeared.

A useful record is not limited to a paraphrase. It needs the rule content, scope, source link, and verification status. Also note when the rule was in effect: a historical decision does not necessarily remain valid after migration.

If Git says one thing, the documentation says another, and the expert says a third, the agent should flag the discrepancy for clarification. It should not silently choose the most plausible version and turn it into a new standard. A conflict between sources is a useful research result, not a reason to hide uncertainty.

The outcome of this stage is a set of verifiable statements and questions for process owners. Access to work chats and meetings is granted within the company’s established data policy; having the right connector does not in itself grant permission to read any discussion.

How to keep generated documentation from becoming a second source of errors

An important caveat from the speakers: the knowledge collected by the agent must be checked with people who understand the domain. Automatically generated text does not become authoritative just because it is neatly formatted and sits next to the source materials.

Separate a draft, a confirmed rule, and outdated material. For a disputed statement, keep the basis and the question that prevents confirmation. After discussion, record the decision, not just the final wording without its origin story.

A dangerous situation is closed-loop self-citation: the agent made a mistake in the description, the next agent read the description as fact, and started changing the system to match it. This is prevented by links to primary artifacts, clear document ownership, and an explicit review status.

Documentation updates should be tied to product changes. If the definition of reserve changes, the impact is not limited to classes; it also affects the thesaurus, test data, and user rules. If a document merely duplicates a list of methods, it is cheaper to link to the current code than to maintain a separate copy of the list.

For the move to agentic development, what matters is not the maximum volume of documentation, but manageable reliability. The index should help you find the active rule and distinguish it from a hypothesis.

Missing change: how to find the place the agent forgot to update

Missing change is an incomplete change: the main part of the task is done, but a related area was left in its old state. The cause may be nearby in the repository or in another service: the response contract was changed, but the consumer was forgotten; the calculation was updated, but caching was not reconsidered.

The report proposes a separate research pass before implementation. Its job is to find the process inputs and outputs, consumers of the result, background operations, tests, and related data. Research after the code is written is useful too, but by then it already begins under the influence of the chosen solution and may miss an alternative path.

For a complex task, research can be split up: one analysis branch studies domain rules, another studies API consumers, and a third studies background jobs and integrations. Bringing the results together should remove duplicates, check contradictions, and show which areas remain unknown. The number of subagents alone guarantees nothing; the cost and quality of such an arrangement need to be evaluated. This is discussed in detail in the analysis of AI agent teams.

A useful research output is a map of the change’s impact. It should show not only "which files to edit," but also "which interactions to check" and "which assumptions are still unconfirmed." Then the implementation plan is based on the system, not just the first method found.

The call graph, semantic search, and evolutionary links solve different problems

The call graph shows the relationships between code elements that are known to the tool. Semantic search helps find fragments by the meaning of the query. Evolutionary coupling, or change coupling, shows which parts have historically changed together, even if the direct call between them is not obvious. This meaning of change coupling is described by CodeScene.

The history of joint changes may suggest a pair such as "data schema — migration" or "contract — legacy client adapter." But this is a clue, not proof of a required dependency. Mass formatting, file moves, and large mixed commits can create noise. Historical linkage must be confirmed by the content of the changes.

Static links are incomplete too. Important interactions may pass through events, queues, naming conventions, external APIs, and configuration. That is why a single nice-looking graph does not replace understanding the business process.

Mostovoy discusses the value of context engines and his own measurements of codebase research. Here, his connection to developing a context product must be taken into account: this is an author’s assessment and the experience of an interested participant, not our independent comparative test. In the talk itself, it is separately noted that measurements of context search are not the same as end-to-end evaluation of tasks solved.

Do not turn the repository sizes mentioned in the discussion into a rule that "after this many lines, GraphRAG is definitely needed." The benefit depends on the structure of the code, the queries, the instructions, and the quality of basic navigation. First eliminate obvious gaps, then test the added tool on your own work.

Problem statement: intent, constraints, and observable result

For an agent, a message like "fix the leftovers" or "make it like the neighboring module" is not enough. The input task should describe the observable problem, the desired behavior, constraints, and how to verify it. A detailed implementation plan is not always needed upfront: the agent can propose one after research.

In a catalog-based training task, the input can be framed like this: the customer sees the product as available even though all units have already been reserved. The goal is to align the displayed availability with the confirmed accounting rule, preserve compatibility with the existing API, and keep the reservation order unchanged. The test should reproduce the original issue and confirm the behavior after the change.

It is useful to separate a requirement from a solution hypothesis. “Do not show reserved quantity as available” is a requirement. “Subtract field X in method Y” is a hypothesis that may turn out to be wrong if the field has a different meaning or the calculation is performed in another place as well.

A task must have stopping boundaries. For example, if the investigation reveals a need to change a financial contract or perform a destructive migration, the agent should raise the issue rather than expand its authority simply to finish the work. This rule is part of the execution process, not a rejection of automation.

The result of task definition is an input that makes it possible to distinguish a completed task from a polished report. For a bug fix, this includes the original symptom, the expected behavior, and the verifiable absence of specific regressions.

Verification scope: from static rules to end-to-end behavior

Verification is a core part of agentic development. You need to check not only syntax and an individual function, but also behavior in the connected system. The talk uses the Testing Trophy idea for this: static checks, unit, integration, and end-to-end tests each serve different roles. The original Testing Trophy model is described by Kent C. Dodds.

For Enterprise systems, the interfaces between components are especially important. Two services can pass their own tests and still fail together because of mismatched contracts, configuration, permissions, routes, or data interpretation.

Verification What it can detect What remains outside its scope
Types, linters, static analyzers Mismatched types and some rule violations Whether the business outcome matches the intent
Unit tests Local behavior errors Real service interactions
Contract tests Incompatible formats and parties' obligations The full operability of the deployed system
Integration tests Component interaction errors All user flows
End-to-end scenarios Chain behavior in a selected environment All load and external-condition variants
Visual verification Overlaps, clipped text, obvious UI defects Correctness of hidden data and all actions
Smoke checks after release The basic viability of the deployed version Full regression and long-term resilience

The table shows task distribution, not a promise that any one tool covers everything. If one layer catches an error earlier, it is cheaper for the agent to fix it before a long end-to-end run. But the fast layer must not replace the one that verifies the changed interaction.

Mandatory checks are determined by change risk. A UI text edit and a change to product reservation do not have to use the same set of runs. At the same time, the basis for the choice should be clear and machine-readable so the agent does not invent it from scratch each time.

AI QA and visual testing: you need a scenario before inspecting the interface

An agent can open the app, go through actions, and inspect a screenshot. In the talk, this is treated as an additional verification layer, especially where code and ordinary tests do not reveal a visual problem. Available browser automation approaches are described, for example, by the agent-browser project.

A useful visual scenario defines the user role, data state, sequence of actions, and expected signals. For an inventory page, this could be a selected warehouse, an item with a reservation, acceptable status text, and no element overlap. The screenshot is captured together with the conditions under which it was obtained.

If the agent invents the scenario after implementation and checks only the happy path, that test can only confirm its own assumption. That is why critical conditions are better defined before the change and verified independently of the patch author.

A visual judge can be wrong too: it may miss an element outside the frame, misread an icon, or mistake a placeholder for a real result. You need data-state validation and, where possible, deterministic assertions. A nice-looking screenshot does not prove that the reservation was actually included in the calculation.

For repeatable flows, keep stable scenarios. Exploratory browsing is useful as a supplement when the agent is looking for unexpected consequences, but it should not be the only proof that the system works.

Heavy checks: why an agent needs CI and dedicated environments

A large build, an integration run, or desktop app testing can be inconvenient on a developer machine. The talk discusses two paths: the existing CI and a dedicated virtual machine where the agent offloads heavy work.

What matters here is not the launch method itself, but reproducibility. To get a result, you need to know the code revision, environment configuration, selected test set, and final status. The agent should distinguish a failed check from a case where the check never started because of a missing dependency or access issue.

For remote execution, an explicit job ID, status retrieval, access to a limited log excerpt, and cancellation are useful. Do not turn a long-running command into a silent operation where the agent only knows that it is “still running.”

The test environment must fit the task. A queue mock, a local database, and real network policies reveal different classes of defects. If the check was run in a simplified environment, that limitation should remain in the result rather than disappear behind the word “successful.”

The output of this stage is a run that can be repeated and tied to a specific change. It helps close the feedback loop, but by itself it is not yet permission to ship to production.

Infrastructure foundation: IaC, environments, backups, and delivery

Klyuchnikov emphasizes that some barriers existed long before AI: non-reproducible environments, manual configuration, unclear delivery processes, and difficult access to diagnostics. The agent speeds up operations, but it does not automatically eliminate organizational chaos.

Infrastructure as Code, IaCdescribes infrastructure in a form that can be stored, verified, and reproduced. The talk mentions Pulumi; for overall architecture, the principle of managed description and lifecycle matters more than any specific tool.

It is important to distinguish the desired configuration, the tool's saved state, and the resources that are actually running. These can diverge because of a manual change, an external action, or an incomplete operation. Therefore, the claim that “everything is defined as code, so drift is impossible” is too strong. Pulumi's official documentation separately describes drift detection and reconciliation.

For agentic work, separate environments, reproducible resource provisioning, controlled delivery, recovery, and observability are useful. First define where experiments are allowed and what data they use there. A test environment with a copy of production secrets does not become safe just because of its name dev.

In a GitOps setup, the delivery tool reconciles the desired state with the actual state. But automatic sync, resource pruning, and self-heal each have separate settings. For example, Argo CD documents these mechanisms separately. They cannot be treated as equally enabled and equally permissible in any environment.

The result of this stage is a clear path from a description change to a working resource and a rollback method. The agent should use that path, not create parallel infrastructure the team does not know about.

Where you need an LLM, and where a deterministic tool is better

The talk draws a useful line: variable exploration and hypothesis selection can be assigned to the model, while repetitive operations should be formalized as tools and workflows. If the agent rewrites the API client from scratch every time to get the status of one service, the process loses predictability.

Good candidates for the deterministic layer are fetching delivery status, searching logs by ID, running an approved smoke test, reading an available schema, or retrieving the result of a specific CI job. The operation has input, a limited scope, an output, and a clear error.

The LLM stays where it needs to correlate multiple signals, form a hypothesis, choose the next diagnostic step, or propose a change. It uses tools, but it does not have to invent the calling mechanism from scratch each time.

The technical wrapper can be CLI, MCP, or API. Klyuchnikov describes his own CLI-based approach with skills, but does not present that option as the only possible one. The interface comparison is covered in the material on CLI, Skills, API, and Code Mode. For the factory, the important thing is the quality of actions and responses, not the trendiness of the transport.

What an interface looks like that the agent can actually use

Simply wrapping an existing API is not enough. The interface should help choose the right operation, limit unnecessary volume, and distinguish a reliable result from an incomplete sample.

The speaker gives a log example: instead of a huge file, the agent needs an appropriate slice with the ability to continue. A useful response includes the environment, service, time range, filtering flags, and details about what remained outside the result. A hidden truncated response is dangerous because it looks complete.

The proposed contract for reading diagnostic data can return fields like these:

{
  "operation": "read_service_errors",
  "environment": "stage",
  "service": "inventory",
  "status": "completed",
  "scope": "errors linked to the requested operation",
  "result_complete": false,
  "has_more": true,
  "continuation_available": true,
  "sensitive_fields_removed": true
}

This is a sample response sketch, not an existing API or an actually executed request. The specific filters, continuation format, and verification of sensitive-field removal require implementation. The value sensitive_fields_removed is not proof by itself: the corresponding property must be enforced by the tool and verified.

For mutating actions, you also need environment boundaries, repeatability in the event of a network error, and a clear status. If a resource creation request timed out, you cannot automatically assume the resource was not created and repeat the operation without checking the state.

Tool descriptions are also tested on real tasks. A human-readable name does not guarantee that the agent will choose the tool at the right moment. At the same time, having more tools does not automatically mean worse results: distinguishability, structure, and behavior in the chosen configuration matter.

Agent permissions: developer, observer, operator, and delivery

Separate the model's ability to propose an action from the system's right to execute it. A skill with the text 'don't go into production' can explain the rule, but the actual restriction must be enforced by the account, the tool, the network, and the runtime environment.

A proposed role split:

Role Permitted work What should not be included by default
Researcher Reading approved code and documentation Modifying infrastructure and access to all secrets
Developer Preparing changes and running checks in a dedicated environment Direct delivery to a critical environment
Observer Reading approved telemetry and creating a diagnostic task Unlimited automatic remediation
Test-environment operator Controlled operations in a specific environment The same rights across all environments
Delivery executor Approved delivery operations under policy Self-expanding the set of allowed actions

This is a design option, not a ready-made role configuration. In Kubernetes, the mechanisms for binding permissions to roles and service accounts are described in the RBAC documentation. The real configuration must match the platform in use and the team's authority.

The transcript separately discusses secrets. A tool can use a key inside a trusted layer without returning the key itself to the model context. But that does not solve the problem of excessive privileges for the operation: a hidden key with the right to delete the entire environment is still dangerous.

Limit access to secrets and check where they appear in logs and errors. Kubernetes guidance separately addresses minimizing access to Secrets. Instructions to the agent should not be the only protection for data.

Observability: how an agent can find the cause before changing code

In a distributed system, a user-facing error rarely contains all the necessary information. The problem may appear in the interface, arise in a queue, and persist in a background worker. If the agent only sees the source code, it is forced to guess the path of a specific failure.

Observability, or observability, helps connect symptoms with component behavior. For agentic development, the ability to retrieve a limited set of logs, statuses, and traces around a single operation is especially useful. A distributed trace describes a request's path through related execution segments; OpenTelemetry explains its structure and identifiers. OpenTelemetry.

The diagnostic sequence might look like this: find the problematic operation, clarify the environment and version, obtain the related trace, correlate component errors, form a hypothesis, and only then open a specific code area. If needed, the agent goes back for additional data.

An example from an infrastructure discussion is a transcription service with several connected components. For a methodical review, imagine file upload, a queue, a worker, and result storage. Each component can pass a local test, but the whole process will stop if the worker reads a different queue or does not have permission to write the result. This is an illustrative diagram, not a client case we verified.

Then a useful fix starts not with rewriting speech recognition, but with figuring out at which transition the operation was lost. The agent needs both process context and actual environmental signals. Otherwise, it may change correct code while trying to compensate for a bad configuration.

Application traces and the agent’s action history are different data

The talk discusses two kinds of observability that are worth keeping separate. Application traces show how a business operation is executed. The agent’s action history shows what it read, which tools it called, where it got an error, and when a human corrected it.

The second history helps improve the development process itself. If an agent regularly makes the same sequence of requests, that sequence can be turned into a tool. If it keeps choosing the wrong environment, it is worth checking the interface and constraints, not just adding a long prohibition to the prompt.

For analysis, store enough information to reconstruct the path, but do not collect secrets and unnecessary sensitive data in the name of completeness. The ability to export, the format, and the contents of agent telemetry depend on the product and settings. You cannot assume that any coding agent automatically emits identical OpenTelemetry traces.

Observability should end in a process change: a recurring error becomes a clarified instruction, a more suitable action, or a check. If logs only accumulate and are not used, a centralized collection by itself does not improve the factory.

Workflow for bug fixes, new features, and refactoring

Klyuchnikov suggests identifying repeated work blocks and assembling clear workflows from them. For a routine request, the route can be made stricter; for an exploratory task, leave room to choose among allowed actions.

Suggested bug-fix workflow:

  1. Clarify the symptom, environment, version, and boundaries of allowed impact.
  2. Gather diagnostic data and reproduce the issue, or explicitly note that reproduction was not possible.
  3. Find the related business process, rules, and the scope of the change’s impact.
  4. Propose the cause and a minimally sufficient fix plan.
  5. Update the implementation and the needed checks while preserving the task’s original acceptance criteria.
  6. Run local and related integration checks, then perform a controlled verification in the appropriate environment.
  7. Record the actual result, constraints, artifacts, and the question about the next permitted transition.

For a new feature, add clarification of intent and solution selection. For refactoring, the main question is different: what observable behavior must stay the same, and what technical property should change. If this is not formulated, “improving the architecture” turns into a subjective rebuild.

Workflows are useful to describe in terms of the input, expected output, allowed actions, and stop conditions for each block. Then they can be reused and evaluated. The filename SKILL.md by itself does not make the process repeatable.

Your own eval: assess the solved task, not whether the patch matches

Eval is a structured system check on tasks with defined conditions and criteria. For agentic development, it is useful not only when switching models: it is also worth checking new instructions, tools, and ways of organizing work.

The discussion suggests using historical tasks. For each one, restore the project’s original state, the prompt text, the context available at that time, and the expected behavior. Then check whether the agent can produce an acceptable result from that input.

Do not mix the future solution into the original context. A commit with the fix, a later comment in the issue, or an updated document can turn research into a search for the ready-made answer. If this is not controlled, the evaluation will look better than the real work.

The reference human diff does not have to be the only acceptable result. The agent may solve the task differently, and the previous change may have been only a temporary workaround. What should be tested is the required behavior, constraints, and consequences, not a literal string match.

At the same time, you must not let the executor quietly weaken the success conditions. Separate the development tools from the independent evaluation criteria. A separate set of scenarios, which StrongDM mentions, is one way to do this; the design of the validation loop still requires engineering work.

Failed tasks are especially useful for improvement. Analyze what went wrong: the context was not found, the requirement was misunderstood, a tool was unavailable, the wrong diagnostic path was chosen, or the implementation was genuinely incorrect. Different causes require different factory fixes.

LLM judges, repeatability, and quality metrics

A judge model is useful where the result is hard to express as a single deterministic statement. But it can also make mistakes, prefer a more persuasive formulation, and miss a violation of a hidden constraint. The talk discusses the need to analyze evaluation disagreements rather than declaring one model the absolute standard.

For verifiable properties, use ordinary tests and data checks. For semantic evaluation, define a rubric and compare against the solutions of competent people on selected examples. A disputed result should remain disputed until it is analyzed, not turned into a neat average number.

Repeat runs under comparable conditions: agent trajectories are nondeterministic. One successful attempt does not prove stability. At the same time, record the model version, tools, instructions, input revision, limits, and environment conditions.

Useful metrics for an internal eval:

Metric What to count Why one metric is not enough
Accepted results Tasks that passed the defined criteria, out of all selected tasks A clear sample composition is needed
Total cost Spending on attempts, checks, and fixes A cheap attempt can still be useless
Time to an accepted result The full path, including waiting for checks and human involvement Fast generation is not the same as fast delivery
Human interventions The operator’s reasons and actions The count alone does not show the severity of the intervention
Regressions Previously working properties that were broken A new feature success can hide damage to an old one
Boundary compliance Failures and attempts to perform prohibited actions High-quality code does not compensate for overstepping authority

These are proposed definitions, not the results of an editorial measurement. The acceptable threshold depends on the product. It makes sense to compare cost for accepted work, taking into account failed attempts and specialist time, not just the price of a single model call.

How to limit fix loops and avoid endless repair

Feedback is necessary, but by itself it does not guarantee convergence. An agent can keep fixing one symptom over and over, change tests to fit the new implementation, or move between several hypotheses without accumulating knowledge.

A work cycle must have resource limits and stop conditions. For example: the check is repeatedly unavailable; the reasons for failure do not change; an unknown contract is detected; action is required outside the agent’s authority; a fix would expand the impact area beyond the task. The process owner sets the specific limits.

When stopping, you need a meaningful result: what was checked, which hypothesis remains, which artifacts were collected, and what decision is required. Handoff to a human should save repeat investigation, not amount to a message that says, “it didn’t work.”

Not every manual intervention is a weakness of the factory. Clarifying a conflicting business rule with the process owner is the right transition. Endless self-directed guessing about such a rule is worse than an explicitly recorded question.

Technical debt: rules must be enforced during change

In the discussion, architecture drift is treated as an ongoing process. If you check the system only after a large volume of changes has accumulated, the agentic speed of generation can increase the scope of the subsequent review.

Some requirements are worth expressing formally: allowed module dependencies, contracts, types, testable invariants. Architectural tests help detect forbidden links. Mutation testing can additionally show weaknesses in tests, but it requires resources and thoughtful use; it does not have to run in full after every minor edit.

The remaining requirements are checked against the described rules and expert judgment. For example, “do not introduce a second competing way to access data without an accepted decision” is difficult to reduce entirely to a single linter. Here, you need a clear policy and context about the existing architecture.

Bridge compares the drive for the smallest possible patch with a more balanced engineering approach. Ponytail and code-that-fits-in-your-head are published tools, but the speaker’s preference is not comparative proof of effectiveness. The second relies on Mark Seemann’s book *Code That Fits in Your Head* and the author’s additions for agentic development.

The smallest change is not always the best one: it can cement a bad boundary. A large refactor does not become useful just because of its size. Compare the consequences for the specific task: clarity, verifiability, compatibility, and the future cost of change.

ADR and decision history: why preserve the reason for “weird” code

ADR, Architecture Decision Record, records the context, the decision made, and the consequences. This helps distinguish accidental complexity from a deliberate tradeoff. The original approach is described by Michael Nygard.

For an agent, the record is especially useful where the implementation looks imperfect from the outside. Without the reason, it may remove a workaround that protects an older integration, or propose again a version that was already rejected.

A useful ADR answers these questions: what problem was being solved, what constraints were in place, what options were compared, why the current path was chosen, and when the decision should be revisited. A link to the code and the discussion makes it possible to verify the connection between the decision and the implementation.

If the team changes an architectural principle, define the migration boundary. A local exception should not quietly become another equal standard. But neither does the mere presence of agents imply automatic rewriting of the entire codebase for consistency: you need a compatibility plan and verifiable stages.

At the end of the talk, fpf-problem-solving is also mentioned as a supporting tool for reasoning through complex decisions. The skill publication is available in the repository. This is an additional method for working through options, not a required component of Dark Factory and not a substitute for responsibility in architectural choice.

Legacy: when migration is needed, and when it is better to improve how you work with the current system

Old technology and code that is awkward for humans do not, by themselves, prove that the system must be rewritten. The discussion presents the opposite idea: first check whether agents can solve limited tasks in the existing system when given context and appropriate verification.

The reason for migration must be tied to product needs: required scaling, inability to maintain dependencies, reliability constraints, or limits on maintainability or operations. The phrase “this isn’t how people write code now” does not describe the economic or technical outcome.

If migration is needed, start by reconstructing the actual behavior. The code may not contain the full picture of a long-running process: some steps are performed by other services and by people. You need owners, data, events, exceptions, and time-based conditions.

After that, lock in critical behavior with tests and contracts. Separate boundaries gradually, preserving compatibility between the old and the new path. Logs help with investigation, but the absence of an event in logs does not prove the absence of the corresponding behavior.

For data changes, it is especially important to distinguish reversibility of code from reversibility of state. Rolling back to a previous application version does not automatically undo a completed migration. A backup is not the same as a safe rollback either: after it was created, new records and external effects may have appeared. Such a transition requires a separate agreed plan.

The agent’s task here is to help investigate, prepare, and verify a controlled stage. The decision to move a critical process should not be inferred from the model’s confident explanation of the old code.

How to spread skills across the team without freezing bad practices

The transcript makes a useful distinction between general organizational rules and local templates. A single way to connect to an approved API can be distributed centrally. A personal workflow that changes experimentally every day should not be imposed on the whole company as a ready-made standard.

For a shared set, you need an owner, a version, a scope of use, and a change process. Updating instructions can affect agent behavior just as much as updating a tool. That is why it is useful to know which version was used in a specific run and how to roll back to the previous one.

Separate mandatory policies, proven team processes, and experimental templates. A template should have a clear status: it is adapted to the task, not adopted as a validated practice for any system.

Git, a package, a plugin, or an internal catalog solve delivery, but not quality. You need to verify that the right agent discovers the skill, understands the conditions for use, and does not receive conflicting instructions from multiple sources.

The result of the stage is a managed library of processes. Its value is determined by how much it improves work on tasks, not by the number of installed files.

Migration roadmap: what results to deliver by stage

You do not have to build the entire platform before the first useful use of an agent. But autonomy should be expanded only when specific conditions are ready. The following order is a suggested route for an existing project, without universal timelines or promises of ROI.

Stage 1. Choose a process and set the boundary of impact

Name the owner, the type of incoming tasks, the desired outcome, and the prohibited actions. Separate reading and explanation from changes to code, infrastructure, and data. The result is a limited scope of work that the team is actually ready to explore with the agent.

Stage 2. Make the context accessible and verifiable

Prepare a project map, definitions of key terms, invariants, and decisions. Work through any material contradictions with the owners. The result is not “all documentation is ready,” but the ability to find the governing rule for the selected process and verify its source.

Stage 3. Ensure execution and feedback

Bring up a suitable environment and set up access to builds, tests, and diagnostics. The agent should see the actual verification status and distinguish an infrastructure failure from a change error. The result is a reproducible verification path for the selected tasks.

Stage 4. Formalize repetitive actions

Identify the tools and workflow, grant limited permissions, and provide clear responses and stop conditions. The result is that the agent does not keep rewriting the same utility scripts and does not get extra privileges for the sake of convenience.

Stage 5. Test the configuration on historical and new tasks

Restore correct input states, define criteria, and analyze the results. Account for human involvement and the cost of failed attempts. The result is a well-founded decision about what class of tasks the configuration truly supports.

Stage 6. Expand autonomy with a separate decision for each risk

Automating PR preparation does not mean you are ready to automate production migrations. For the next area, check constraints, diagnostics, rollback, and recovery in advance. The result is a broader but still clearly defined scope of independent work.

After each stage, return to real failures and improve the weakest layer. If the agent cannot see the logs it needs, changing the model may be more expensive than fixing the diagnostics tool. If the business rule itself is wrong, an additional test for the same rule will only cement the error.

End-to-end example: changing available stock in an existing product

Let's look at a fictional e-commerce system. The catalog shows product availability, a separate service manages reservations, and the accounting system sends updates. There is background processing and a legacy API client. This scenario is created to explain the approach and does not describe a customer project.

Request: the customer sees the item as available, even though it cannot be shipped. The process owner wants a fix without changing the reservation order and without breaking the legacy client.

First, the analyst gathers the rules. It turns out that physical stock differs from available stock, and part of the quantity is in a separate state that should not be offered to the customer. The glossary links terms to system concepts; the warehouse owner confirms any ambiguous interpretations. The agent does not assign a formula based on the habitual meaning of the field name.

Next, an impact map is built. The calculation is used by more than just the product page: data flows through the API, cache, and messaging. The history of joint changes points to the legacy client adapter. That is a reason to open the code and tests, not to automatically edit every file that was found.

Before implementation, scenarios are defined: a normal available item, a fully reserved item, an unavailable state due to a warehouse rule, and an update delay. Compatibility with the existing contract is preserved separately. The exact acceptable delay must come from requirements, not from a randomly chosen number in the example.

The developer makes the agreed change and runs quick checks. The integration run verifies the calculation and data-transfer chain, and the deployed components are checked in stage. If the result is not updated, the agent receives related events and logs to distinguish an incorrect formula from a bad cache or messaging configuration.

If it turns out that the data schema needs to change, the process moves to a separate decision. Do not quietly expand the task: the promise to “just fix the display” may have hidden a change to the shared availability model. The issue is returned to the owner with the evidence collected.

After a successful check, what remains is the code, the actual run results, the agreed definitions, an ADR if needed, and the constraints. The move to the next environment follows its policy. This is what useful agent autonomy looks like: independent investigation and verification within boundaries the team can explain.

How to tell that a project is not ready for greater autonomy yet

Evaluate not an abstract maturity percentage, but the obstacles to a specific transition. An agent can be useful for search and explanation even where independent changes are not yet allowed.

It is too early to talk about expanding privileges if the team cannot define a good outcome, reproduce the verification, or name the owner of a critical rule. Other strong signals are the absence of a controlled environment, unavailable diagnostics, and an inability to determine what actually happened after a failed command.

If the context exists only in one specialist’s memory, start by extracting it. If the instructions conflict, resolve the conflict. If every release requires a manual operation with unknown conditions, describe and test it first. These actions are useful for both people and agents.

Klyuchnikov separately notes the sensitivity of production operations and migrations. This nuance matters more than the appealing image of “assign a task and walk away.” System criticality is determined by the consequences of an error, not by how well the model handled the demo.

Frequently asked questions about Dark Factory in Enterprise

Can you do without GraphRAG and a context engine?

Yes, if available navigation, search, and documentation are enough to handle the selected tasks well. GraphRAG, meaning the use of graph representations in search and context assembly, is a possible addition. Its value should be measured, not inferred from the size of the repository.

Is it enough to write a good AGENTS.md?

No. It can explain where to find the rules and how to work, but it does not create missing tests, permissions, environments, or data. An instruction is useful when it points to capabilities that actually exist.

Do people need to read all the code the agent writes?

There is no single answer for all classes of changes. The organization sets policy based on risk and verification evidence. In the end, the presentation preserves the role of an engineer who can evaluate a material decision, especially when architecture and product impact are involved.

Can one agent be trusted with both code and its verification?

It can do both kinds of work, but the criteria should not be quietly adjusted to fit its implementation. Use independent scenarios and checks of the appropriate type. A separate reviewer agent is still a model and does not, by itself, create independent assurance.

What should you do if a new model makes part of the tools unnecessary?

Repeat the configuration assessment. Remove the tool from the controlled comparison and look at the quality, cost, and turnaround time of the work accepted. Implicit business knowledge does not become unnecessary just because the model got stronger.

Is it necessary to move everything to microservices?

No. Architecture choices should be based on product and operations requirements. A clear modular monolith can be more practical than a poorly observable service network. Agentic development does not eliminate the cost of distributed interactions.

Can you give an agent production secrets if you forbid it from showing them?

A text-only prohibition is no substitute for access control. A limited operation in a trusted tool, least-privilege access, and output controls are preferable. You also need to assess both the permissions of the operation and the risk of a secret appearing in logs.

What counts as success for the first deployment?

Repeatable execution of a limited class of tasks with clear quality, cost, human involvement, and boundary compliance. A single impressive demo or a reduction in the number of human-written lines does not describe the full result.

Sources and scope of this guide

The basis is the user-provided transcript of the talk and the following discussion. Original recording was published on the AI-Driven Development channel; the title and authorship were additionally verified against YouTube metadata. We did not separately re-check the audio or every moment of the video recording, so we do not include reconstructed-by-guesswork timestamps or disputed model names from automatic transcription.

Ideas about context, checks, and infrastructure have been paraphrased and organized. Role diagrams, the roadmap, the draft tool response, and the end-to-end warehouse example are proposed editorial constructs. They are not presented as the speakers' finished platform or as a proven client result.

The list of published practices and skills can be viewed in the CodeAlive-AI repository. AGENTS.md, Claude Code, OpenTelemetry, Pulumi, Argo CD, and Kubernetes documentation was used to clarify technical boundaries. Primary materials were checked on November 12, 2026. Implementations, feature support, and setting values may change; the applicability of a specific solution should be verified in the chosen stack.

The numbers in the current Real-SWE description apply only to its stated dataset. We did not reproduce this benchmark, compare the speakers' tools, or measure Dark Factory ROI. A summary of the talk does not mean its authors approved this guide or the studio's services.

How Vladimir Lomtev's AI studio helps prepare a process for AI agents

Vladimir Lomtev's AI studio can audit a selected process, prepare data and corporate knowledge, develop and test an MVP for agentic automation, and integrate it with business systems and interfaces. These are services for a specific task, not a promise to turn any enterprise into a fully autonomous factory.

The best place to start is with one process: describe how it works today, what sources it needs, what constraints apply, and what counts as an acceptable result. That makes it possible to determine which parts of the work are already ready for automation and where preparation is needed first. Discuss the project.

Bottom line: Dark Factory starts with a controlled process

For an existing enterprise, the move to agentic development is built from several interconnected tasks: making knowledge accessible, ensuring result verification, preparing infrastructure actions, and defining the boundaries of authority. A strong model helps within this system, but does not replace it.

The first practical step is to choose a limited process and walk it end to end: from the requirement and context to verification and the actual state of the environment. The result will show what your project specifically lacks: a definition of the term, an interface test, a diagnostic tool, or a controlled delivery operation.

Expand autonomy where a verifiable result and a clear next level of risk have emerged. Then Dark Factory becomes a direction for engineering growth that can be evaluated by accepted work, not just by an attractive name.

Request an audit

Share your contact details and we will follow up.

← All articles

Comments (0)

Loading comments…

Leave a comment
No registration required

Book a strategy call
for agentic operations

Tell us which workflow you want to improve. We will map feasibility, risks, and the fastest MVP path.

By submitting, you agree to our privacy policy

Contacts

Global Operations

Serving U.S. clients remotely
with private cloud and on-prem options

Strategy calls by request

We respond after reviewing your workflow context.

info@agentsunrise.pro

For partnership inquiries

Have a proposal?

Write to us in messengers

© 2026 AgentSunrise