Blog

How to Review an Offshore Engineering Sprint Before You Pay

A demo and a green check mark are not proof. A practical review for buyers covering acceptance criteria, pull requests, tests, CI evidence and clean clones.

outsourcingcode-reviewtestingci

The sprint demo goes well. The new checkout integration places an order, the payment shows up, the dashboard updates. The vendor’s report says all tests pass. You approve the invoice.

Three weeks later your own team picks up the code. The happy path is all there is. A declined card leaves the order in a state nothing can recover from. The tests that “all pass” check that the endpoints return 200. The configuration only works with the demo account. None of this was hidden. Nobody looked.

This is a common pattern with outsourced work, and it isn’t always bad faith. A demo shows what was built to be shown. A green check mark shows that whatever ran didn’t fail. Neither tells you whether the work meets the agreement you’re paying for.

The approaches that don’t work

Watching the demo. A demo runs the path the presenter chose, with the data the presenter prepared. Failure handling, edge cases and operability are invisible in a demo by design.

Accepting “all tests pass.” Passing tests prove only that the tests that ran didn’t fail. They say nothing about what the tests check, or whether some never ran.

Counting hours, commits or story points. These measure activity. You’re paying for an outcome that meets acceptance criteria.

Trusting a coverage percentage. Coverage tells you which lines executed during tests, not whether any test would notice if those lines were wrong. A test with no assertions produces excellent coverage.

A review that works

Do this before you pay, ideally against a checklist you agreed on before the sprint started. It needs a senior engineer’s attention, and you can split the work with the vendor: they assemble the evidence, you check it.

  1. Start from the written acceptance criteria. Every sprint should have them in the statement of work. For each criterion, ask the vendor to point at the pull request and the test that proves it. A criterion without a test is a criterion you’re taking on trust.
  2. Read the pull requests in your own repository. The work should arrive as reviewable PRs in a repo you own, not as a zip file at the end. Look at size, at whether behavior changes come with test changes, and at the review comments.
  3. Read what the tests assert, not just their names. Open three of the tests behind your most important criteria and check that they would fail if the feature broke. A good test checks outcomes, not just status codes. Ledgerline’s LL-I08 sends 50 copies of one webhook at once; it doesn’t stop at “every response was 200”. It also asserts exactly one inbox row, 49 duplicate responses, an order version that moved exactly twice, and a single merchant notification.
  4. Check the CI evidence, and read the log. Note the commit the numbers came from. Look for skipped tests and quietly relaxed thresholds.
  5. Run it yourself from a clean clone. If the README’s quick start doesn’t work on a machine that has never seen the project, your team will hit the same wall on day one.
  6. Look for quality gates in the build, not in a slide. Thresholds that fail the build are enforceable. Promises in a status report are not.
  7. Read the known limitations. A good vendor writes them down. If the list is empty, ask why.

The review, step by step

The commands below run against Ledgerline, our public demo repository. Point them at your own repo.

1. List the sprint’s pull requests and whether tests changed

The GitHub CLI shows every merged PR with its size and how many test files it touched:

gh pr list --repo specshield-io/ledgerline --state merged --limit 100 \
  --json number,title,additions,deletions,files \
  --jq '.[] | "#\(.number) +\(.additions)/-\(.deletions) tests=\([.files[].path | select(test("src/test/|\\.test\\.|\\.spec\\."))] | length) \(.title)"'

A PR that changes code with tests=0 is a question to ask, not automatically a problem. Ledgerline’s history has three. Two are documentation and link-check changes. The third, #18, is a security fix in the signature verifier, and its description answers the question up front: behavior is unchanged, and the existing tests LL-U08, LL-U09 and LL-U10 cover it. That’s the kind of answer you want to be able to get in a minute.

2. Trace acceptance criteria to named tests

If test names carry IDs from a test catalogue, you can map criteria to tests without reading every file. Ledgerline names tests LL-XXX description, so one command lists every ID that has a test:

grep -rhoE '"LL-[A-Z]+[0-9]+' ledgerline-api/src/test | tr -d '"' | sort -u

Compare that list with the IDs in the statement of work. Anything in the SOW and not in this list has no test.

3. Pin the evidence to a commit

Numbers without a commit hash can’t be checked. Ledgerline’s CI publishes its results as JSON, so you can pull the fields you care about:

curl -s https://specshield-io.github.io/ledgerline/evidence/latest.json \
  | jq '{gitSha, builtAt, tests, coverage, mutation, load: {p95ms: .load.p95ms}}'

