QuerentSchema · 1.0.0-rc.1
REVIEW CANDIDATE · 2026-11-11

GEO 交付格式候选版

一次保存完整回答,关联多个品牌、完整来源清单及有序截图 URL。不含 analytics 或聚合指标。

公开技术参考 · 1.0.0-rc.1 审阅候选,不是已获客户批准的正式契约。旧版 1.0.0 链接与文件保持有效;不会静默迁移既有交付。所有示例均为虚构,不含真实客户原文或账号信息。

设计版本:1.0.0-rc.1
修订日期:2026-11-11

阅读说明

本稿保留原文的批次、品牌、提示词、回答、引用、证据和失败记录结构,补齐字段语义、机器校验和旧版迁移边界。本公开页面用于审阅和实现验证,不代表客户已确认新契约,也不改变客户文件或历史数据。正式版本号及启用日期,需在试交付和消费端确认后确定。

已明确的本次范围:一个提示词可监测多个品牌;保留返回文章的完整清单及可见顺序;正文引用标记单独保存;截图在 JSON 内交 URL,不打包图片;不增加 analytics。提及、列表位置和界面引用关系属于采集观察,不自动升级为推荐排名或事实核验结论。

本稿提出的规则:以下字段、枚举、对账和验收约束是候选技术方案。采样次数、平台范围、链接保留截止时间、续签方式、正式验收条件和旧接口切换安排仍需确认。示例中的品牌、回答、URL 和状态均为虚构,用于测试结构,不能用于客户分析或作为真实采集证据。

配套文件包括机器 JSON Schema、独立示例 JSON、本地校验脚本、验证说明和迁移说明。Schema 负责结构校验,脚本负责跨字段约束。真实截图、链接访问、来源清单完整性和脱敏仍需采集侧或人工核验,不能仅靠 JSON 声明证明。

概述与设计原则

本方案的目标是交付可追溯、可解析、能明确表达缺口的采集数据。回答原文只保存一次,多个品牌的观察、来源和截图通过 ID 关联。同一回答提及多个品牌,不增加独立样本数。

  1. 原文可追溯:保留原题、实际提交文本、同轮完整回答和平台展示的引用信息。品牌证据与引用片段均定位到原文。
  2. 未知不补造:观察值取不到时使用约定的 null 或未知状态,并记录原因。旧数据的缺口不能用后来采集的内容、模型默认值或其他轮次的证据补齐。
  3. 机器可校验:固定字段、封闭枚举和明确版本;结构校验与语义校验分开。不把程序通过当作真实证据验收通过。
  4. 采样可对账:计划、独立采样、尝试次数和留存回答分别记录。失败后重试属于同一个计划,不算新样本。
  5. 观察不越界:提及不等于推荐;列表序号不等于优先排名;平台挂出的引用不等于已独立证明正文事实。
  6. 证据可使用:图片只提供 URL,说明访问方式、检查时间、有效期与续签办法。hash 用来校验已有文件,不代替可下载的文件。

相对原稿的主要修订

原稿问题 本稿处理
结构图与实际字段名不一致 以扁平的 answer_original、answer_translated 和 other_entities_mentioned 为准
自然提及被解释为主动推荐 改为非点名提及;不从提及判断推荐
一条来源仅有一个展示面和 marker 来源放 items,具体出现位置放 occurrences;同源多处出现分别记录
null、unavailable 和原因字段并存 统一观察值 null、封闭状态枚举、局部 JSON Pointer 原因表
失败只记录次数和最后时间 增加采样计划、逐次尝试、恢复样本关联和对账规则
截断答案仍可能被视为成功 分开留存记录与合格记录,按验收配置决定资格
URL 过期后仅靠 hash 保证可核验 明确保留期限和续签,校验值不恢复失效链接
只有文字上的 Schema 校验要求 附机器 Schema、语义校验脚本、正反例测试和能力边界
未交代旧版兼容 增加逐字段迁移说明;不声称已兼容现有客户程序

顶层结构

一个 JSON 文件对应一个采集批次,UTF-8 编码。保留七个顶层字段,不增加 analytics。

交付文件
├─ schema_version
├─ delivery
├─ collection_run
│  ├─ annotation
│  ├─ translation                可选
│  ├─ acceptance_profile
│  ├─ evidence_policy
│  ├─ unavailable_reasons        有未知配置时使用
│  └─ sample_plan[]
├─ brands[]
├─ prompts[]
├─ samples[]
│  ├─ 回答身份及采集时间
│  ├─ environment
│  ├─ answer_original 与翻译字段
│  ├─ brand_results[]
│  ├─ other_entities_mentioned[]
│  ├─ citations
│  │  ├─ surfaces[]
│  │  └─ items[].occurrences[]
│  ├─ evidence
│  ├─ quality
│  ├─ quality_flags[]
│  ├─ unavailable_reasons
│  └─ legacy_source             历史迁移时使用
└─ failures[]
   └─ attempt_records[]

引用关系与 ID 范围

  • schema_version 固定为本候选稿对应的 1.0.0-rc.1,不能以它冒充正式客户版本。
  • delivery_id 标识批次;同一批次修订需保留版本记录,不能把不同批次冒用同一 ID。
  • brand_id、prompt_id、plan_id、sample_id、failure_id 分别在各自实体集合中唯一,不要求不同实体类型的字符串互不相同。
  • citation_id、occurrence_id 在各自所属 sample 内唯一;截图 sequence 也只在该 sample 内有意义。跨样本引用必须同时带 sample_id。
  • attempt_id 在当前批次的尝试记录内唯一,attempt_index 在同一计划中从 1 连续递增。
  • 同一品牌或同一原题在后续批次中可以保留稳定 ID;不得把已存在的 ID 改指另一个实体。原题修改后是否使用新 prompt_id,必须在建库规则中确定。
  • sample.plan_id → sample_plan;sample.prompt_id → prompts;brand_results.brand_id → brands。
  • mentions.citation_ids → 同一样本 citations.items.citation_id;截图 citation_occurrence_ids → 同一样本 occurrences.occurrence_id。
  • 品牌官方归属 owner_brand_id 引用 brands;未知归属不填写,不从标题猜测。

delivery collection_run 与 failures

delivery 批次对账

本稿明确区分“记录已返回”和“按候选验收规则合格”。samples 可以保留被排除的回答,因此 delivered_sample_count 不再简单等于数组长度。

字段 类型 要求与定义
delivery_id string 必填,批次标识
delivered_at_utc string 必填,UTC 交付时间,带 Z
planned_sample_count integer 必填,等于 sample_plan 的计划条数
delivered_sample_count integer 必填,合格的最终样本数,等于 accepted 计划数
recorded_sample_count integer 必填,samples 数组实际条数,包含留存但排除的回答
failed_final_count integer 必填,最终 failed 或 excluded 的计划数;重试次数不计入
repeats_per_prompt integer 可选,仅所有平台与提示词组合采用相同次数时填写
aggregation_note string 可选,仅解释交付或分组口径,不存放聚合结果

最终批次必须满足:

planned_sample_count = delivered_sample_count + failed_final_count
recorded_sample_count = len(samples)
delivered_sample_count = accepted 计划数 = acceptance_status 为 accepted 的样本数
failed_final_count = outcome 为 failed 或 excluded 的计划数

例如:计划 3 个独立样本;1 个首次成功、1 个重试后成功、1 个最终失败,则 planned=3、delivered=2、failed_final=1。重试产生的第 4 次请求不能把计划数改成 4。若失败过程中保留了不合格回答,它可进入 samples,但必须 excluded,并与对应计划关联。

collection_run 批次配置

字段 类型 要求与定义
collector_version string 必填,采集程序或流程版本
annotation.method enum rule / llm / human / hybrid
annotation.version string 必填,匹配规则、提示或标注流程版本
annotation.reviewed_by enum none / sampled / full;为保留原字段名而继续使用,含义是人工复核范围,不是复核人姓名
translation.method enum 可选对象中的必填项,none / machine / human
translation.source_language string 可选,仅全批原文语言一致时填写;若填写,必须与所有样本 answer_language 一致
acceptance_profile object 必填,见下文;不能把建议规则写成已获客户确认
evidence_policy object 必填,约定 URL 可用期限与更新方式
sample_plan array 必填,最终的逐项采样计划
unavailable_reasons object 配置中存在 null 时使用,相对 collection_run 的 JSON Pointer → 原因

acceptance_profile 验收配置

字段 类型 定义
confirmation_state enum proposed 为待确认建议;confirmed 为已有明确确认
approval_reference string confirmed 时必填,指向实际确认记录的可核查编号或描述;不得虚构
require_logged_in boolean 是否要求已登录采集
require_original_prompt boolean 是否要求实际提交文本逐字等于原题
require_complete_answer boolean 是否要求回答原文完整
require_complete_citations boolean 是否要求全部展示面的来源清单检查完整
require_complete_screenshots boolean 是否要求截图覆盖完整回答及全部可见来源
require_verified_geography boolean 是否要求实际采集环境的 IP 地理位置已核验
require_all_brand_evaluations boolean 是否要求每个监测品牌都有明确 mentioned 或 not_mentioned 结论;uncertain 与 not_evaluated 不满足此项

本项目建议上述条件启用,但具体配置的确认状态不能由供应商自行升级。confirmed 不是“文档写好了”,而是对应规则已被明确接受。关于登录、完整原文、引用、截图和网络地域的要求,应按双方确认的验收配置落实;技术细节和链接时限需明确约定。

地域字段记录实际查询到的出口地理位置;本候选稿不额外要求 IP 截图或同路由证明,也不把地区查询结果解释为平台实际识别的位置。

evidence_policy 链接服务约定

字段 类型 定义
availability_until_utc string 或 null 承诺证据仍可获取的截止时间;待确认草稿可以为 null 并说明原因
refresh_method string 或 null 签名链接失效或临近到期时如何取得更新 URL;不得填写尚未具备的续签服务承诺

正式交付前需确认并填写两项。URL 本身到期时间与文件保留期限是两个概念;续签不应变更证据文件内容和 hash。未约定续签时,应使用覆盖约定期限的可用 URL。换了 URL 的交付文件须重新检查链接,不用更换稳定 sample_id。

sample_plan 独立采样计划

字段 类型 定义
plan_id string 必填,逻辑采样计划 ID
prompt_id string 必填,原题引用
platform string 必填,约定的平台标识,不允许同一平台混用别名
sample_index integer 必填,同一原题和平台下从 1 开始的独立采样序号
outcome enum accepted / failed / excluded,最终批次不得含未完成计划
final_sample_id string 有最终留存回答时填写;accepted 时必填,无回答的 failed 计划省略

prompt_id + platform + sample_index 在批次内唯一。以计划明细为准,不以成功记录反推计划范围。未跑的平台或问题不能因为总数凑齐而被掩盖。每个计划至多对应一个最终留存样本,失败后恢复仍沿用原 plan_id。

failures 失败与重试

保留 failures 作为异常计划汇总。只要某计划出现失败、排除或重试,就记录一条;首次成功的计划不必创建一条“空失败”。

字段 类型 定义
failure_id string 必填,异常汇总 ID
plan_id / prompt_id / platform / sample_index string / integer 必填,必须与计划一致
attempts integer 必填,实际尝试总次数,非独立样本数
final_status enum failed / excluded / recovered
reason_code enum 异常原因,见枚举表;recovered 时仍保留导致重试的原因
reason_detail string 可选,平台提示或异常摘要,不包含凭据
last_attempt_at_utc string 或 null 最后尝试结束时间;历史缺失时 null 加原因
recovered_sample_id string recovered 时必填,指向同一计划的最终 accepted 样本
attempt_records array 逐次尝试,按 attempt_index 排列
unavailable_reasons object 相对当前 failure 的 JSON Pointer → 原因

attempt_records 每条包含 attempt_id、attempt_index、started_at_utc、ended_at_utc、status、evidence_urls。status 为 succeeded / failed / excluded。失败或排除须写 reason_code,可补 reason_detail;evidence_urls 是该次尝试相关证据链接,可为空,不混入其他轮次截图。

对新采集,attempts 必须等于 attempt_records 长度,序号连续,最后状态与汇总和计划一致。恢复成功的最后一次为 succeeded,且其序号与最终 sample.attempt_index 相同。只保留最近一次成功、隐去此前失败,不算完整重试记录。

历史文件若仅有“重试 3 次”而没有逐次记录,可保留已知 attempts,attempt_records=[],并说明历史缺失。不得补造 3 个时间或尝试对象。这类记录不能通过正式生产交付门禁。

brands 与 prompts

brands 是本批次监测对象,prompts 保存客户原题。品牌角色是当前批次的业务角色,不是机构永久属性。

brands

字段 类型 定义
brand_id string 必填,品牌 ID
name string 必填,标准名称
aliases string array 必填,匹配候选别名,可为空;不是本条回答实际命中的名称清单
excluded_aliases string array 可选,明确不应匹配的同名或近似称呼
brand_type enum 必填,client / competitor / industry_reference
location_text string 可选,已知地点,未知时省略,不推断
official_domains string array 可选,已核定官方域名;平台账号页不能仅凭宿主域名判为品牌官网

prompts

字段 类型 定义
prompt_id string 必填,原题 ID
original string 必填,客户原题逐字保存
language string 必填,BCP 47,如 zh-CN
intent enum brand_intro / comparison / recommendation / reputation / how_to / other
topic_tags string array 可选,业务分类标签
monitored_brand_ids string array 必填,本题需要检查的品牌 ID,无重复
brands_in_prompt string array 必填,监测品牌中在原题被点名的品牌 ID,是 monitored_brand_ids 的子集

brands_in_prompt 的范围限定为“监测品牌中的被点名者”,不宣称覆盖原题中所有未监测机构。若需要管理其他原题实体,可另行扩展,不强行把它们加入监测范围。

