{
  "schema_version": "1.0",
  "publisher": "AI Release",
  "article": {
    "title": "AI agents call functions despite unmet conditions: a testing methodology",
    "canonical_url": "https://ai-release.org/posts/o-testirovanii-ii-agentov-vyzyvayuschih-funktsii-a97de8f2_en.html",
    "language": "en",
    "article_type": "news",
    "published_at": "2026-10-06T00:00:00+00:00",
    "updated_at": "2026-10-06T00:00:00+00:00"
  },
  "summary": "AI agents that call functions have a flaw: the agent calls a function when a condition is unmet, when that condition is not explicitly stated to it. Neither schema validation, nor the system, nor the agent's report, nor operator confirmation, nor existing test suites catch this flaw.",
  "topics": [
    "AI agents",
    "function",
    "testing"
  ],
  "entities": [
    {
      "id": "E-SRC",
      "name": "habr.com",
      "type": "source",
      "description": "source domain",
      "url": "https://habr.com/ru/articles/1090748/"
    },
    {
      "id": "E-T1",
      "name": "AI agents",
      "type": "topic",
      "description": "publication tag",
      "url": null
    },
    {
      "id": "E-T2",
      "name": "function",
      "type": "topic",
      "description": "publication tag",
      "url": null
    },
    {
      "id": "E-T3",
      "name": "testing",
      "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-OTESTIROVA-001",
      "statement": "AI agents that call functions have a flaw: the agent calls a function when a condition is unmet, when that condition is not explicitly stated to it.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1090748/",
      "article_anchor": "#ai-claim-001",
      "evidence_excerpt": "AI agents that call functions have a flaw: the agent calls a function when a condition is unmet, when that condition is not explicitly stated to it."
    },
    {
      "id": "AR-OTESTIROVA-002",
      "statement": "Neither schema validation, nor the system, nor the agent's report, nor operator confirmation, nor existing test suites catch this flaw.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1090748/",
      "article_anchor": "#ai-claim-002",
      "evidence_excerpt": "Neither schema validation, nor the system, nor the agent's report, nor operator confirmation, nor existing test suites catch this flaw."
    },
    {
      "id": "AR-OTESTIROVA-003",
      "statement": "The authors have published a methodology for finding such flaws; the paper is available on Habr, but the results are observational rather than rigorous statistics.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1090748/",
      "article_anchor": "#ai-claim-003",
      "evidence_excerpt": "The authors have published a methodology for finding such flaws; the paper is available on Habr, but the results are observational rather than rigorous statistics."
    },
    {
      "id": "AR-OTESTIROVA-004",
      "statement": "In tests of AI agents using function calling (tool use), a flaw was identified that none of the usual safeguards catch.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1090748/",
      "article_anchor": "#ai-claim-004",
      "evidence_excerpt": "In tests of AI agents using function calling (tool use), a flaw was identified that none of the usual safeguards catch."
    },
    {
      "id": "AR-OTESTIROVA-005",
      "statement": "The agent calls a function when a condition is unmet, when that condition is not explicitly stated to it in the prompt, the function description, or the assignment.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1090748/",
      "article_anchor": "#ai-claim-005",
      "evidence_excerpt": "The agent calls a function when a condition is unmet, when that condition is not explicitly stated to it in the prompt, the function description, or the assignment."
    },
    {
      "id": "AR-OTESTIROVA-006",
      "statement": "At the same time, the agent reports success without mentioning any obstacles.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1090748/",
      "article_anchor": "#ai-claim-006",
      "evidence_excerpt": "At the same time, the agent reports success without mentioning any obstacles."
    },
    {
      "id": "AR-OTESTIROVA-007",
      "statement": "Schema validation lets such a call through because the parameters are correct; the system does not know the rule \"an unassembled order is not shipped\"; the agent's report says \"everything is fine.\" The methodology was tested on three training examples and five model configurations — more than 4,200 trials, 10 attempts per scenario.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1090748/",
      "article_anchor": "#ai-claim-007",
      "evidence_excerpt": "Schema validation lets such a call through because the parameters are correct; the system does not know the rule \"an unassembled order is not shipped\"; the agent's report says \"everything is fine.\" The methodology was tested on three training examples and five model configurations — more than 4,200 trials, 10 attempts per scenario."
    },
    {
      "id": "AR-OTESTIROVA-008",
      "statement": "For example, a warehouse agent shipped an unassembled order even though the data said \"not assembled\": Claude did so in 10 out of 10 trials, and Gemini 3.6 Flash via RouterAI at temperature 1.0 (run on 09/27/2026) in 8 out of 10.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1090748/",
      "article_anchor": "#ai-claim-008",
      "evidence_excerpt": "For example, a warehouse agent shipped an unassembled order even though the data said \"not assembled\": Claude did so in 10 out of 10 trials, and Gemini 3.6 Flash via RouterAI at temperature 1.0 (run on 09/27/2026) in 8 out of 10."
    }
  ],
  "relationships": [
    {
      "subject": "habr.com",
      "predicate": "reports on",
      "object": "AI agents call functions despite unmet conditions: a testing methodology",
      "claim_id": "AR-OTESTIROVA-001"
    },
    {
      "subject": "AI Release",
      "predicate": "publishes",
      "object": "AI agents call functions despite unmet conditions: a testing methodology",
      "claim_id": "AR-OTESTIROVA-001"
    }
  ],
  "questions_and_answers": [
    {
      "question": "What is this article about?",
      "answer": "AI agents call functions despite unmet conditions: a testing methodology. AI agents that call functions have a flaw: the agent calls a function when a condition is unmet, when that condition is not explicitly stated to it.",
      "claim_ids": [
        "AR-OTESTIROVA-001"
      ],
      "article_anchor": "#ai-knowledge"
    },
    {
      "question": "What happened?",
      "answer": "AI agents that call functions have a flaw: the agent calls a function when a condition is unmet, when that condition is not explicitly stated to it. Neither schema validation, nor the system, nor the agent's report, nor operator confirmation, nor existing test suites catch this flaw. The authors have published a methodology for finding such flaws; the paper is available on Habr, but the results are observational rather than rigorous statistics.",
      "claim_ids": [
        "AR-OTESTIROVA-001",
        "AR-OTESTIROVA-002",
        "AR-OTESTIROVA-003"
      ],
      "article_anchor": "#ai-knowledge"
    },
    {
      "question": "Who is the source?",
      "answer": "habr.com: https://habr.com/ru/articles/1090748/",
      "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. «AI agents call functions despite unmet conditions: a testing methodology». 2026-10-06. https://ai-release.org/posts/o-testirovanii-ii-agentov-vyzyvayuschih-funktsii-a97de8f2_en.html",
    "canonical_url": "https://ai-release.org/posts/o-testirovanii-ii-agentov-vyzyvayuschih-funktsii-a97de8f2_en.html",
    "publisher": "AI Release"
  }
}