Recent claims about Claude sabotaging tasks convinced me again that Software factories, in general, are out of reach with the current approach.
Factories have to detect sabotage first, based on metrics and statistics. But the problem was raised by a new model that didn't cheat. Until there's a way to measure cheating, a Software factory is a nice pump moving your money to token providers. And I don't see any suitable criteria for how those Factories could measure how much a model cheats.
The hype around ASDLC has cooled lately, but I've seen a book on the subject, so let me get some traffic by sharing my experience.
Classic SDLC
The familiar Agile and Waterfall approaches use different strategies for a similar pipeline: the software development life cycle.
- Analysis
- Design
- Development
- Testing
- Deployment
- Maintenance
Pros of such an approach: it works, time-proven; cons are that developers are too slow, and so are QA and DevOps. They have to argue less and type faster, and features will reach production faster.
In the olden, pre-agent era, managers cared about process measurement. They tracked cycle time for development (3) + testing (4) + deployment (5), and lead time across the whole feature journey, from idea to user feedback. Usually, those metrics showed that cycle time was the smallest fraction of the whole lead time.
Before coding could start, someone had to collect and analyze requirements (business + non-functional), formulate a product hypothesis, and design an A/B experiment to validate the hypothesis with numbers. After deployment, the test still needed enough traffic to reach statistically meaningful results. Remember the previous generation's hype? They called this a data-driven company.
"A" means agentic
The ASDLC pitch addresses those cons: everyone CEO now. Drop a raw idea into chat, and the agent will handle the rest and notify you when the release is complete. Time for the next idea.
I know some specialized agents that can solve a limited class of tasks under the right conditions, though the result costs more than having a person do the work manually. But as I said already, a general autonomous and uncontrolled factory will benefit the shovel seller, not you.
Anyway, agents are challenging the working pipeline, and there is room for improvement.
Deterministic has to be the word of the year
Current models are great at solving small chunks of work, but still unreliable at coordinating within a larger process. As in non-agent processes, add more participants/workers/agents and you also add a coordination tax.
Organizing Intelligence separates task competence from coordination. I use two angles to manage the latter:
- Context management: what the agent knows and passes on.
- Rails: what it can do and how its work is checked.
The context management (which is king)
A feature moves from analysis to design and development through Confluence and meetings, then gets clarified in less formal chats and other communications. Some Confluence docs may never be read, while the most important context lives in a single private conversation in Slack.
With an agent, anyone can process more data, and generate and test hypotheses against it. But it works only if the data is accessible.
A shared knowledge base
Processes need to evolve to keep and update requirements, research, decisions, diagrams, and meeting transcripts where anyone involved can use them.
I would keep three kinds of context separate:
- Project level: knowledge that survives individual tasks, such as domain terms and architectural decisions.
- Task level: requirements and acceptance criteria.
- Session level: a handoff. Record what you did, what is still open, and what comes next.
At the end of a session, update and clean up task context. When the task is complete, update project-level context, move the task out of active context, and put it into cold storage.
Outdated hypotheses and other mid-term artifacts have to go to prevent the knowledge base from becoming a pile of rotten specs.
Research and grilling
During analysis, the agent uses the knowledge base to compare hypotheses and spot gaps in the requirements.
During design, grilling helps: the agent challenges the solution. Don't forget to merge findings and results into the upstream knowledge base.
Workspace, instructions, and skills
For development, it's convenient to restructure a plain workspace into a "metarepository" structure, with a single root for the whole project. For example:
~/workspace/
product-i-m-working-on/
backend-repo-1/
backend-repo-2/
frontend-repo/
deploy-scripts/
...
some related and unstructured docs
thirdparty-repo-1/
It allows you to start the agent from the root and give it access to all related stuff.
Use a cascade of AGENTS.md files: shared at the root, local ones close to the work they cover. Keep them short enough to maintain. For example, I have ~/workspace/<repo>/<service>/internal/db/AGENTS.md specifically for data modeling.
Automated feedback
Context management doesn't prevent drifting. Rails try to handle it by determining where and how the agent can act, and which results are acceptable. Rails may return immediate feedback so the agent can continue the loop, or force a hard stop.
Let the agent see its work
With a runnable environment and a way to interact with it, make changes, and check results, the agent can change the code, run a test, read the error, fix the problem, and repeat before asking for review. That's the autonomy we all want to achieve.
The first steps are formatting and linting. No need to persuade the agent to put { on the same or next line; cover it with a gate. Next, build, unit, and integration tests. All of them have to pass before calling for human attention.
A local dev environment with a minimal set of dependencies is a great opportunity to give the agent more autonomy by letting it run everything required and test the result.
I prefer that to building a pipeline that deploys the whole service to a test environment for an agent to test. Local runs have fewer dependencies and less room for environment drift. That pipeline is the least valuable option because it costs the most and is the least reliable.
Rules are not permissions
Never treat AGENTS.md or other instructions as deterministic rules. Context cannot enforce rules on an agent. Use ACLs, sandboxing or virtualization, and real permissions for databases and repositories.
Git hooks aren't protection. Use a protected branch with a CI gate.
Agentic E2E testing
I wrote that agentic testing is unreliable but still useful. An agent can run E2E scenarios in a browser, collect screenshots and errors, and produce a report. I have used this for production smoke tests, including a crawl of pages and a call flow between two browser tabs.
The unreliability comes from non-deterministic agent behavior. That's why someone must own the process: review the reports and investigate the results, even green ones.
Gates: Review and deployment
There is a separate cargo cult around code review: every PR needs an approval because every PR needs an approval. But what is the goal of this process? Find bugs? Maintain "code quality" (how do you measure it?)? Keep everyone on the same page? Choose some.
Anyway, the level of autonomy depends on the cost of a mistake.
In my workflow, I prefer review as a gate where I check structural boundaries and component responsibilities, and align my understanding with the code. Test data and fixtures are valuable data points too.
But for example, for a PoC or an experimental landing page, auto-approving review and deploying automatically may be a reasonable bet. On the other hand, for billing, security, or a network migration, I want a real review with an explicit deployment decision. See the Antigravity issue that locked Google Accounts. Such an incident has to have a name and a retro with a public postmortem, not just "agent did it".
Maintenance
Keep in mind the cost of a mistake. An agent will make one sooner or later. In my experience, read-only access to Kubernetes, Loki, Grafana, and other observability tools can help an agent investigate incidents and review metrics. But even with read-only access, privacy concerns remain.
I would not give the agent permission to change the infrastructure or write to the database. Reading an incident is one thing; executing a fix or a rollback is another.
Conclusion
| SDLC step | Context management | Rails and feedback |
|---|---|---|
| Analysis | Research, existing decisions, task requirements | Acceptance criteria, open questions, decision to proceed |
| Design | Architecture, constraints, alternatives | Challenge assumptions; human review for significant decisions |
| Development | Code, project instructions, skills, related components | Permissions, sandbox, linting, tests |
| Testing | Scenarios, expected behavior, acceptance criteria | Unit and integration tests, CI, E2E reports and review |
| Deployment | Release plan, dependencies, logs, metrics | Access controls, approval based on risk, rollback plan |
| Maintenance | Incident history, changes, previous decisions | Monitoring, post-change checks, improvements after failures |
A computer can never be held accountable, therefore a computer must never make a management decision. (c) IBM 1979

Top comments (0)