← Back to the CV

Work project · internal platform

Dependency updates a human still merges

At work I built a self-hosted dependency-update platform, Renovate running as a GitHub App, and rolled it out to 16 repositories. Deterministic rules settle most bump PRs. Headless Claude Code grades the rest with evidence and, on repositories that opt in, fixes what a bump broke. A person merges every one. It replaced the vendor-hosted bot the team used before. This page describes the design in general terms and leaves out the employer's systems, data and names.

The problem

Opening bump PRs was never the expensive part. Deciding about each one was: safe to merge, needs a closer look, or blocked on a real code change. That decision was scattered across every repository's PR tab, and security fixes arrived by a second route, so the same package could be raised twice. Merging without a person was not an option, because a compromised release does its damage in its first hours.

What it does

Architecture

A nightly scheduler starts one chain per repository on CI runners. Renovate raises or refreshes bump PRs using a token scoped to that one repository. The engine classifies every open bot PR, and the ones it can't settle go to the assessor, which runs in a locked-down container with read access only. On repositories with auto-fix on, the fixer runs next in a separate container. It is the only stage that holds a write token. Results land as one comment per PR, edited in place, plus a dashboard issue for the whole fleet. A comment poller feeds maintainers' requests back into the same chain. Public repositories never see the model's reasoning; it goes to a private issue instead.

Design decisions

How it was proven

It went live on four repositories first, recommend-only, with a read-only preview mode that shows every comment it would post. It then grew to 16. A preflight checks each repository's security feed on every run, because a dead feed fails silently: no alerts looks like no vulnerabilities. Each production surprise, such as the fixer's first bad commit or a cancelled CI run read as a failure, became a rule with a test behind it.

Outcome

One review surface replaced a tab per repository: a verdict with reasons on each PR, and one dashboard for the whole queue. The vendor-hosted bot is gone, security and routine updates share one route, and a person still merges every PR.

What it doesn't do

It never merges, and automerge can't be switched on without a policy change. The fixer is off by default and stays off for public repositories. Upgrading to a new major version is still a person's decision.

Built with

Built through my own coding-agent loop.