sarathi — Production Software Engineering with AI Agents
A disciplined, adaptive workflow for turning accepted intent into production code, reviewable evidence, and better next decisions.
Enduring model: accepted intent → smallest safe increment → working behavior → evidence → feedback → adapt.
The documents preserve decisions along the loop. They are not a one-way waterfall, and approval means safe enough for the next learning step rather than frozen forever.
1. Deliver in a learning loop
Each stage answers a different question and keeps the next increment grounded.
Observed results return to the specification, design, or plan only when they change accepted needs, boundaries, risks, or remaining work.
2. Decompose to make complex work understandable
Keep the work together only while a competent engineer can understand, explain, review, and safely plan it as one coherent unit.
Yes: keep the work together. No: split along a natural product or technical boundary. Stop when each part is understandable, testable, and safe to integrate. A split does not automatically require more documents.
3. Test and review throughout delivery
Test intent matures across the stages, and every stage passes through repeatable checks plus independent judgment.
Test evidence thread
Quality gate at every stage
A stage is not accepted merely because its automatic checks are green. Independent review judges meaning, test adequacy, simplicity, and safety; assessment combines both before the next stage proceeds.
4. Preserve continuity
A new engineer or agent should be able to resume from evidence rather than chat history.
The WIP note is navigation, not product truth. Important claims are checked against source documents and working evidence before delivery continues.
5. Match assurance to risk
Every production change keeps the same safety floor; actual risk determines the depth of proof.
High assurance adds evidence for concrete risks. It does not require the whole project to be designed up front.
6. Keep supporting rules in their place
Practical authoring rules support the delivery model without replacing it.
Inspect and adapt: after each reviewed increment, continue, revise, stop, combine, split, or reorder the remaining work according to observed evidence and feedback.