# Split a module at a tested seam — acceptance checklist

Record evidence for every checked item. Unchecked or untested is not a pass. This checklist does not execute an integration or authorise external actions.

## Required inputs

- [ ] A fixed source revision, one module to split and a concrete reason such as unrelated callers sharing mutable state or external I/O.

- [ ] Known callers, current exports, dependency graph and existing behaviour tests, with runtime and build versions unchanged.

- [ ] Allowed edit paths, project test commands and a local checkpoint that preserves concurrent or uncommitted work.

## Output checks

- [ ] Every supported caller is migrated, retained behind a documented forwarding export or explicitly outside the agreed scope.

- [ ] The selected interface states who owns mutable state, configuration, errors and external effects.

- [ ] Import evidence shows no new cycle or forbidden access to the extracted internals under the recorded rule.

- [ ] Each removed or moved test has a mapped replacement or a reviewed reason; unique coverage is preserved.

- [ ] Behaviour assertions pass before and after extraction, and a controlled violation was detected by the relevant assertion.

- [ ] The final diff stays within the extraction scope, and failed checks or untested real adapters remain explicit blockers or limitations.

## Deliverables

- [ ] Caller and dependency inventory with competing interface sketches

- [ ] Selected interface, state ownership rule and extraction diff

- [ ] Coverage-preservation map and behaviour/type/build receipts

- [ ] Import-boundary report with deferred callers and checkpoint recovery instructions

## Evidence and decision

Evidence links: [fill in]
Untested paths: [fill in]
Unresolved findings: [fill in]
Reviewer: [fill in]
Decision and scope: [fill in]

## Boundaries

- The codebase-design skill offers heuristics. Its suggestion to delete replaced tests does not justify losing unique coverage; a local substitute does not establish production I/O behaviour.

- Use the architect to produce a file/interface blueprint and the test analyser to review the actual candidate diff. Adapt their host tools and restrict review stages to reads; these definitions do not enforce edit scope or automatically call one another.

- This extraction keeps the existing runtime and behaviour. A database state move, public API break or dependency upgrade requires its own scoped change and recovery evidence.

- Keep fixtures synthetic and credentials outside reports. Local refactoring authority does not authorise production adapter calls, package publication or deployment; stop at the reviewed local diff when those actions are not in scope.

Workflow: https://undominated.ai/workflows/#split-a-module-at-a-tested-seam
