{
  "plan_id": "D15_writter",
  "title": "Автономный исследователь и писатель",
  "version": "2026-09-11.57",
  "status": "in_progress",
  "implementation_started": true,
  "implementation": {"status":"started_fixture_only","code":"D15-023.24","artifact":"/docs/d15-portable-handoff-fixture.html","tests":"128/128","network_action":"none","history":[{"code":"D15-023.1","artifact":"/docs/d15-local-fixture-orchestrator.html","tests":"3/3"},{"code":"D15-023.2","artifact":"/docs/d15-staging-adapter.html","tests":"6/6"},{"code":"D15-023.3","artifact":"/docs/d15-orchestrator-staging-integration.html","tests":"8/8"},{"code":"D15-023.4","artifact":"/docs/d15-qwen-fixture-adapter.html","tests":"11/11"},{"code":"D15-023.5","artifact":"/docs/d15-html-composer-fixture.html","tests":"14/14"},{"code":"D15-023.6","artifact":"/docs/d15-qa-fixture-gate.html","tests":"17/17"},{"code":"D15-023.7","artifact":"/docs/d15-operator-review-fixture.html","tests":"21/21"},{"code":"D15-023.8","artifact":"/docs/d15-publication-package-fixture.html","tests":"25/25"},{"code":"D15-023.9","artifact":"/docs/d15-activity-registry-fixture.html","tests":"29/29"},{"code":"D15-023.10","artifact":"/docs/d15-operator-actions-fixture.html","tests":"34/34"},{"code":"D15-023.11","artifact":"/docs/d15-scheduler-admission-fixture.html","tests":"42/42"},{"code":"D15-023.12","artifact":"/docs/d15-lease-recovery-fixture.html","tests":"50/50"},{"code":"D15-023.13","artifact":"/docs/d15-retry-policy-fixture.html","tests":"57/57"},{"code":"D15-023.14","artifact":"/docs/d15-control-fixture.html","tests":"65/65"},{"code":"D15-023.15","artifact":"/docs/d15-activity-trace-fixture.html","tests":"73/73"},{"code":"D15-023.16","artifact":"/docs/d15-registry-view-fixture.html","tests":"81/81"},{"code":"D15-023.17","artifact":"/docs/d15-registry-workflow-fixture.html","tests":"89/89"},{"code":"D15-023.18","artifact":"/docs/d15-acceptance-gate-fixture.html","tests":"97/97"},{"code":"D15-023.19","artifact":"/docs/d15-evidence-bundle-replay-fixture.html","tests":"105/105"},{"code":"D15-023.20","artifact":"/docs/d15-full-pilot-dry-run-fixture.html","tests":"113/113"},{"code":"D15-023.21","artifact":"/docs/d15-full-pilot-failure-matrix-fixture.html","tests":"116/116"},{"code":"D15-023.22","artifact":"/docs/d15-handoff-audit-fixture.html","tests":"120/120"},{"code":"D15-023.23","artifact":"/docs/d15-handoff-consumer-fixture.html","tests":"124/124"},{"code":"D15-023.24","artifact":"/docs/d15-portable-handoff-fixture.html","tests":"128/128"}]},
  "current": "D15-023.24",
  "next": "D15-023.25",
  "last_completed": "D15-024",
  "completed": ["D15-001", "D15-002", "D15-003", "D15-004", "D15-005", "D15-006", "D15-007", "D15-008", "D15-009", "D15-010", "D15-011", "D15-012", "D15-013", "D15-014", "D15-015", "D15-016", "D15-017", "D15-018", "D15-019", "D15-020", "D15-021", "D15-022", "D15-023", "D15-024", "D15-026"],
  "status_vocabulary": {"verified": "ВЫПОЛНЕНО", "started": "НАЧАТО", "waiting": "НЕ НАЧАТО", "deferred": "ОТЛОЖЕНО", "blocked": "ЗАБЛОКИРОВАНО"},
  "status_counts": {"total": 26, "verified": 25, "started": 0, "waiting": 0, "deferred": 1, "blocked": 0},
  "source_of_truth": {
    "state": "/docs/d15-writter-plan.json",
    "narrative": "/docs/d15-writter-plan.md",
    "human_view": "/docs/d15-writter-plan.html"
  },
  "primary_engine": {
    "name": "Qwen 30B",
    "role": "server-side primary editorial engine",
    "required_instruction_artifacts": [
      "system_instruction",
      "input_contract",
      "output_schema",
      "fact_policy",
      "citation_policy",
      "conflict_policy",
      "critique_retry_policy",
      "prompt_version"
    ],
    "guardrails": [
      "does_not_define_source_of_truth",
      "must_preserve_evidence_links",
      "must_not_invent_facts",
      "cannot_publish",
      "external_qa_required"
    ],
    "fallback": "manual_or_template_only_when_qwen_unavailable"
  },
  "runtime_audit": {
    "code": "D15-025.1",
    "status": "started_read_only",
    "artifact": "/docs/d15-qwen-30b-agent-reference.html",
    "evidence": "/docs/d15-qwen-30b-audit.json",
    "qwen_runtime": "QWEN_RUNTIME_AVAILABLE",
    "agent_layer": "AGENT_LAYER_PARTIAL_HERMES",
    "durable_d15_writer_queue": "D15_WRITER_QUEUE_PROVISIONED_DISABLED",
    "live_writer": "LIVE_WRITER_NOT_STARTED",
    "next": "D15-025.4 — activity projection and operator-visible checkpoint events",
    "side_effects": "additive schema, disabled unit and synthetic Hermes/Qwen checkpoint deployed/tested; no external collection, registry write or publication attempted"
  },
  "agent_layer_assessment": {
    "artifact": "/docs/d15-qwen-agent-assessment.json",
    "skills_total": 16,
    "skills_enabled": 12,
    "overall_current_score": 5,
    "scores": {"qwen_editorial_quality":8,"hermes_general_agent_fit":5,"safety_controls":7,"d15_integration":4,"production_readiness":3},
    "current_boundary": "controlled synthetic/staging assistance only; live writer and publication remain off",
    "improvement_codes": ["D15-025.4","D15-025.5","D15-025.6","D15-025.7","D15-025.8","D15-025.9"],
    "target_after_improvement": "about 8/10 for a bounded editorial writer, with Qwen never serving as source of truth",
    "implementation_status": {"D15-025.4":"staging_verified","D15-025.5":"verified","D15-025.6":"verified","D15-025.7":"verified","D15-025.8":"staging_canary_verified","D15-025.9":"verified"},
    "tests": "144/144 D15 tests; evaluation suite 4/4",
    "live_boundary": "worker disabled/inactive; persistent tasks 0; registry/publication/Comfy/live collection not started"
  },
  "writer_queue_runtime": {
    "status": "started_staging_verified",
    "database": "mathchast_editor",
    "tables": ["editorial.d15_writer_task", "editorial.d15_writer_task_event"],
    "persistent_task_count_at_deploy": 0,
    "worker_unit": "d15-writer-worker.service",
    "worker_enabled": false,
    "worker_active": false,
    "schema_artifact": "/services/d15_writer/schema.sql",
    "adapter_artifacts": "/services/d15_writer/{contracts,queue,hermes_adapter,worker}.py",
    "tests": "11/11",
    "queue_smoke": "/docs/d15-qwen-queue-smoke.json",
    "queue_smoke_status": "PASSED_ROLLED_BACK",
    "dry_run_artifact": "/docs/d15-qwen-dryrun.json",
    "dry_run_status": "PASSED_SYNTHETIC_CHECKPOINT",
    "dry_run_request_id": "6425764d-e060-44e1-b2bb-1f5284e1806e"
  },
  "qwen_dry_run": {
    "code": "D15-025.3",
    "status": "PASSED",
    "artifact": "/docs/d15-qwen-dryrun.json",
    "model": "qwen3-30b-a3b-instruct-2507",
    "endpoint": "loopback Hermes /hermes/chat",
    "checkpoint": "SYN-01 → SYN-02",
    "strict_schema": true,
    "external_network": false,
    "filesystem_write": false,
    "registry_write": false,
    "publication": false,
    "worker_started": false,
    "next": "D15-025.4 — activity projection and operator-visible checkpoint events"
  },
  "github_reuse_gate": {
    "required_before_custom_code": true,
    "decision_values": ["REUSE", "ADAPT", "BUILD"],
    "required_evidence": [
      "repository",
      "owner",
      "version_or_commit",
      "license",
      "activity",
      "security_review",
      "dependencies",
      "permissions",
      "sandbox_result",
      "rollback"
    ],
    "blocked_without_decision": true
  },
  "publication_status_mapping": {
    "ui_label": "Готово к публикации",
    "canonical_status": "READY_FOR_PUBLICATION",
    "legacy_values_to_reconcile": ["ready", "approved"],
    "legacy_values_do_not_publish_by_themselves": true,
    "terminal_success": "PUBLISHED"
  },
  "html_article_system": {
    "canonical_reference": "https://work.mathchast.com/ai-read/docs/html-article-layout-plan.html",
    "reuse_existing_components": true,
    "new_components_required": ["AdSlot", "RelatedArticles", "RecommendationReason"],
    "article_ad_inventory": {
      "logical_slots": ["sponsor_top", "network_inline", "sponsor_end"],
      "max_active_slots_per_article": 2,
      "max_network_slots_per_article": 1,
      "hero_ads_forbidden": true,
      "mobile_max_visible_ad_blocks": 1,
      "formats": {
        "desktop_leaderboard": ["728x90", "970x90"],
        "tablet_banner": ["468x60"],
        "mobile_banner": ["320x100", "320x50"],
        "inline_rectangle": ["300x250", "336x280"]
      },
      "static_max_kb": 250,
      "html5_zip_max_mb": 1,
      "forbidden": ["popup", "prestitial", "autoplay_audio", "flashing", "unreviewed_third_party_script"],
      "required": ["label", "https_click_url", "alt_text", "campaign_dates", "provider_or_sponsor_id", "sandbox_or_csp_review"]
    },
    "recommendations": {
      "component": "RelatedArticles",
      "max_items": 3,
      "primary_ranking": "contextual_content_based",
      "only_published": true,
      "exclude_current_article": true,
      "requires_reason": true,
      "personal_profile_in_mvp": false
    }
  },
  "commercial_launch_decisions": [
    "commercial_model_and_fallback",
    "editorial_advertising_separation_and_categories",
    "measurement_consent_and_retention",
    "creative_csp_sandbox_and_moderation",
    "recommendation_manual_exclusions_and_cold_start",
    "performance_budget_cls_lcp_cdn_cache",
    "legal_marking_privacy_and_removal_process"
  ],
  "preflight": {
    "pc_checked_at": "2026-09-10",
    "result": "no_obvious_malware_signal_in_read_only_check",
    "observations": [
      "CPU was approximately 3-5 percent during sampling",
      "memory committed was approximately 36 percent",
      "C drive had approximately 12.8 percent free space",
      "Zed was the largest observed memory consumer",
      "multiple browser processes and local services were active",
      "Microsoft Defender real-time protection and quick scan were active",
      "no Defender threat detections were returned",
      "full Defender scan has not been run"
    ],
    "non_conclusions": [
      "the read-only check does not prove the machine is malware-free",
      "unsigned local scripts are not automatically malware",
      "no process was stopped and no file was deleted"
    ]
  },
  "inputs": [
    "/docs/d11-popularity-plan.html",
    "/docs/d11-popularity-plan.md",
    "/docs/d11-popularity-plan.json",
    "/docs/d11-ai-handoff.html",
    "/docs/d12-web-resources-plan.html",
    "/docs/d13-popularity-observation-plan.html",
    "/docs/d14-external-popularity-security-plan.html",
    "/docs/d14-web-save-plan.html",
    "/docs/html-article-layout-plan.html",
    "/docs/AI_WORKFLOW.md",
    "/docs/super-instruction-vibecode-2026-09-03.html",
    "/services-captcha.html",
    "/article-manager.html",
    "/catalog-ui.js",
    "/catalog_sources.py",
    "/aw001-packet/app/catalog_api.py",
    "/aw001-packet/app/workflow_stages.py",
    "/docs/d11-manual-api-ui.md",
    "/docs/d11-mcp-writer-contract.md"
    ,"/mathcast-staging/site/workflow-lab-v2.html"
    ,"/deploy/run_workflow_lab_v2.py"
    ,"/deploy/generate_article_set_images.py"
    ,"/deploy/generate_robot_article_images.py"
    ,"/remote/experiments/workflow-lab/v2/manifest.json"
    ,"/remote/experiments/champion-test/v1/manifest.json"
    ,"/docs/d15-source-inventory.md"
    ,"/docs/d15-source-inventory.json"
    ,"/docs/d15-source-inventory.html"
    ,"/docs/d15-run-contract.md"
    ,"/docs/d15-run-contract.json"
    ,"/docs/d15-run-contract.html"
    ,"/docs/d15-capacity-policy.md"
    ,"/docs/d15-capacity-policy.json"
    ,"/docs/d15-capacity-policy.html"
    ,"/docs/d15-lifecycle-contract.md"
    ,"/docs/d15-lifecycle-contract.json"
    ,"/docs/d15-lifecycle-contract.html"
    ,"/docs/d15-resource-registry.md"
    ,"/docs/d15-resource-registry.json"
    ,"/docs/d15-resource-registry.html"
    ,"/docs/d15-github-reuse-review.md"
    ,"/docs/d15-github-reuse-review.json"
    ,"/docs/d15-github-reuse-review.html"
    ,"/docs/d15-extraction-evidence-contract.md"
    ,"/docs/d15-extraction-evidence-contract.json"
    ,"/docs/d15-extraction-evidence-contract.html"
    ,"/docs/d15-d11-handoff-contract.md"
    ,"/docs/d15-d11-handoff-contract.json"
    ,"/docs/d15-d11-handoff-contract.html"
    ,"/docs/d14-web-save-plan.html"
    ,"/public-site/IMAGE_POLICY.md"
    ,"/docs/IMAGE_GENERATION_STANDARD_Q11.md"
    ,"/docs/d11-rights-queue-contract.md"
    ,"/docs/d15-asset-storage-contract.md"
    ,"/docs/d15-asset-storage-contract.json"
    ,"/docs/d15-asset-storage-contract.html"
    ,"/docs/d15-resource-registry.md"
    ,"/docs/d11-rights-queue-contract.md"
    ,"/docs/d11-pilot-adapters.md"
    ,"/docs/d14-external-popularity-security-plan.html"
    ,"/services-captcha.html"
    ,"/docs/d15-access-rights-security-contract.md"
    ,"/docs/d15-access-rights-security-contract.json"
    ,"/docs/d15-access-rights-security-contract.html"
    ,"/docs/d15-enrichment-contract.md"
    ,"/docs/d15-enrichment-contract.json"
    ,"/docs/d15-enrichment-contract.html"
    ,"/docs/d15-fact-check-contract.md"
    ,"/docs/d15-fact-check-contract.json"
    ,"/docs/d15-fact-check-contract.html"
    ,"/docs/d15-qwen-editorial-contract.md"
    ,"/docs/d15-qwen-editorial-contract.json"
    ,"/docs/d15-qwen-editorial-contract.html"
    ,"/docs/d15-qwen-30b-audit.json"
    ,"/docs/d15-qwen-30b-agent-reference.html"
    ,"/services/d15_writer/schema.sql"
    ,"/services/d15_writer/contracts.py"
    ,"/services/d15_writer/queue.py"
    ,"/services/d15_writer/hermes_adapter.py"
    ,"/services/d15_writer/worker.py"
    ,"/docs/d15-qwen-queue-smoke.json"
    ,"/docs/d15-topic-cluster-contract.md"
    ,"/docs/d15-topic-cluster-contract.json"
    ,"/docs/d15-topic-cluster-contract.html"
    ,"/docs/d15-draft-registry-contract.md"
    ,"/docs/d15-draft-registry-contract.json"
    ,"/docs/d15-draft-registry-contract.html"
  ],
  "outputs": [
    "popularity_report",
    "research_package",
    "evidence_bundle",
    "asset_manifest",
    "draft_document",
    "html_article_draft",
    "article_registry_record",
    "activity_event_log",
    "publication_package",
    "ad_slot_manifest",
    "recommendation_bundle",
    "qa_report",
   "run_manifest"
    ,"image_prompt_manifest"
    ,"image_generation_job_manifest"
    ,"d15_source_inventory"
    ,"d15_run_contract"
    ,"d15_capacity_policy"
    ,"d15_lifecycle_contract"
    ,"d15_resource_registry"
    ,"d15_github_reuse_review"
    ,"/docs/d15-extraction-evidence-contract.md"
    ,"/docs/d15-extraction-evidence-contract.json"
    ,"/docs/d15-extraction-evidence-contract.html"
    ,"/docs/d15-d11-handoff-contract.md"
    ,"/docs/d15-d11-handoff-contract.json"
    ,"/docs/d15-d11-handoff-contract.html"
    ,"/docs/d15-asset-storage-contract.md"
    ,"/docs/d15-asset-storage-contract.json"
    ,"/docs/d15-asset-storage-contract.html"
    ,"/docs/d15-access-rights-security-contract.md"
    ,"/docs/d15-access-rights-security-contract.json"
    ,"/docs/d15-access-rights-security-contract.html"
    ,"/docs/d15-enrichment-contract.md"
    ,"/docs/d15-enrichment-contract.json"
    ,"/docs/d15-enrichment-contract.html"
    ,"/docs/d15-fact-check-contract.md"
    ,"/docs/d15-fact-check-contract.json"
    ,"/docs/d15-fact-check-contract.html"
    ,"/docs/d15-qwen-editorial-contract.md"
    ,"/docs/d15-qwen-editorial-contract.json"
    ,"/docs/d15-qwen-editorial-contract.html"
    ,"/docs/d15-topic-cluster-contract.md"
    ,"/docs/d15-topic-cluster-contract.json"
    ,"/docs/d15-topic-cluster-contract.html"
    ,"/docs/d15-draft-registry-contract.md"
    ,"/docs/d15-draft-registry-contract.json"
    ,"/docs/d15-draft-registry-contract.html"
  ],
  "scope": {
    "autonomous_mode": true,
    "primary_llm": "Qwen 30B",
    "custom_code_after_reuse_review": true,
    "raw_registry": "required_for_every_generated_article",
    "publication_gate": "explicit_human_ready_for_publication_then_guarded_publisher",
    "writer_activity_trace": "required",
    "usefulness_review": "required",
    "ad_inventory": "three_logical_slots_two_active_max",
    "recommendations": "published_contextual_only_in_mvp",
    "manual_review_before_publication": true,
   "image_transformation": "out_of_scope_for_mvp",
    "ai_image_generation": "separate_srv1_comfy_contour",
    "image_prompt_diversity": "required_by_visual_role",
    "access_policy": "permitted_read_only_only",
    "massive_scan": "not_in_first_pilot"
  },
  "items": [
    {"code":"D15-001","title":"Проверка ПК и базовой нагрузки","status":"verified"},
    {"code":"D15-002","title":"Инвентаризация исходных материалов","status":"verified","depends_on":["D15-001"],"artifact":"/docs/d15-source-inventory.html"},
    {"code":"D15-003","title":"Контракт результата одного запуска и записи в Сырьё","status":"verified","depends_on":["D15-002"],"artifact":"/docs/d15-run-contract.html"},
    {"code":"D15-004","title":"Политика автономного запуска и нагрузки","status":"verified","depends_on":["D15-001","D15-003"],"artifact":"/docs/d15-capacity-policy.html"},
    {"code":"D15-005","title":"Очередь, жизненный цикл, activity trace и идемпотентность","status":"verified","depends_on":["D15-004"],"artifact":"/docs/d15-lifecycle-contract.html"},
    {"code":"D15-006","title":"Каталог ресурсов и пилотная область","status":"verified","depends_on":["D15-002"],"artifact":"/docs/d15-resource-registry.html"},
    {"code":"D15-007","title":"Discovery и adapters ресурсов","status":"verified","depends_on":["D15-006"],"requires":"github_reuse_gate","artifact":"/docs/d15-github-reuse-review.html"},
    {"code":"D15-008","title":"Извлечение статьи и evidence","status":"verified","depends_on":["D15-007"],"artifact":"/docs/d15-extraction-evidence-contract.html"},
    {"code":"D15-009","title":"Передача результатов D11","status":"verified","depends_on":["D15-008"],"artifact":"/docs/d15-d11-handoff-contract.html"},
    {"code":"D15-010","title":"Сбор и хранение изображений","status":"verified","depends_on":["D15-008"],"artifact":"/docs/d15-asset-storage-contract.html"},
    {"code":"D15-011","title":"Доступ, права и безопасные ограничения","status":"verified","depends_on":["D15-006"],"artifact":"/docs/d15-access-rights-security-contract.html"},
    {"code":"D15-012","title":"Внешнее web-обогащение и поиск полезных пробелов","status":"verified","depends_on":["D15-008","D15-011"],"artifact":"/docs/d15-enrichment-contract.html"},
    {"code":"D15-013","title":"Сверка фактов и источников","status":"verified","depends_on":["D15-009","D15-012"],"artifact":"/docs/d15-fact-check-contract.html"},
    {"code":"D15-014","title":"Редакционный контекст, mini-plan и инструкция Qwen 30B","status":"verified","depends_on":["D15-013"],"uses_primary_engine":"Qwen 30B","requires":"primary_engine.required_instruction_artifacts","artifact":"/docs/d15-qwen-editorial-contract.html"},
    {"code":"D15-015","title":"Объединение похожих статей и тем","status":"verified","depends_on":["D15-009"],"artifact":"/docs/d15-topic-cluster-contract.html"},
    {"code":"D15-016","title":"Генерация черновика, usefulness review и запись в Сырьё","status":"verified","depends_on":["D15-014","D15-015"],"artifact":"/docs/d15-draft-registry-contract.html"},
    {"code":"D15-017","title":"HTML-композиция, image prompt layer и новая revision в Сырье","status":"verified","depends_on":["D15-010","D15-016"],"artifact":"/docs/d15-html-composition-contract.html"},
    {"code":"D15-026","title":"SRV1/Comfy image worker и разнообразие визуалов","status":"verified","depends_on":["D15-017"],"requires":"image_generation_plane","artifact":"/docs/d15-image-worker-contract.html"},
    {"code":"D15-018","title":"QA статьи, изображений, usefulness и publication package","status":"verified","depends_on":["D15-017","D15-026"],"artifact":"/docs/d15-qa-publication-contract.html"},
    {"code":"D15-019","title":"Хранилище артефактов и версии","status":"verified","depends_on":["D15-003","D15-018"],"artifact":"/docs/d15-artifact-storage-versioning-contract.html"},
    {"code":"D15-020","title":"Реестр Сырьё и Writer Activity UI","status":"verified","depends_on":["D15-005","D15-018"],"artifact":"/docs/d15-registry-activity-ui-contract.html"},
    {"code":"D15-021","title":"API, MCP, registry и publication contract","status":"verified","depends_on":["D15-003","D15-019"],"artifact":"/docs/d15-api-mcp-publication-contract.html"},
    {"code":"D15-022","title":"Автономный scheduler, activity trace и guarded publisher","status":"verified","depends_on":["D15-004","D15-005","D15-019"],"artifact":"/docs/d15-scheduler-publisher-contract.html"},
    {"code":"D15-023","title":"Ограниченный пилот","status":"verified","depends_on":["D15-020","D15-021","D15-022"],"artifact":"/docs/d15-limited-pilot-contract.html","fixture_artifact":"/docs/d15-pilot-fixture-dry-run.html","readiness_artifact":"/docs/d15-live-pilot-readiness.html","implementation_artifact":"/docs/d15-full-pilot-dry-run-fixture.html"},
    {"code":"D15-024","title":"Приёмка MVP и rollout decision","status":"verified","depends_on":["D15-023"],"artifact":"/docs/d15-mvp-acceptance-contract.html"},
    {"code":"D15-025","title":"Поздние функции","status":"deferred","depends_on":["D15-024"],"artifact":"/docs/d15-deferred-features-matrix.html"}
  ],
  "journal": [
    {"code":"D15-001","status":"verified","date":"2026-09-10","note":"Read-only PC preflight completed; no obvious malware signal found; no system changes made."},
    {"code":"D15-002","status":"verified","date":"2026-09-10","artifact":"/docs/d15-source-inventory.html","note":"Canonical source map, registry/backend inventory, image research basis and unresolved status conflicts recorded; no implementation changes made."},
    {"code":"D15-003","status":"verified","date":"2026-09-10","artifact":"/docs/d15-run-contract.html","note":"Versioned run envelope, required artifacts, registry record, activity events, idempotency, rollback and publication gate defined; no runtime implementation changed."},
    {"code":"D15-004","status":"verified","date":"2026-09-10","artifact":"/docs/d15-capacity-policy.html","note":"Read-only server evidence converted into conservative GREEN/AMBER/RED admission policy, freshness window, cooldown, hard-stop and DEFERRED_BY_CAPACITY reasons; runtime and scheduler were not changed."},
    {"code":"D15-005","status":"verified","date":"2026-09-10","artifact":"/docs/d15-lifecycle-contract.html","note":"Task queue, Writer run, registry stage and publication status separated; checkpoint/resume, activity trace, lease, retry, cancel/crash recovery and idempotency replay rules defined; worker and migrations were not changed."},
    {"code":"D15-006","status":"verified","date":"2026-09-10","artifact":"/docs/d15-resource-registry.html","note":"Pilot registry fixed to R-001 Fine Woodworking, R-042 Make: and R-043 Hackaday with adapter kind, public scope, 1 req/s/host, one article/resource/run, stop reasons and promotion gate; live collection did not start."},
    {"code":"D15-007","status":"verified","date":"2026-09-10","artifact":"/docs/d15-github-reuse-review.html","note":"Fresh official GitHub reuse/security pass completed: Scrapy, Trafilatura, Playwright, Readability and datasketch marked ADAPT; Mathcast boundaries marked BUILD; Crawl4AI remains SPIKE_ONLY due browser/Docker/API security surface; heavy orchestration/storage remains REVIEW. No installation or production change."},
    {"code":"D15-008","status":"verified","date":"2026-09-10","artifact":"/docs/d15-extraction-evidence-contract.html","note":"ArticleSnapshot and immutable EvidenceEnvelope contract recorded: provenance/confidence, explicit missing-value semantics, raw versus derived HTML, sanitization, hashes, partial statuses, golden fixtures and rollback. D11 fixture evidence was reviewed; live collection, media save and production worker were not run."},
    {"code":"D15-009","status":"verified","date":"2026-09-10","artifact":"/docs/d15-d11-handoff-contract.html","note":"D15HandoffPackage mapping to D11 Article/ArticleRevision, Evidence, Observation and Assessment recorded. Signal semantics, project scope, idempotency, UNKNOWN/no-signal, stale/partial, conflict and rollback fixtures defined. Live handoff and production API/MCP were not run."},
    {"code":"D15-010","status":"verified","date":"2026-09-10","artifact":"/docs/d15-asset-storage-contract.html","note":"AssetRecord/AssetManifest lifecycle recorded: rights gate, immutable source, derivatives, hashes, MIME/magic-byte validation, redirect/private-IP and pixel/size checks, D14 AVIF/WebP delivery policy, dedup provenance and fallback. External downloads and production image changes were not run."},
    {"code":"D15-011","status":"verified","date":"2026-09-10","artifact":"/docs/d15-access-rights-security-contract.html","note":"Access levels, allowlist admission, project/role scope, robots/terms/rate/CAPTCHA/paywall boundaries, manual challenge audit without cookie export, stop-policy, redaction, rights queue and rollback fixtures recorded. Live access-service and production changes were not run."}
    ,{"code":"D15-012","status":"verified","date":"2026-09-10","artifact":"/docs/d15-enrichment-contract.html","note":"EnrichmentBundle, GapRecord and EnrichmentClaim contract recorded: reader task, bounded source priority, citation/evidence, reader_value, conflicts, freshness, prompt-injection boundary, budget, stop policy and rollback. Live web-enrichment, external fetch and production changes were not run."}
    ,{"code":"D15-013","status":"verified","date":"2026-09-10","artifact":"/docs/d15-fact-check-contract.html","note":"FactLedger contract recorded: atomic claims, confirmed/conflicting/uncertain/not_found statuses, dates/numbers/names/causality checks, D11 signal semantics, draft promotion policy, immutable ledger revisions, review stops and rollback. Live fact-check, external fetch and production changes were not run."}
    ,{"code":"D15-014","status":"verified","date":"2026-09-10","artifact":"/docs/d15-qwen-editorial-contract.html","note":"QwenInstructionPack, EditorialBrief and EditorialMiniPlan contract recorded: source-of-truth hierarchy, one-step checkpoints, JSON response, citations, usefulness, anti-loop retry limits, BLOCKED/REVIEW_REQUIRED rules and rollback. Qwen-run, live research and production writer were not run."}
    ,{"code":"D15-015","status":"verified","date":"2026-09-10","artifact":"/docs/d15-topic-cluster-contract.html","note":"TopicCluster contract recorded on D11 clustering basis: exact/normalized/mirror/near-duplicate/version/translation relations, topic labels, representative selection, unique angle, stable IDs, append-only revisions, duplicate inflation fixtures and reversible rollback. Live clustering, catalog changes and production writer were not run."}
    ,{"code":"D15-016","status":"verified","date":"2026-09-10","artifact":"/docs/d15-draft-registry-contract.html","note":"DraftDocument, UsefulnessReview and ArticleRegistryRecord contract recorded: approved input gate, paragraph/claim/source mapping, originality, reader value, immutable revisions, idempotency, initial review/NOT_READY state and guarded publication boundary. Qwen-run, registry writes and production changes were not run."}
    ,{"code":"D15-017","status":"verified","date":"2026-09-10","artifact":"/docs/d15-html-composition-contract.html","note":"ArticleHtmlRevision, ComponentManifest, ImagePromptManifest, fixed ad slots, published-only RelatedArticles, responsive/accessibility validation, idempotency and rollback were recorded. HTML assembly, image render, registry write and publication were not run."}
    ,{"code":"D15-026","status":"verified","date":"2026-09-10","artifact":"/docs/d15-image-worker-contract.html","note":"SRV1/Comfy image worker contract recorded from existing workflow-lab evidence: approved Flux 2 Klein 9B/Q11/B9/O2 profiles, compatible VAE, private endpoint, provenance, lifecycle, capacity, idempotency and diversity gate. New render queue and production storage were not run."}
    ,{"code":"D15-018","status":"verified","date":"2026-09-10","artifact":"/docs/d15-qa-publication-contract.html","note":"QAReport and PublicationPackage contract recorded: factual/evidence, usefulness/editorial, HTML/accessibility, asset/rights/diversity, ad/recommendation and publication gates; blocking findings, hashes, idempotency and rollback defined. Qwen, web collection, Comfy render, registry write and publication were not run."}
    ,{"code":"D15-019","status":"verified","date":"2026-09-10","artifact":"/docs/d15-artifact-storage-versioning-contract.html","note":"ArtifactRecord, immutable revisions, storage scopes, staging/atomic commit, current/approved/published pointers, retention guards, backup/restore preview, idempotency and rollback were recorded. Buckets, migrations, cleanup, backup job, registry API and production writes were not run."}
    ,{"code":"D15-020","status":"verified","date":"2026-09-10","artifact":"/docs/d15-registry-activity-ui-contract.html","note":"Article Registry and Writer Activity UI contract recorded: registry read model, time/topic/resource filters, revisions, provenance, safe preview, planned topics, checkpoint/event projection, retry/cancel, rework and guarded READY_FOR_PUBLICATION action, plus loading/empty/error/blocked/stale/accessibility fixtures. Live UI, endpoints, MCP, registry and publisher were not run."}
    ,{"code":"D15-021","status":"verified","date":"2026-09-10","artifact":"/docs/d15-api-mcp-publication-contract.html","note":"Project-scoped D15 API, MCP and publication contract recorded: runs, registry, research bundle, revisions, QA, retry/cancel, READY gate, guarded publisher, roles, idempotency, audit, export/import and cross-project isolation. Routes, MCP server, auth integration, registry writes and publisher were not run."}
    ,{"code":"D15-022","status":"verified","date":"2026-09-10","artifact":"/docs/d15-scheduler-publisher-contract.html","note":"Default-deny scheduler and guarded publisher contract recorded: GREEN/AMBER/RED admission, cooldown/recovery, duplicate tick suppression, lease/heartbeat, checkpoints, retry/cancel/kill switch, append-only activity trace, READY_FOR_PUBLICATION gate, idempotency and rollback fixtures. Runtime scheduler, worker, publisher and production publication were not run."}
    ,{"code":"D15-023","status":"verified","date":"2026-09-10","artifact":"/docs/d15-limited-pilot-contract.html","note":"Limited pilot contract recorded: one project/topic, R-001/R-042/R-043, one candidate per resource, evidence/fact/Qwen mini-plan/HTML/registry/operator revision/usefulness/QA chain and publication dry-run without production destination. Live collection, Qwen, Comfy, registry write and publication were not run."},
    {"code":"D15-023.8","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-publication-package-fixture.html","note":"Fixture-only publication package export and guarded publisher check added. Package includes HTML, hash-bound operator approval, QA, evidence/assets/prompts, ad slots, recommendations and component manifest. Duplicate requests are idempotent; tampered package is blocked. No publisher, registry, destination, network, Qwen or Comfy side effect was executed."},
    {"code":"D15-023.9","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-activity-registry-fixture.html","note":"Fixture-only Writer Activity and Article Registry read-model projection added. It exposes confirmed events, current stage, last checkpoint, planned topic, current resource, immutable revision, QA summary and OPERATOR_APPROVAL_REQUIRED. Heartbeat older than 60 seconds is marked STALE; no activity log or registry write was performed."},
    {"code":"D15-023.10","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-operator-actions-fixture.html","note":"Fixture-only operator action gate added for retry, cancel and rework. Actions validate role, lifecycle state, retryability, reason and idempotency; duplicate commands return the original decision and changed payloads are blocked. No worker, scheduler, registry, publisher or production revision was changed."},
    {"code":"D15-023.11","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-scheduler-admission-fixture.html","note":"Fixture-only scheduler admission added. GREEN requires three stable samples; AMBER defers unless audited override; RED, stale metrics, unknown Qwen, manual lock, cooldown, recovery and active runs do not start work. Duplicate ticks are idempotent and conflicting snapshots are blocked. No scheduler, queue, worker or run was created."},
    {"code":"D15-023.12","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-lease-recovery-fixture.html","note":"Fixture-only lease and crash-recovery gate added. Claims bind owner_id, heartbeat carries stage/checkpoint/progress/message, lease loss blocks completion and pointer advancement, and recovery resumes the last confirmed checkpoint after expiry. 50/50 tests pass; no lease table, worker, scheduler, registry or publication side effect was executed."},
    {"code":"D15-023.13","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-retry-policy-fixture.html","note":"Fixture-only bounded retry policy added. Network/timeout/5xx errors retry in the same run with deterministic exponential backoff and a three-attempt ceiling; auth/robots/permission/schema/rights/policy/unknown errors do not retry. Cancel and manual lock suppress retry; 57/57 tests pass; no queue or production side effect was executed."},
    {"code":"D15-023.14","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-control-fixture.html","note":"Fixture-only cancel race and kill-switch recovery added. Cancel preserves the last checkpoint and partial evidence at a safe boundary; cancel-first rejects completion, completion-first cannot be rewritten. MANUAL_LOCK denies new claims, pauses active runs, retains artifacts and requires manual resume. 65/65 tests pass; no worker, scheduler, registry or publication side effect was executed."},
    {"code":"D15-023.15","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-activity-trace-fixture.html","note":"Fixture-only append-only activity trace and reconnect projection added. Confirmed events require contiguous sequence and project scope; reconnect resumes from cursor and removes known event IDs; ticker uses the latest confirmed event, not synthetic progress. 73/73 tests pass; no event store, API, websocket, registry or worker side effect was executed."},
    {"code":"D15-023.16","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-registry-view-fixture.html","note":"Fixture-only raw registry view added. It supports now/last_hour/today buckets, topic/resource/stage/status/query filters, immutable revision creation with expected-hash protection, explicit EMPTY results, project scope and sandboxed safe preview with scripts/event handlers removed. 81/81 tests pass; no registry, API, editor or publication side effect was executed."},
    {"code":"D15-023.17","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-registry-workflow-fixture.html","note":"Fixture-only operator registry workflow added. Editing creates immutable revisions and resets QA; PASS leads to review but not READY; BLOCKED leads to REWORK_REQUIRED; explicit operator approval plus matching hash and QA can produce synthetic READY_FOR_PUBLICATION. Stale hash, missing QA, invalid role and conflicts are blocked. 89/89 tests pass; publisher was not invoked."},
    {"code":"D15-023.18","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-acceptance-gate-fixture.html","note":"Unified final acceptance gate fixture added. Complete bounded bundle yields READY_FOR_LIMITED_USE only; missing evidence, rights/integrity, capacity, forbidden access, scope expansion or automatic publication yield BLOCKED; usefulness and HTML issues yield REWORK_REQUIRED. Decision record, stop event, rollback target and idempotent replay are included. 97/97 tests pass; no network, Qwen, Comfy, registry, publisher or production write."},
    {"code":"D15-023.19","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-evidence-bundle-replay-fixture.html","note":"Complete evidence bundle and decision replay fixture added. Twenty-one required pilot inputs are covered by immutable artifact records and deterministic hashes; missing inputs, duplicate or mutable artifacts, unsafe scope and tampered bundle or decision records are rejected. Same inputs reproduce the decision record. 105/105 tests pass; no network, Qwen, Comfy, registry, publisher or production write."},
    {"code":"D15-023.20","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-full-pilot-dry-run-fixture.html","note":"Full bounded pilot dry-run fixture added: 15 stages, one project/topic, R-001/R-042/R-043, one article, synthetic staging revision, complete 21-input evidence bundle, acceptance and decision replay. Registry remains DRY_RUN_BLOCKED and factual rollout remains BLOCKED_NO_LIVE_PILOT_EVIDENCE. 113/113 tests pass; no network, Qwen, Comfy, registry, publisher or production write."},
    {"code":"D15-023.21","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-full-pilot-failure-matrix-fixture.html","note":"Failure and repeatability matrix added for the complete pilot: 11 cases cover live-mode, scope, actor, evidence completeness/immutability/duplication, tampered bundle/decision and idempotency conflict; two identical bounded fixture runs reproduce the same run hash and decision record. 116/116 tests pass; all scenarios fail closed and no network, Qwen, Comfy, registry, publisher or production write was executed."},
    {"code":"D15-023.22","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-handoff-audit-fixture.html","note":"Portable handoff audit completed: 28 source-of-truth artifacts are required, plan state is aligned to D15-023.22 -> D15-023.23, fixture evidence and hashes are checked, and the live boundary remains BLOCKED_RUNTIME_NOT_INTEGRATED. Handoff is READY_FOR_HANDOFF_NOT_LIVE only; 120/120 tests pass; no runtime, network, Qwen, Comfy, registry, publisher or production write was executed."},
    {"code":"D15-023.23","status":"started_fixture_only","date":"2026-09-10","artifact":"/docs/d15-handoff-consumer-fixture.html","note":"External-AI consumer fixture completed: the handoff snapshot is accepted only as READY_FOR_HANDOFF_NOT_LIVE, its 28-file manifest and four bootstrap steps are understood, malformed/incomplete/live variants are rejected, and the next model is explicitly kept in fixture-only mode. 124/124 tests pass; no links were opened and no network, Qwen, Comfy, registry, publisher or production write was executed."},
    {"code":"D15-024","status":"verified","date":"2026-09-10","artifact":"/docs/d15-mvp-acceptance-contract.html","note":"MVP acceptance and rollout decision contract recorded: evidence bundle, factual/usefulness/HTML/assets/operations gates, READY_FOR_LIMITED_USE vs REWORK_REQUIRED vs BLOCKED outcomes, decision record, rollback and no-scope-expansion rules. No pilot evidence or runtime rollout was executed; default factual decision remains BLOCKED."},
    {"code":"D15-025","status":"deferred","date":"2026-09-10","artifact":"/docs/d15-deferred-features-matrix.html","note":"Deferred features matrix recorded without implementation: image transformation, expanded ranking, new CMS, parallel topics, training, automatic publication and analytics remain DEFERRED_WAITING_FOR_MVP_EVIDENCE. No runtime, installs, migrations or external side effects were made."},
    {"code":"D15-025.1","status":"started_read_only","date":"2026-09-10","artifact":"/docs/d15-qwen-30b-agent-reference.html","evidence":"/docs/d15-qwen-30b-audit.json","note":"Read-only server2 audit completed. Qwen3-30B-A3B-Instruct-2507 is loaded through llama.cpp and reachable through router :18080; Hermes is an active agent layer using that model with 16 skills/12 enabled and an in-process research queue (1 worker, 4 pending, 32 retained). Mathcast PostgreSQL editorial.task queue primitives exist, but mathchast-editor-worker is disabled/preflight with execution_enabled=false and no Qwen adapter. Live writer, task submission, external collection and publication were not started. Next: D15-025.2 staging adapter and durable queue architecture decision."},
    {"code":"D15-025.2","status":"started_staging_disabled","date":"2026-09-10","artifact":"/services/d15_writer/schema.sql","evidence":"/docs/d15-qwen-30b-agent-reference.html","note":"D15-specific durable queue provisioned additively in mathchast_editor as editorial.d15_writer_task and editorial.d15_writer_task_event; existing review queue editorial.task was not modified. Hermes→Qwen adapter, strict one-step JSON checkpoint validation, lease/heartbeat/retry handling and disabled systemd unit deployed to /mnt/ssd_projects/apps/d15_writer. Database backup created before schema application; persistent task count is 0; worker is disabled/inactive; 10/10 local tests pass. No task submission, Qwen generation, registry write, Comfy call or publication occurred. Next: D15-025.3 Hermes/Qwen staging dry-run with synthetic checkpoint."},
    {"code":"D15-025.3","status":"started_staging_verified","date":"2026-09-10","artifact":"/docs/d15-qwen-dryrun.json","evidence":"/docs/d15-qwen-queue-smoke.json","note":"Transactional DB smoke passed with rollback, then a synthetic Hermes/Qwen call returned a valid one-step checkpoint from Qwen3-30B-A3B-Instruct-2507. The adapter rejected the first wrapped response, was corrected to prefer raw model content, and accepted the repeated strict-schema checkpoint. Worker stayed disabled; no external collection, filesystem write, registry write, Comfy call or publication occurred. Next: D15-025.4 activity projection and operator-visible checkpoint events."}
  ]
}
