新版只提供 fake 数据,但顶层字段不使用自创命名。backend/app/contracts.py 逐项镜像以下当前源码合同:
ScriptBuildInputSnapshotV1、MissionBinding、MissionOwnerToken、全部 Phase 1/2/3 Artifact、Publication、PublicationResult、HTTP command journal、旧 script_build_record。TaskView、TaskSpecView、OperationView、AttemptView、ValidationView、PlannerDecisionView。ScriptTaskKind。每个画布节点的 record.model_name 指向其中一个合同,record.payload 必须与合同完全同键。后端测试同时拒绝缺键和额外键。
以下字段在业务源码中本身就是开放的 dict[str, Any] / JSON,没有更窄的稳定 schema,因此 fake 数据只能保持顶层字段精确,不能声称其嵌套键是产品合同:
topic、account、persona_points、section_patterns、strategiesprompt_manifest、datasource_manifest、model_manifestquery、source_lineage、change_manifestpayload、ArtifactRef metadata、HTTP response_jsoncontent_range 与各类 *_elementscommonality_analysis、topic_support、weight_score、support_elements