Desenvolvimento
Dark factory: test the reviewer before auto-merge
December 3, 2026
Why it matters
A software dark factory takes a request, implements it, evaluates the result, and merges the change without a person reviewing every implementation. For developers already delegating substantial work to coding agents, the next decision concerns the reviewer: what evidence earns an automated evaluator the authority to approve changes?
Cole Medin investigates that question by using Archon to build an application that answers questions about his videos through retrieval over their transcripts. Much of the livestream goes into preparing the surrounding system: intake rules, workflow states, validation commands, and boundaries between implementation and evaluation. The implementation smoke test is still running when the stream ends. The recording exposes useful engineering problems, while leaving the complete autonomous cycle unproven within that session.
My starting point would be to challenge the evaluator with changes whose outcomes are already known. A reviewer should demonstrate that it rejects broken candidates and accepts a valid fix before its approval can trigger a merge. The practical exercise below adds that missing acceptance test for the factory itself.
Key points
- 07:44 Human responsibility shifts toward specifying goals and configuring the system. Product decisions become especially consequential because an unclear request can misdirect several automated stages before anyone sees the result.
- 13:15 Issues become the factory's input, with triage comparing requests against the project's mission. Useful intake must describe observable behavior and scope well enough to support a defensible acceptance decision.
- 15:30 Cole separates implementation from validation to reduce the influence of the proposed solution on its assessment. Separate contexts still need evaluation: two agents can independently adopt the same mistaken assumption.
- 42:49 Labels track workflow states, including active work, failed attempts, and escalation. Spending controls also enter the design, addressing the possibility that failures generate additional attempts and issues.
- 1:00:01 Triage combines model judgment with deterministic application of decisions. The model classifies requests; a script consumes structured decisions and applies labels and comments, making those responsibilities independently inspectable.
- 1:23:02 An early run encounters a jq compatibility problem under Git Bash and detects work already associated with open PRs. Environment compatibility and duplicate prevention become concrete prerequisites for scheduled execution.
- 1:26:55 Cole clarifies that the local triage test has not used MiniMax. Its outcome therefore does not establish the behavior of the model and infrastructure combination intended for the VPS.
- 1:35:42 Repository inspection finds prescribed quality commands without the development dependencies, tests, and CI setup needed to support them. Written expectations must be connected to executable checks.
- 2:06:33 Preparing validation exposes roughly 130 existing errors. Without a baseline, a narrowly scoped fix can expand into an attempt to repair unrelated problems throughout the repository.
- 2:12:08 The proposed validator receives a separate context, artifact directory, and worktree. This more detailed design allows the issue and diff while excluding implementation plans and developer rationale; broader regression testing remains a separate assessment.
- 2:16:34 Factory rules address change size, merge criteria, browser testing, and protected files. The proposed 500-line limit constrains scope, although a small diff can still carry substantial behavioral risk.
- 2:21:31 The stream closes with a third workflow built and the second workflow's test still running. Evidence of independent validation and a complete autonomous server run remains outstanding in this recording.
How to apply
Dark factory: give the evaluator an acceptance test
Start with a disposable copy of a small application, synthetic data, and automatic merging disabled. Choose an issue with an outcome you can verify directly. For a video retrieval application, a suitable request would require a specific question to return the correct source and open the video at the relevant timestamp.
Write the expected behavior before commissioning the fix. Include queries with accented names, alternate spellings, a question the collection cannot answer, and an attempt to retrieve content without the necessary authorization. Wording may vary across valid answers; source identity and access boundaries should remain verifiable.
Distinguish fresh context from reserved evaluation
Launching another agent and withholding evaluation scenarios from the implementer address different problems. The original StrongDM Software Factory account describes scenarios that can live outside the codebase, serving a role similar to a held-out evaluation set. This limits the implementer's ability to tailor the solution to every visible check.
To explore that principle, keep some scenarios and their execution mechanism in an environment the implementation agent cannot modify. Give the evaluator the requirement and the evidence needed to assess behavior. Exclude implementation plans and self-approval commentary. This arrangement reduces one source of influence; its ability to catch defects still needs measurement.
Build candidates with known outcomes
Prepare six candidate versions and evaluate them individually. This is an additional experiment proposed here, rather than a result demonstrated in the livestream:
| Candidate | Expected evaluator decision | |---|---| | Valid fix, checked beforehand | Approve | | No change, leaving the reported defect | Reject | | Plausible answer citing the wrong video | Reject | | Correct video with an incorrect timestamp | Reject | | Working search after authorization is removed | Reject | | Weakened test that conceals the defect | Reject |
Run each candidate with fresh context and retain the reports. Count incorrect approvals separately from incorrect rejections. If decisions vary across runs, repeat the relevant cases to understand that variability. Passing this small exercise establishes limited evidence about these cases; it cannot establish general reliability across an unfamiliar codebase.
Require reproducible evidence
Every decision should identify the exact candidate revision, commands executed, exit codes, and relevant scenario evidence. Browser captures can help establish that a source link opens correctly. Access-control scenarios also need evidence from the service response, since a working interface alone cannot establish that unauthorized retrieval was blocked.
Use three explicit outcomes: passed, failed, and could not verify. A browser that never starts or a missing dependency should produce the third outcome and prevent automatic approval. This keeps unavailable evidence visible instead of allowing it to disappear inside a confident summary.
Establish the baseline first
Run the checks on the starting revision and preserve their output. Resolve problems that prevent useful evaluation before starting the autonomous cycle. If an existing issue must remain, record it explicitly while retaining detection of new failures. Otherwise, a one-line repair can inherit responsibility for cleaning up the entire project.
Repeat the experiment on the intended server using the actual model and dependencies. Local success does not automatically transfer to another provider or runtime. The livestream makes that distinction particularly clear because its demonstrated local triage run did not use the planned MiniMax setup.
Protect governance files and evaluation mechanisms through effective permissions as well as agent instructions. A rule asking an implementer to leave the checks unchanged is weaker than an execution boundary that prevents it from changing those checks.
Expand authority as evidence accumulates
For an initial pilot, use one issue at a time, at most two repair attempts per issue, and an explicit spending cap. These are suggested starting limits, not thresholds validated by the video. Preserve logs before resetting the environment so you can investigate rejected and approved candidates afterward.
Calculate total cost per accepted change, including triage, implementation, evaluation, and retries. Compare that cost with review time saved and additional rework. A low token price can still produce an expensive delivery process when unsuccessful attempts accumulate.
Keep human approval during calibration. If you later enable automatic merging, validate against the latest integrated code before merging: independently successful changes can interact badly. An evaluator that approves a known broken candidate should lose merge authority until that evaluation failure is understood and addressed.
Resources mentioned
- Archon · Projeto open source usado para construir e executar os workflows; modelos e infraestrutura têm custos próprios.
- The Five Levels: from Spicy Autocomplete to the Dark Factory · Artigo de Dan Shapiro apresentado no início da live.
- StrongDM Software Factory · Relato técnico sobre cenários reservados, avaliação e simulação de serviços externos.
- Attractor · Especificações públicas para implementar um agente não interativo; não equivalem ao código completo da fábrica da StrongDM.
- Claude Code (paid) · Agente usado na live; o custo de execução depende do plano ou da API do provedor utilizado.
- MiniMax — integração com Claude Code (paid) · A live configura MiniMax M2.7 para o VPS. A documentação atual pode exemplificar modelos posteriores.
- agent-browser · CLI open source da Vercel Labs escolhida para a automação de navegador na regressão.
- Ollama — integração com Claude Code · Alternativa recomendada para experimentar modelos locais; execução local depende do hardware e serviços de nuvem podem ser pagos.
- Dynamous (paid) · Comunidade e cursos de Cole Medin recomendados na live; o nome aparece com variações na transcrição.