品牌没有在题目中被点名,却在回答中出现,只能说明非点名提及。负面提醒、反例和背景介绍同样可能提及品牌。自然提及率不能直接命名为推荐率。

samples 采集环境答案与品牌结果

一条 sample 保存一个计划的最终留存回答。是否合格由 quality.acceptance_status 表示;不能仅凭“存在 sample”判为合格。

样本基本信息

字段 类型 定义
sample_id string 必填,样本 ID
plan_id / prompt_id string 必填,计划及原题引用
sample_index integer 必填,独立采样序号,与计划一致
attempt_index integer 必填,产出此回答的尝试序号,首次为 1
platform string 必填,与计划一致
collection_method enum web / app / api;本项目按实际渠道填写,不以 API 结果冒充 Web
origin enum native_capture / legacy_import / example
prompt_submitted string 或 null 必填,实际提交文本;历史未记录时 null 加原因,不能用规范化题面冒充实际提交文本;已知且与原题不同时加 prompt_modified
submitted_at_utc string 或 null 提交时间;历史未记录时 null 加原因
captured_at_utc string 或 null 最终回答的截取时间;历史未记录时 null 加原因
unavailable_reasons object 相对当前 sample 的 JSON Pointer → 非空原因文字
legacy_source object 历史迁移使用,包含 file_name、sha256、record_path,指回原始记录

legacy_source.sha256 是原始源文件的校验值,不是后来导出文件的校验值。原 sample_id 尽量保留;需要防碰撞时保留可逆映射,不能丢失原 ID。

environment

字段 类型 定义
account_state enum logged_in / logged_out / unknown
model_ui string 或 null 界面显示的模型名,不按默认模型补写
search_enabled enum on / off / auto / unknown;是界面搜索状态,不表示这轮一定发生了检索
search_ui string 或 null 可选,搜索相关控件原文
conversation_state enum new_chat / continued / unknown;历史不明使用 unknown
memory_personalization enum off / on / unknown
ui_language string 或 null 界面语言,历史不明时 null 加原因
network_geography.country string 或 null 实际采集环境查询到的出口国家
network_geography.city string 或 null 可选,查询到的城市,不把国家精度冒充城市精度
network_geography.source string 或 null 查询服务或已有证明的来源描述
network_geography.observed_at_utc string 或 null 查询时间

网络地域只说明出口网络的地理位置,不保证平台以该位置提供答案。默认不交完整公网 IP;如业务确需,先另行明确授权和交付范围。地域信息不需要在本稿中追加 IP 截图或同路由证明。

答案

字段 类型 定义
answer_original string 必填,非空,保留完整可见回答及引用标记;没有回答时不构造空 sample
answer_language string 必填,原文语言
answer_translated string 可选,只供阅读,不替代原文
translation_target_language string 有翻译时必填,译文语言

正文应按采集规则一次性冻结,然后计算 offset。禁止在计算位置后再替换空格、删除 marker、规范化 Unicode 或改写段落。若为跨系统统一换行而使用 LF,必须在冻结前完成,且记录规则版本。原始抓取可保留换行来源以供复核。

brand_results

每个 sample 必须覆盖该题所有 monitored_brand_ids,且每品牌恰好一条。品牌没有出现也要明确记录;没有检查则写 not_evaluated。

字段 类型 定义
brand_id string 必填,监测品牌引用
mention_status enum mentioned / not_mentioned / uncertain / not_evaluated
reason string uncertain 或 not_evaluated 时必填
mentions array 必填,逐处命中证据;not_mentioned 与 not_evaluated 时为空
mentions.name_in_answer string 原文实际出现的称呼,不复制全局 aliases
mentions.evidence_quote string 保留上下文的原文证据片段
mentions.start / end integer evidence_quote 的字符范围
mentions.name_start / name_end integer name_in_answer 的准确字符范围,应包含于证据片段范围内
mentions.list_position integer ordered_list 时必填,界面可见有序列表中的位置,从 1 开始;其他类型省略
mentions.position_kind enum 可选,ordered_list / unordered_list / inline / comparison
mentions.citation_ids string array 必填,平台对该处正文展示的来源关联,无则为空
mentions.sentiment enum 可选,positive / neutral / negative / mixed;不是首版必采项
mentions.factual_issue enum 可选,none / suspected / confirmed;须有相应核验方法,不能默认填 none 冒充已核验

状态语义:

  • mentioned:存在可定位的原文命中。否定评价和“不推荐某品牌”仍属于提及。
  • not_mentioned:原文完整,且该品牌已经按约定规则检查,确认未提及。截断、未知完整性或未检查不得使用此状态。
  • uncertain:有疑似称呼但实体无法确认,应保留可定位片段及原因,不算确定提及或确定未提及。
  • not_evaluated:未检查、规则缺失或评估失败,不等于零次提及。

ordered_list 仅表示有序列表。平台列出的“1、2、3”不自动代表推荐优先级。需要研究明确推荐或排序时,应另行定义任务、证据和判断方式,不扩充本次范围。

other_entities_mentioned

记录回答中出现但不在本批 brands 中的同类实体,每项含 name、evidence_quote、start、end。该集合只用于保留观察到的其他实体,不自动把它们升级为竞品、正式监测对象或已确认品牌。

citations 来源与关联

本稿区分两件事:文章或来源本身,以及它在界面上出现的位置。每个已确认同一的来源在 items 中只存一次;同一来源在面板、正文、搜索结果或脚注出现多次,用 occurrences 分别保存。

citations 容器

字段 类型 定义
status enum complete / partial / none_shown / not_checked
checked_surfaces enum array 实际完成过检查的展示面,不含 not_checked 或 unavailable 的展示面
scope_note string partial 时必填,说明具体缺什么;其他状态可补充
surfaces array 必填,四类展示面各一条,即使该平台没有显示也要说明
items array 必填,来源实体清单,不能只留域名

surfaces 每项包含:

字段 类型 定义
surface enum source_panel / inline / search_result / footnote
status enum complete / partial / none_shown / not_checked / unavailable
captured_count integer 该展示面已记录的 occurrence 数,不是去重文章数
displayed_total integer 或 null 可选,平台明确显示的总条数;未显示时 null 加原因,不靠猜测
scope_note string partial、not_checked 或 unavailable 时必填

整体状态规则:四个展示面都已检查且均为 none_shown、items=[],才可标 none_shown;都未检查且无来源记录时为 not_checked;全部为 complete 或 none_shown,且至少一项 complete,才能为 complete;其他存在缺口的组合为 partial。unknown 展示位置的来源不能进入完整清单。

“完整”是对平台在这一轮实际展示范围的声明,不是对互联网所有相关资料的声明。平台显示“共 N 条”时,要与记录数核对;需要展开、滚动或分页而未完成时,必须标 partial。没有展示总数也可以经实际穷尽检查判完整,但仅有 captured_count 本身不能证明完整。

items 来源实体

字段 类型 定义
citation_id string 必填,样本内来源 ID
title string 或 null 可选,平台可见标题,未取得时不根据网页猜写
url string 或 null 必填,平台原始链接;可见来源无可提取链接时 null 加原因,并如实标缺口
final_url string 或 null 可选,实际访问后确认的最终地址,未访问不补写
domain string 或 null 可选,按明确规则解析的注册域名;跳转包装页与最终发布站点要区分
excerpt string 或 null 可选,平台显示摘要,不填自行生成摘要
source_type enum 来源类别,见枚举表,无法确定用 unknown
owner_brand_id string 可选,已确认归属的监测品牌,未知时省略
fetch_status enum ok / failed / not_attempted,表示来源网页本身是否抓取成功
occurrences array 必填,至少一项,保存所有已采集到的出现记录

不得仅凭域名相同合并文章;也不得擅自删除 URL 参数或追踪包装后声称是同一篇。可确认同一来源时复用 citation_id;不能确认则保留独立记录并说明限制。域名解析规则及使用最终 URL 还是原始 URL 应在采集程序版本中固定,不凭域名推断事实归属。

occurrences 来源出现记录

字段 类型 定义
occurrence_id string 必填,在当前 sample 内唯一
surface enum source_panel / inline / search_result / footnote / unknown
display_order integer 或 null 列表展示面条件必填,同一展示面从 1 起;无法恢复时 null 加原因
citation_marker string 或 null 可选,正文标记原文,如 [3] 或 †;不可用面板序号代填
answer_links array 必填,每项 quote、start、end;没有可确认正文关联时为空

source_panel、search_result、footnote 是列表展示面,display_order 必须出现;已观察到具体位置时填正整数。inline 没有独立列表序号时可省略 display_order。未知位置不把 items 数组下标充作来源排名。

同一展示面的已知序号不得重复;当声明某个列表面 complete 时,序号需与实际完整列表连续对应。正文 marker 可与面板顺序不同,也可能重复出现;每次出现用独立 occurrence 记录。同一段文字挂多个来源时,各来源各有对应 occurrence 和 answer_links。

例:某文章位于面板第 1 条,却在正文中用 [3] 出现两次,可保存一个 citation_id 和三个 occurrences:面板出现一次,以及两个带 [3] 的正文位置。不能把它算作三篇不同文章。

mentions.citation_ids 和 answer_links 只记录可观察的界面关联,不宣称已核实文章支持句子里的每个事实。无法确定 marker 指向何处时保留 marker 和缺口说明,不凭数字推断。

evidence 截图与原始抓取

图片只通过 JSON 中的 URL 提供,不要求图片压缩包。每个 sample 的证据必须来自该轮,按阅读顺序记录。跨轮借图、截图缺段或无法确认来源时必须说明,不得宣称完整。

screenshots

字段 类型 定义
sequence integer 必填,样本内阅读顺序,从 1 连续递增
kind enum answer / citations / search_result / settings / other
url string 必填,客户可取得的图片 URL,不是仅供应商内部可见地址
access_mode enum public / signed_url;不使用 delivered_in_package
expires_at_utc string signed_url 时必填,真实签名有效期
sha256 string 或 null 文件 SHA-256,正式生产须有真实值;历史缺失与示例不得填假 hash
width / height integer 或 null 图片像素尺寸,真实未知时 null 加原因
captured_at_utc string 或 null 截图时间,不用导出时间代替
access_checked_at_utc string 或 null 最近一次按交付访问方式核验 URL 的时间
answer_ranges array 每项 start、end,声明该图覆盖的原文范围,无正文覆盖时为空
citation_occurrence_ids string array 该图覆盖的来源出现记录,可为空

answer_ranges 使用与原文相同的 Unicode code point 范围。程序只能核查声明范围是否拼接覆盖全文;这些范围是否真的出现在图中,需要查看图片。范围重叠允许,不得有未说明的正文缺口。引用截图覆盖的 occurrence ID 也须能在图中找到。

evidence 覆盖状态

字段 枚举 定义
answer_coverage complete / partial / not_checked 截图是否完整覆盖同轮回答
citations_coverage complete / partial / none_shown / not_checked 是否覆盖同轮全部已展示来源
redaction_status verified / not_checked 是否实际复核截图和抓取内容的隐私脱敏
access_status accessible / inaccessible / not_checked 是否实际核验交付方可按约定方式取得链接

填写 verified 或 accessible 必须有真实操作依据,不可因字段必填而默认填入。完整截图的验收需要检查裁切、顺序、缺段、脱敏、对应轮次与可访问性,不仅检查图片数量。

raw_capture 原始抓取

可选,仅在能够安全提供时交付。保留 kind(dom_snapshot / network_response / html)、url、sha256、contains_pii,并使用与截图相同的 access_mode 与签名有效期规则。contains_pii 必须为 false 才能交付;这项布尔值不是自动脱敏证明。

原始网络响应可能包含 Cookie、令牌或账户资料,不能未经审查直接上传。截图也需排除账户信息和非本任务内容。即使没有提供 raw_capture,仍需提供约定的完整截图和回答原文。

链接有效性与续签

SHA-256 只能校验客户已经拿到的文件是否一致。若链接过期且文件没有保留,hash 本身无法恢复文件。正式交付应满足:

  1. 交付时链接可访问,签名未过期。
  2. 文件可获取期限已有明确约定,不能擅自承诺 30 天或永久有效。
  3. 当前签名有效期覆盖约定期限,或已确认续签机制能提供新链接。配套离线生产校验采取保守规则:当前签名不足以覆盖期限时不放行,续签后重检;它不代替续签系统。
  4. 新 URL 指向相同证据文件时 hash 不变;若内容变更,应留版本和变更原因。

枚举值与空值规则

版本与解析

枚举小写英文加下划线,区分大小写。供应商不能静默新增枚举值。消费端先检查 schema_version,再选择对应 Schema;遇到不支持的版本或非法枚举时隔离并报错,不能默默把它当成“未提及”或正常样本。

消费端如需前向兼容,可以在自身程序中保留原值并标记“暂不识别”,但不得把非法值改写成当前 Schema 不存在的 unknown 后声称通过。新增字段和枚举仍需公布兼容说明;原字段含义或类型变化应按破坏性变更处理,不能仅改小版本遮掩。

主要枚举

字段 允许值
mention_status mentioned / not_mentioned / uncertain / not_evaluated
citations.status complete / partial / none_shown / not_checked
surfaces.status complete / partial / none_shown / not_checked / unavailable
surface source_panel / inline / search_result / footnote;出现记录另允许 unknown
source_type official_brand / government / media / health_platform / ugc / academic / encyclopedia / other / unknown
position_kind ordered_list / unordered_list / inline / comparison
collection_method web / app / api
failure reason login_required / captcha / rate_limited / timeout / no_answer / content_blocked / platform_error / network_error / other
brand_type client / competitor / industry_reference
origin native_capture / legacy_import / example
quality.answer_status complete / partial / unknown
quality.acceptance_status accepted / excluded
plan.outcome accepted / failed / excluded
failures.final_status failed / excluded / recovered
attempt.status succeeded / failed / excluded

