Sarathi process
Two trees show how accepted documents lead to code; the learning loop shows how evidence changes what comes next.
WORK-* = assigned work
WORK-EXAMPLE Parent plan
→ Focused child work
Only work that is ready to implement invokes /code-create. Approval means
safe enough for the next learning step, not frozen or final.
Use lighter review for a small reversible change, normal review by default, and stricter review when failure could cause serious harm. Start with the smallest solution for current users. Process records stay outside product code.
1. PR-sized leaf
No breakdown is needed.
PR-*, Red/Green, files to change, pass/fail checks
2. Split work only when a question blocks implementation
This larger tree applies only when the approved requirements, design, and one implementation plan are not enough. A large feature or many screens is not, by itself, a reason to add more documents.
Start from the approved requirements and design with one short implementation plan. Add another document only when a specific unanswered product decision, external contract, serious risk, ownership conflict, or missing acceptance criterion prevents safe implementation.
Neuring before / after: before, approved requirements, architecture, prototype, and runtime evidence still triggered a repeated feature Spec/Design chain. After, one shallow plan implements the first prototype-matching investor UI slice, excludes backend and BLE integration, and stops for stakeholder UI review. Later UI slices reuse the same plan unless feedback changes a real boundary.
WORK-FEATURE-ONE
Assigned by the product plan
→
Feature child: sufficiently small leaf
WORK-FEATURE-TWO
Assigned by the product plan
→
Feature child: needs another breakdown
WORK-SLICE-A
Assigned by the feature plan
→
Slice child A
WORK-SLICE-B
Assigned by the feature plan
→
Slice child B
WORK-SYSTEM-INTEGRATION
Assigned by the product plan
→
Integration slice child
Integration is incremental: slices prove boundaries, features prove local composition, and explicit integration slices prove cross-feature behavior. Requirement links show ownership; execution results prove outcomes.
3. Inspect and adapt
Every assessed slice can change its parent documents and the next selected work.