{
  "version": "0.1.0",
  "updatedAt": "2026-06-19",
  "rules": [
    {
      "id": "resolver.ops_to_engine.workflow_context",
      "relationId": "ontology.resolves_ops_card_to_engine_context",
      "fromSurface": "ops",
      "inputEntityIds": ["ops.card", "ops.project"],
      "intentHints": ["engine", "workflow", "l1", "l2", "inspect", "switch", "runtime", "докодим", "воркфлоу"],
      "outputSurface": "engine",
      "outputEntityIds": ["engine.workflow_l1", "engine.node_l1", "engine.workflow_l2", "engine.workflow_l2_runtime_id"],
      "requiredBindings": [
        "ops.card -> ops.external_ref -> engine.workflow_l1|engine.workflow_l2",
        "ops.project -> hub.application|engine.workflow_l1 context"
      ],
      "status": "product-required",
      "summary": "Route an OPS card/project request into Engine workflow context."
    },
    {
      "id": "resolver.engine_to_ops.card_context",
      "relationId": "ontology.resolves_engine_context_to_ops_project",
      "fromSurface": "engine",
      "inputEntityIds": ["engine.workflow_l1", "engine.node_l1", "engine.workflow_l2", "engine.l2_runtime_event"],
      "intentHints": ["ops", "card", "task", "issue", "project", "report", "создай", "карточ", "задач"],
      "outputSurface": "ops",
      "outputEntityIds": ["ops.workspace", "ops.project", "ops.card", "ops.card_type"],
      "requiredBindings": [
        "engine.workflow_l1 -> ops.project",
        "engine.workflow_l1|engine.node_l1 -> ops.card external_ref"
      ],
      "status": "product-required",
      "summary": "Route an Engine workflow/node request into OPS project/card context."
    },
    {
      "id": "resolver.gateway_preflight.context_grant",
      "relationId": "ontology.selects_gateway_grant_context",
      "fromSurface": "assistant",
      "inputEntityIds": ["assistant.bridge", "assistant.executor"],
      "intentHints": ["mcp", "gateway", "grant", "tool", "token"],
      "outputSurface": "agent",
      "outputEntityIds": ["agent.grant", "agent.scope", "agent.mcp_tool", "agent.idempotency_key"],
      "requiredBindings": [
        "assistant.bridge -> target surface context",
        "target context -> agent.grant"
      ],
      "status": "product-required",
      "summary": "Suggest Gateway grant/tool context before MCP calls; Gateway remains enforcement authority."
    }
  ]
}