其余枚举以各节字段表和配套 Schema 为准,二者必须同步发布。表中中文解释不作为机器枚举值。

null 及原因表

  1. ID、状态、计数、关联数组、原题和已获得的正文不能使用 null。只有 Schema 明确允许的观察字段可为 null。
  2. 未知观察值使用 null;不知道某状态时,使用该枚举明确提供的 unknown、not_checked 或 not_evaluated,而不是随意写 unavailable。
  3. 每个出现的 null 都必须有原因,不能以空字符串代替。sample 的原因放 sample.unavailable_reasons;failure 的原因放该 failure;配置的原因放 collection_run。
  4. 原因表的键为相对所在对象的 JSON Pointer。例如 /environment/model_ui,或 /citations/items/0/url。嵌套数组按零基下标;键中的 ~ 与 / 按 JSON Pointer 规则转义。
  5. 原因键必须指向当前对象内真实存在且为 null 的字段。唯一历史例外是 /attempt_records:旧文件没有逐次尝试明细时,可指向空数组并解释无法恢复;这不允许通过生产门禁。数组调整顺序后也要更新原因路径,不能保留失效路径。
  6. 无内容的数组用 []。可选且不适用的字段省略,例如行文提及没有 list_position。省略只代表本交付未提供该可选字段,不能据此推断已检查或不存在。
  7. “字段必填”是要求键出现,不代表允许随意填 null。是否 nullable 以 Schema 为准。

示例:

{
  "unavailable_reasons": {
    "/environment/model_ui": "该轮界面未显示模型名",
    "/captured_at_utc": "历史文件未记录截取时间,无法恢复"
  }
}

字符位置与时间

  • 位置按冻结后的 answer_original 的 Unicode code points 计数,从 0 起,左闭右开。不按 UTF-8 字节、UTF-16 code units 或肉眼字形计数。
  • Python 字符串切片可直接用于检查;JavaScript 应先按 code points 遍历,例如 Array.from(text),不能直接把 string.length 当作该口径。
  • emoji 与组合字符应纳入测试。组合字符可能占多个 code points,本契约不自动做 NFC/NFD 规范化。
  • quote 必须等于对应切片;品牌名的 name_start/name_end 也必须逐字匹配,并落在 evidence_quote 范围内。
  • 时间使用 ISO 8601 UTC,带 Z。已知时序不得逆转;历史未知时间不以当天时间补填。

交付校验与质量标记

三层验收

第一层,结构校验。 使用配套 JSON Schema 验证类型、必填、枚举和基本条件,不接收未声明的字段。

第二层,语义校验。 使用本地脚本验证引用、计划对账、原文位置、状态一致性、重试关系、截图覆盖声明、原因路径及时间有效性。

第三层,真实证据验收。 采集侧或人工确认本轮真实已登录 Web 回答、实际提交原题、回答生成完整、展开过全部来源、图片实际内容、访问权限、真实文件 hash、脱敏和地域来源。前两层不能自动完成第三层。

阻断级检查

  1. schema_version 与 Schema 匹配,结构合法。
  2. ID 在约定范围内唯一,所有引用可解析;品牌结果无漏项或重复。
  3. 计划逻辑键唯一,最终状态完备,计数能按计划和样本逐项重算。
  4. 所有 quote、品牌名及范围准确;not_mentioned 只用于完整且已检查的回答。
  5. 来源按独立实体与出现位置分开;展示面计数、完整性、序号和正文关联一致。
  6. 每个 null 有有效原因路径,不将未知、未检查与零混同。
  7. 新采集重试明细完整,恢复样本与最后成功尝试关联,不重复增加独立样本数。
  8. 截图 sequence 连续;完整性声明与覆盖范围、引用出现 ID 对得上。实际图像内容另行核验。
  9. 正式生产使用已确认的验收配置和链接期限;不接受 example 或 demo_only。
  10. accepted 必须满足启用的验收条件;原文截断、证据不足或历史不可核实不能因为仅有质量标记就算合格。
  11. 真实文件 hash、链接可访问和脱敏须另行验证;脚本未访问文件时不得报告这些检查已通过。

quality

字段 定义
answer_status complete / partial / unknown,说明回答完整性
acceptance_status accepted / excluded,按当前验收配置判定,不是客户签收证明
exclusion_reasons 排除原因数组;accepted 时为空,excluded 时必须说明

演示中的 accepted 只是虚构条件下的候选规则示意,不能用于正式交付。旧版的“暂可统计”也不自动等于这里的 accepted。

quality_flags

质量标记补充说明,不代替状态字段或验收结论。

标记 含义
prompt_modified 实际提交文本与客户原题不同
citation_list_not_confirmed_complete 来源清单未确认完整
citation_origin_unknown 至少一条来源无法确认展示位置
model_unavailable 界面未提供模型信息
search_state_unknown 搜索开关状态未知
answer_truncated 回答截断或尚未生成完整
translation_machine_only 仅机器翻译,原文为准
annotation_unreviewed 标注未经人工复核
possible_factual_error 观察到可能的事实问题,不等于已完成事实核验
demo_only 虚构演示,不得用于客户分析
legacy_import 来自旧版迁移,需查看来源与缺口
brand_evaluation_incomplete 至少一个监测品牌尚未完成评估
screenshot_incomplete 截图覆盖不完整或未确认
account_state_unknown 登录状态未知
geography_unavailable 无法确认要求的网络地域

本稿不交付提及率、平均排名、综合评分、情感分或波动指数,不增加 analytics。客户以后需要分析时,应另行确认分母、排除、分组、权重和来源样本;不能将本稿字段默认为分析授权。

完整示例与机器文件

完整可解析示例保存在配套 example-delivery.json,并由同一文件生成本文附录。它与本稿、geo-delivery-1.0.0-rc.1.schema.json 和 validate_delivery.py 同版发布,避免独立编辑造成漂移。

示例至少展示:多品牌、非点名提及、明确未提及、同一来源多处出现、面板顺序与正文 marker 不同、缺失观察值、截图覆盖声明、一次失败后恢复、一次最终失败,以及按独立计划对账。含 emoji 的原文用于验证 code point 位置。

所有 example.com 地址都是占位 URL,不会尝试访问;不存在真实证据可用性或 hash 验证结果。未知 hash、尺寸等使用 null 和原因,不生成一串零冒充校验值。例子必须带 origin=example 和 demo_only;运行生产模式应被拒绝。

校验方式和测试结果见 VALIDATION.md。离线检查的成功范围以验证报告为准,不能据此宣称已经完成真实批次验收。即使结构与语义均通过,仍须补齐第三层真实证据核验。

旧版迁移与兼容

本稿是新契约候选,不直接覆盖旧文件。旧版消费程序和 CSV 使用方式尚未完整确认;是否双轨输出、何时切换、保留多久,需要先与使用方确认。对“旧字段和结构尽量少变”的要求,应通过兼容导出与明确映射落实,而不是声称完全兼容。

迁移时遵循:

  • 原始旧文件只读留存并记录 hash,新文件另存。
  • 只迁移旧文件真实存在的信息。缺失标题、marker、顺序、截图、时间和地域均不补造。
  • 原 sample_id、原题、原文和译文尽量原样保留;品牌匹配若重新计算,要标新标注版本,不冒充旧标注。
  • 旧的聚合字段保留在原文件或独立旧格式存档,本候选不新增 analytics,也不把旧 aggregate 混入逐条原始观察。
  • 先使用小样本对照检查,再讨论客户解析器切换;本次只提供映射说明,不执行历史数据迁移。

详细逐字段映射及 CSV 约束见本文附录,同时保存在配套 legacy-migration-notes.md。

待确认事项与发布步骤

正式使用前应确认以下具体事项,不把本稿中的建议当作既成承诺:

  1. 客户是否接受新主结构,或需要继续提供原 JSON 和原 25 列 CSV;新旧输出如何共存。
  2. 采样平台、原题范围、每格重复次数及最终计划明细。
  3. 验收配置的启用项、partial 和 excluded 的处理方式;哪些记录仅供审查而不计入合格数。
  4. 图片 URL 的可用截止时间、访问方式、刷新办法,以及实际负责提供链接的服务。
  5. 标注规则和人工复核范围;sentiment 与 factual_issue 不默认加入采集合同。
  6. 真实小批次通过结构、语义和证据三层检查后,再确定正式版本号、Schema 地址和启用日期。

建议发布顺序:冻结候选字段 → 同步 Schema 和示例 → 真实小批试交付 → 验证旧版映射及消费端 → 确认业务边界 → 发布正式契约。此次公开技术参考不切换既有客户接口,不发送客户交付文件。

机器字段参考

以下 194 个字段根据同一份 JSON Schema 生成;字段名不翻译。条件规则在每个对象的展开项中。

root

root.schema_version

详见上方设计说明与本字段机器规则。

必填 · conditional · const: "1.0.0-rc.1"
机器规则
{
  "const": "1.0.0-rc.1"
}

root.delivery

详见上方设计说明与本字段机器规则。

必填 · delivery
机器规则
{
  "$ref": "#/$defs/delivery"
}

root.collection_run

详见上方设计说明与本字段机器规则。

必填 · collection_run
机器规则
{
  "$ref": "#/$defs/collection_run"
}

root.brands

详见上方设计说明与本字段机器规则。

必填 · array · minItems: 1 · items → brand
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/brand"
  },
  "minItems": 1
}

root.prompts

详见上方设计说明与本字段机器规则。

必填 · array · minItems: 1 · items → prompt
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/prompt"
  },
  "minItems": 1
}

root.samples

详见上方设计说明与本字段机器规则。

必填 · array · minItems: 0 · items → sample
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/sample"
  },
  "minItems": 0
}

root.failures

详见上方设计说明与本字段机器规则。

