← Назад к задаче

SAAS-035 · Tenant relationship and migration hardening

Статус: 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.

T6, concurrent migration.

Tests.

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.

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.

Решение

Ожидает вашего решения: принять, вернуть на доработку или отложить.

Материалы