引擎注册表
引擎与工作流解耦:stub → 正式实现的换绑只发生在这里(registry.py), input/output schema 即插槽契约。
挂牌/磋商前六维确定性核验:上传机构真实性、资料齐备、地理安全、财务模型健康、买家联络有效、担保承诺金;每维三态结论。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"uploader": {
"type": [
"object",
"null"
]
},
"materials": {
"type": [
"object",
"null"
]
},
"hazard": {
"type": [
"object",
"null"
]
},
"finance": {
"type": [
"object",
"null"
]
},
"buyer": {
"type": [
"object",
"null"
]
}
}
},
"outputs": {
"type": "object",
"properties": {
"dimensions": {
"type": "array"
},
"overall": {
"type": "object"
}
}
}
}把尽调启动、建设里程碑、期间月结、优化奖励核验和资产成交事件,按 service.commitment 的六类收费方案展开为确定性账单草稿;固定额与区间额分列,缺基数行内标注,未识别事件原样返回。不接支付,不产生任何资金动作。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"project_name": {
"type": "string",
"description": "展示用"
},
"power_mw": {
"type": [
"number",
"null"
],
"description": "订阅费计费基数"
},
"capacity_mwh": {
"type": [
"number",
"null"
],
"description": "年度资产管理费计费基数"
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"event_type": {
"type": "string"
},
"at": {
"type": "string"
},
"amount_jpy": {
"type": [
"number",
"null"
]
},
"note": {
"type": "string"
}
},
"required": [
"event_type",
"at"
]
}
},
"as_of": {
"type": "string",
"description": "计量截止日 YYYY-MM-DD,仅用于账单头部展示"
}
},
"required": [
"project_id",
"events"
]
},
"outputs": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"project_name": {
"type": "string"
},
"as_of": {
"type": "string"
},
"line_items": {
"type": "array"
},
"totals": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"enum": [
"JPY"
]
},
"draft_fixed_total": {
"type": "integer"
},
"draft_range_low": {
"type": "integer"
},
"draft_range_high": {
"type": "integer"
},
"line_count": {
"type": "integer"
}
},
"required": [
"currency",
"draft_fixed_total",
"draft_range_low",
"draft_range_high",
"line_count"
]
},
"unmatched_events": {
"type": "array"
},
"metering_points": {
"type": "array"
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"project_id",
"line_items",
"totals",
"unmatched_events",
"metering_points",
"notes"
]
}
}日本电力交易数据获取:JEPX 现货/日内(区域价格·成交量·入札)、需給調整力 7 商品、電源種別別落札(蓄電池/VPP)、競争係数·落札率、OCCTO 机组别发电、連系線,及气象补充数据(气温/辐射/风/降水,47 站→9 电力区域)。DuckDB 只读,无网络依赖。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"board": {
"type": "string",
"enum": [
"jepx",
"adjust",
"genmix",
"derived",
"weather",
"unit_gen",
"tieline"
],
"default": "jepx"
},
"market": {
"type": "string",
"default": "DAM"
},
"areas": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"東京",
"関西"
]
},
"products": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"metrics": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"fields": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"fuels": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"variables": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"date_from": {
"type": "string",
"default": ""
},
"date_to": {
"type": "string",
"default": ""
},
"granularity": {
"type": "string",
"enum": [
"block",
"hour",
"day"
],
"default": "day"
}
}
},
"outputs": {
"type": "object",
"properties": {
"board": {
"type": "string"
},
"coverage": {
"type": "object"
},
"series": {
"type": "array"
},
"row_count": {
"type": "integer"
}
}
}
}为已运营或成熟资产生成再融资与退出打包视图:归因经营历史与月报交叉核对、收益法/成本法/市场法三口径估值、三时点退出回报、八项材料清单与买方摘要。缺输入一律行内标缺口;全部数字可回溯至输入信封或明确公式。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"project_name": {
"type": "string"
},
"stage": {
"type": "string"
},
"region": {
"type": "string"
},
"power_mw": {
"type": [
"number",
"null"
]
},
"capacity_mwh": {
"type": [
"number",
"null"
]
},
"cod_date": {
"type": [
"string",
"null"
],
"description": "COD 日期;缺失时回退 finance.inputs.p_start"
},
"finance": {
"type": "object",
"description": "seller_projects.finance_json 财务信封"
},
"monthly_reports": {
"type": "array",
"items": {
"type": "object"
},
"description": "monthly_report_runs 的 report/output 信封,按月份升序"
},
"attributions": {
"type": "array",
"items": {
"type": "object"
},
"description": "attribution_runs 的 output 信封,按月份升序"
},
"service_fee": {
"type": [
"object",
"null"
],
"description": "service.commitment 输出信封"
}
},
"required": [
"project_id"
]
},
"outputs": {
"type": "object",
"properties": {
"engine": {
"type": "string"
},
"project_id": {
"type": "string"
},
"project_name": {
"type": "string"
},
"operating_history": {
"type": "object"
},
"valuation": {
"type": "object"
},
"exit_paths": {
"type": "array"
},
"refi_checklist": {
"type": "array",
"minItems": 8,
"maxItems": 8
},
"buyer_pack": {
"type": "object"
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"engine",
"project_id",
"operating_history",
"valuation",
"exit_paths",
"refi_checklist",
"buyer_pack",
"notes"
]
}
}从候选储能系统确定性完成容量配置、加权比选、首选方案 BOM 与equipment/EPC 采购覆盖计划;缺输入行内标缺口,不编数、不触发计费。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"project_name": {
"type": "string"
},
"stage": {
"type": "string"
},
"region": {
"type": "string"
},
"power_mw": {
"type": [
"number",
"null"
]
},
"capacity_mwh": {
"type": [
"number",
"null"
]
},
"duration_h": {
"type": [
"number",
"null"
]
},
"finance_capex_jpy_mn": {
"type": [
"number",
"null"
]
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"model_id": {
"type": "string"
},
"maker": {
"type": "string"
},
"cell_type": {
"type": "string"
},
"container_mwh": {
"type": [
"number",
"null"
]
},
"rte_pct": {
"type": [
"number",
"null"
]
},
"cycles": {
"type": [
"integer",
"null"
]
},
"warranty_years": {
"type": [
"number",
"null"
]
},
"price_jpy_mn_per_mwh": {
"type": [
"number",
"null"
]
},
"delivery_months": {
"type": [
"number",
"null"
]
},
"certifications": {
"type": "array",
"items": {
"type": "string"
}
},
"pcs_included": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"model_id",
"maker",
"cell_type",
"container_mwh",
"rte_pct",
"cycles",
"warranty_years",
"price_jpy_mn_per_mwh",
"delivery_months",
"certifications",
"pcs_included"
]
}
},
"orders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"order_id": {
"type": "string"
},
"vendor_id": {
"type": "string"
},
"service_type": {
"type": "string"
},
"title": {
"type": "string"
},
"amount_jpy_mn": {
"type": [
"number",
"string",
"null"
]
},
"status": {
"type": "string"
},
"planned_nodes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"order_id",
"service_type",
"status"
]
}
}
},
"required": [
"project_id",
"candidates",
"orders"
]
},
"outputs": {
"type": "object",
"properties": {
"engine": {
"type": "string"
},
"project_id": {
"type": "string"
},
"project_name": {
"type": "string"
},
"stage": {
"type": [
"string",
"null"
]
},
"region": {
"type": [
"string",
"null"
]
},
"power_mw": {
"type": [
"number",
"null"
]
},
"capacity_mwh": {
"type": [
"number",
"null"
]
},
"duration_h": {
"type": [
"number",
"null"
]
},
"sizing": {
"type": "array"
},
"comparison": {
"type": "array"
},
"bom": {
"type": "object"
},
"procurement_plan": {
"type": "object"
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"engine",
"project_id",
"project_name",
"sizing",
"comparison",
"bom",
"procurement_plan",
"notes"
]
}
}平台角色边界、双向收费披露、信息隔离与留痕承诺的确定性披露文本。披露页唯一数源,版本号即披露变更审计记录。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {}
},
"outputs": {
"type": "object",
"properties": {
"engine": {
"type": "string"
},
"effective_date": {
"type": "string"
},
"roles": {
"type": "array"
},
"conflicts": {
"type": "array"
},
"firewalls": {
"type": "array"
},
"commitments": {
"type": "array"
},
"channels": {
"type": "array"
}
}
}
}从已切分的项目资料文本段中提取带逐字出处的字段信封,输出清单举证、既有值冲突、字段缺口与待人工复核队列;mock 规则通道与 openai_compatible 通道按环境变量换绑。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"stage": {
"type": "string",
"enum": [
"路条",
"预批复",
"正式批复"
]
},
"existing_fields": {
"type": "object"
},
"target_fields": {
"type": "array",
"items": {
"type": "string"
}
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"doc_id": {
"type": "string"
},
"checklist_key": {
"type": [
"string",
"null"
]
},
"file_name": {
"type": "string"
},
"mime": {
"type": "string"
},
"segments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"seg_id": {
"type": "string"
},
"page": {
"type": [
"integer",
"string",
"null"
]
},
"text": {
"type": "string"
}
},
"required": [
"seg_id",
"text"
]
}
}
},
"required": [
"doc_id",
"file_name",
"segments"
]
}
}
},
"required": [
"project_id",
"stage",
"documents"
]
},
"outputs": {
"type": "object",
"properties": {
"extracted_fields": {
"type": "array"
},
"checklist_evidence": {
"type": "object"
},
"conflicts": {
"type": "array"
},
"gaps": {
"type": "array"
},
"review_manifest": {
"type": "object"
},
"notes": {
"type": "array"
}
},
"required": [
"extracted_fields",
"checklist_evidence",
"conflicts",
"gaps",
"review_manifest",
"notes"
]
}
}封装 Codex 财务模型引擎 V1(Excel 内核基线 5002,14 表全量重算):输出项目 IRR / Net IRR / 买方 IRR / 投资概算与收益三分解年表;npv/回收期/DSCR 内核原表不直接输出,如实置空披露,不编数。批次 C1 换绑,替换合成数字 stub。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"revenue_decomposition": {
"type": "object"
},
"scenario_overrides": {
"type": "object",
"default": {}
},
"capacity_mw": {
"type": "number"
},
"capacity_mwh": {
"type": "number"
},
"region": {
"type": "string"
},
"c_kw": {
"type": "number",
"title": "契约电力 kW"
},
"c_pcskw": {
"type": "number",
"title": "PCS 出力 kW"
},
"c_kwh": {
"type": "number",
"title": "蓄电池容量 kWh"
},
"c_area": {
"type": "string",
"title": "地区电网(日文)"
}
},
"required": [
"project_id"
]
},
"outputs": {
"type": "object",
"properties": {
"irr_project": {
"type": "number"
},
"irr_equity": {
"type": "number"
},
"npv_jpy": {
"type": [
"number",
"null"
]
},
"payback_years": {
"type": [
"number",
"null"
]
},
"dscr_min": {
"type": [
"number",
"null"
]
},
"annual_revenue_jpy": {
"type": [
"number",
"null"
]
},
"kpis": {
"type": "object"
},
"model": {
"type": "object"
}
}
}
}基线工作簿 5002:Parameters→14 表全量重算,输出投资概算/项目 IRR/Net IRR/买方 IRR(JPY/RMB/USD)。引擎为独立子进程服务。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"c_kw": {
"type": "number",
"title": "契约电力 kW"
},
"c_pcskw": {
"type": "number",
"title": "PCS 出力 kW"
},
"c_kwh": {
"type": "number",
"title": "蓄电池容量 kWh"
},
"c_area": {
"type": "string",
"title": "地区电网(日文)"
}
}
},
"outputs": {
"type": "object",
"properties": {
"kpis": {
"type": "object"
},
"model": {
"type": "object"
},
"ms": {
"type": "number"
},
"workbook": {
"type": "string"
}
}
}
}围绕 finance.excel_model 内核按 PCS 出力 ±band(缺省 10%)做悲观/中性/乐观三档真实重算,输出各档 IRR/KPI 矩阵,全部留痕,可审计复现。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"c_kw": {
"type": "number",
"title": "契约电力 kW"
},
"c_pcskw": {
"type": "number",
"title": "PCS 出力 kW(情景基准)"
},
"c_kwh": {
"type": "number",
"title": "蓄电池容量 kWh"
},
"c_area": {
"type": "string",
"title": "地区电网(日文)"
},
"band": {
"type": "number",
"title": "出力波动带(缺省 0.10)"
}
},
"required": [
"c_kw",
"c_pcskw",
"c_kwh",
"c_area"
]
},
"outputs": {
"type": "object",
"properties": {
"matrix": {
"type": "object"
},
"band": {
"type": "number"
},
"kernel": {
"type": "string"
},
"ms": {
"type": "number"
}
}
}
}JEPX DAM 区域现货价格 30 分钟 block 的 p10/p50/p90 预测。LightGBM 分位数模型与确定性经验分位基线双分支,公开 MAPE 阈值、最近 90 天真实回测与最差时段;历史不足的 block 返回 null 并披露 gaps。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"area": {
"type": "string",
"description": "现货区域,如 中部、北陸、関西;兼容 中部60Hz"
},
"start_date": {
"type": "string",
"format": "date",
"description": "预测目标起始日 YYYY-MM-DD"
},
"days": {
"type": "integer",
"minimum": 1,
"default": 1
},
"blocks": {
"type": "integer",
"minimum": 1,
"maximum": 48,
"default": 48
},
"db_path": {
"type": "string",
"description": "可选 DuckDB 路径;缺省 JP_DASH_DB,再缺省 JP 看板数据仓库"
}
},
"required": [
"area",
"start_date"
]
},
"outputs": {
"type": "object",
"properties": {
"forecast": {
"type": "array",
"description": "days×blocks 的 [p10,p50,p90],单位 円/kWh"
},
"forecast_path": {
"type": "string"
},
"quantiles": {
"type": "array"
},
"unit": {
"type": "string"
},
"mape_backtest": {
"type": [
"number",
"null"
],
"description": "真实回测 MAPE,百分比数值"
},
"mape_threshold": {
"type": "number"
},
"mape_pass": {
"type": "boolean"
},
"mape_unit": {
"type": "string"
},
"backtest_report": {
"type": "object"
},
"method": {
"type": "object"
},
"model_version": {
"type": "string"
},
"gaps": {
"type": "array"
}
},
"required": [
"forecast",
"forecast_path",
"mape_backtest",
"mape_threshold",
"mape_pass",
"backtest_report",
"method",
"model_version",
"gaps"
]
}
}按 CheckList_核对结果_20260720_V4 三档规则核验项目资料齐备率:读平台库 seller_projects 阶段 + project_materials已上传项(只读),缺失项即阻断缺口;种子项目无台账如实判缺失,不编数。批次 C5 换绑,替换哈希合成 stub。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"category": {
"type": "string",
"enum": [
"全部",
"用地",
"电力",
"其他"
]
}
},
"required": [
"project_id"
]
},
"outputs": {
"type": "object",
"properties": {
"verified_ratio": {
"type": "number"
},
"blocking_gaps": {
"type": "array"
},
"status_map": {
"type": "object"
}
}
}
}按清单齐备率与阻断缺口给出 admitted/conditional/rejected 建议,并输出依据、反事实重算、可执行复核条件、有效期与历史状态延续;AI 建议、人担责,所有结论可由相同 inputs 完整复算。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"verified_ratio": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"blocking_gaps": {
"type": "array"
},
"checklist": {
"type": "object"
},
"project_id": {
"type": "string"
},
"dimension": {
"type": "string"
},
"prior_decisions": {
"type": "array"
}
},
"required": [
"verified_ratio",
"blocking_gaps"
]
},
"outputs": {
"type": "object",
"properties": {
"decision": {
"type": "string",
"enum": [
"admitted",
"conditional",
"rejected"
]
},
"requires_human_review": {
"type": "boolean",
"const": true
},
"decision_card": {
"type": "object",
"properties": {
"basis": {
"type": "object"
},
"counterfactual": {
"type": "object"
},
"review_conditions": {
"type": "object"
},
"validity": {
"type": "object"
},
"continuity": {
"type": "object"
}
},
"required": [
"basis",
"counterfactual",
"review_conditions",
"validity",
"continuity"
]
},
"notes": {
"type": "array"
}
},
"required": [
"decision",
"requires_human_review",
"decision_card",
"notes"
]
}
}将 geo 网关取得的官方灾害图层观测(洪水/津波/高潮/土石流/急傾斜地/地すべり/雪崩 + 标高/起伏/海岸线距离)汇总为项目级风险摘要。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"lat": {
"type": "number"
},
"lon": {
"type": "number"
},
"elevation_m": {
"type": "number"
},
"terrain": {
"type": "string"
},
"coast_distance_km": {
"type": [
"number",
"null"
]
},
"layers": {
"type": "object"
}
},
"required": [
"address",
"lat",
"lon"
]
},
"outputs": {
"type": "object",
"properties": {
"summary_grade": {
"type": "string"
},
"checks": {
"type": "object"
},
"notes": {
"type": "array"
}
}
}
}按 20 尺 5MWh 液冷舱 + 规划间距,由用地面积估算可布置单元数、装机 MW/MWh 与占地校验;估算值可人工修正(引擎不裁决)。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"land_area_m2": {
"type": "number"
},
"target_capacity_mwh": {
"type": [
"number",
"null"
]
}
},
"required": [
"land_area_m2"
]
},
"outputs": {
"type": "object",
"properties": {
"modules": {
"type": "integer"
},
"capacity_mwh": {
"type": "number"
},
"power_mw": {
"type": "number"
},
"usable_area_m2": {
"type": "number"
},
"area_per_module_m2": {
"type": "number"
},
"fits_target": {
"type": [
"boolean",
"null"
]
},
"assumptions": {
"type": "object"
}
}
}
}对照投资人画像(目标 IRR/资金规模/区域电网/阶段/风险档/装机规模)对项目池逐项规则评分,输出匹配清单 + 每条命中/失配理由;数据不足如实标注,不编数。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"investor": {
"type": "object",
"properties": {
"target_irr": {
"type": [
"number",
"null"
]
},
"budget_jpy": {
"type": [
"number",
"null"
]
},
"regions": {
"type": "array",
"items": {
"type": "string"
}
},
"stages": {
"type": "array",
"items": {
"type": "string"
}
},
"risk_appetite": {
"type": "string",
"enum": [
"low",
"medium",
"high",
""
]
},
"capacity_mwh_min": {
"type": [
"number",
"null"
]
},
"capacity_mwh_max": {
"type": [
"number",
"null"
]
}
}
},
"projects": {
"type": "array",
"items": {
"type": "object"
}
},
"limit": {
"type": "integer"
}
},
"required": [
"investor",
"projects"
]
},
"outputs": {
"type": "object",
"properties": {
"matches": {
"type": "array"
},
"scored": {
"type": "integer"
},
"pool_size": {
"type": "integer"
}
}
}
}建立设备、EPC、运维、交易服务四类服务商的交付网络:服务商档案、项目需求匹配与订单协同台账;评分和金额可追溯,缺输入行内标缺口,不编数、不触发计费。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"project_name": {
"type": "string"
},
"stage": {
"type": "string"
},
"region": {
"type": "string"
},
"power_mw": {
"type": [
"number",
"null"
]
},
"capacity_mwh": {
"type": [
"number",
"null"
]
},
"requirements": {
"type": "object",
"properties": {
"epc": {
"type": "boolean"
},
"equipment": {
"type": "boolean"
},
"o&m": {
"type": "boolean"
},
"trading": {
"type": "boolean"
},
"preferred_region": {
"type": "string"
},
"budget_hint_jpy_mn": {
"type": [
"number",
"null"
]
}
}
},
"vendors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"vendor_id": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"epc",
"equipment",
"o&m",
"trading"
]
},
"regions": {
"type": "array",
"items": {
"type": "string"
}
},
"capacity_mw_max": {
"type": [
"number",
"null"
]
},
"credentials": {
"type": "array",
"items": {
"type": "string"
}
},
"rate_range_jpy_mn": {
"type": "object",
"properties": {
"low": {
"type": [
"number",
"null"
]
},
"high": {
"type": [
"number",
"null"
]
}
}
},
"track_record": {
"type": "object",
"properties": {
"projects_done": {
"type": [
"integer",
"null"
]
},
"mw_delivered": {
"type": [
"number",
"null"
]
}
}
},
"status": {
"type": "string",
"enum": [
"active",
"pending"
]
}
},
"required": [
"vendor_id",
"type",
"status"
]
}
},
"orders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"order_id": {
"type": "string"
},
"vendor_id": {
"type": "string"
},
"service_type": {
"type": "string",
"enum": [
"epc",
"equipment",
"o&m",
"trading"
]
},
"amount_jpy_mn": {
"type": [
"number",
"string",
"null"
]
},
"status": {
"type": "string",
"enum": [
"inquiry",
"quoted",
"signed",
"executing",
"accepted"
]
},
"planned_nodes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"order_id",
"vendor_id",
"service_type",
"status"
]
}
}
},
"required": [
"project_id",
"requirements",
"vendors",
"orders"
]
},
"outputs": {
"type": "object",
"properties": {
"engine": {
"type": "string"
},
"project_id": {
"type": "string"
},
"project_name": {
"type": "string"
},
"vendor_directory": {
"type": "array"
},
"match_result": {
"type": "array"
},
"order_book": {
"type": "object"
},
"billing_hooks": {
"type": "array"
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"engine",
"project_id",
"project_name",
"vendor_directory",
"match_result",
"order_book",
"billing_hooks",
"notes"
]
}
}按 JEPX 现货套利、需給調整力、容量市场、其他四类收入桶生成确定性归因;未投运采用模型年表÷12的 sample 口径,投运后采用实测结算 metered 口径,并逐桶对照预算输出规则化差异解读。缺数据行内标注,不补零、不编数。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"month": {
"type": "string",
"description": "YYYY-MM"
},
"period": {
"type": "string",
"description": "兼容既有工作流的 month 别名(YYYY-MM)"
},
"annual_revenue": {
"type": "object",
"properties": {
"jepx": {
"type": [
"number",
"null"
]
},
"balancing": {
"type": [
"number",
"null"
]
},
"capacity": {
"type": [
"number",
"null"
]
}
},
"description": "财务信封 model.revenue 的达产年金额,JPY mn"
},
"capacity_mwh": {
"type": [
"number",
"null"
]
},
"capacity_mw": {
"type": [
"number",
"null"
]
},
"market": {
"type": "object",
"properties": {
"spot_avg": {
"type": [
"number",
"null"
]
},
"spot_high": {
"type": [
"number",
"null"
]
},
"spot_low": {
"type": [
"number",
"null"
]
},
"adjust_avg": {
"type": [
"number",
"null"
]
},
"temp_avg_c": {
"type": [
"number",
"null"
]
},
"spot_avg_yen_per_kwh": {
"type": [
"number",
"null"
]
},
"spot_high_yen_per_kwh": {
"type": [
"number",
"null"
]
},
"spot_low_yen_per_kwh": {
"type": [
"number",
"null"
]
},
"adjust_avg_yen_per_kwh": {
"type": [
"number",
"null"
]
},
"sources": {
"type": "object",
"description": "市场字段的数据源与样本量说明"
}
},
"description": "JP 市场实况;yen/kWh,气温 ℃"
},
"metered_month": {
"type": [
"object",
"null"
],
"properties": {
"jepx": {
"type": [
"number",
"null"
]
},
"balancing": {
"type": [
"number",
"null"
]
},
"capacity": {
"type": [
"number",
"null"
]
},
"other": {
"type": [
"number",
"null"
]
}
},
"description": "实测月结算收入,JPY mn;null 表示尚未投运"
},
"reference_year": {
"type": [
"integer",
"null"
]
},
"discharge_efficiency": {
"type": [
"number",
"null"
]
},
"kpis": {
"type": "object",
"properties": {
"discharge_efficiency": {
"type": [
"number",
"null"
]
}
}
}
},
"required": [
"project_id"
],
"anyOf": [
{
"required": [
"month"
]
},
{
"required": [
"period"
]
}
]
},
"outputs": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"month": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"sample",
"metered"
]
},
"total_revenue_jpy_mn": {
"type": [
"number",
"null"
]
},
"buckets": {
"type": "array"
},
"variance": {
"type": "object"
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
},
"shares": {
"type": "object"
},
"share_sum_check": {
"type": [
"number",
"null"
]
},
"deviation_total_jpy": {
"type": [
"integer",
"null"
]
},
"data_gaps": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"project_id",
"month",
"mode",
"buckets",
"variance",
"notes"
]
}
}校验结算单/电表读数月度行并归一化为 metered 四桶信封;重复月份跳过、error 行拒绝入库,覆盖度与下游 handoff 同口径。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"project_name": {
"type": "string"
},
"power_mw": {
"type": [
"number",
"null"
]
},
"capacity_mwh": {
"type": [
"number",
"null"
]
},
"raw_rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"month": {
"type": "string",
"description": "YYYY-MM"
},
"revenue_jpy_mn": {
"type": "number"
},
"buckets": {
"type": "object",
"properties": {
"jepx": {
"type": [
"number",
"null"
]
},
"balancing": {
"type": [
"number",
"null"
]
},
"capacity": {
"type": [
"number",
"null"
]
},
"other": {
"type": [
"number",
"null"
]
}
}
},
"metered_kwh": {
"type": [
"number",
"null"
]
},
"availability_pct": {
"type": [
"number",
"null"
]
},
"source_file": {
"type": "string"
}
},
"required": [
"month",
"revenue_jpy_mn"
]
}
},
"existing_months": {
"type": "array",
"items": {
"type": "string"
},
"description": "已入库月份 YYYY-MM,用于防重复导入"
}
},
"required": [
"project_id",
"raw_rows"
]
},
"outputs": {
"type": "object",
"properties": {
"validation": {
"type": "array",
"items": {
"type": "object",
"properties": {
"month": {},
"status": {
"type": "string",
"enum": [
"ok",
"warn",
"error"
]
},
"checks": {
"type": "array"
}
},
"required": [
"month",
"status",
"checks"
]
}
},
"normalized": {
"type": "array"
},
"coverage": {
"type": "object",
"properties": {
"metered_months": {
"type": "integer"
},
"first_month": {
"type": [
"string",
"null"
]
},
"last_month": {
"type": [
"string",
"null"
]
},
"newly_added": {
"type": "integer"
},
"skipped_duplicates": {
"type": "integer"
},
"rejected_errors": {
"type": "integer"
}
},
"required": [
"metered_months",
"first_month",
"last_month",
"newly_added",
"skipped_duplicates",
"rejected_errors"
]
},
"handoff": {
"type": "object"
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"validation",
"normalized",
"coverage",
"handoff",
"notes"
]
}
}48 block 单日电价套利优化。具备 Pyomo+HiGHS 时走 MILP;否则走确定性阈值配对启发式并明确标注。SOC、功率、容量、充放互斥与退化成本入内核,支持真实 DAM 最近 30 天回放互校。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"forecast_path": {
"type": "string",
"description": "forecast.price 产物标识;与 forecast 二选一"
},
"project_id": {
"type": "string"
},
"plant": {
"type": "object",
"properties": {
"power_mw": {
"type": "number"
},
"capacity_mwh": {
"type": "number"
},
"rte": {
"type": "number"
},
"eff_c": {
"type": "number"
},
"eff_d": {
"type": "number"
},
"degradation_jpy_per_mwh_cycle": {
"type": "number"
}
}
},
"forecast": {
"type": "array",
"description": "48×[p10,p50,p90] 或 48×p50,单位 円/kWh",
"minItems": 48,
"maxItems": 48
},
"degradation_jpy_per_mwh_cycle": {
"type": "number",
"default": 3
}
},
"required": [
"project_id"
],
"anyOf": [
{
"required": [
"forecast_path"
]
},
{
"required": [
"forecast"
]
}
]
},
"outputs": {
"type": "object",
"properties": {
"engine": {
"type": "string"
},
"method": {
"type": "string"
},
"schedule": {
"type": "array",
"minItems": 48,
"maxItems": 48
},
"revenue_decomposition": {
"type": "object"
},
"schedule_path": {
"type": "string"
},
"backtest": {
"type": [
"object",
"null"
]
},
"cross_check": {
"type": "object"
},
"assumptions": {
"type": "object"
}
},
"required": [
"engine",
"method",
"schedule",
"revenue_decomposition",
"schedule_path",
"backtest",
"cross_check",
"assumptions"
]
}
}在线支付适配层:内置沙箱网关(mock)与 Stripe 收单适配。create_session/verify_callback 双操作;验签纯确定性。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"op": {
"type": "string",
"enum": [
"create_session",
"verify_callback"
]
},
"order_id": {
"type": "string"
},
"amount_jpy": {
"type": "number"
},
"provider": {
"type": "string"
},
"payload": {
"type": "string"
},
"signature": {
"type": "string"
}
},
"required": [
"op"
]
},
"outputs": {
"type": "object",
"properties": {
"engine": {
"type": "string"
},
"op": {
"type": "string"
}
}
}
}Codex 共建的 48 槽三腿投标决策核心(DAM 联合 LP → 調頻 Δ 闭式 → 時間前 LP),含 PnL 四项归因恒等式(上限−未投标−未中标−报价折价)。与 V1 在 11 个受渡日对拍全部一致。plan 模式出单受渡日方案;backtest 模式逐日重放输出日净收益曲线。所有数字出自内核,确定性可复现。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"plan",
"backtest"
],
"default": "plan"
},
"delivery_date": {
"type": "string",
"description": "受渡日 YYYY-MM-DD(plan)"
},
"start": {
"type": "string",
"description": "回测起日(backtest,可省)"
},
"end": {
"type": "string",
"description": "回测止日(backtest,可省)"
},
"days": {
"type": "integer",
"default": 14,
"description": "backtest 回看天数(缺省 14,上限 60)"
},
"award": {
"type": "boolean",
"default": true,
"description": "回测是否用受渡日最高中标价判定中标(True=事后对拍口径)"
}
}
},
"outputs": {
"type": "object"
}
}六种收费模式的公布费率口径(与 service.commitment 同源)+ 计费规则与计量点说明。纯确定性,页面唯一数源。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {}
},
"outputs": {
"type": "object",
"properties": {
"engine": {
"type": "string"
},
"fees": {
"type": "array"
},
"billing_rules": {
"type": "array"
},
"notes": {
"type": "array"
}
}
}
}基于项目留痕快照生成尽调报告:资料齐备度/缺失清单、财务信封关键指标、三情景区间、风险与待核实事项。如实转述、不评分、不背书、不构成投资建议。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"title": {
"type": "string"
},
"stage": {
"type": "string"
},
"region": {
"type": "string"
},
"power_mw": {
"type": "number"
},
"capacity_mwh": {
"type": "number"
},
"land_area_m2": {
"type": "number"
},
"checklist": {
"type": "object"
},
"materials": {
"type": "array"
},
"finance": {
"type": "object"
},
"scenario": {
"type": "object"
},
"hazard": {
"type": "object"
},
"layout": {
"type": "object"
}
},
"required": [
"project_id"
]
},
"outputs": {
"type": "object",
"properties": {
"engine": {
"type": "string"
},
"sections": {
"type": "array"
},
"open_items": {
"type": "array"
},
"disclaimer": {
"type": "string"
}
}
}
}用财务模型年度收入分解、可选实测月结算与 JP 市场月度实况生成业主月报:sample 模式沿用预算均摊,metered 模式按四收入桶切实测并与预算逐桶对照;含达成率、市场实况与规则化差异解读,所有数字可复现且不混算口径。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"name": {
"type": "string"
},
"region": {
"type": "string"
},
"grid_area": {
"type": "string"
},
"stage": {
"type": "string"
},
"capacity_mw": {
"type": "number"
},
"capacity_mwh": {
"type": "number"
},
"month": {
"type": "string"
},
"annual_revenue": {
"type": "object",
"properties": {
"jepx": {
"type": [
"number",
"null"
]
},
"balancing": {
"type": [
"number",
"null"
]
},
"capacity": {
"type": [
"number",
"null"
]
}
}
},
"reference_year": {
"type": [
"integer",
"null"
]
},
"kpis": {
"type": "object"
},
"market": {
"type": "object"
},
"metered_month": {
"type": [
"object",
"null"
],
"properties": {
"month": {
"type": [
"string",
"null"
]
},
"revenue_jpy_mn": {
"type": [
"number",
"null"
]
},
"buckets": {
"type": "object",
"properties": {
"jepx": {
"type": [
"number",
"null"
]
},
"balancing": {
"type": [
"number",
"null"
]
},
"capacity": {
"type": [
"number",
"null"
]
},
"other": {
"type": [
"number",
"null"
]
}
}
},
"metered_kwh": {
"type": [
"number",
"null"
]
},
"availability_pct": {
"type": [
"number",
"null"
]
},
"source_file": {
"type": [
"string",
"null"
]
}
}
}
},
"required": [
"project_id",
"month"
]
},
"outputs": {
"type": "object",
"properties": {
"report_month": {
"type": "string"
},
"basis": {
"type": "object"
},
"kpis": {
"type": "object"
},
"revenue": {
"type": "array"
},
"market_context": {
"type": "array"
},
"deviations": {
"type": "array"
},
"notes": {
"type": "array"
}
}
}
}template+payload → 确定性 HTML 报告(stdlib 渲染,真实文件落盘 runs/reports/out/,返回真实路径与字节数);只排版不算数,缺节如实标注。批次 C7 换绑,替换编造路径 stub。PDF 化与推送留待批次 F。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"template": {
"type": "string",
"enum": [
"asset_card",
"investment",
"monthly",
"daily_plan"
]
},
"payload": {
"type": "object",
"description": "上游全部输出的汇总"
}
},
"required": [
"template",
"payload"
]
},
"outputs": {
"type": "object",
"properties": {
"report_path": {
"type": "string"
},
"format": {
"type": "string"
},
"bytes": {
"type": "number"
},
"title": {
"type": "string"
}
}
}
}围绕 finance.excel_model 内核做三情景真实重算(PCS 出力±band)+ 单因素敏感性(契约电力/蓄电池容量 ±10% 真实重算);价格类因子待 forecast.price 换绑后扩展,不臆造。批次 C2 换绑,替换合成矩阵 stub。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"base_kpis": {
"type": "object",
"description": "$finance 全量输出(读 engine_inputs)或直接容量/内核输入"
},
"band": {
"type": "number",
"default": 0.1
}
},
"required": [
"base_kpis"
]
},
"outputs": {
"type": "object",
"properties": {
"matrix": {
"type": "object"
},
"tornado": {
"type": "array"
},
"band": {
"type": "number"
}
}
}
}解析出让方项目管理计划表(Schedule 周列粒度):任务条 + 里程碑 + 付款节点(映射财务模型 BOM 科目),双口径如实披露。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"folder": {
"type": "string",
"title": "授权资料夹绝对路径",
"description": "出让方授权后平台可读取的资料目录"
},
"project_code": {
"type": "string",
"title": "项目编号(可选,用于解析匹配)"
}
},
"required": [
"folder"
]
},
"outputs": {
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"source": {
"type": "string"
},
"unit": {
"type": "string"
},
"project_code": {
"type": "string"
},
"total_funding_need": {
"type": [
"number",
"null"
]
},
"window": {
"type": "object"
},
"tasks": {
"type": "array"
},
"payments": {
"type": "array"
}
}
}
}按《产品定位》第 5/6 章生成挂牌项目标准披露:参与方服务责任矩阵(职责/交付物/验收口径/责任边界)+ 六类收费方案(费率示例口径,金额由项目参数计算)+ 披露与合规提示。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"stage": {
"type": "string",
"title": "项目阶段(路条/预批复/正式批复)"
},
"power_mw": {
"type": "number",
"title": "装机功率 MW"
},
"capacity_mwh": {
"type": "number",
"title": "装机容量 MWh"
},
"capex_jpy": {
"type": [
"number",
"null"
],
"title": "投资基数(用于按比例费项测算,可为空)"
},
"region": {
"type": "string"
},
"owner_name": {
"type": "string"
}
},
"required": [
"project_id",
"stage"
]
},
"outputs": {
"type": "object",
"properties": {
"generated_from": {
"type": "string"
},
"stage": {
"type": "string"
},
"responsibility_matrix": {
"type": "array"
},
"fee_schedule": {
"type": "array"
},
"disclosure": {
"type": "array"
},
"assumptions": {
"type": "object"
}
}
}
}日本电力市场投标策略模拟:三腿顺序投标方案(DAM→調頻→時間前,48 槽计划 + 调频腿满额/期望/事后收益三口径)按项目规格线性折算;Day Ahead 报价建议(中标率×竞争系数分档)、Intraday 价差建议、調頻商品主攻判定、结论先行 headline 按项目电力区域实算。复用 Codex 侧 state_machine 方案快照与策略统计,不重跑、无网络。
接口契约(JSON Schema)
{
"inputs": {
"type": "object",
"properties": {
"date": {
"type": "string",
"default": ""
},
"area": {
"type": "string",
"enum": [
"北海道",
"東北",
"東京",
"中部",
"北陸",
"関西",
"中国",
"四国",
"九州"
],
"default": "中部"
},
"p_mw": {
"type": "number",
"default": 24.4
},
"e_mwh": {
"type": "number",
"default": 48
},
"days": {
"type": "integer",
"default": 14
},
"slot_grain": {
"type": "integer",
"enum": [
8,
24,
48
],
"default": 8
},
"slot": {
"type": "integer",
"default": 2
}
}
},
"outputs": {
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"date": {
"type": "string"
},
"available_days": {
"type": "array"
},
"plant": {
"type": "object"
},
"plan": {
"type": [
"object",
"null"
]
},
"strategy": {
"type": "object"
},
"basis": {
"type": "array"
},
"ms": {
"type": "number"
}
}
}
}