必填 · array · minItems: 0 · items → failure
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/failure"
  },
  "minItems": 0
}
对象条件、必填项及额外字段规则
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.querentdata.com/schema/1.0.0-rc.1/geo-delivery-1.0.0-rc.1.schema.json",
  "title": "GEO delivery contract 1.0.0-rc.1 — review candidate",
  "description": "Review candidate, not client approval. Structural validation must be followed by the companion semantic validator and independent evidence checks.",
  "required": [
    "schema_version",
    "delivery",
    "collection_run",
    "brands",
    "prompts",
    "samples",
    "failures"
  ],
  "additionalProperties": false,
  "$defs": {
    "unavailable_reasons": {
      "type": "object",
      "propertyNames": {
        "pattern": "^(?:/(?:[^~/]|~[01])*)+$"
      },
      "additionalProperties": {
        "type": "string",
        "minLength": 1
      },
      "minProperties": 1
    },
    "range": {
      "type": "object",
      "properties": {
        "start": {
          "type": "integer",
          "minimum": 0
        },
        "end": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "start",
        "end"
      ],
      "additionalProperties": false
    },
    "answer_link": {
      "type": "object",
      "properties": {
        "quote": {
          "type": "string",
          "minLength": 1
        },
        "start": {
          "type": "integer",
          "minimum": 0
        },
        "end": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "quote",
        "start",
        "end"
      ],
      "additionalProperties": false
    },
    "acceptance_profile": {
      "type": "object",
      "properties": {
        "confirmation_state": {
          "type": "string",
          "enum": [
            "proposed",
            "confirmed"
          ]
        },
        "approval_reference": {
          "type": "string",
          "minLength": 1
        },
        "require_logged_in": {
          "type": "boolean"
        },
        "require_original_prompt": {
          "type": "boolean"
        },
        "require_complete_answer": {
          "type": "boolean"
        },
        "require_complete_citations": {
          "type": "boolean"
        },
        "require_complete_screenshots": {
          "type": "boolean"
        },
        "require_verified_geography": {
          "type": "boolean"
        },
        "require_all_brand_evaluations": {
          "type": "boolean"
        }
      },
      "required": [
        "confirmation_state",
        "require_logged_in",
        "require_original_prompt",
        "require_complete_answer",
        "require_complete_citations",
        "require_complete_screenshots",
        "require_verified_geography",
        "require_all_brand_evaluations"
      ],
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "confirmation_state": {
                "enum": [
                  "confirmed"
                ]
              }
            },
            "required": [
              "confirmation_state"
            ]
          },
          "then": {
            "required": [
              "approval_reference"
            ]
          }
        }
      ]
    },
    "plan": {
      "type": "object",
      "properties": {
        "plan_id": {
          "type": "string",
          "minLength": 1
        },
        "prompt_id": {
          "type": "string",
          "minLength": 1
        },
        "platform": {
          "type": "string",
          "minLength": 1
        },
        "sample_index": {
          "type": "integer",
          "minimum": 1
        },
        "outcome": {
          "type": "string",
          "enum": [
            "accepted",
            "failed",
            "excluded"
          ]
        },
        "final_sample_id": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "plan_id",
        "prompt_id",
        "platform",
        "sample_index",
        "outcome"
      ],
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "outcome": {
                "enum": [
                  "accepted"
                ]
              }
            },
            "required": [
              "outcome"
            ]
          },
          "then": {
            "required": [
              "final_sample_id"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "outcome": {
                "enum": [
                  "failed"
                ]
              }
            },
            "required": [
              "outcome"
            ]
          },
          "then": {
            "not": {
              "required": [
                "final_sample_id"
              ]
            }
          }
        }
      ]
    },
    "delivery": {
      "type": "object",
      "properties": {
        "delivery_id": {
          "type": "string",
          "minLength": 1
        },
        "delivered_at_utc": {
          "type": "string",
          "format": "date-time",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
        },
        "planned_sample_count": {
          "type": "integer",
          "minimum": 0
        },
        "delivered_sample_count": {
          "type": "integer",
          "minimum": 0
        },
        "recorded_sample_count": {
          "type": "integer",
          "minimum": 0
        },
        "failed_final_count": {
          "type": "integer",
          "minimum": 0
        },
        "repeats_per_prompt": {
          "type": "integer",
          "minimum": 1
        },
        "aggregation_note": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "delivery_id",
        "delivered_at_utc",
        "planned_sample_count",
        "delivered_sample_count",
        "recorded_sample_count",
        "failed_final_count"
      ],
      "additionalProperties": false
    },
    "collection_run": {
      "type": "object",
      "properties": {
        "collector_version": {
          "type": "string",
          "minLength": 1
        },
        "annotation": {
          "type": "object",
          "properties": {
            "method": {
              "type": "string",
              "enum": [
                "rule",
                "llm",
                "human",
                "hybrid"
              ]
            },
            "version": {
              "type": "string",
              "minLength": 1
            },
            "reviewed_by": {
              "type": "string",
              "enum": [
                "none",
                "sampled",
                "full"
              ]
            }
          },
          "required": [
            "method",
            "version",
            "reviewed_by"
          ],
          "additionalProperties": false
        },
        "translation": {
          "type": "object",
          "properties": {
            "method": {
              "type": "string",
              "enum": [
                "none",
                "machine",
                "human"
              ]
            },
            "source_language": {
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "method"
          ],
          "additionalProperties": false
        },
        "sample_plan": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/plan"
          },
          "minItems": 1
        },
        "acceptance_profile": {
          "$ref": "#/$defs/acceptance_profile"
        },
        "evidence_policy": {
          "type": "object",
          "properties": {
            "availability_until_utc": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "refresh_method": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "availability_until_utc",
            "refresh_method"
          ],
          "additionalProperties": false
        },
        "unavailable_reasons": {
          "$ref": "#/$defs/unavailable_reasons"
        }
      },
      "required": [
        "collector_version",
        "annotation",
        "sample_plan",
        "acceptance_profile",
        "evidence_policy"
      ],
      "additionalProperties": false
    },
    "brand": {
      "type": "object",
      "properties": {
        "brand_id": {
          "type": "string",
          "minLength": 1
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "aliases": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "minItems": 0,
          "uniqueItems": true
        },
        "excluded_aliases": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "minItems": 0,
          "uniqueItems": true
        },
        "brand_type": {
          "type": "string",
          "enum": [
            "client",
            "competitor",
            "industry_reference"
          ]
        },
        "location_text": {
          "type": "string",
          "minLength": 1
        },
        "official_domains": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "minItems": 0,
          "uniqueItems": true
        }
      },
      "required": [
        "brand_id",
        "name",
        "aliases",
        "brand_type"
      ],
      "additionalProperties": false
    },
    "prompt": {
      "type": "object",
      "properties": {
        "prompt_id": {
          "type": "string",
          "minLength": 1
        },
        "original": {
          "type": "string",
          "minLength": 1
        },
        "language": {
          "type": "string",
          "minLength": 1
        },
        "intent": {
          "type": "string",
          "enum": [
            "brand_intro",
            "comparison",
            "recommendation",
            "reputation",
            "how_to",
            "other"
          ]
        },
        "topic_tags": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "minItems": 0,
          "uniqueItems": true
        },
        "monitored_brand_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "minItems": 1,
          "uniqueItems": true
        },
        "brands_in_prompt": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "minItems": 0,
          "uniqueItems": true
        }
      },
      "required": [
        "prompt_id",
        "original",
        "language",
        "intent",
        "monitored_brand_ids",
        "brands_in_prompt"
      ],
      "additionalProperties": false
    },
    "geography": {
      "type": "object",
      "properties": {
        "country": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "city": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "source": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "observed_at_utc": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "country",
        "source",
        "observed_at_utc"
      ],
      "additionalProperties": false
    },
    "environment": {
      "type": "object",
      "properties": {
        "account_state": {
          "type": "string",
          "enum": [
            "logged_in",
            "logged_out",
            "unknown"
          ]
        },
        "model_ui": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "search_enabled": {
          "type": "string",
          "enum": [
            "on",
            "off",
            "auto",
            "unknown"
          ]
        },
        "search_ui": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "conversation_state": {
          "type": "string",
          "enum": [
            "new_chat",
            "continued",
            "unknown"
          ]
        },
        "memory_personalization": {
          "type": "string",
          "enum": [
            "off",
            "on",
            "unknown"
          ]
        },
        "ui_language": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "network_geography": {
          "$ref": "#/$defs/geography"
        }
      },
      "required": [
        "account_state",
        "model_ui",
        "search_enabled",
        "conversation_state",
        "memory_personalization",
        "ui_language",
        "network_geography"
      ],
      "additionalProperties": false
    },
    "mention": {
      "type": "object",
      "properties": {
        "name_in_answer": {
          "type": "string",
          "minLength": 1
        },
        "evidence_quote": {
          "type": "string",
          "minLength": 1
        },
        "start": {
          "type": "integer",
          "minimum": 0
        },
        "end": {
          "type": "integer",
          "minimum": 0
        },
        "name_start": {
          "type": "integer",
          "minimum": 0
        },
        "name_end": {
          "type": "integer",
          "minimum": 0
        },
        "position_kind": {
          "type": "string",
          "enum": [
            "ordered_list",
            "unordered_list",
            "inline",
            "comparison"
          ]
        },
        "list_position": {
          "type": "integer",
          "minimum": 1
        },
        "sentiment": {
          "type": "string",
          "enum": [
            "positive",
            "neutral",
            "negative",
            "mixed"
          ]
        },
        "citation_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "minItems": 0,
          "uniqueItems": true
        },
        "factual_issue": {
          "type": "string",
          "enum": [
            "none",
            "suspected",
            "confirmed"
          ]
        }
      },
      "required": [
        "name_in_answer",
        "evidence_quote",
        "start",
        "end",
        "name_start",
        "name_end",
        "citation_ids"
      ],
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "position_kind": {
                "enum": [
                  "ordered_list"
                ]
              }
            },
            "required": [
              "position_kind"
            ]
          },
          "then": {
            "required": [
              "list_position"
            ]
          }
        },
        {
          "if": {
            "required": [
              "list_position"
            ]
          },
          "then": {
            "required": [
              "position_kind"
            ],
            "properties": {
              "position_kind": {
                "const": "ordered_list"
              }
            }
          }
        }
      ]
    },
    "brand_result": {
      "type": "object",
      "properties": {
        "brand_id": {
          "type": "string",
          "minLength": 1
        },
        "mention_status": {
          "type": "string",
          "enum": [
            "mentioned",
            "not_mentioned",
            "uncertain",
            "not_evaluated"
          ]
        },
        "reason": {
          "type": "string",
          "minLength": 1
        },
        "mentions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/mention"
          },
          "minItems": 0
        }
      },
      "required": [
        "brand_id",
        "mention_status",
        "mentions"
      ],
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "mention_status": {
                "enum": [
                  "uncertain",
                  "not_evaluated"
                ]
              }
            },
            "required": [
              "mention_status"
            ]
          },
          "then": {
            "required": [
              "reason"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "mention_status": {
                "enum": [
                  "mentioned",
                  "uncertain"
                ]
              }
            },
            "required": [
              "mention_status"
            ]
          },
          "then": {
            "properties": {
              "mentions": {
                "minItems": 1
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "mention_status": {
                "enum": [
                  "not_mentioned",
                  "not_evaluated"
                ]
              }
            },
            "required": [
              "mention_status"
            ]
          },
          "then": {
            "properties": {
              "mentions": {
                "maxItems": 0
              }
            }
          }
        }
      ]
    },
    "entity": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1
        },
        "evidence_quote": {
          "type": "string",
          "minLength": 1
        },
        "start": {
          "type": "integer",
          "minimum": 0
        },
        "end": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "name",
        "evidence_quote",
        "start",
        "end"
      ],
      "additionalProperties": false
    },
    "surface": {
      "type": "object",
      "properties": {
        "surface": {
          "type": "string",
          "enum": [
            "source_panel",
            "inline",
            "search_result",
            "footnote"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "complete",
            "partial",
            "none_shown",
            "not_checked",
            "unavailable"
          ]
        },
        "captured_count": {
          "type": "integer",
          "minimum": 0
        },
        "displayed_total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "scope_note": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "surface",
        "status",
        "captured_count"
      ],
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "status": {
                "enum": [
                  "partial",
                  "not_checked",
                  "unavailable"
                ]
              }
            },
            "required": [
              "status"
            ]
          },
          "then": {
            "required": [
              "scope_note"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "status": {
                "enum": [
                  "none_shown",
                  "not_checked",
                  "unavailable"
                ]
              }
            },
            "required": [
              "status"
            ]
          },
          "then": {
            "properties": {
              "captured_count": {
                "const": 0
              }
            }
          }
        }
      ]
    },
    "occurrence": {
      "type": "object",
      "properties": {
        "occurrence_id": {
          "type": "string",
          "minLength": 1
        },
        "surface": {
          "type": "string",
          "enum": [
            "source_panel",
            "inline",
            "search_result",
            "footnote",
            "unknown"
          ]
        },
        "display_order": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "citation_marker": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "answer_links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/answer_link"
          },
          "minItems": 0
        }
      },
      "required": [
        "occurrence_id",
        "surface",
        "answer_links"
      ],
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "surface": {
                "enum": [
                  "source_panel",
                  "search_result",
                  "footnote"
                ]
              }
            },
            "required": [
              "surface"
            ]
          },
          "then": {
            "required": [
              "display_order"
            ]
          }
        }
      ]
    },
    "citation": {
      "type": "object",
      "properties": {
        "citation_id": {
          "type": "string",
          "minLength": 1
        },
        "title": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "url": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri",
              "pattern": "^https?://[^\\s]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "final_url": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri",
              "pattern": "^https?://[^\\s]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "domain": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "excerpt": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "source_type": {
          "type": "string",
          "enum": [
            "official_brand",
            "government",
            "media",
            "health_platform",
            "ugc",
            "academic",
            "encyclopedia",
            "other",
            "unknown"
          ]
        },
        "owner_brand_id": {
          "type": "string",
          "minLength": 1
        },
        "fetch_status": {
          "type": "string",
          "enum": [
            "ok",
            "failed",
            "not_attempted"
          ]
        },
        "occurrences": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/occurrence"
          },
          "minItems": 1
        }
      },
      "required": [
        "citation_id",
        "url",
        "source_type",
        "fetch_status",
        "occurrences"
      ],
      "additionalProperties": false
    },
    "citations": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "complete",
            "partial",
            "none_shown",
            "not_checked"
          ]
        },
        "checked_surfaces": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "source_panel",
              "inline",
              "search_result",
              "footnote"
            ]
          },
          "minItems": 0,
          "uniqueItems": true
        },
        "scope_note": {
          "type": "string",
          "minLength": 1
        },
        "surfaces": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/surface"
          },
          "minItems": 4
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/citation"
          },
          "minItems": 0
        }
      },
      "required": [
        "status",
        "checked_surfaces",
        "surfaces",
        "items"
      ],
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "status": {
                "enum": [
                  "partial"
                ]
              }
            },
            "required": [
              "status"
            ]
          },
          "then": {
            "required": [
              "scope_note"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "status": {
                "enum": [
                  "none_shown",
                  "not_checked"
                ]
              }
            },
            "required": [
              "status"
            ]
          },
          "then": {
            "properties": {
              "items": {
                "maxItems": 0
              }
            }
          }
        }
      ]
    },
    "screenshot": {
      "type": "object",
      "properties": {
        "sequence": {
          "type": "integer",
          "minimum": 1
        },
        "kind": {
          "type": "string",
          "enum": [
            "answer",
            "citations",
            "search_result",
            "settings",
            "other"
          ]
        },
        "url": {
          "type": "string",
          "format": "uri",
          "pattern": "^https?://[^\\s]+$"
        },
        "access_mode": {
          "type": "string",
          "enum": [
            "public",
            "signed_url"
          ]
        },
        "expires_at_utc": {
          "type": "string",
          "format": "date-time",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
        },
        "sha256": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "width": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "height": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "captured_at_utc": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
            },
            {
              "type": "null"
            }
          ]
        },
        "access_checked_at_utc": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
            },
            {
              "type": "null"
            }
          ]
        },
        "answer_ranges": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/range"
          },
          "minItems": 0
        },
        "citation_occurrence_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "minItems": 0,
          "uniqueItems": true
        }
      },
      "required": [
        "sequence",
        "kind",
        "url",
        "access_mode",
        "sha256",
        "width",
        "height",
        "captured_at_utc",
        "access_checked_at_utc",
        "answer_ranges",
        "citation_occurrence_ids"
      ],
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "access_mode": {
                "enum": [
                  "signed_url"
                ]
              }
            },
            "required": [
              "access_mode"
            ]
          },
          "then": {
            "required": [
              "expires_at_utc"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "access_mode": {
                "enum": [
                  "public"
                ]
              }
            },
            "required": [
              "access_mode"
            ]
          },
          "then": {
            "not": {
              "required": [
                "expires_at_utc"
              ]
            }
          }
        }
      ]
    },
    "raw_capture": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "dom_snapshot",
            "network_response",
            "html"
          ]
        },
        "url": {
          "type": "string",
          "format": "uri",
          "pattern": "^https?://[^\\s]+$"
        },
        "sha256": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "contains_pii": {
          "const": false
        },
        "access_mode": {
          "type": "string",
          "enum": [
            "public",
            "signed_url"
          ]
        },
        "expires_at_utc": {
          "type": "string",
          "format": "date-time",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
        }
      },
      "required": [
        "kind",
        "url",
        "sha256",
        "contains_pii",
        "access_mode"
      ],
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "access_mode": {
                "enum": [
                  "signed_url"
                ]
              }
            },
            "required": [
              "access_mode"
            ]
          },
          "then": {
            "required": [
              "expires_at_utc"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "access_mode": {
                "enum": [
                  "public"
                ]
              }
            },
            "required": [
              "access_mode"
            ]
          },
          "then": {
            "not": {
              "required": [
                "expires_at_utc"
              ]
            }
          }
        }
      ]
    },
    "evidence": {
      "type": "object",
      "properties": {
        "screenshots": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/screenshot"
          },
          "minItems": 0
        },
        "answer_coverage": {
          "type": "string",
          "enum": [
            "complete",
            "partial",
            "not_checked"
          ]
        },
        "citations_coverage": {
          "type": "string",
          "enum": [
            "complete",
            "partial",
            "none_shown",
            "not_checked"
          ]
        },
        "redaction_status": {
          "type": "string",
          "enum": [
            "verified",
            "not_checked"
          ]
        },
        "access_status": {
          "type": "string",
          "enum": [
            "accessible",
            "inaccessible",
            "not_checked"
          ]
        },
        "raw_capture": {
          "$ref": "#/$defs/raw_capture"
        }
      },
      "required": [
        "screenshots",
        "answer_coverage",
        "citations_coverage",
        "redaction_status",
        "access_status"
      ],
      "additionalProperties": false
    },
    "sample": {
      "type": "object",
      "properties": {
        "sample_id": {
          "type": "string",
          "minLength": 1
        },
        "plan_id": {
          "type": "string",
          "minLength": 1
        },
        "prompt_id": {
          "type": "string",
          "minLength": 1
        },
        "platform": {
          "type": "string",
          "minLength": 1
        },
        "sample_index": {
          "type": "integer",
          "minimum": 1
        },
        "attempt_index": {
          "type": "integer",
          "minimum": 1
        },
        "origin": {
          "type": "string",
          "enum": [
            "native_capture",
            "legacy_import",
            "example"
          ]
        },
        "legacy_source": {
          "type": "object",
          "properties": {
            "file_name": {
              "type": "string",
              "minLength": 1
            },
            "sha256": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "record_path": {
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "file_name",
            "sha256",
            "record_path"
          ],
          "additionalProperties": false
        },
        "collection_method": {
          "type": "string",
          "enum": [
            "web",
            "app",
            "api"
          ]
        },
        "prompt_submitted": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "submitted_at_utc": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
            },
            {
              "type": "null"
            }
          ]
        },
        "captured_at_utc": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
            },
            {
              "type": "null"
            }
          ]
        },
        "environment": {
          "$ref": "#/$defs/environment"
        },
        "answer_original": {
          "type": "string",
          "minLength": 1
        },
        "answer_language": {
          "type": "string",
          "minLength": 1
        },
        "answer_translated": {
          "type": "string",
          "minLength": 1
        },
        "translation_target_language": {
          "type": "string",
          "minLength": 1
        },
        "brand_results": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/brand_result"
          },
          "minItems": 0
        },
        "other_entities_mentioned": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/entity"
          },
          "minItems": 0
        },
        "citations": {
          "$ref": "#/$defs/citations"
        },
        "evidence": {
          "$ref": "#/$defs/evidence"
        },
        "quality_flags": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "prompt_modified",
              "citation_list_not_confirmed_complete",
              "citation_origin_unknown",
              "model_unavailable",
              "search_state_unknown",
              "answer_truncated",
              "translation_machine_only",
              "annotation_unreviewed",
              "possible_factual_error",
              "demo_only",
              "legacy_import",
              "brand_evaluation_incomplete",
              "screenshot_incomplete",
              "account_state_unknown",
              "geography_unavailable"
            ]
          },
          "minItems": 0,
          "uniqueItems": true
        },
        "quality": {
          "type": "object",
          "properties": {
            "answer_status": {
              "type": "string",
              "enum": [
                "complete",
                "partial",
                "unknown"
              ]
            },
            "acceptance_status": {
              "type": "string",
              "enum": [
                "accepted",
                "excluded"
              ]
            },
            "exclusion_reasons": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              },
              "minItems": 0,
              "uniqueItems": true
            }
          },
          "required": [
            "answer_status",
            "acceptance_status",
            "exclusion_reasons"
          ],
          "additionalProperties": false
        },
        "unavailable_reasons": {
          "$ref": "#/$defs/unavailable_reasons"
        }
      },
      "required": [
        "sample_id",
        "plan_id",
        "prompt_id",
        "platform",
        "sample_index",
        "attempt_index",
        "origin",
        "collection_method",
        "prompt_submitted",
        "submitted_at_utc",
        "captured_at_utc",
        "environment",
        "answer_original",
        "answer_language",
        "brand_results",
        "other_entities_mentioned",
        "citations",
        "evidence",
        "quality_flags",
        "quality"
      ],
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "origin": {
                "enum": [
                  "legacy_import"
                ]
              }
            },
            "required": [
              "origin"
            ]
          },
          "then": {
            "required": [
              "legacy_source"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "origin": {
                "enum": [
                  "example"
                ]
              }
            },
            "required": [
              "origin"
            ]
          },
          "then": {
            "properties": {
              "quality_flags": {
                "contains": {
                  "const": "demo_only"
                }
              }
            }
          }
        },
        {
          "dependentRequired": {
            "answer_translated": [
              "translation_target_language"
            ],
            "translation_target_language": [
              "answer_translated"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "quality": {
                "properties": {
                  "acceptance_status": {
                    "const": "excluded"
                  }
                }
              }
            }
          },
          "then": {
            "properties": {
              "quality": {
                "properties": {
                  "exclusion_reasons": {
                    "minItems": 1
                  }
                }
              }
            }
          },
          "else": {
            "properties": {
              "quality": {
                "properties": {
                  "exclusion_reasons": {
                    "maxItems": 0
                  }
                }
              }
            }
          }
        }
      ]
    },
    "attempt": {
      "type": "object",
      "properties": {
        "attempt_id": {
          "type": "string",
          "minLength": 1
        },
        "attempt_index": {
          "type": "integer",
          "minimum": 1
        },
        "started_at_utc": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
            },
            {
              "type": "null"
            }
          ]
        },
        "ended_at_utc": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "succeeded",
            "failed",
            "excluded"
          ]
        },
        "reason_code": {
          "type": "string",
          "enum": [
            "login_required",
            "captcha",
            "rate_limited",
            "timeout",
            "no_answer",
            "content_blocked",
            "platform_error",
            "network_error",
            "other"
          ]
        },
        "reason_detail": {
          "type": "string",
          "minLength": 1
        },
        "evidence_urls": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uri",
            "pattern": "^https?://[^\\s]+$"
          },
          "minItems": 0,
          "uniqueItems": true
        }
      },
      "required": [
        "attempt_id",
        "attempt_index",
        "started_at_utc",
        "ended_at_utc",
        "status",
        "evidence_urls"
      ],
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "status": {
                "enum": [
                  "failed",
                  "excluded"
                ]
              }
            },
            "required": [
              "status"
            ]
          },
          "then": {
            "required": [
              "reason_code"
            ]
          }
        }
      ]
    },
    "failure": {
      "type": "object",
      "properties": {
        "failure_id": {
          "type": "string",
          "minLength": 1
        },
        "plan_id": {
          "type": "string",
          "minLength": 1
        },
        "prompt_id": {
          "type": "string",
          "minLength": 1
        },
        "platform": {
          "type": "string",
          "minLength": 1
        },
        "sample_index": {
          "type": "integer",
          "minimum": 1
        },
        "attempts": {
          "type": "integer",
          "minimum": 0
        },
        "final_status": {
          "type": "string",
          "enum": [
            "failed",
            "excluded",
            "recovered"
          ]
        },
        "reason_code": {
          "type": "string",
          "enum": [
            "login_required",
            "captcha",
            "rate_limited",
            "timeout",
            "no_answer",
            "content_blocked",
            "platform_error",
            "network_error",
            "other"
          ]
        },
        "reason_detail": {
          "type": "string",
          "minLength": 1
        },
        "last_attempt_at_utc": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
            },
            {
              "type": "null"
            }
          ]
        },
        "recovered_sample_id": {
          "type": "string",
          "minLength": 1
        },
        "attempt_records": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/attempt"
          },
          "minItems": 0
        },
        "unavailable_reasons": {
          "$ref": "#/$defs/unavailable_reasons"
        }
      },
      "required": [
        "failure_id",
        "plan_id",
        "prompt_id",
        "platform",
        "sample_index",
        "attempts",
        "final_status",
        "reason_code",
        "last_attempt_at_utc",
        "attempt_records"
      ],
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "final_status": {
                "enum": [
                  "recovered"
                ]
              }
            },
            "required": [
              "final_status"
            ]
          },
          "then": {
            "required": [
              "recovered_sample_id"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "final_status": {
                "enum": [
                  "failed",
                  "excluded"
                ]
              }
            },
            "required": [
              "final_status"
            ]
          },
          "then": {
            "not": {
              "required": [
                "recovered_sample_id"
              ]
            }
          }
        }
      ]
    }
  }
}

