# Engineering handoffs

Hybrid Workflow turns the premium models' selected architecture into a compact responsibility map inside the existing approved report. Implementation agents follow it; reviewers compare it to the affected code. There is no additional setup, phase, file-length limit or compulsory architecture for a small change.

For a substantial editor, the handoff names the view, draft/request owner, recovery adapter and authoritative validation boundary. It states what happens when a response arrives after navigation or a record change. A small extension can simply name the existing component and the behavior being added.

The checkpoint returns `engineeringHandoff`, and reviewers receive `handoffChecks`. These describe contract consistency and whether declared files exist in the captured source. They do **not** prove that code follows the contract or that an acceptance check ran. A future module missing from an intermediate milestone is not automatically a defect. Existing prose plans remain usable.

## Example: a bounded save workflow

The premium plan may include this block alongside its explanation. Paths are exact project-relative paths, not commands or globs. State lists identify authoritative state, not every derived display value. The actual project determines the boundaries; these names are illustrative.

```hybrid-handoff
{
  "version": 1,
  "scope": "Save and leave an existing editor",
  "owners": [
    {
      "id": "view",
      "responsibility": "Render the form and forward user events",
      "paths": ["src/Editor.tsx"],
      "boundary": "client",
      "state": [],
      "inputs": ["session state"],
      "outputs": ["edit, save, leave"],
      "dependsOn": ["session"]
    },
    {
      "id": "session",
      "responsibility": "Own draft transitions and ignore results after departure or record change",
      "paths": ["src/editor-session.ts"],
      "boundary": "client",
      "state": ["draft", "recordId", "requestGeneration", "departed"],
      "inputs": ["edit, save, leave", "save result"],
      "outputs": ["render state", "recovery write/remove intent"],
      "dependsOn": ["save"]
    },
    {
      "id": "save",
      "responsibility": "Authorize and validate before committing a record",
      "paths": ["src/server/save.ts"],
      "boundary": "server",
      "state": [],
      "inputs": ["authenticated request, recordId, draft"],
      "outputs": ["committed result or validation/conflict error"],
      "dependsOn": []
    }
  ],
  "scenarios": [
    {
      "id": "leave-during-save",
      "owners": ["view", "session", "save"],
      "action": "Begin a save, confirm leaving, then deliver the response",
      "expected": "No client redirect or recovered draft resurrection; do not claim the server commit was canceled",
      "evidence": "Deferred-response test and representative browser navigation check"
    }
  ]
}
```

Design documents add a map only when they change engineering ownership. An explicit approved amendment must reconcile conflicting contracts; a later design cannot silently erase the plan. Visual direction still belongs to the configured premium lead. References, typography, tokens and representative states stay in the design document.

## Review and implementation

At the first meaningful milestone of a new pattern, inspect one implementation before replicating it. Trace view -> state -> domain rules -> persistence and lifecycle where applicable. Check actual owner paths, shared client/server contracts and stale-response handling. A giant hook or a JSX-only split is not proof of separation. Conversely, a cohesive component is acceptable regardless of file length.

Implementation handoffs distinguish intended scenarios from executed checks, failed checks and untested behavior. Parsing the map never executes its evidence text or follows its paths outside the frozen inventory. Reviewers assign findings only for concrete consequences. The existing rule remains: all configured current-artifact reviews, at least one pass and no unresolved medium/high/critical issues.
