[8.4] WRT-04
Работа Writer · Проверено
[8.4.1] Вход
WRT-03
[8.4.2] Действие
Implement claim/lock Single active writer, ~12h timeout, renew/takeover/stale output protection using existing lease patterns.
[8.4.3] Файлы-владельцы
services/d15_writer/; contracts/; docs/writer/; test-fixtures/; docs/masterplan-execution/
[8.4.4] Результат
Versioned task/input schemas; READY four-file bundle, NEED_MORE_RESEARCH или FAILED; writer instructions; claim/renew/takeover; same interface для Luna и внешнего Writer.
[8.4.5] Проверка
DONE: two writers cannot accept output for same active article concurrently. Concurrent writers; stale fencing token; pack version mismatch; malformed HTML; invented evidence ref; missing READY file; shared research budget; external-mode fixture parity и реальный primary pilot.
[8.4.6] При сбое и откат
Coding-agent Luna и Writer Luna — разные задания. Не запускать фиктивный model benchmark. External mode проверяется адаптером; фактическая модель указывается только если она реально участвовала. Отменить текущий claim через event, сохранить partials, новый claim/revision. Нельзя менять already sealed outputs и production.