{
  "id": "expr-reserved-word-is-lexed-greedily",
  "title": "A name beginning with a reserved word is one identifier, not two tokens",
  "covers": [
    "OAR-EXPR-24"
  ],
  "rules": [
    {
      "oar": "1.0",
      "namespace": "oar.test",
      "kind": "policy",
      "anchor": "tool.pre_invoke",
      "id": "S",
      "effect": "warn",
      "requires": {
        "facts": [
          "oar.testhost.instances",
          "oar.testhost.international"
        ]
      },
      "when": "oar.testhost.instances > 0 && oar.testhost.international"
    }
  ],
  "input": {
    "capability": {
      "oar_capability_version": "1.0",
      "host": "oar.testhost",
      "anchors": {
        "core": {
          "tool.pre_invoke": "tool.pre_invoke",
          "tool.handler": "tool.handler",
          "tool.post_invoke": "tool.post_invoke",
          "agent.post_turn": "agent.post_turn",
          "agent.finalize": "agent.finalize",
          "model.input": "model.input",
          "model.output": "model.output",
          "model.tool_result": "model.tool_result"
        },
        "unsupported": []
      },
      "profiles": [],
      "activity_window": 0,
      "detectors": [],
      "expression_nodes_max": 1024,
      "supports_transform": false,
      "host_facts": [
        {
          "name": "oar.testhost.instances",
          "type": "int"
        },
        {
          "name": "oar.testhost.international",
          "type": "bool"
        }
      ]
    },
    "anchor": "tool.pre_invoke",
    "facts": {
      "oar.testhost.instances": 2,
      "oar.testhost.international": true
    }
  },
  "expected": {
    "decision": "warn",
    "code": "S"
  }
}
