# Module extraction worksheet

Blank working document. Replace placeholders with your own evidence; an empty field is unknown, not a passing result.

Owner: [fill in]
Source revision: [fill in]
Environment: [fill in]
Evidence date: [fill in]

## Extraction scope

Extraction owner: ___
Module/base revision: ___
Concrete problem and representative caller: ___
Allowed paths: ___
Runtime/build versions retained: ___
Checkpoint and concurrent changes preserved: ___

## Caller and design comparison

| Caller/source | Required behaviour | Interface A usage | Interface B usage | Selected path |
| --- | --- | --- | --- | --- |
| ___ | ___ | ___ | ___ | ___ |
Unknown dynamic callers: ___
Selected design and rejected trade-off: ___

## Seam and ownership

Exported interface: ___
State/configuration/error/effect owners: ___
Allowed dependency direction: ___
Forbidden imports and detection method: ___
Real dependency, substitute and known difference: ___
Forwarding export and removal condition: ___

## Coverage and verification

| Behaviour | Original assertion | Retained/replacement assertion | Before/after receipt |
| --- | --- | --- | --- |
| ___ | ___ | ___ | not run |
Controlled violation and observed failure: not run
Import/cycle report: not run
Type/build result: not run
Real-adapter gaps: ___

## Handoff and recovery

Candidate diff and reviewer: ___
Unmigrated callers and reason: ___
Scope or behaviour deviations: ___
Restore only extraction changes from: ___
Trigger and baseline recheck command: ___
Recovery result: not run
Publication/deployment authority, if any: ___

## 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

Original worksheet: MIT. Linked resources retain their own licences and setup requirements.