The current file reports commit e360215, built November 24, 2026, on GitHub-hosted Ubuntu runners: 371 tests (226 unit, 134 integration, 11 end-to-end), 0 failed, 95.2% line coverage and a 90.1% mutation score. Its load-test latency is null, meaning not measured. That’s the honest answer, and it’s what you should see instead of a number nobody can reproduce.

4. Find the gates in the build file

Ask where each threshold is enforced. In Ledgerline it’s the Maven build: ledgerline-api/pom.xml sets line-coverage minimums of 90% overall and 90% for the domain package, with the comment “never lower it to make a build pass”, and gates mutation testing:

<!-- LL-N02: fail below 70 % of mutants detected. -->
<mutationThreshold>70</mutationThreshold>

Mutation testing (PIT here) changes the code under test, for example flipping a condition, and checks that some test fails. It is the most direct answer to “would these tests notice if the code were wrong?”

5. Read the log, not the check mark

This one comes from this website’s own repository. When we added visual regression tests, the first CI run was green. The log told a different story: every screenshot test printed “A snapshot doesn’t exist … writing actual” and passed. Playwright writes a missing baseline and marks the test as passed, so the suite had compared nothing. We added a step that fails the build unless every baseline is committed:

- name: Require committed visual baselines (WEB-T10)
  if: ${{ !cancelled() }}
  run: |
    changes="$(git status --porcelain --untracked-files=all tests/e2e/__screenshots__)"
    if [ -n "$changes" ]; then
      echo "$changes"
      echo "::error::Visual baselines are missing or were rewritten. Download the visual-baselines artifact, review the PNGs, and commit them to tests/e2e/__screenshots__/."
      exit 1
    fi

Nobody was cutting corners. A tool’s default turned a missing check into a passing one. Reading the log is how you find these.

How we hold ourselves to this

Ledgerline’s conventions file makes most of this review cheap. Every behavior change ships with tests. Integration tests run against PostgreSQL in Testcontainers, never an in-memory substitute. Tests are named after catalogue IDs. Mutation testing is gated at 70% on the core packages (LL-N02). A CI job named fresh-clone (LL-N06) checks that the README quick start works on a brand-new runner. Its Definition of Done ends with “any claimed number is reproducible.”

This website follows the same pattern: each quality check has an ID (WEB-T01 to WEB-T18) and runs in CI on every pull request, and the visual-regression fix above is in the commit history.

Trade-offs

It costs time. Senior review time is real money. It’s still cheaper than discovering the gaps after you’ve paid and your team has started building on top.

Evidence can be gamed. Tests can assert nothing and numbers can be cherry-picked. That’s why steps 3 and 5 matter: read a sample of tests, and run the build yourself.

Some gates are slow. Mutation testing can take far longer than the normal test run. Running it nightly or on demand, gated before release, is a reasonable compromise.

Small vendors may not have this setup. Ask anyway. A vendor who can’t show you PRs, tests and a reproducible build at the end of a sprint won’t be able to at the end of the project either.

When the review finds gaps

Gaps are normal; what matters is how they’re handled. Write each one down against the criterion it affects. Agree whether it’s a defect (the vendor fixes it within the sprint price) or a scope change (it goes into a written change request with its own estimate). Accept the sprint, and pay, when the defects are closed. A vendor who resists this split for a two-week sprint will resist it more for a six-month project.

A checklist you can copy

  • Every acceptance criterion maps to a pull request and a named test.
  • All work arrived as pull requests in a repository you own.
  • Behavior-changing PRs include test changes, and you know why the others don’t.
  • You read at least three tests behind your most important criteria, and they would fail if the feature broke.
  • CI evidence names the commit and environment it came from.
  • The CI log shows no skipped tests, silently created baselines or relaxed thresholds.
  • Coverage and mutation thresholds live in the build file and fail the build.
  • The quick start works from a clean clone.
  • Known limitations are written down.
  • Payment is tied to acceptance of the criteria, not to hours or the demo.

See it in a real repository

Everything above can be checked against Ledgerline and its evidence page. A hosted demo isn’t published yet; when it is, it will be on the Ledgerline lab page.

If you want a second opinion on a sprint you’re about to pay for, book a 20-minute engineering call.

Talk to the engineers who would do the work

20 minutes with a senior engineer about your integration, webhook or backend problem. You leave with a concrete next step, whether or not we work together.