{
  "schema": "article-experiment-guide/v1",
  "guide": "# Reusable approval evidence / 可复用审批实验依据\n\nThese are internal bounded experiments performed on 2026-11-14, not whole-system reproduction. Production copied verified results without rerunning experiments. Only local execution paths have been removed from result records; controls, output, environment, pinned source identities and limitations remain intact.\n\n这些是 2026-11-14 已执行的内部限定实验。生产阶段只复制并核验结果，没有重新运行；仅移除了本机执行命令与路径，保留对照、结果、环境、来源版本和边界。\n\n## SQL probe\n\nUse the exact approval-query.sql with SQLite 3.53.3 (original Node 24.19.0). Create an in-memory approval_queue table with the returned columns, populate synthetic rows and bind agent_id, workflow pattern and negative age in hours. The first eight controls are fully enumerated in approval-results.json; the ninth adds a newer eligible denied row. Use dates safely inside or outside the window, rather than inferring exact-cutoff behavior. Request and target are experiment metadata, not query parameters. A new request/target with unchanged agent, pattern and time retrieves the same row. Changing agent, pattern, age or eligible status excludes it. No matcher, policy or action is executed.\n\n## Identity probe\n\nThe identity-getter.py excerpt is the pinned AG2 getter with its original copyright/license identification. In Python 3.12.9, extract its function from the syntax tree, remove only the property decorator and supply a synthetic owner with model.call and name. Compare: (1) equal public name/different qualname; (2) different callable bodies retaining module, qualname and name; (3) equal callable/different exposed name. Expected equality is false, true, false, as recorded in identity-results.json. No AG2 middleware, transport, credential or human interaction is executed.\n\n## Interpretation boundary\n\nThe records establish query predicates and identity-string behavior only. An approved row is not a final operation allowance. Equal identity is not attacker control. Broader reuse may be intentional. See source-map.json for each source and examined claim; source hashes identify admitted snapshots, not a claim of independent validation.\n",
  "querySql": "SELECT id, created_at, agent_id, division_code, action_description, rule_triggered, status, decided_by, decided_at, metadata FROM approval_queue WHERE agent_id = ? AND rule_triggered = ? AND status IN ('pending', 'approved', 'denied') AND created_at > datetime('now', ? || ' hours') ORDER BY created_at DESC LIMIT 1\n",
  "identityGetterPython": "# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributors\n# SPDX-License-Identifier: Apache-2.0\n# Exact getter excerpt, dedented for reading.\n@property\ndef source(self) -> str:\n    \"\"\"The implementation behind this tool: its function and the name it is called by.\"\"\"\n    call = self.model.call\n    module = getattr(call, \"__module__\", None) or type(call).__module__\n    qualname = getattr(call, \"__qualname__\", None) or type(call).__qualname__\n    return f\"function:{module}:{qualname}:{self.name}\"\n\n",
  "notice": "The SQL and Python filenames in the reading guide refer to the exact source text embedded in this JSON. They are not separate public URLs."
}
