{
  "schema_version": "1.0",
  "publisher": "AI Release",
  "article": {
    "title": "A QA framework for ML models: how I built ModelContract",
    "canonical_url": "https://ai-release.org/posts/protestirovat-ml-che-to-slishkom-shiroko-berem-kak-ya-sobrala-qa-frame-fbd5390d_en.html",
    "language": "en",
    "article_type": "news",
    "published_at": "2026-10-03T00:00:00+00:00",
    "updated_at": "2026-10-03T00:00:00+00:00"
  },
  "summary": "The author developed a framework for automated testing of finished ML models: it builds a ModelContract from metadata and the model's formal API. The experience is based on an Olist model (late-delivery risk estimation) with saved metrics: ROC AUC 0.8101, PR AUC 0.3354, Brier 0.0633.",
  "topics": [
    "QA",
    "ML",
    "testing",
    "ModelContract",
    "framework"
  ],
  "entities": [
    {
      "id": "E-SRC",
      "name": "habr.com",
      "type": "source",
      "description": "source domain",
      "url": "https://habr.com/ru/articles/1089614/"
    },
    {
      "id": "E-T1",
      "name": "QA",
      "type": "topic",
      "description": "publication tag",
      "url": null
    },
    {
      "id": "E-T2",
      "name": "ML",
      "type": "topic",
      "description": "publication tag",
      "url": null
    },
    {
      "id": "E-T3",
      "name": "testing",
      "type": "topic",
      "description": "publication tag",
      "url": null
    },
    {
      "id": "E-T4",
      "name": "ModelContract",
      "type": "topic",
      "description": "publication tag",
      "url": null
    },
    {
      "id": "E-T5",
      "name": "framework",
      "type": "topic",
      "description": "publication tag",
      "url": null
    },
    {
      "id": "E-AIR",
      "name": "AI Release",
      "type": "publisher",
      "description": "published the article",
      "url": "https://ai-release.org/"
    }
  ],
  "claims": [
    {
      "id": "AR-PROTESTIRO-001",
      "statement": "The author developed a framework for automated testing of finished ML models: it builds a ModelContract from metadata and the model's formal API.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1089614/",
      "article_anchor": "#ai-claim-001",
      "evidence_excerpt": "The author developed a framework for automated testing of finished ML models: it builds a ModelContract from metadata and the model's formal API."
    },
    {
      "id": "AR-PROTESTIRO-002",
      "statement": "The experience is based on an Olist model (late-delivery risk estimation) with saved metrics: ROC AUC 0.8101, PR AUC 0.3354, Brier 0.0633.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1089614/",
      "article_anchor": "#ai-claim-002",
      "evidence_excerpt": "The experience is based on an Olist model (late-delivery risk estimation) with saved metrics: ROC AUC 0.8101, PR AUC 0.3354, Brier 0.0633."
    },
    {
      "id": "AR-PROTESTIRO-003",
      "statement": "The main limitation: PASS/FAIL criteria must be explicitly specified in the metadata or in the model itself; the dataset is not a source of requirements.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1089614/",
      "article_anchor": "#ai-claim-003",
      "evidence_excerpt": "The main limitation: PASS/FAIL criteria must be explicitly specified in the metadata or in the model itself; the dataset is not a source of requirements."
    },
    {
      "id": "AR-PROTESTIRO-004",
      "statement": "In trying to test her own ML model, the author ran into a problem typical of Data Science: the documentation exists only in the developer's head, and the dataset readily shows actual values but doesn't answer the question of \"how things should be.\" A minimum in the data doesn't mean an acceptable boundary, and the absence of a feature combination is not the same as its being invalid.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1089614/",
      "article_anchor": "#ai-claim-004",
      "evidence_excerpt": "In trying to test her own ML model, the author ran into a problem typical of Data Science: the documentation exists only in the developer's head, and the dataset readily shows actual values but doesn't answer the question of \"how things should be.\" A minimum in the data doesn't mean an acceptable boundary, and the absence of a feature combination is not the same as its being invalid."
    },
    {
      "id": "AR-PROTESTIRO-005",
      "statement": "Formal criteria are needed for verification.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1089614/",
      "article_anchor": "#ai-claim-005",
      "evidence_excerpt": "Formal criteria are needed for verification."
    },
    {
      "id": "AR-PROTESTIRO-006",
      "statement": "The way out was found in a ready-made Olist model: alongside it was documentation, including feature descriptions, a dataset, saved metrics, and library versions.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1089614/",
      "article_anchor": "#ai-claim-006",
      "evidence_excerpt": "The way out was found in a ready-made Olist model: alongside it was documentation, including feature descriptions, a dataset, saved metrics, and library versions."
    },
    {
      "id": "AR-PROTESTIRO-007",
      "statement": "This made it possible to move from \"checking documentation\" to implementing a framework.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1089614/",
      "article_anchor": "#ai-claim-007",
      "evidence_excerpt": "This made it possible to move from \"checking documentation\" to implementing a framework."
    },
    {
      "id": "AR-PROTESTIRO-008",
      "statement": "The key idea is to separate the human-readable README from the machine-readable model_metadata.json.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1089614/",
      "article_anchor": "#ai-claim-008",
      "evidence_excerpt": "The key idea is to separate the human-readable README from the machine-readable model_metadata.json."
    }
  ],
  "relationships": [
    {
      "subject": "habr.com",
      "predicate": "reports on",
      "object": "A QA framework for ML models: how I built ModelContract",
      "claim_id": "AR-PROTESTIRO-001"
    },
    {
      "subject": "AI Release",
      "predicate": "publishes",
      "object": "A QA framework for ML models: how I built ModelContract",
      "claim_id": "AR-PROTESTIRO-001"
    }
  ],
  "questions_and_answers": [
    {
      "question": "What is this article about?",
      "answer": "A QA framework for ML models: how I built ModelContract. The author developed a framework for automated testing of finished ML models: it builds a ModelContract from metadata and the model's formal API.",
      "claim_ids": [
        "AR-PROTESTIRO-001"
      ],
      "article_anchor": "#ai-knowledge"
    },
    {
      "question": "What happened?",
      "answer": "The author developed a framework for automated testing of finished ML models: it builds a ModelContract from metadata and the model's formal API. The experience is based on an Olist model (late-delivery risk estimation) with saved metrics: ROC AUC 0.8101, PR AUC 0.3354, Brier 0.0633. The main limitation: PASS/FAIL criteria must be explicitly specified in the metadata or in the model itself; the dataset is not a source of requirements.",
      "claim_ids": [
        "AR-PROTESTIRO-001",
        "AR-PROTESTIRO-002",
        "AR-PROTESTIRO-003"
      ],
      "article_anchor": "#ai-knowledge"
    },
    {
      "question": "Who is the source?",
      "answer": "habr.com: https://habr.com/ru/articles/1089614/",
      "claim_ids": [],
      "article_anchor": "#ai-knowledge"
    },
    {
      "question": "What remains unknown?",
      "answer": "The article reports the cited source; independent verification and full details are not provided.",
      "claim_ids": [],
      "article_anchor": "#ai-knowledge"
    }
  ],
  "limitations": [
    "No independent verification is provided.",
    "Full details, dates and official documents may be missing.",
    "The article reports a source rather than being the primary source."
  ],
  "citation": {
    "preferred_citation": "AI Release. «A QA framework for ML models: how I built ModelContract». 2026-10-03. https://ai-release.org/posts/protestirovat-ml-che-to-slishkom-shiroko-berem-kak-ya-sobrala-qa-frame-fbd5390d_en.html",
    "canonical_url": "https://ai-release.org/posts/protestirovat-ml-che-to-slishkom-shiroko-berem-kak-ya-sobrala-qa-frame-fbd5390d_en.html",
    "publisher": "AI Release"
  }
}