unavailable_reasons

对象条件、必填项及额外字段规则
{
  "propertyNames": {
    "pattern": "^(?:/(?:[^~/]|~[01])*)+$"
  },
  "additionalProperties": {
    "type": "string",
    "minLength": 1
  },
  "minProperties": 1
}

range

range.start

详见上方设计说明与本字段机器规则。

必填 · integer · minimum: 0
机器规则
{
  "type": "integer",
  "minimum": 0
}

range.end

integer;evidence_quote 的字符范围

必填 · integer · minimum: 0
机器规则
{
  "type": "integer",
  "minimum": 0
}
对象条件、必填项及额外字段规则
{
  "required": [
    "start",
    "end"
  ],
  "additionalProperties": false
}

acceptance_profile

acceptance_profile.confirmation_state

enum;proposed 为待确认建议;confirmed 为已有明确确认

必填 · string · enum: ["proposed", "confirmed"]
机器规则
{
  "type": "string",
  "enum": [
    "proposed",
    "confirmed"
  ]
}

acceptance_profile.approval_reference

string;confirmed 时必填,指向实际确认记录的可核查编号或描述;不得虚构

可选或条件必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

acceptance_profile.require_logged_in

boolean;是否要求已登录采集

必填 · boolean
机器规则
{
  "type": "boolean"
}

acceptance_profile.require_original_prompt

boolean;是否要求实际提交文本逐字等于原题

必填 · boolean
机器规则
{
  "type": "boolean"
}

acceptance_profile.require_complete_answer

boolean;是否要求回答原文完整

必填 · boolean
机器规则
{
  "type": "boolean"
}

acceptance_profile.require_complete_citations

boolean;是否要求全部展示面的来源清单检查完整

必填 · boolean
机器规则
{
  "type": "boolean"
}

acceptance_profile.require_complete_screenshots

boolean;是否要求截图覆盖完整回答及全部可见来源

必填 · boolean
机器规则
{
  "type": "boolean"
}

acceptance_profile.require_verified_geography

boolean;是否要求实际采集环境的 IP 地理位置已核验

必填 · boolean
机器规则
{
  "type": "boolean"
}

acceptance_profile.require_all_brand_evaluations

boolean;是否要求每个监测品牌都有明确 mentioned 或 not_mentioned 结论;uncertain 与 not_evaluated 不满足此项

必填 · boolean
机器规则
{
  "type": "boolean"
}
对象条件、必填项及额外字段规则
{
  "required": [
    "confirmation_state",
    "require_logged_in",
    "require_original_prompt",
    "require_complete_answer",
    "require_complete_citations",
    "require_complete_screenshots",
    "require_verified_geography",
    "require_all_brand_evaluations"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "confirmation_state": {
            "enum": [
              "confirmed"
            ]
          }
        },
        "required": [
          "confirmation_state"
        ]
      },
      "then": {
        "required": [
          "approval_reference"
        ]
      }
    }
  ]
}

plan

plan.plan_id

string;必填,逻辑采样计划 ID

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

plan.prompt_id

string;必填,原题引用

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

plan.platform

string;必填,约定的平台标识,不允许同一平台混用别名

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

plan.sample_index

integer;必填,同一原题和平台下从 1 开始的独立采样序号

必填 · integer · minimum: 1
机器规则
{
  "type": "integer",
  "minimum": 1
}

plan.outcome

enum;accepted / failed / excluded,最终批次不得含未完成计划

必填 · string · enum: ["accepted", "failed", "excluded"]
机器规则
{
  "type": "string",
  "enum": [
    "accepted",
    "failed",
    "excluded"
  ]
}

plan.final_sample_id

string;有最终留存回答时填写;accepted 时必填,无回答的 failed 计划省略

可选或条件必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}
对象条件、必填项及额外字段规则
{
  "required": [
    "plan_id",
    "prompt_id",
    "platform",
    "sample_index",
    "outcome"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "outcome": {
            "enum": [
              "accepted"
            ]
          }
        },
        "required": [
          "outcome"
        ]
      },
      "then": {
        "required": [
          "final_sample_id"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "outcome": {
            "enum": [
              "failed"
            ]
          }
        },
        "required": [
          "outcome"
        ]
      },
      "then": {
        "not": {
          "required": [
            "final_sample_id"
          ]
        }
      }
    }
  ]
}

delivery

delivery.delivery_id

string;必填,批次标识

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

delivery.delivered_at_utc

string;必填,UTC 交付时间,带 Z

必填 · string · format: "date-time" · pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
机器规则
{
  "type": "string",
  "format": "date-time",
  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
}

delivery.planned_sample_count

integer;必填,等于 sample_plan 的计划条数

必填 · integer · minimum: 0
机器规则
{
  "type": "integer",
  "minimum": 0
}

delivery.delivered_sample_count

integer;必填,合格的最终样本数,等于 accepted 计划数

必填 · integer · minimum: 0
机器规则
{
  "type": "integer",
  "minimum": 0
}

delivery.recorded_sample_count

integer;必填,samples 数组实际条数,包含留存但排除的回答

必填 · integer · minimum: 0
机器规则
{
  "type": "integer",
  "minimum": 0
}

delivery.failed_final_count

integer;必填,最终 failed 或 excluded 的计划数;重试次数不计入

