A one day workshop, then four phases, each verified, documented and accepted.
A team of two senior embedded engineers, an FDA regulatory consultant and a project manager took over the repositories after a one day workshop, made the build reproducible in CI and fixed the defects in four phases.
Each phase was verified with unit tests, static analysis, integration tests in a Renode simulation and tests on our own bench hardware, then documented and accepted by the client. For defects that were hard to reproduce we built internal tools, for example a PC application that tunes and records the operating cycle on the device.
Our FDA regulatory consultant advised the client on the regulatory impact of the new features, and every feature contract states its regulatory assumptions and risk controls.