---
id: w5/m10/t007
title: Simplify — `/simplify` over the m10 diff
worker: worker5
status: done
estimate: 20m
depends_on: [w5/m10/t006]
---

## Objective

Run `/simplify` over the code this milestone changed — the stub rewrite, the not-found route, the domain core/adapters, and the instructions panel — applying reuse/simplification/efficiency/altitude fixes. Behavior-preserving only; correctness hunting stays with `/code-review`.

## Context

- Scope: the t001–t005 diff (`dashboard/scripts/local-bex.mjs`, `dashboard/src/features/services/`, `dashboard/src/routes/`, `lego/backend/internal/apps/`).
- Watch for: per-surface duplication of the DNS-record derivation (should live once in the domain core), stub resolver copy-paste across services, and panel/section component overlap with the existing custom-domains section.

## Steps

1. Run `/simplify` scoped to the m10 changes; apply or consciously decline each finding.
2. Re-run backend build/tests and dashboard lint/typecheck/test to confirm behavior preserved.

## Files

- Whatever the m10 diff touched (see Context).

## Acceptance criteria

- [ ] Findings applied or explicitly declined; no behavior change.
- [ ] Backend + dashboard checks green after cleanup.

## Out of scope

- Bug hunting; new tests (t008).