必填 · integer · minimum: 0
机器规则
{
  "type": "integer",
  "minimum": 0
}

delivery.repeats_per_prompt

integer;可选,仅所有平台与提示词组合采用相同次数时填写

可选或条件必填 · integer · minimum: 1
机器规则
{
  "type": "integer",
  "minimum": 1
}

delivery.aggregation_note

string;可选,仅解释交付或分组口径,不存放聚合结果

可选或条件必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}
对象条件、必填项及额外字段规则
{
  "required": [
    "delivery_id",
    "delivered_at_utc",
    "planned_sample_count",
    "delivered_sample_count",
    "recorded_sample_count",
    "failed_final_count"
  ],
  "additionalProperties": false
}

collection_run

collection_run.collector_version

string;必填,采集程序或流程版本

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

collection_run.annotation

详见上方设计说明与本字段机器规则。

必填 · object
机器规则
{
  "type": "object",
  "properties": {
    "method": {
      "type": "string",
      "enum": [
        "rule",
        "llm",
        "human",
        "hybrid"
      ]
    },
    "version": {
      "type": "string",
      "minLength": 1
    },
    "reviewed_by": {
      "type": "string",
      "enum": [
        "none",
        "sampled",
        "full"
      ]
    }
  },
  "required": [
    "method",
    "version",
    "reviewed_by"
  ],
  "additionalProperties": false
}

collection_run.annotation.method

详见上方设计说明与本字段机器规则。

必填 · string · enum: ["rule", "llm", "human", "hybrid"]
机器规则
{
  "type": "string",
  "enum": [
    "rule",
    "llm",
    "human",
    "hybrid"
  ]
}

collection_run.annotation.version

详见上方设计说明与本字段机器规则。

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

collection_run.annotation.reviewed_by

详见上方设计说明与本字段机器规则。

必填 · string · enum: ["none", "sampled", "full"]
机器规则
{
  "type": "string",
  "enum": [
    "none",
    "sampled",
    "full"
  ]
}

collection_run.translation

详见上方设计说明与本字段机器规则。

可选或条件必填 · object
机器规则
{
  "type": "object",
  "properties": {
    "method": {
      "type": "string",
      "enum": [
        "none",
        "machine",
        "human"
      ]
    },
    "source_language": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "method"
  ],
  "additionalProperties": false
}

collection_run.translation.method

详见上方设计说明与本字段机器规则。

必填 · string · enum: ["none", "machine", "human"]
机器规则
{
  "type": "string",
  "enum": [
    "none",
    "machine",
    "human"
  ]
}

collection_run.translation.source_language

详见上方设计说明与本字段机器规则。

可选或条件必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

collection_run.sample_plan

array;必填,最终的逐项采样计划

必填 · array · minItems: 1 · items → plan
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/plan"
  },
  "minItems": 1
}

collection_run.acceptance_profile

object;必填,见下文;不能把建议规则写成已获客户确认

必填 · acceptance_profile
机器规则
{
  "$ref": "#/$defs/acceptance_profile"
}

collection_run.evidence_policy

object;必填,约定 URL 可用期限与更新方式

必填 · object
机器规则
{
  "type": "object",
  "properties": {
    "availability_until_utc": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
        },
        {
          "type": "null"
        }
      ]
    },
    "refresh_method": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "availability_until_utc",
    "refresh_method"
  ],
  "additionalProperties": false
}

collection_run.evidence_policy.availability_until_utc

string 或 null;承诺证据仍可获取的截止时间;待确认草稿可以为 null 并说明原因

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
    },
    {
      "type": "null"
    }
  ]
}

collection_run.evidence_policy.refresh_method

string 或 null;签名链接失效或临近到期时如何取得更新 URL;不得填写尚未具备的续签服务承诺

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "minLength": 1
    },
    {
      "type": "null"
    }
  ]
}

collection_run.unavailable_reasons

object;配置中存在 null 时使用,相对 collection_run 的 JSON Pointer → 原因

可选或条件必填 · unavailable_reasons
机器规则
{
  "$ref": "#/$defs/unavailable_reasons"
}
对象条件、必填项及额外字段规则
{
  "required": [
    "collector_version",
    "annotation",
    "sample_plan",
    "acceptance_profile",
    "evidence_policy"
  ],
  "additionalProperties": false
}

brand

brand.brand_id

string;必填,品牌 ID

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

brand.name

string;必填,标准名称

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

brand.aliases

string array;必填,匹配候选别名,可为空;不是本条回答实际命中的名称清单

必填 · array · minItems: 0
机器规则
{
  "type": "array",
  "items": {
    "type": "string",
    "minLength": 1
  },
  "minItems": 0,
  "uniqueItems": true
}

brand.excluded_aliases

string array;可选,明确不应匹配的同名或近似称呼

可选或条件必填 · array · minItems: 0
机器规则
{
  "type": "array",
  "items": {
    "type": "string",
    "minLength": 1
  },
  "minItems": 0,
  "uniqueItems": true
}

brand.brand_type

enum;必填,client / competitor / industry_reference

必填 · string · enum: ["client", "competitor", "industry_reference"]
机器规则
{
  "type": "string",
  "enum": [
    "client",
    "competitor",
    "industry_reference"
  ]
}

brand.location_text

string;可选,已知地点,未知时省略,不推断

可选或条件必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

brand.official_domains

string array;可选,已核定官方域名;平台账号页不能仅凭宿主域名判为品牌官网

可选或条件必填 · array · minItems: 0
机器规则
{
  "type": "array",
  "items": {
    "type": "string",
    "minLength": 1
  },
  "minItems": 0,
  "uniqueItems": true
}
对象条件、必填项及额外字段规则
{
  "required": [
    "brand_id",
    "name",
    "aliases",
    "brand_type"
  ],
  "additionalProperties": false
}

prompt

prompt.prompt_id

string;必填,原题引用

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

prompt.original

string;必填,客户原题逐字保存

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

prompt.language

string;必填,BCP 47,如 zh-CN

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

prompt.intent

enum;brand_intro / comparison / recommendation / reputation / how_to / other

必填 · string · enum: ["brand_intro", "comparison", "recommendation", "reputation", "how_to", "other"]
机器规则
{
  "type": "string",
  "enum": [
    "brand_intro",
    "comparison",
    "recommendation",
    "reputation",
    "how_to",
    "other"
  ]
}

prompt.topic_tags

string array;可选,业务分类标签

可选或条件必填 · array · minItems: 0
机器规则
{
  "type": "array",
  "items": {
    "type": "string",
    "minLength": 1
  },
  "minItems": 0,
  "uniqueItems": true
}

prompt.monitored_brand_ids

string array;必填,本题需要检查的品牌 ID,无重复

必填 · array · minItems: 1
机器规则
{
  "type": "array",
  "items": {
    "type": "string",
    "minLength": 1
  },
  "minItems": 1,
  "uniqueItems": true
}

prompt.brands_in_prompt

string array;必填,监测品牌中在原题被点名的品牌 ID,是 monitored_brand_ids 的子集

必填 · array · minItems: 0
机器规则
{
  "type": "array",
  "items": {
    "type": "string",
    "minLength": 1
  },
  "minItems": 0,
  "uniqueItems": true
}
对象条件、必填项及额外字段规则
{
  "required": [
    "prompt_id",
    "original",
    "language",
    "intent",
    "monitored_brand_ids",
    "brands_in_prompt"
  ],
  "additionalProperties": false
}

geography

geography.country

详见上方设计说明与本字段机器规则。

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "minLength": 1
    },
    {
      "type": "null"
    }
  ]
}

geography.city

详见上方设计说明与本字段机器规则。

可选或条件必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "minLength": 1
    },
    {
      "type": "null"
    }
  ]
}

geography.source

详见上方设计说明与本字段机器规则。

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "minLength": 1
    },
    {
      "type": "null"
    }
  ]
}

geography.observed_at_utc

详见上方设计说明与本字段机器规则。

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
    },
    {
      "type": "null"
    }
  ]
}
对象条件、必填项及额外字段规则
{
  "required": [
    "country",
    "source",
    "observed_at_utc"
  ],
  "additionalProperties": false
}

environment

environment.account_state

enum;logged_in / logged_out / unknown

必填 · string · enum: ["logged_in", "logged_out", "unknown"]
机器规则
{
  "type": "string",
  "enum": [
    "logged_in",
    "logged_out",
    "unknown"
  ]
}

environment.model_ui

string 或 null;界面显示的模型名,不按默认模型补写

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "minLength": 1
    },
    {
      "type": "null"
    }
  ]
}

environment.search_enabled

enum;on / off / auto / unknown;是界面搜索状态,不表示这轮一定发生了检索

必填 · string · enum: ["on", "off", "auto", "unknown"]
机器规则
{
  "type": "string",
  "enum": [
    "on",
    "off",
    "auto",
    "unknown"
  ]
}

environment.search_ui

string 或 null;可选,搜索相关控件原文

可选或条件必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "minLength": 1
    },
    {
      "type": "null"
    }
  ]
}

environment.conversation_state

enum;new_chat / continued / unknown;历史不明使用 unknown

必填 · string · enum: ["new_chat", "continued", "unknown"]
机器规则
{
  "type": "string",
  "enum": [
    "new_chat",
    "continued",
    "unknown"
  ]
}

environment.memory_personalization

enum;off / on / unknown

必填 · string · enum: ["off", "on", "unknown"]
机器规则
{
  "type": "string",
  "enum": [
    "off",
    "on",
    "unknown"
  ]
}

environment.ui_language

string 或 null;界面语言,历史不明时 null 加原因

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "minLength": 1
    },
    {
      "type": "null"
    }
  ]
}

environment.network_geography

详见上方设计说明与本字段机器规则。

必填 · geography
机器规则
{
  "$ref": "#/$defs/geography"
}
对象条件、必填项及额外字段规则
{
  "required": [
    "account_state",
    "model_ui",
    "search_enabled",
    "conversation_state",
    "memory_personalization",
    "ui_language",
    "network_geography"
  ],
  "additionalProperties": false
}

mention

mention.name_in_answer

详见上方设计说明与本字段机器规则。

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

mention.evidence_quote

详见上方设计说明与本字段机器规则。

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

mention.start

详见上方设计说明与本字段机器规则。

必填 · integer · minimum: 0
机器规则
{
  "type": "integer",
  "minimum": 0
}

mention.end

integer;evidence_quote 的字符范围

必填 · integer · minimum: 0
机器规则
{
  "type": "integer",
  "minimum": 0
}

mention.name_start

详见上方设计说明与本字段机器规则。

必填 · integer · minimum: 0
机器规则
{
  "type": "integer",
  "minimum": 0
}

mention.name_end

integer;name_in_answer 的准确字符范围,应包含于证据片段范围内

必填 · integer · minimum: 0
机器规则
{
  "type": "integer",
  "minimum": 0
}

mention.position_kind

ordered_list / unordered_list / inline / comparison

可选或条件必填 · string · enum: ["ordered_list", "unordered_list", "inline", "comparison"]
机器规则
{
  "type": "string",
  "enum": [
    "ordered_list",
    "unordered_list",
    "inline",
    "comparison"
  ]
}

mention.list_position

详见上方设计说明与本字段机器规则。

可选或条件必填 · integer · minimum: 1
机器规则
{
  "type": "integer",
  "minimum": 1
}

mention.sentiment

详见上方设计说明与本字段机器规则。

可选或条件必填 · string · enum: ["positive", "neutral", "negative", "mixed"]
机器规则
{
  "type": "string",
  "enum": [
    "positive",
    "neutral",
    "negative",
    "mixed"
  ]
}

mention.citation_ids

详见上方设计说明与本字段机器规则。

必填 · array · minItems: 0
机器规则
{
  "type": "array",
  "items": {
    "type": "string",
    "minLength": 1
  },
  "minItems": 0,
  "uniqueItems": true
}

mention.factual_issue

详见上方设计说明与本字段机器规则。

可选或条件必填 · string · enum: ["none", "suspected", "confirmed"]
机器规则
{
  "type": "string",
  "enum": [
    "none",
    "suspected",
    "confirmed"
  ]
}
对象条件、必填项及额外字段规则
{
  "required": [
    "name_in_answer",
    "evidence_quote",
    "start",
    "end",
    "name_start",
    "name_end",
    "citation_ids"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "position_kind": {
            "enum": [
              "ordered_list"
            ]
          }
        },
        "required": [
          "position_kind"
        ]
      },
      "then": {
        "required": [
          "list_position"
        ]
      }
    },
    {
      "if": {
        "required": [
          "list_position"
        ]
      },
      "then": {
        "required": [
          "position_kind"
        ],
        "properties": {
          "position_kind": {
            "const": "ordered_list"
          }
        }
      }
    }
  ]
}

brand_result

brand_result.brand_id

string;必填,品牌 ID

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

brand_result.mention_status

enum;mentioned / not_mentioned / uncertain / not_evaluated

必填 · string · enum: ["mentioned", "not_mentioned", "uncertain", "not_evaluated"]
机器规则
{
  "type": "string",
  "enum": [
    "mentioned",
    "not_mentioned",
    "uncertain",
    "not_evaluated"
  ]
}

brand_result.reason

string;uncertain 或 not_evaluated 时必填

可选或条件必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

brand_result.mentions

array;必填,逐处命中证据;not_mentioned 与 not_evaluated 时为空

必填 · array · minItems: 0 · items → mention
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/mention"
  },
  "minItems": 0
}
对象条件、必填项及额外字段规则
{
  "required": [
    "brand_id",
    "mention_status",
    "mentions"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "mention_status": {
            "enum": [
              "uncertain",
              "not_evaluated"
            ]
          }
        },
        "required": [
          "mention_status"
        ]
      },
      "then": {
        "required": [
          "reason"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "mention_status": {
            "enum": [
              "mentioned",
              "uncertain"
            ]
          }
        },
        "required": [
          "mention_status"
        ]
      },
      "then": {
        "properties": {
          "mentions": {
            "minItems": 1
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "mention_status": {
            "enum": [
              "not_mentioned",
              "not_evaluated"
            ]
          }
        },
        "required": [
          "mention_status"
        ]
      },
      "then": {
        "properties": {
          "mentions": {
            "maxItems": 0
          }
        }
      }
    }
  ]
}

