REPO REVIEWARCHITECTURE & SECURITY

Guide

Accepting code from an agency or vendor: what to check before you sign off

What to check before you accept software from an agency or contractor and make the final payment: ownership, builds, tests, secrets, licences, documentation and handover, with acceptance criteria to put in the contract.

1Why check before you sign off

The final payment is the last moment you have leverage. After it, fixing what an agency left behind is your cost, and the people who understand the code have moved on to their next client. A few days of checking before sign-off is cheap by comparison.

None of this assumes bad faith. Most problems at handover come from deadlines, not intent: the tests that were going to be written later, the password that was meant to be temporary, the deployment that only works from one laptop.

2Do you actually have it?

  • The whole repository, with its history, in an account you own. Not a zip file, and not access to the agency's account.
  • Every account the system depends on (hosting, domains, email, payments, app stores, outside APIs) owned by you, with the agency added as a user you can remove.
  • Code you have the rights to. Check the contract assigns the intellectual property, and that the code has no licences that conflict with how you plan to use it.

3Is it built properly?

  • It builds from a clean checkout using only the written instructions.
  • Tests exist and pass, and they cover the parts that matter: sign-in, payments, permissions and anything that deletes data.
  • Files and functions are a size a new developer can follow. One enormous file that does everything is expensive to change.
  • Dependencies are current and pinned, not abandoned or years out of date.

4Is it safe?

  • No passwords, keys or tokens in the code or its history. If any were ever committed, they must be rotated, and the new ones kept out of the code.
  • No credentials that belong to the agency's own accounts left in the configuration.
  • Users sign in securely, can only reach their own data, and input is validated.
  • Errors are handled and logged, not swallowed, so you find out when something breaks.

5Can someone else take it over?

The real test of a handover is whether a developer who has never seen the code can work on it. Ask for:

  • A README that gets a new developer from checkout to a running system.
  • An architecture overview: the main parts, how they connect, and every outside service the system calls.
  • How to deploy, written down, and done at least once by someone outside the agency.
  • A list of known issues and shortcuts. Every project has them, and an honest list is a good sign.

6Acceptance criteria for the contract

These are easier to agree before the work starts than to argue about at the end. Consider writing them into the contract as conditions of the final payment:

  1. The repository, with its full history, is transferred to an account the client owns.
  2. A developer chosen by the client can build, test and deploy it using only the documentation supplied.
  3. No secrets are present in the code or its history, and all credentials have been handed over and rotated.
  4. Automated tests cover the agreed critical paths and pass.
  5. An independent review finds no High severity issues, or the agency fixes those it finds.

7Where Repo Review fits

Repo Review reads the repository and reports on these points in a form a non-specialist can act on: a health verdict, seven ratings out of ten each with its weakest point, and the findings that matter, every claim checked against the source and read by an architect before it is released. The Snapshot is free, one per repository, and runs in about five minutes. The Full Audit (A$149 a repository at launch) works through every criterion and adds the risk register, a remediation roadmap, the architecture document with diagrams, and key-person, dependency and licence analysis.

For a handover it gives you an independent second opinion in a form you can share with the agency: findings with their evidence and severity, so the conversation is about specific code rather than impressions.

It reads the code, not the running system. It does not test production, scan your cloud accounts or replace a penetration test, and it says where the repository cannot answer a question (a backup that lives in a hosting console, for example). The code is not kept: the copy taken for a report is deleted as soon as the run ends.