FACTORY_OUTCOME: COMPLETED

Both audit defects are fixed. `php tests/saas-035-regression.php` passes (170 assertions) and so does `php tests/saas-025-regression.php` (74). `php tests/builder-handoff-regression.php` also passes. Nothing was committed or deployed, and no provider was called (the new test uses a scripted fake engine).

**T5, consistency before any model call.**
- **Cause:** the worker joined runs to tasks by id only. A handoff row that didn't match its owner or project was treated as "no handoff", so the run fell back to the free-text legacy path and made a model call. The task updates in claim and complete also ignored the owner.
- **Fix:** `saasBuilderResolveRun()` in `app/site-workflow.php` now runs first in `saasProcessRun`, before the engine is created. It checks that the run, site, task and handoff all belong to the same user and project, and that the handoff's spec and languages are consistent.
- **Legacy vs corrupt:** a run with no handoff row is legacy and uses its own task prompt. A handoff row that fails any check throws `Inconsistent Builder run record: …` and never falls back to legacy.
- **Scoping:** both task updates in `app/worker.php` are now scoped to the run's user and project. The claim query uses `LEFT JOIN`, so a run whose task row is missing is reported as inconsistent instead of being skipped.

**T6, concurrent migration.**
- **Cause:** adding `runs.error_detail` and `architect_jobs.repaired` was check-then-`ALTER`, so two processes could both pass the check and the loser failed with `duplicate column name`.
- **Fix:** a new `saasAddColumn()` ignores only that error. Any other `ALTER` failure still propagates.

**Tests.**
- **Cross-tenant corruption:** `tests/saas-035-regression.php` covers 11 corrupt rows, such as another tenant's task, a handoff from another project, language mismatches and a missing task. For each one it checks:
  - the run is rejected before any model call, with zero engine calls;
  - the run is marked failed;
  - there are no filesystem changes and no `ai_usage` rows;
  - other and foreign rows are untouched;
  - the error text contains no foreign data.
- **Legacy and approved runs:** a handoff-less legacy run still builds to the preview only. A legitimately approved handoff still builds.
- **Concurrent migration:** 3 rounds of 8 simultaneous processes migrate an old-schema database with 25 runs and jobs. All exit cleanly, each column is added once, and every row is unchanged.

**Negative controls.** Restoring the old lookup, or making `saasAddColumn()` always rethrow, makes the test fail. I restored both files and re-ran everything green. The concurrent stress rounds alone do not catch a reverted migration fix, because the real race window is tiny. A deterministic check, where the column already exists when the `ALTER` runs, covers that case.

**Limitations.**
- Tested offline against SQLite only. I did not test a real browser or device, a provider, or the production database.
- Any already-corrupt production row will now fail its run with the inconsistent-record error instead of building.
- I did not recompute the spec hash from the stored snapshot, because older rows may use an older normalizer.

`docs/acceptance/SAAS-035.md` has the evidence, limitations and rollback. Rollback is reverting `app/site-workflow.php`, `app/architect.php` and `app/worker.php` and deleting the two new files. No data migration was added, so no data needs rolling back.