entity

entity.name

string;必填,标准名称

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

entity.evidence_quote

详见上方设计说明与本字段机器规则。

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

entity.start

详见上方设计说明与本字段机器规则。

必填 · integer · minimum: 0
机器规则
{
  "type": "integer",
  "minimum": 0
}

entity.end

integer;evidence_quote 的字符范围

必填 · integer · minimum: 0
机器规则
{
  "type": "integer",
  "minimum": 0
}
对象条件、必填项及额外字段规则
{
  "required": [
    "name",
    "evidence_quote",
    "start",
    "end"
  ],
  "additionalProperties": false
}

surface

surface.surface

enum;source_panel / inline / search_result / footnote

必填 · string · enum: ["source_panel", "inline", "search_result", "footnote"]
机器规则
{
  "type": "string",
  "enum": [
    "source_panel",
    "inline",
    "search_result",
    "footnote"
  ]
}

surface.status

enum;complete / partial / none_shown / not_checked

必填 · string · enum: ["complete", "partial", "none_shown", "not_checked", "unavailable"]
机器规则
{
  "type": "string",
  "enum": [
    "complete",
    "partial",
    "none_shown",
    "not_checked",
    "unavailable"
  ]
}

surface.captured_count

integer;该展示面已记录的 occurrence 数,不是去重文章数

必填 · integer · minimum: 0
机器规则
{
  "type": "integer",
  "minimum": 0
}

surface.displayed_total

integer 或 null;可选,平台明确显示的总条数;未显示时 null 加原因,不靠猜测

可选或条件必填 · integer | null
机器规则
{
  "anyOf": [
    {
      "type": "integer",
      "minimum": 0
    },
    {
      "type": "null"
    }
  ]
}

surface.scope_note

string;partial 时必填,说明具体缺什么;其他状态可补充

可选或条件必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}
对象条件、必填项及额外字段规则
{
  "required": [
    "surface",
    "status",
    "captured_count"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "status": {
            "enum": [
              "partial",
              "not_checked",
              "unavailable"
            ]
          }
        },
        "required": [
          "status"
        ]
      },
      "then": {
        "required": [
          "scope_note"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "status": {
            "enum": [
              "none_shown",
              "not_checked",
              "unavailable"
            ]
          }
        },
        "required": [
          "status"
        ]
      },
      "then": {
        "properties": {
          "captured_count": {
            "const": 0
          }
        }
      }
    }
  ]
}

occurrence

occurrence.occurrence_id

string;必填,在当前 sample 内唯一

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

occurrence.surface

enum;source_panel / inline / search_result / footnote

必填 · string · enum: ["source_panel", "inline", "search_result", "footnote", "unknown"]
机器规则
{
  "type": "string",
  "enum": [
    "source_panel",
    "inline",
    "search_result",
    "footnote",
    "unknown"
  ]
}

occurrence.display_order

integer 或 null;列表展示面条件必填,同一展示面从 1 起;无法恢复时 null 加原因

可选或条件必填 · integer | null
机器规则
{
  "anyOf": [
    {
      "type": "integer",
      "minimum": 1
    },
    {
      "type": "null"
    }
  ]
}

occurrence.citation_marker

string 或 null;可选,正文标记原文,如 [3] 或 †;不可用面板序号代填

可选或条件必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "minLength": 1
    },
    {
      "type": "null"
    }
  ]
}

occurrence.answer_links

array;必填,每项 quote、start、end;没有可确认正文关联时为空

必填 · array · minItems: 0 · items → answer_link
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/answer_link"
  },
  "minItems": 0
}
对象条件、必填项及额外字段规则
{
  "required": [
    "occurrence_id",
    "surface",
    "answer_links"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "surface": {
            "enum": [
              "source_panel",
              "search_result",
              "footnote"
            ]
          }
        },
        "required": [
          "surface"
        ]
      },
      "then": {
        "required": [
          "display_order"
        ]
      }
    }
  ]
}

citation

citation.citation_id

string;必填,样本内来源 ID

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

citation.title

string 或 null;可选,平台可见标题,未取得时不根据网页猜写

可选或条件必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "minLength": 1
    },
    {
      "type": "null"
    }
  ]
}

citation.url

string 或 null;必填,平台原始链接;可见来源无可提取链接时 null 加原因,并如实标缺口

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "format": "uri",
      "pattern": "^https?://[^\\s]+$"
    },
    {
      "type": "null"
    }
  ]
}

citation.final_url

string 或 null;可选,实际访问后确认的最终地址,未访问不补写

可选或条件必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "format": "uri",
      "pattern": "^https?://[^\\s]+$"
    },
    {
      "type": "null"
    }
  ]
}

citation.domain

string 或 null;可选,按明确规则解析的注册域名;跳转包装页与最终发布站点要区分

可选或条件必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "minLength": 1
    },
    {
      "type": "null"
    }
  ]
}

citation.excerpt

string 或 null;可选,平台显示摘要,不填自行生成摘要

可选或条件必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "minLength": 1
    },
    {
      "type": "null"
    }
  ]
}

citation.source_type

enum;来源类别,见枚举表,无法确定用 unknown

必填 · string · enum: ["official_brand", "government", "media", "health_platform", "ugc", "academic", "encyclopedia", "other", "unknown"]
机器规则
{
  "type": "string",
  "enum": [
    "official_brand",
    "government",
    "media",
    "health_platform",
    "ugc",
    "academic",
    "encyclopedia",
    "other",
    "unknown"
  ]
}

citation.owner_brand_id

string;可选,已确认归属的监测品牌,未知时省略

可选或条件必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

citation.fetch_status

enum;ok / failed / not_attempted,表示来源网页本身是否抓取成功

必填 · string · enum: ["ok", "failed", "not_attempted"]
机器规则
{
  "type": "string",
  "enum": [
    "ok",
    "failed",
    "not_attempted"
  ]
}

citation.occurrences

array;必填,至少一项,保存所有已采集到的出现记录

必填 · array · minItems: 1 · items → occurrence
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/occurrence"
  },
  "minItems": 1
}
对象条件、必填项及额外字段规则
{
  "required": [
    "citation_id",
    "url",
    "source_type",
    "fetch_status",
    "occurrences"
  ],
  "additionalProperties": false
}

citations

citations.status

enum;complete / partial / none_shown / not_checked

必填 · string · enum: ["complete", "partial", "none_shown", "not_checked"]
机器规则
{
  "type": "string",
  "enum": [
    "complete",
    "partial",
    "none_shown",
    "not_checked"
  ]
}

citations.checked_surfaces

enum array;实际完成过检查的展示面,不含 not_checked 或 unavailable 的展示面

必填 · array · minItems: 0
机器规则
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "source_panel",
      "inline",
      "search_result",
      "footnote"
    ]
  },
  "minItems": 0,
  "uniqueItems": true
}

citations.scope_note

string;partial 时必填,说明具体缺什么;其他状态可补充

可选或条件必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

citations.surfaces

array;必填,四类展示面各一条,即使该平台没有显示也要说明

必填 · array · minItems: 4 · items → surface
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/surface"
  },
  "minItems": 4
}

citations.items

array;必填,来源实体清单,不能只留域名

必填 · array · minItems: 0 · items → citation
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/citation"
  },
  "minItems": 0
}
对象条件、必填项及额外字段规则
{
  "required": [
    "status",
    "checked_surfaces",
    "surfaces",
    "items"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "status": {
            "enum": [
              "partial"
            ]
          }
        },
        "required": [
          "status"
        ]
      },
      "then": {
        "required": [
          "scope_note"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "status": {
            "enum": [
              "none_shown",
              "not_checked"
            ]
          }
        },
        "required": [
          "status"
        ]
      },
      "then": {
        "properties": {
          "items": {
            "maxItems": 0
          }
        }
      }
    }
  ]
}

screenshot

screenshot.sequence

integer;必填,样本内阅读顺序,从 1 连续递增

必填 · integer · minimum: 1
机器规则
{
  "type": "integer",
  "minimum": 1
}

screenshot.kind

enum;answer / citations / search_result / settings / other

必填 · string · enum: ["answer", "citations", "search_result", "settings", "other"]
机器规则
{
  "type": "string",
  "enum": [
    "answer",
    "citations",
    "search_result",
    "settings",
    "other"
  ]
}

screenshot.url

string 或 null;必填,平台原始链接;可见来源无可提取链接时 null 加原因,并如实标缺口

必填 · string · format: "uri" · pattern: "^https?://[^\\s]+$"
机器规则
{
  "type": "string",
  "format": "uri",
  "pattern": "^https?://[^\\s]+$"
}

screenshot.access_mode

enum;public / signed_url;不使用 delivered_in_package

必填 · string · enum: ["public", "signed_url"]
机器规则
{
  "type": "string",
  "enum": [
    "public",
    "signed_url"
  ]
}

screenshot.expires_at_utc

string;signed_url 时必填,真实签名有效期

可选或条件必填 · string · format: "date-time" · pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
机器规则
{
  "type": "string",
  "format": "date-time",
  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
}

screenshot.sha256

string 或 null;文件 SHA-256,正式生产须有真实值;历史缺失与示例不得填假 hash

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    {
      "type": "null"
    }
  ]
}

screenshot.width

integer 或 null;图片像素尺寸,真实未知时 null 加原因

必填 · integer | null
机器规则
{
  "anyOf": [
    {
      "type": "integer",
      "minimum": 1
    },
    {
      "type": "null"
    }
  ]
}

screenshot.height

integer 或 null;图片像素尺寸,真实未知时 null 加原因

必填 · integer | null
机器规则
{
  "anyOf": [
    {
      "type": "integer",
      "minimum": 1
    },
    {
      "type": "null"
    }
  ]
}

screenshot.captured_at_utc

string 或 null;最终回答的截取时间;历史未记录时 null 加原因

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
    },
    {
      "type": "null"
    }
  ]
}

screenshot.access_checked_at_utc

string 或 null;最近一次按交付访问方式核验 URL 的时间

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
    },
    {
      "type": "null"
    }
  ]
}

screenshot.answer_ranges

array;每项 start、end,声明该图覆盖的原文范围,无正文覆盖时为空

必填 · array · minItems: 0 · items → range
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/range"
  },
  "minItems": 0
}

screenshot.citation_occurrence_ids

string array;该图覆盖的来源出现记录,可为空

必填 · array · minItems: 0
机器规则
{
  "type": "array",
  "items": {
    "type": "string",
    "minLength": 1
  },
  "minItems": 0,
  "uniqueItems": true
}
对象条件、必填项及额外字段规则
{
  "required": [
    "sequence",
    "kind",
    "url",
    "access_mode",
    "sha256",
    "width",
    "height",
    "captured_at_utc",
    "access_checked_at_utc",
    "answer_ranges",
    "citation_occurrence_ids"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "access_mode": {
            "enum": [
              "signed_url"
            ]
          }
        },
        "required": [
          "access_mode"
        ]
      },
      "then": {
        "required": [
          "expires_at_utc"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "access_mode": {
            "enum": [
              "public"
            ]
          }
        },
        "required": [
          "access_mode"
        ]
      },
      "then": {
        "not": {
          "required": [
            "expires_at_utc"
          ]
        }
      }
    }
  ]
}

raw_capture

raw_capture.kind

enum;answer / citations / search_result / settings / other

必填 · string · enum: ["dom_snapshot", "network_response", "html"]
机器规则
{
  "type": "string",
  "enum": [
    "dom_snapshot",
    "network_response",
    "html"
  ]
}

raw_capture.url

string 或 null;必填,平台原始链接;可见来源无可提取链接时 null 加原因,并如实标缺口

必填 · string · format: "uri" · pattern: "^https?://[^\\s]+$"
机器规则
{
  "type": "string",
  "format": "uri",
  "pattern": "^https?://[^\\s]+$"
}

raw_capture.sha256

string 或 null;文件 SHA-256,正式生产须有真实值;历史缺失与示例不得填假 hash

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    {
      "type": "null"
    }
  ]
}

raw_capture.contains_pii

详见上方设计说明与本字段机器规则。

必填 · conditional · const: false
机器规则
{
  "const": false
}

raw_capture.access_mode

enum;public / signed_url;不使用 delivered_in_package

必填 · string · enum: ["public", "signed_url"]
机器规则
{
  "type": "string",
  "enum": [
    "public",
    "signed_url"
  ]
}

raw_capture.expires_at_utc

string;signed_url 时必填,真实签名有效期

可选或条件必填 · string · format: "date-time" · pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
机器规则
{
  "type": "string",
  "format": "date-time",
  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
}
对象条件、必填项及额外字段规则
{
  "required": [
    "kind",
    "url",
    "sha256",
    "contains_pii",
    "access_mode"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "access_mode": {
            "enum": [
              "signed_url"
            ]
          }
        },
        "required": [
          "access_mode"
        ]
      },
      "then": {
        "required": [
          "expires_at_utc"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "access_mode": {
            "enum": [
              "public"
            ]
          }
        },
        "required": [
          "access_mode"
        ]
      },
      "then": {
        "not": {
          "required": [
            "expires_at_utc"
          ]
        }
      }
    }
  ]
}

evidence

evidence.screenshots

详见上方设计说明与本字段机器规则。

必填 · array · minItems: 0 · items → screenshot
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/screenshot"
  },
  "minItems": 0
}

evidence.answer_coverage

complete / partial / not_checked;截图是否完整覆盖同轮回答

必填 · string · enum: ["complete", "partial", "not_checked"]
机器规则
{
  "type": "string",
  "enum": [
    "complete",
    "partial",
    "not_checked"
  ]
}

