1. Назначение
Этот документ — шаблон доказательств реального выполнения TASK-012: полного локального vertical slice для интеграции TASK-001…TASK-011.
BLOCKED_UNTIL_TASK_011_VERIFIEDЦель — доказать, что вся цепочка работает вместе на замороженном локальном fixture-сайте: от preflight и crawl до owner gate, продолжения полного corpus, manifest, render, restart/recovery и failure injection.
2. Entry gate
- TASK-011 имеет реальный результат
VERIFIED. - TASK-001…TASK-011 доступны в одном интегрируемом runtime/repo state.
- Локальный frozen fixture source подготовлен.
- Fixture truth отделён от production logic.
- Нет production deployment в scope TASK-012.
3. Environment facts
| Поле | Фактическое значение | Evidence ref |
|---|---|---|
| REPO_ROOT | UNFILLED | — |
| BRANCH | UNFILLED | — |
| REVISION_BEFORE | UNFILLED | — |
| REVISION_AFTER | UNFILLED | — |
| FIXTURE_ROOT | UNFILLED | — |
| RUNNER | UNFILLED | — |
| STATE_STORE | UNFILLED | — |
| QUEUE_BACKEND | UNFILLED | — |
| TEST_RUNNER | UNFILLED | — |
| TASK_011_EVIDENCE_REF | UNFILLED | — |
| PROJECT_STATE_REF | UNFILLED | — |
4. Frozen local fixture source
Fixture должен быть полностью контролируемым и повторяемым.
- homepage
- robots.txt
- sitemap/index
- RSS/Atom
- archive/category
- pagination
- 35–45 valid article/project pages
- short valid notes
- listing/service/forum/video-only/empty/no-image negatives
- redirect duplicates
- canonical duplicate
- same-title different articles
- relative links
- external/out-of-scope links
- controlled 429/503 responses
- removed page
- known reverse chronological order
38 valid logical articles,
first batch 30,
final batch 8,
ARCHIVE_ORDER_DESC.
5. Integrated pipeline under test
source discovery → crawl plan → queue → HTTP fetch → link discovery → classification → logical identity / canonical / ordering / stable IDs → first 30 logical identities → preview → WAITING_FOR_OWNER → Continue → full corpus → manifest compiler → MASTER + batch renderer → final validation
Тест должен проходить через реальные интерфейсы компонентов, а не подменять интеграцию прямыми внутренними вызовами там, где это скрывает контрактные ошибки.
6. First-30 semantics
Критически важно: "30" означает до 30 валидных логических article identities, а не:
- 30 fetched URLs;
- 30 raw INCLUDE classification rows;
- 30 queue items;
- 30 canonical/alias URLs вместе.
| Проверка | Ожидание | Факт | Evidence |
|---|---|---|---|
| Raw fetched pages | May exceed 30 | UNFILLED | — |
| Included logical identities at gate | 30 | UNFILLED | — |
| Aliases counted separately? | No | UNFILLED | — |
7. Durable owner gate
- После preview Job входит в
WAITING_FOR_OWNER. - Состояние durable и переживает restart.
- Owner approval хранится отдельно от логов.
- Continue — idempotent.
- Повторный Continue не создаёт второй mutating run.
- Без Continue full corpus не стартует.
| Сценарий | Ожидаемый результат | Факт | Evidence |
|---|---|---|---|
| Restart in WAITING_FOR_OWNER | Still waiting | UNFILLED | — |
| Continue once | RUNNING_FULL | UNFILLED | — |
| Continue twice | No duplicate execution | UNFILLED | — |
8. Restart & recovery
- Restart mid-crawl.
- Restart while waiting for owner.
- Queue persists.
- Job state persists.
- Completed work is not duplicated.
- Expired leases recover safely.
- Stale worker cannot mutate after fencing loss.
| Failure point | Recovery expectation | Actual | Evidence |
|---|---|---|---|
| Mid-preflight | Safe resume/restart | UNFILLED | — |
| Mid-crawl | No duplicate logical rows | UNFILLED | — |
| WAITING_FOR_OWNER | Gate preserved | UNFILLED | — |
| After Continue | Full run resumes safely | UNFILLED | — |
9. Failure injection matrix
| Scenario | Expected behavior | Actual | Evidence |
|---|---|---|---|
| 429 + Retry-After | Respect delay, retry bounded | UNFILLED | — |
| 503 then success | Retry then succeed | UNFILLED | — |
| Timeout | Bounded retry/failure classification | UNFILLED | — |
| 404 | Terminal / no blind retry loop | UNFILLED | — |
| Private redirect | Blocked before connect | UNFILLED | — |
| Malformed HTML | Parser failure isolated / deterministic handling | UNFILLED | — |
| Stale worker | Mutation rejected by fencing | UNFILLED | — |
10. Security boundary proof
- Fixture includes out-of-scope/external links.
- Private/loopback targets remain blocked.
- Redirect target revalidation is exercised.
- No browser/network fallback bypasses TASK-002 guard.
- No login/CAPTCHA/stealth behavior introduced.
- Rate/concurrency limits remain active during integrated run.
11. Classification & identity proof
- Valid article/project pages included.
- Short valid notes included when policy permits.
- Listing/service/forum/video-only/empty/no-image negatives excluded.
- uncertain → exclude.
- Redirect/canonical duplicates merge only on strong evidence.
- Same-title different articles remain separate.
- Stable IDs assigned after logical identity/order freeze.
| Metric | Expected | Actual | Evidence |
|---|---|---|---|
| Valid logical articles | 38 | UNFILLED | — |
| First batch | 30 | UNFILLED | — |
| Final batch | 8 | UNFILLED | — |
| Ordering | ARCHIVE_ORDER_DESC | UNFILLED | — |
12. Full corpus continuation
После owner approval:
- Job переходит в
RUNNING_FULL. - Queue продолжает работу с durable checkpoint.
- Оставшийся corpus обрабатывается.
- Corpus freeze завершается.
- Manifest компилируется TASK-010.
- HTML рендерится TASK-011.
- Локальная финальная validation выполняется.
13. Final manifest & render validation
- DatasetManifest schema =
STATIYA_ARTICLE_DATABASE 1.0. - article_count = 38.
- batch_count = 2.
- Batch sizes = 30 + 8.
- MASTER перечисляет обе партии.
- Visible HTML == embedded machine data.
- Article IDs/order совпадают с frozen corpus.
- Prev/next article and batch chains валидны.
- Нет broken local links.
14. Deterministic replay
Повторный run на том же frozen fixture должен дать семантически тот же dataset.
| Artifact | Run A | Run B | Match? |
|---|---|---|---|
| Logical article set | UNFILLED | UNFILLED | UNFILLED |
| Ordering | UNFILLED | UNFILLED | UNFILLED |
| Stable IDs | UNFILLED | UNFILLED | UNFILLED |
| Batch boundaries | UNFILLED | UNFILLED | UNFILLED |
| Manifest semantic hash | UNFILLED | UNFILLED | UNFILLED |
| Rendered semantic output | UNFILLED | UNFILLED | UNFILLED |
15. Job state transition proof
CREATED → PREFLIGHT → PREFLIGHT_READY → RUNNING_FIRST_BATCH → WAITING_FOR_OWNER → RUNNING_FULL → VALIDATING → [local slice complete]
В TASK-012 не требуется production DEPLOYING → VERIFYING_LIVE → DONE. Эти стадии остаются за последующими задачами.
| Transition | Observed? | Evidence |
|---|---|---|
| CREATED → PREFLIGHT | UNFILLED | — |
| PREFLIGHT_READY → RUNNING_FIRST_BATCH | UNFILLED | — |
| RUNNING_FIRST_BATCH → WAITING_FOR_OWNER | UNFILLED | — |
| WAITING_FOR_OWNER → RUNNING_FULL | UNFILLED | — |
| RUNNING_FULL → VALIDATING | UNFILLED | — |
16. Required evidence bundle
Рекомендуемый bundle:
/razraba/evidence/vertical-slice/AW-01-TASK-012/ environment.json fixture_truth.json job_state_transitions.json preflight_summary.json queue_summary.json fetch_summary.json classifier_matrix.json identity_merge_report.json ordering_report.json batch_manifest_summary.json render_validation.json restart_recovery_report.json failure_injection_report.json logs_tail.txt output_tree.txt verification_summary.json
Этот путь концептуальный до проверки реального runtime/repo layout; нельзя выдавать его за существующий без evidence.
17. Acceptance checklist
- Frozen fixture полностью воспроизводим.
- Production code не читает truth/answer key.
- Preflight bounded и формирует crawl plan.
- First gate считается по logical identities.
- 30 valid logical identities достигнуты корректно.
- Preview построен.
- WAITING_FOR_OWNER durable.
- Continue idempotent.
- Restart mid-crawl пройден.
- Restart while waiting пройден.
- Stale worker rejected.
- 429/503/timeout/404 сценарии пройдены.
- Private redirect заблокирован.
- Malformed HTML обработан.
- Full corpus = 38 logical articles.
- Order = ARCHIVE_ORDER_DESC.
- Final batches = 30 + 8.
- Manifest валиден.
- Renderer output валиден.
- Deterministic replay пройден.
- Production deploy отсутствует.
- Нет unrelated diff.
18. Release blockers for this slice
- Lost owner approval after restart.
- Duplicate logical records after resume.
- Incorrect first-30 counting.
- Security guard bypass in integrated path.
- Stale worker mutation accepted.
- Fixture truth leaking into production logic.
- Wrong order or unstable IDs.
- Batch sizes not 30 + 8 for reference fixture.
- Visible HTML differs from embedded manifest.
- Nondeterministic replay without explained non-semantic reason.
19. Final result
Полный local vertical slice доказан.
Интеграция работает частично, но обязательный сценарий не закрыт.
Нарушен критический integrated invariant.
Entry gate или необходимый компонент не готов.
BLOCKED_UNTIL_TASK_011_VERIFIEDЭтот шаблон не является доказательством actual run.
| Поле | Значение |
|---|---|
| final_result | BLOCKED |
| blocking_reason | TASK-011 has not been evidenced as VERIFIED in current context |
| reviewer | UNFILLED |
| reviewed_at | UNFILLED |
| verification_summary_ref | UNFILLED |
20. What happens after VERIFIED
Если TASK-012 получает реальный VERIFIED, следующий шаг — не AW-02 автоматически.
- Повторно выполнить checkpoint procedure из EXEC-38.
- Использовать уже реальные evidence TASK-001…TASK-012.
- Пересчитать gap review.
- Только после этого принять одно из решений:
PROCEED_TO_AW02REPAIR_WINDOW_REQUIREDARCHITECTURE_REVIEW_REQUIRED
EXECUTION_NOT_STARTED, пока реальные evidence не предоставлены.21. Operator summary
| Проверка | Статус |
|---|---|
| Entry gate TASK-011 | BLOCKED / UNVERIFIED |
| Fixture frozen | UNFILLED |
| First 30 logical identities | UNFILLED |
| WAITING_FOR_OWNER durability | UNFILLED |
| Continue idempotency | UNFILLED |
| Restart/recovery | UNFILLED |
| Failure injection | UNFILLED |
| 38-article final corpus | UNFILLED |
| 30 + 8 batching | UNFILLED |
| Final render validation | UNFILLED |
| Deterministic replay | UNFILLED |
| Final result | BLOCKED |