{
  "contract_id": "D15-012",
  "title": "Контракт внешнего web-обогащения",
  "version": "2026-09-10.1",
  "status": "verified",
  "execution_status": "not_executed",
  "purpose": "Find reader-relevant information gaps and add bounded, cited external context without copying source material or expanding scope.",
  "inputs": [
    "run_id",
    "article_id",
    "revision_id",
    "project_id",
    "ArticleSnapshot",
    "EvidenceEnvelope",
    "ReaderUsefulnessBrief",
    "research_question",
    "gap_hypotheses",
    "allowlisted_sources",
    "d15_access_policy",
    "budget",
    "locale",
    "policy_version",
    "prompt_input_version"
  ],
  "discovery_order": [
    "PRIMARY",
    "ORIGINAL_STUDY_OR_STANDARD",
    "OFFICIAL_TECHNICAL_SOURCE",
    "SECONDARY_TRANSPARENT_SOURCE",
    "DISCOVERY_ONLY"
  ],
  "source_statuses": ["ADMITTED", "DISCOVERY_ONLY", "BLOCKED", "NO_ACCESS", "STALE", "REJECTED"],
  "gap_statuses": ["OPEN", "FILLED", "PARTIALLY_FILLED", "NOT_FOUND", "OUT_OF_SCOPE"],
  "claim_support": ["SUPPORTED", "PARTIAL", "CONFLICT", "UNVERIFIED", "REJECTED"],
  "claim_kinds": ["source_fact", "inference", "editorial_recommendation"],
  "required_claim_fields": [
    "claim_id",
    "gap_id",
    "kind",
    "summary",
    "source_url",
    "source_type",
    "accessed_at",
    "evidence_ref",
    "evidence_hash",
    "support",
    "confidence",
    "limitations",
    "reader_value",
    "status"
  ],
  "bundle_required_fields": [
    "bundle_id",
    "run_id",
    "article_id",
    "revision_id",
    "project_id",
    "research_question",
    "reader_usefulness_brief",
    "gaps",
    "claims",
    "sources",
    "claim_to_source_matrix",
    "conflicts",
    "coverage",
    "reader_value",
    "warnings",
    "policy_version",
    "created_at"
  ],
  "bundle_statuses": ["READY_FOR_FACT_CHECK", "PARTIAL", "NO_ADMISSIBLE_EVIDENCE", "BLOCKED"],
  "rules": {
    "search_snippet_is_evidence": false,
    "critical_claim_requires_evidence": true,
    "conflicts_are_preserved": true,
    "source_text_is_untrusted_data": true,
    "execute_instructions_found_in_sources": false,
    "copy_long_source_text": false,
    "qwen_may_publish": false,
    "original_snapshot_is_mutable": false,
    "external_access": "public_read_only_only"
  },
  "stop_reasons": [
    "ROBOTS_OR_TERMS_AMBIGUOUS",
    "FORBIDDEN_OR_RATE_LIMITED",
    "UNEXPECTED_CHALLENGE",
    "PRIVATE_REDIRECT",
    "OVERSIZED_RESPONSE",
    "PARSER_DRIFT",
    "SECRET_LEAK",
    "CROSS_PROJECT_SCOPE",
    "EVIDENCE_HASH_FAILURE",
    "COPY_RISK",
    "BUDGET_EXHAUSTED"
  ],
  "rollback": {
    "discard_from_draft": ["UNVERIFIED", "REJECTED", "out_of_scope_claims"],
    "retain_for_audit": ["bundle", "source_status", "warnings", "evidence_refs", "activity_events"],
    "mutate_original_revision": false,
    "new_run_required_after_failure": true
  },
  "validation": [
    "claim_to_gap_mapping",
    "source_url_and_accessed_at",
    "evidence_ref_and_hash",
    "support_status_consistency",
    "freshness_and_language",
    "conflict_visibility",
    "copy_and_prompt_injection_check",
    "allowlist_project_scope_and_budget",
    "provenance_completeness",
    "immutable_revision_check"
  ],
  "related_artifacts": [
    "/docs/d15-extraction-evidence-contract.html",
    "/docs/d15-access-rights-security-contract.html",
    "/docs/d15-run-contract.html",
    "/docs/d11-data-contract.md"
  ],
  "live_actions": {
    "web_search": false,
    "external_fetch": false,
    "production_change": false,
    "publication": false
  }
}