evidence.citations_coverage

complete / partial / none_shown / not_checked;是否覆盖同轮全部已展示来源

必填 · string · enum: ["complete", "partial", "none_shown", "not_checked"]
机器规则
{
  "type": "string",
  "enum": [
    "complete",
    "partial",
    "none_shown",
    "not_checked"
  ]
}

evidence.redaction_status

verified / not_checked;是否实际复核截图和抓取内容的隐私脱敏

必填 · string · enum: ["verified", "not_checked"]
机器规则
{
  "type": "string",
  "enum": [
    "verified",
    "not_checked"
  ]
}

evidence.access_status

accessible / inaccessible / not_checked;是否实际核验交付方可按约定方式取得链接

必填 · string · enum: ["accessible", "inaccessible", "not_checked"]
机器规则
{
  "type": "string",
  "enum": [
    "accessible",
    "inaccessible",
    "not_checked"
  ]
}

evidence.raw_capture

详见上方设计说明与本字段机器规则。

可选或条件必填 · raw_capture
机器规则
{
  "$ref": "#/$defs/raw_capture"
}
对象条件、必填项及额外字段规则
{
  "required": [
    "screenshots",
    "answer_coverage",
    "citations_coverage",
    "redaction_status",
    "access_status"
  ],
  "additionalProperties": false
}

sample

sample.sample_id

string;必填,样本 ID

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

sample.plan_id

string;必填,逻辑采样计划 ID

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

sample.prompt_id

string;必填,原题引用

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

sample.platform

string;必填,约定的平台标识,不允许同一平台混用别名

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

sample.sample_index

integer;必填,同一原题和平台下从 1 开始的独立采样序号

必填 · integer · minimum: 1
机器规则
{
  "type": "integer",
  "minimum": 1
}

sample.attempt_index

integer;必填,产出此回答的尝试序号,首次为 1

必填 · integer · minimum: 1
机器规则
{
  "type": "integer",
  "minimum": 1
}

sample.origin

enum;native_capture / legacy_import / example

必填 · string · enum: ["native_capture", "legacy_import", "example"]
机器规则
{
  "type": "string",
  "enum": [
    "native_capture",
    "legacy_import",
    "example"
  ]
}

sample.legacy_source

object;历史迁移使用,包含 file_name、sha256、record_path,指回原始记录

可选或条件必填 · object
机器规则
{
  "type": "object",
  "properties": {
    "file_name": {
      "type": "string",
      "minLength": 1
    },
    "sha256": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "record_path": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "file_name",
    "sha256",
    "record_path"
  ],
  "additionalProperties": false
}

sample.legacy_source.file_name

详见上方设计说明与本字段机器规则。

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

sample.legacy_source.sha256

string 或 null;文件 SHA-256,正式生产须有真实值;历史缺失与示例不得填假 hash

必填 · string · pattern: "^[0-9a-f]{64}$"
机器规则
{
  "type": "string",
  "pattern": "^[0-9a-f]{64}$"
}

sample.legacy_source.record_path

详见上方设计说明与本字段机器规则。

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

sample.collection_method

enum;web / app / api;本项目按实际渠道填写,不以 API 结果冒充 Web

必填 · string · enum: ["web", "app", "api"]
机器规则
{
  "type": "string",
  "enum": [
    "web",
    "app",
    "api"
  ]
}

sample.prompt_submitted

string 或 null;必填,实际提交文本;历史未记录时 null 加原因,不能用规范化题面冒充实际提交文本;已知且与原题不同时加 prompt_modified

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "minLength": 1
    },
    {
      "type": "null"
    }
  ]
}

sample.submitted_at_utc

string 或 null;提交时间;历史未记录时 null 加原因

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
    },
    {
      "type": "null"
    }
  ]
}

sample.captured_at_utc

string 或 null;最终回答的截取时间;历史未记录时 null 加原因

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
    },
    {
      "type": "null"
    }
  ]
}

sample.environment

详见上方设计说明与本字段机器规则。

必填 · environment
机器规则
{
  "$ref": "#/$defs/environment"
}

sample.answer_original

string;必填,非空,保留完整可见回答及引用标记;没有回答时不构造空 sample

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

sample.answer_language

string;必填,原文语言

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

sample.answer_translated

string;可选,只供阅读,不替代原文

可选或条件必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

sample.translation_target_language

string;有翻译时必填,译文语言

可选或条件必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

sample.brand_results

详见上方设计说明与本字段机器规则。

必填 · array · minItems: 0 · items → brand_result
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/brand_result"
  },
  "minItems": 0
}

sample.other_entities_mentioned

详见上方设计说明与本字段机器规则。

必填 · array · minItems: 0 · items → entity
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/entity"
  },
  "minItems": 0
}

sample.citations

详见上方设计说明与本字段机器规则。

必填 · citations
机器规则
{
  "$ref": "#/$defs/citations"
}

sample.evidence

详见上方设计说明与本字段机器规则。

必填 · evidence
机器规则
{
  "$ref": "#/$defs/evidence"
}

sample.quality_flags

详见上方设计说明与本字段机器规则。

必填 · array · minItems: 0
机器规则
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "prompt_modified",
      "citation_list_not_confirmed_complete",
      "citation_origin_unknown",
      "model_unavailable",
      "search_state_unknown",
      "answer_truncated",
      "translation_machine_only",
      "annotation_unreviewed",
      "possible_factual_error",
      "demo_only",
      "legacy_import",
      "brand_evaluation_incomplete",
      "screenshot_incomplete",
      "account_state_unknown",
      "geography_unavailable"
    ]
  },
  "minItems": 0,
  "uniqueItems": true
}

sample.quality

详见上方设计说明与本字段机器规则。

必填 · object
机器规则
{
  "type": "object",
  "properties": {
    "answer_status": {
      "type": "string",
      "enum": [
        "complete",
        "partial",
        "unknown"
      ]
    },
    "acceptance_status": {
      "type": "string",
      "enum": [
        "accepted",
        "excluded"
      ]
    },
    "exclusion_reasons": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "minItems": 0,
      "uniqueItems": true
    }
  },
  "required": [
    "answer_status",
    "acceptance_status",
    "exclusion_reasons"
  ],
  "additionalProperties": false
}

sample.quality.answer_status

complete / partial / unknown,说明回答完整性

必填 · string · enum: ["complete", "partial", "unknown"]
机器规则
{
  "type": "string",
  "enum": [
    "complete",
    "partial",
    "unknown"
  ]
}

sample.quality.acceptance_status

accepted / excluded,按当前验收配置判定,不是客户签收证明

必填 · string · enum: ["accepted", "excluded"]
机器规则
{
  "type": "string",
  "enum": [
    "accepted",
    "excluded"
  ]
}

sample.quality.exclusion_reasons

排除原因数组;accepted 时为空,excluded 时必须说明

必填 · array · minItems: 0
机器规则
{
  "type": "array",
  "items": {
    "type": "string",
    "minLength": 1
  },
  "minItems": 0,
  "uniqueItems": true
}

sample.unavailable_reasons

object;配置中存在 null 时使用,相对 collection_run 的 JSON Pointer → 原因

可选或条件必填 · unavailable_reasons
机器规则
{
  "$ref": "#/$defs/unavailable_reasons"
}
对象条件、必填项及额外字段规则
{
  "required": [
    "sample_id",
    "plan_id",
    "prompt_id",
    "platform",
    "sample_index",
    "attempt_index",
    "origin",
    "collection_method",
    "prompt_submitted",
    "submitted_at_utc",
    "captured_at_utc",
    "environment",
    "answer_original",
    "answer_language",
    "brand_results",
    "other_entities_mentioned",
    "citations",
    "evidence",
    "quality_flags",
    "quality"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "origin": {
            "enum": [
              "legacy_import"
            ]
          }
        },
        "required": [
          "origin"
        ]
      },
      "then": {
        "required": [
          "legacy_source"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "origin": {
            "enum": [
              "example"
            ]
          }
        },
        "required": [
          "origin"
        ]
      },
      "then": {
        "properties": {
          "quality_flags": {
            "contains": {
              "const": "demo_only"
            }
          }
        }
      }
    },
    {
      "dependentRequired": {
        "answer_translated": [
          "translation_target_language"
        ],
        "translation_target_language": [
          "answer_translated"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "quality": {
            "properties": {
              "acceptance_status": {
                "const": "excluded"
              }
            }
          }
        }
      },
      "then": {
        "properties": {
          "quality": {
            "properties": {
              "exclusion_reasons": {
                "minItems": 1
              }
            }
          }
        }
      },
      "else": {
        "properties": {
          "quality": {
            "properties": {
              "exclusion_reasons": {
                "maxItems": 0
              }
            }
          }
        }
      }
    }
  ]
}

attempt

attempt.attempt_id

详见上方设计说明与本字段机器规则。

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

attempt.attempt_index

integer;必填,产出此回答的尝试序号,首次为 1

必填 · integer · minimum: 1
机器规则
{
  "type": "integer",
  "minimum": 1
}

attempt.started_at_utc

详见上方设计说明与本字段机器规则。

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
    },
    {
      "type": "null"
    }
  ]
}

attempt.ended_at_utc

详见上方设计说明与本字段机器规则。

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
    },
    {
      "type": "null"
    }
  ]
}

attempt.status

enum;complete / partial / none_shown / not_checked

必填 · string · enum: ["succeeded", "failed", "excluded"]
机器规则
{
  "type": "string",
  "enum": [
    "succeeded",
    "failed",
    "excluded"
  ]
}

attempt.reason_code

enum;异常原因,见枚举表;recovered 时仍保留导致重试的原因

可选或条件必填 · string · enum: ["login_required", "captcha", "rate_limited", "timeout", "no_answer", "content_blocked", "platform_error", "network_error", "other"]
机器规则
{
  "type": "string",
  "enum": [
    "login_required",
    "captcha",
    "rate_limited",
    "timeout",
    "no_answer",
    "content_blocked",
    "platform_error",
    "network_error",
    "other"
  ]
}

attempt.reason_detail

string;可选,平台提示或异常摘要,不包含凭据

可选或条件必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

attempt.evidence_urls

详见上方设计说明与本字段机器规则。

必填 · array · minItems: 0
机器规则
{
  "type": "array",
  "items": {
    "type": "string",
    "format": "uri",
    "pattern": "^https?://[^\\s]+$"
  },
  "minItems": 0,
  "uniqueItems": true
}
对象条件、必填项及额外字段规则
{
  "required": [
    "attempt_id",
    "attempt_index",
    "started_at_utc",
    "ended_at_utc",
    "status",
    "evidence_urls"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "status": {
            "enum": [
              "failed",
              "excluded"
            ]
          }
        },
        "required": [
          "status"
        ]
      },
      "then": {
        "required": [
          "reason_code"
        ]
      }
    }
  ]
}

failure

failure.failure_id

string;必填,异常汇总 ID

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

failure.plan_id

string;必填,逻辑采样计划 ID

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

failure.prompt_id

string;必填,原题引用

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

failure.platform

string;必填,约定的平台标识,不允许同一平台混用别名

必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

failure.sample_index

integer;必填,同一原题和平台下从 1 开始的独立采样序号

必填 · integer · minimum: 1
机器规则
{
  "type": "integer",
  "minimum": 1
}

failure.attempts

integer;必填,实际尝试总次数,非独立样本数

必填 · integer · minimum: 0
机器规则
{
  "type": "integer",
  "minimum": 0
}

failure.final_status

enum;failed / excluded / recovered

必填 · string · enum: ["failed", "excluded", "recovered"]
机器规则
{
  "type": "string",
  "enum": [
    "failed",
    "excluded",
    "recovered"
  ]
}

failure.reason_code

enum;异常原因,见枚举表;recovered 时仍保留导致重试的原因

必填 · string · enum: ["login_required", "captcha", "rate_limited", "timeout", "no_answer", "content_blocked", "platform_error", "network_error", "other"]
机器规则
{
  "type": "string",
  "enum": [
    "login_required",
    "captcha",
    "rate_limited",
    "timeout",
    "no_answer",
    "content_blocked",
    "platform_error",
    "network_error",
    "other"
  ]
}

failure.reason_detail

string;可选,平台提示或异常摘要,不包含凭据

可选或条件必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

failure.last_attempt_at_utc

string 或 null;最后尝试结束时间;历史缺失时 null 加原因

必填 · string | null
机器规则
{
  "anyOf": [
    {
      "type": "string",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$"
    },
    {
      "type": "null"
    }
  ]
}

failure.recovered_sample_id

string;recovered 时必填,指向同一计划的最终 accepted 样本

可选或条件必填 · string · minLength: 1
机器规则
{
  "type": "string",
  "minLength": 1
}

failure.attempt_records

array;逐次尝试,按 attempt_index 排列

必填 · array · minItems: 0 · items → attempt
机器规则
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/attempt"
  },
  "minItems": 0
}

failure.unavailable_reasons

object;配置中存在 null 时使用,相对 collection_run 的 JSON Pointer → 原因

可选或条件必填 · unavailable_reasons
机器规则
{
  "$ref": "#/$defs/unavailable_reasons"
}
对象条件、必填项及额外字段规则
{
  "required": [
    "failure_id",
    "plan_id",
    "prompt_id",
    "platform",
    "sample_index",
    "attempts",
    "final_status",
    "reason_code",
    "last_attempt_at_utc",
    "attempt_records"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "final_status": {
            "enum": [
              "recovered"
            ]
          }
        },
        "required": [
          "final_status"
        ]
      },
      "then": {
        "required": [
          "recovered_sample_id"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "final_status": {
            "enum": [
              "failed",
              "excluded"
            ]
          }
        },
        "required": [
          "final_status"
        ]
      },
      "then": {
        "not": {
          "required": [
            "recovered_sample_id"
          ]
        }
      }
    }
  ]
}