Lynxari
v1.0.0
数据探索/动作详情

触发 ETL 已上线

当 AI 判断数据时效不足时,可触发指定 ETL 任务重跑,保障指标查询结果新鲜。

参数表单(试运行)

该动作确认策略:二次确认:展示任务影响范围(下游表数 / 预计时长)后执行

策略

MCP 工具platform-server / trigger_etl_job
权限点etl:job:execute
确认策略二次确认:展示任务影响范围(下游表数 / 预计时长)后执行
回滚策略任务级回滚:kill 运行实例 + 恢复上一次成功分区快照

Action 定义契约(JSON Schema)

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "ActionDefinition",
  "type": "object",
  "required": ["trigger", "params", "confirm", "rollback", "permission", "audit"],
  "properties": {
    "trigger": {
      "type": "object",
      "description": "触发方式:AI 主动建议 or 用户指令",
      "properties": {
        "type": { "enum": ["ai_suggest", "user_command"] },
        "intents": { "type": "array", "items": { "type": "string" } }
      }
    },
    "params": {
      "type": "object",
      "description": "动作入参 schema,由 MCP 工具契约复用",
      "additionalProperties": true
    },
    "confirm": {
      "type": "object",
      "description": "确认策略:高危动作必须人工确认",
      "properties": {
        "level": { "enum": ["none", "confirm", "strict"] },
        "preview_fields": { "type": "array", "items": { "type": "string" } }
      }
    },
    "rollback": {
      "type": "object",
      "description": "回滚策略:每个动作必须声明可逆方案",
      "properties": {
        "supported": { "type": "boolean" },
        "tool": { "type": "string", "description": "回滚调用的 MCP 工具" },
        "window_seconds": { "type": "integer" }
      }
    },
    "permission": {
      "type": "string",
      "description": "权限点,如 etl:job:execute"
    },
    "audit": {
      "type": "object",
      "description": "审计配置:100% 留痕",
      "properties": {
        "log_level": { "enum": ["standard", "full"] },
        "retention_days": { "type": "integer", "minimum": 180 }
      }
    }
  }
}