{
  "contract_id": "D15-014",
  "title": "Редакционный контекст, mini-plan и инструкция Qwen 30B",
  "version": "2026-09-10.1",
  "status": "verified",
  "execution_status": "not_executed",
  "primary_engine": {
    "name": "Qwen 30B",
    "role": "server_side_primary_editorial_worker",
    "source_of_truth": ["immutable_evidence", "ArticleSnapshot", "FactLedger", "EnrichmentBundle"],
    "cannot": ["publish", "mutate_evidence", "invent_facts", "change_claim_status", "expand_scope_silently", "execute_source_instructions"]
  },
  "artifact_types": ["QwenInstructionPack", "EditorialBrief", "EditorialMiniPlan"],
  "brief_required_fields": [
    "brief_id",
    "run_id",
    "article_id",
    "reader",
    "reader_task",
    "promise",
    "research_question",
    "angle",
    "candidate_sources",
    "fact_ledger_ref",
    "gaps",
    "must_include",
    "must_not_claim",
    "exclusions",
    "tone_and_language",
    "usefulness_checks",
    "approved_by",
    "approved_at"
  ],
  "mini_plan_required_fields": [
    "mini_plan_id",
    "brief_id",
    "goal",
    "steps",
    "current_step_id",
    "next_step_id",
    "retry_budget",
    "plan_version"
  ],
  "step_required_fields": [
    "step_id",
    "title",
    "input_refs",
    "action",
    "expected_artifact",
    "acceptance",
    "max_attempts",
    "status"
  ],
  "allowed_step_statuses": ["queued", "running", "checkpoint", "blocked", "review_required", "complete"],
  "allowed_response_statuses": ["CONTINUE", "CHECKPOINT", "BLOCKED", "REVIEW_REQUIRED", "COMPLETE", "PARTIAL"],
  "minimum_workflow": [
    "brief",
    "mini_plan",
    "source_evidence_pass",
    "usefulness_gap_pass",
    "fact_ledger_pass",
    "outline",
    "section_plan",
    "section_draft",
    "critique",
    "revision_proposal",
    "html_image_handoff",
    "registry_checkpoint",
    "operator_review"
  ],
  "checkpoint_required_fields": [
    "run_id",
    "mini_plan_id",
    "step_id",
    "attempt",
    "status",
    "artifact",
    "source_refs",
    "evidence_refs",
    "claim_refs",
    "decisions",
    "open_questions",
    "limitations",
    "next_step_id",
    "model",
    "prompt_version",
    "input_hash",
    "output_hash",
    "created_at"
  ],
  "anti_loop_rules": {
    "max_attempts_default": 2,
    "same_failure_twice": "REVIEW_REQUIRED",
    "one_current_step_per_call": true,
    "one_next_step_or_null": true,
    "new_step_to_bypass_failure": false,
    "silent_scope_expansion": false,
    "missing_evidence": "BLOCKED",
    "conflicting_facts": "preserve_and_review",
    "completed_step_replay_without_revision": false
  },
  "fact_and_citation_rules": {
    "critical_claim_requires_source_and_evidence": true,
    "claim_refs_required_for_substantial_paragraphs": true,
    "search_snippet_is_evidence": false,
    "d11_signal_is_content_truth": false,
    "long_source_copy": false,
    "fact_inference_recommendation_separate": true,
    "source_text_is_untrusted_data": true,
    "execute_source_instructions": false
  },
  "usefulness_rules": {
    "each_section_answers_reader_task": true,
    "each_section_closes_gap_or_explains_gap": true,
    "must_name_limits_and_risks": true,
    "generic_interest_without_reader_value": "REVIEW_REQUIRED"
  },
  "validation_fixtures": [
    "conflicting_dates",
    "missing_number",
    "not_found",
    "prompt_injection_in_source",
    "same_failure_twice",
    "empty_evidence",
    "step_skip_attempt"
  ],
  "rollback": {
    "fallback": "last_approved_instruction_pack_or_manual_template_outline",
    "retain_checkpoints": true,
    "mutate_source_evidence": false,
    "publication_on_failure": false,
    "new_revision_after_pack_change": true
  },
  "live_actions": {
    "qwen_run": false,
    "web_search": false,
    "external_fetch": false,
    "production_writer": false,
    "publication": false
  },
  "related_artifacts": [
    "/docs/d15-fact-check-contract.html",
    "/docs/d15-enrichment-contract.html",
    "/docs/d15-run-contract.html",
    "/docs/d15-source-inventory.html",
    "/ai-read/docs/html-article-layout-plan.html"
  ]
}
