---
id: w8/m4/t007
title: Simplify — /simplify over the code this milestone changed
worker: worker8
status: done
estimate: 20m
depends_on: [w8/m4/t006]
---

## Objective

Run `/simplify` over the diff this milestone produced (migration, compaction routine, loop wiring, query branch) and apply behavior-preserving cleanups.

## Context

- Quality-only pass — no new bugs to hunt, just reuse/simplification/efficiency review.

## Steps

1. Run `/simplify` scoped to this milestone's changed files.
2. Apply the suggested fixes.
3. Re-run `go build ./... && go test ./...` (from `lego/backend/`) to confirm nothing broke.

## Files

- Whatever t001–t006 touched.

## Acceptance criteria

- [ ] `/simplify` findings applied or explicitly dismissed with reasoning.
- [ ] Build/tests stay green after cleanup.

## Out of scope

- New feature work.
