Engineering practice: sprints and code review
Download checklist (.xlsx, 21 tasks)1. Core idea and principles#
Most deeptech products include software: firmware, control systems, data pipelines, models, user interfaces. Researcher-founders often bring lab coding habits (scripts on laptops, no tests, one person who understands everything). These work for papers but break once customers depend on the code.
You don't need big-company process. You need a few habits that keep a small team fast and the code trustworthy: short cycles, small changes, review by a second person, automated tests and a reliable way to release.
The minimum engineering system#
| Practice | What it is | Why it matters |
|---|---|---|
| Version control | All code (and configuration) in Git, with a main branch that always works | No lost work; anyone can see history |
| Short sprints | One-or two-week cycles with a goal, planning and a demo | Regular delivery and learning |
| Small changes | Pull requests of a few hundred lines at most | Faster, better reviews; easier rollback |
| Code review | Every change reviewed by at least one other engineer | Catches bugs, spreads knowledge, keeps standards |
| Automated tests and CI | Tests run on every change before merge | Prevents regressions |
| Simple release process | Repeatable deploys or firmware builds, with version numbers | Reliable releases and traceability |
| Retrospectives | A short review at the end of each sprint | Continuous improvement |
Principles#
1. Keep the main branch releasable.
- Small and often beats big and rare for changes, reviews and releases.
- Review is for quality and shared understanding, not gatekeeping. Aim to respond within one working day.
- Automate checks (formatting, linting, tests) so reviewers focus on design and correctness.
- Adapt sprints to hardware and lab work: longer lead times can sit outside sprints, and demos can show partial results (9.02).
- Use AI coding tools with stronger safeguards, because they speed up output but can add instability.
- Measure a few things: how often you ship, how long changes take, how often releases break and how fast you recover.
2. What the data says (November 2026)#
| Finding | Source |
|---|---|
| Analysis of about 9 million reviewed changes at Google found a light process: usually a single reviewer, quick iterations and small changes | Sadowski et al., Modern Code Review: A Case Study at Google, ICSE-SEIP (2018) |
| At Google, the median change modified 24 lines, about 90% of changes touched fewer than 10 files, initial feedback on small changes came in under an hour, and median time for the whole review was under 4 hours | Same study |
| Earlier studies cited in that paper found median times to approval of 14.7–19.8 hours at AMD, Chrome OS and Microsoft projects, and 24 hours in another Microsoft study | Same study, citing Rigby and Bird |
| The 2025 DORA survey (about 5,000 professionals) found AI adoption now improves software delivery throughput, reversing the previous year, but continues to increase delivery instability | Google DORA, State of AI-assisted Software Development (2025) |
| DORA describes AI as an amplifier: it strengthens teams with good foundations (version control, small batches, user focus, platform quality) and magnifies problems in weak ones | Same report |
What this means#
Small changes and fast reviews are the main lever; tooling and culture matter more than headcount.
One reviewer is usually enough for most changes in a small team.
If you use AI coding tools, invest more in tests, review and small batches, not less.
3. How to do it#
Step 1. Set up the basics (week 1)#
- Move all code into a shared Git repository (GitHub, GitLab or Bitbucket), including scripts and notebooks used for key results.
- Protect the main branch: changes only through pull requests with at least one approval and passing checks.
- Add continuous integration (CI) that runs linting and tests on every pull request.
Step 2. Agree a sprint rhythm#
| Ritual | Length (two-week sprint) | Purpose |
|---|---|---|
| Planning | 60–90 minutes | Agree a sprint goal and the work to reach it |
| Daily check-in | 10–15 minutes | Surface blockers |
| Demo | 30–60 minutes | Show working software or results to the team and sometimes customers |
| Retrospective | 30–45 minutes | What to keep, change and try |
For hardware or lab work with long lead times, track those items on a separate board and bring them into sprints when they are ready to act on.
Step 3. Write code review guidelines#
- Authors: keep pull requests small (aim for under 400 lines), describe what and why, link the ticket, add tests.
- Reviewers: respond within one working day; check correctness, design, tests, security and readability; separate must-fix comments from suggestions.
- Both: be kind and specific; discuss big disagreements in person.
Step 4. Build a test strategy#
Start with tests for the most critical and most-changed code: algorithms, control logic, data processing and interfaces with hardware. Add hardware-in-the-loop or simulation tests where possible. Track coverage of critical paths rather than an overall percentage.
Step 5. Make releases repeatable#
Version every release, keep release notes, and automate builds and deployments. For firmware, keep signed, reproducible builds and a rollback path.
Step 6. Set rules for AI coding tools#
Agree which tools are allowed, what code or data can be shared with them, that a human reviews all AI-generated code, and that tests are required (9.18).
Step 7. Measure and improve#
Track four simple measures monthly: deployment frequency, lead time for changes, change failure rate and time to restore service. Review them in retrospectives.
Worked example#
A robotics startup with five engineers writing perception and control software.
| Before | Change | After three months |
|---|---|---|
| Code on laptops; one engineer owned the control stack | Single repository; protected main branch; mandatory reviews | Two engineers can work on control code |
| Large weekly merges that broke the robot | Pull requests under 300 lines; CI with simulation tests | Broken builds fell from weekly to rare |
| No planning; urgent customer requests interrupted everything | Two-week sprints with a customer-request buffer | Demo every sprint; customer sees progress |
| Field updates by copying files | Versioned releases with automated deployment and rollback | Field updates take minutes, with a clear record |
4. Country notes#
Engineering practice is mostly the same everywhere. The differences are in IP, data and regulated software.
India#
- IP from contractors and freelancers: make sure contracts assign code and IP to the company, and avoid code written on employers' or universities' equipment (4.09, 4.10).
- Data: under the DPDP Act and Rules, personal data in test datasets and logs needs care; keep production data out of developer machines (4.13).
- Remote teams: many Indian deeptech teams work across cities; written pull request descriptions and recorded demos help.
United States#
- Medical device software must follow FDA's design controls (21 CFR 820, now aligned with ISO 13485 under the Quality Management System Regulation) and standards such as IEC 62304; reviews and tests become formal records (9.15).
- Export controls: some encryption or defence-related code is controlled; check before sharing repositories with foreign nationals (4.16).
United Kingdom#
- Medical device software follows UK MDR 2002 and IEC 62304; MHRA guidance on software and AI as a medical device applies.
- Open source licences: check licences of dependencies, especially copyleft licences, before shipping (2.16).
Everywhere#
If you're aiming for regulated markets, design your review and test process so it can become formal evidence later.
5. Scripts, mistakes and sources#
Scripts#
Introducing code review to a research team
"From Monday, every change goes through a pull request with one reviewer. It's not about trust. It means two people understand every part of the system, so nobody is a single point of failure, and we catch problems before the robot does."
Giving review feedback
"Must fix: this loop can run forever if the sensor returns no data; can we add a timeout? Suggestion: this function is doing three things, and splitting it would make it easier to test."
Setting an AI coding tool policy
"You can use the approved AI assistant for code. Don't paste customer data or unreleased algorithms into tools we haven't approved. Every AI-written change still needs tests and a human review."
Common mistakes#
- One engineer who understands critical code.
- Huge pull requests that nobody reviews properly.
- Reviews that sit for days.
- No automated tests, so every release is a gamble.
- Sprints with no goal or demo.
- Copying research scripts into production without tests or review.
- Adopting AI tools without strengthening review and testing.
Related playbooks#
- 2.16 Open source or proprietary; 4.09 Employment contracts and invention assignment; 4.13 Data protection; 4.16 Export controls
- 7.02 A writing culture; 9.02 Stage-gate R&D; 9.06 Tech stack and technical debt; 9.15 Quality systems; 9.18 Security engineering; 9.19 AI/ML models and evals
Sources#
- Sadowski, Söderberg, Church, Sipko and Bacchelli, Modern Code Review: A Case Study at Google , ICSE-SEIP (2018)
- Google DORA, State of AI-assisted Software Development (2025)
- Google, Engineering Practices: code review developer guide
- Forsgren, Humble and Kim, Accelerate (2018), for the four delivery metrics
This playbook is general information, not legal or regulatory advice.