Home / Insights / Architecture and Modernization
Architecture and Modernization
Inheriting an App with No Documentation: A 30-Day Stabilisation Plan
When a previous vendor or developer leaves and the documentation never existed, the temptation is to start fixing or rewriting straight away. A disciplined first month of securing, observing and mapping the system is cheaper and far safer.
Key takeaways
- In week one, secure ownership of every account, credential, domain and store listing before you touch the code. Lost access is the most expensive problem to fix later.
- Add monitoring before making changes: track latency, traffic, errors and saturation, so you can tell whether your fixes help or hurt.
- Rebuild documentation from the running system: an inventory of components, a dependency list, data flows and decision records, written as you learn.
- Prove you can build, deploy, back up and restore the app yourself before shipping any non-urgent change.
- End the month with a risk register and a written recommendation, not a rewrite.
On this page
- What stabilisation means, and what it does not
- Week 1: secure access and ownership
- Week 2: make the system observable before changing it
- Weeks 2 and 3: rebuild the documentation from the running system
- Week 3: reduce the most dangerous risks
- Week 4: build the risk register and decide what comes next
- Risks, costs and common mistakes
- 30-day stabilisation checklist
- Frequently asked questions
- Sources and methodology
The situation is common. A product has been running for a few years, built by a freelancer, a small agency or an in-house developer who has since left. There is no architecture document, no runbook and perhaps no README. The app still makes money or supports operations, but every change feels risky, and nobody is sure where the servers are or who holds the passwords.
This article is for founders, CTOs and operations leads who have just inherited such an app, or are about to bring in a new team to look after it. It sets out a 30-day plan we use as architects when a client asks us to take over an undocumented system, and it mirrors the assess-then-stabilise approach behind our software maintenance service. The goal of the first month is not new features. It is to reach a position where you control the system, can see what it is doing, understand its shape and know its biggest risks.
What stabilisation means, and what it does not
Stabilisation is a short, bounded phase with four outcomes:
- Control: your organisation owns every account and credential needed to run, deploy and recover the app.
- Visibility: you can see errors, performance and availability in production, and you are alerted when users are affected.
- Understanding: a new engineer can read a few pages and diagrams and know how the system fits together.
- A ranked list of risks, with a recommendation for what to do next.
It is deliberately not a refactoring project, a rewrite or a feature sprint. Most of the incidents we see after a handover come from changes made before anyone understood the system: a dependency upgrade that broke a payment callback, a database migration with no backup, a server restart that lost configuration stored only in memory. Keep changes during the first month to urgent fixes and safety improvements.
Agree the ground rules on day one
- A short change freeze on non-urgent features, agreed with the business, typically for two to four weeks.
- A single person accountable for the takeover on each side, if the previous team is still reachable.
- A shared log where every discovery, credential transfer and decision is recorded as it happens.
Week 1: secure access and ownership
Before reading a line of code, find out what you actually control. Access gaps are the problems that grow worse with time: a domain that lapses, an app store account held by a former contractor, a cloud bill on someone’s personal card.
The access inventory
| Asset | What to confirm | Common gap |
|---|---|---|
| Source code repositories | Owned by your organisation; full history; all branches | Code only on the developer’s account or laptop |
| Cloud and hosting accounts | Root or owner access; billing in your name; MFA enabled | Shared login; billing on a personal card |
| Domains and DNS | Registrar account; renewal date; DNS provider | Domain registered to the previous agency |
| App store accounts | Apple and Google developer accounts; signing keys and certificates | Android signing key held only by the former developer |
| Third-party services | Payment, email, SMS, maps, analytics, error tracking; API keys | Keys hard-coded in source; accounts in a personal name |
| Databases and backups | Admin credentials; where backups go; retention | No backups, or backups never tested |
| CI/CD and build secrets | Pipeline access; environment variables; deploy keys | Builds run only from one person’s machine |
Actions for week one
- Transfer ownership of each asset to organisational accounts, not personal ones.
- Rotate every credential the previous team held, once you have confirmed what depends on it, so a rotation does not break production.
- Enable multi-factor authentication on all admin accounts.
- Record each asset, owner, renewal date and recovery method in your shared log.
If the previous developer is uncooperative or unreachable, prioritise the assets that cannot be recreated: the code history, the Android app signing key or its upload key arrangement, and the domain.
Week 2: make the system observable before changing it
Without monitoring, you cannot tell whether the app was already failing or whether your change broke it. Add visibility before you add fixes.
Start with the four golden signals
Google’s Site Reliability Engineering book, in its chapter on monitoring distributed systems, recommends four signals as the minimum for any user-facing system: latency (tracking failed and successful requests separately), traffic, errors (including responses that succeed but return the wrong content) and saturation of the most constrained resource. For an inherited app, these are enough to establish a baseline in a few days.
- Error tracking in the backend, web front end and mobile apps, so crashes and exceptions are grouped and counted.
- Uptime checks on the main user journeys: login, the core transaction, payment callbacks and scheduled jobs.
- Infrastructure metrics: CPU, memory, disk, database connections and queue depth.
- Centralised logs with enough retention to investigate incidents, and with personal data handled appropriately.
Alert on symptoms, not causes
The same SRE chapter advises paging on what users experience rather than on internal causes, and says every page should be actionable and need human judgement. In practice, for an inherited system, start with a handful of alerts: the site or API is down, the error rate has jumped, a critical scheduled job has not run, a disk is close to full. Resist alerting on every warning in the logs; undocumented systems are often noisy, and alert fatigue sets in quickly.
Record a baseline
By the end of week two, write down what normal looks like: typical response times, daily error counts, peak traffic hours and recurring failures. This baseline is what you will measure every later change against.
Weeks 2 and 3: rebuild the documentation from the running system
With no documents to read, the running system is your source of truth. Work outwards from production.
Build a runtime inventory
- List every deployed component: web apps, APIs, workers, cron jobs, databases, caches, queues, storage buckets and mobile app versions in the stores.
- For each, note the language, framework and version, where it runs, how it is deployed and what it talks to.
- Draw a simple context and container diagram: users, external systems and the main deployable parts. A diagram on one page is worth more than a long document nobody updates.
Trace the critical journeys
Pick the three to five journeys that matter most to the business, such as sign-up, placing an order, taking a payment or generating an invoice. Follow each through the code, logs and database, and document the data flow, the external calls and where failures would surface.
Capture decisions as you discover them
You will find puzzling choices: an unusual library, a duplicated table, a hard-coded rule. Record each one in a short architecture decision record (ADR): context, decision, consequences. ADRs normally document decisions you make, but writing them for inherited decisions you have reverse-engineered, marked as inferred, saves the next engineer from rediscovering the same facts.
Pin behaviour with characterisation tests
Before you change a critical area, write tests that record what the code currently does, even if that behaviour looks wrong. These tests do not judge correctness; they warn you when a change alters behaviour unexpectedly. Focus them on calculations, pricing, permissions and integrations. If you need production-like data for this, our guide to test data without exposing personal information covers safe approaches.
Week 3: reduce the most dangerous risks
Now you know enough to make careful, high-value changes. Focus on the risks that could cause data loss, security incidents or an inability to deploy.
Prove you can build and deploy
Rebuild the app from source in a clean environment and deploy it to a staging environment. Many inherited apps can only be built on one machine, with undocumented environment variables or a manual upload step. Capture every step in a script or CI pipeline. If you cannot reproduce the production build, you cannot safely fix anything.
Test backup and restore
Confirm that backups exist, then restore one into a separate environment and check the data. An untested backup is an assumption, not a safety net. Write the restore steps into a runbook.
Inventory and triage dependencies
The OWASP Top 10 entry on vulnerable and outdated components lists the conditions that apply to most inherited apps: not knowing the versions of all components, including nested dependencies; running unsupported frameworks, runtimes or databases; and not scanning regularly. Its prevention advice translates into a clear sequence:
- Generate a full dependency inventory for each component.
- Run software composition analysis to flag known vulnerabilities.
- Identify unsupported runtimes and libraries that no longer receive patches.
- Remove unused dependencies and features.
- Patch critical vulnerabilities now, behind your characterisation tests; schedule major framework upgrades for later.
Large upgrades, such as moving a Java service to a current long-term-support release, are rarely a first-month job. Our article on upgrading to Java 21 and Spring Boot 3 incrementally shows how to stage that work once the system is stable.
Week 4: build the risk register and decide what comes next
The final week turns discoveries into decisions. Write a risk register: each risk, its likelihood, its impact, the evidence and a proposed action. Then make a recommendation for the next three to six months.
Choosing the path forward
| Option | Choose it when | Avoid it when |
|---|---|---|
| Maintain as is | The app is stable, the stack is supported and change requests are small | Runtimes are out of support or every change causes incidents |
| Incremental refactor | Core logic is sound but specific modules are fragile or untested | The architecture blocks the business roadmap entirely |
| Replatform | Hosting or runtime is the main risk, such as end-of-life servers | The application code itself is the bigger problem |
| Strangle and replace in parts | Some areas need rebuilding but the system must keep running | The team cannot yet build and deploy the current system reliably |
| Full rewrite | The stack is obsolete and the domain is well understood and small | Rules are only known from the code; rewrites lose undocumented behaviour |
For example, a 15-person logistics company with an ageing PHP booking system might reasonably choose to replatform the hosting and refactor the payment module, while postponing any rewrite until characterisation tests cover the pricing rules. That is an illustrative scenario, not a universal answer; the evidence gathered in weeks one to three should drive the decision.
Set a delivery baseline
Before moving into regular maintenance, record a few delivery measures so you can show improvement. DORA’s software delivery metrics include change lead time, deployment frequency, change fail rate and failed deployment recovery time. DORA advises applying them per application and using them to improve over time rather than as targets, which suits an inherited system well.
Risks, costs and common mistakes
The first month typically needs a senior engineer or architect, with DevOps and QA support, and access to someone who knows the business processes. The cost is small relative to the cost of one serious incident caused by changing a system nobody understands.
Mistakes we see most often
- Starting with a rewrite estimate. Estimating a rewrite before mapping the system almost always underestimates hidden behaviour.
- Rotating credentials blindly. Changing a key without knowing every place it is used can take down production. Inventory first, then rotate.
- Upgrading everything at once. Bundle upgrades make failures impossible to attribute. One change at a time, with monitoring.
- Documentation as a separate project. Write documentation as you learn, in the repository, or it will never be written.
- Skipping incident reviews. When something breaks during takeover, run a short blameless review. Google’s SRE guidance on postmortem culture recommends defining triggers in advance, such as user-visible downtime, data loss or an incident found manually because monitoring missed it, and focusing on systems rather than individuals.
To keep the codebase from sliding back after stabilisation, consider automated guardrails such as architecture fitness functions in CI.
30-day stabilisation checklist
- All repositories, cloud accounts, domains, app store accounts and third-party services are owned by your organisation.
- Credentials held by the previous team are inventoried and rotated; MFA is on for every admin account.
- Error tracking, uptime checks, infrastructure metrics and centralised logs are live, with a small set of symptom-based alerts.
- A written baseline of normal performance and error rates exists.
- A one-page system diagram, runtime inventory and critical journey maps are in the repository.
- Inferred decisions are recorded as ADRs.
- Characterisation tests cover the most critical business logic.
- The app can be built and deployed from a clean environment by the new team.
- A backup has been restored and verified, and the steps are documented.
- A dependency inventory exists, critical vulnerabilities are patched and unsupported components are listed.
- A risk register and a written recommendation for the next three to six months have been reviewed with the business.
Frequently asked questions
Can we add features during the first month?
Only urgent ones. A short freeze on non-urgent features lets the team secure access, add monitoring and understand the system first. Changes made before that point cause most handover incidents.
What if the previous developer will not hand over credentials?
Prioritise what cannot be recreated: code history, the domain and mobile app signing arrangements. Platform providers usually have account recovery or ownership transfer routes for organisations that can prove ownership, but these take time, so start early and take legal advice if needed.
Should we just rewrite the app?
Not before you understand it. Undocumented systems contain business rules that exist only in code. Map the system and pin behaviour with tests first; then decide whether to maintain, refactor, replatform or replace in parts.
How much documentation is enough?
Enough for a new engineer to become productive within days: a one-page diagram, a runtime inventory, critical journey maps, runbooks for deploy and restore, and decision records. Keep it in the repository so it changes with the code.
What should we expect at the end of 30 days?
Full control of accounts, working monitoring and alerts, reproducible builds and deploys, a tested restore, a dependency and risk inventory, and a written recommendation for the next phase.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- Google SRE Book: Monitoring Distributed Systems — accessed 9 November 2026. The four golden signals and symptom-based, actionable alerting.
- Google SRE Book: Postmortem Culture, Learning from Failure — accessed 9 November 2026. Postmortem triggers and blameless review principles.
- OWASP Top 10 (2021): A06 Vulnerable and Outdated Components — accessed 9 November 2026. Conditions that make apps vulnerable and prevention steps: inventory, SCA, removing unused dependencies, unmaintained libraries.
- ADR GitHub organisation: Architectural Decision Records — accessed 9 November 2026. Definition and purpose of architecture decision records.
- DORA: Software delivery performance metrics — accessed 9 November 2026. Delivery metrics for a post-stabilisation baseline and advice to use them per application, not as targets.
Related reading
Continue your research
Inherited an app nobody can explain?
We can run a technical health check, secure your accounts and stabilise the system before you decide what comes next.
