{
  "schema_version": 1,
  "run_id": "aaltatan--pyruleset-claude-haiku-5-5-1795137818698830078",
  "date": "2026-11-20T01:25:24.309362+00:00",
  "repo": "aaltatan/pyruleset",
  "model": "claude-haiku-5-5",
  "kind": "repo",
  "mcp": "none",
  "commit": "c1171e32dfce0df78cf247ff307fb41fc38963b8",
  "outcome": "pass",
  "time_to_working_s": 63.09217029600404,
  "install_s": 31.227,
  "first_use_s": null,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Define conditional rulesets with when/otherwise and run the documented pricing example",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "Conditional values that compose with | and can be defined as JSON: the first branch whose condition matches decides.",
      "source": "Conditional values that compose with `|` and can be defined as JSON: the first branch whose\ncondition matches decides.",
      "input": "examples/pricing_policy.py",
      "expected": "gold order picks the gold 20% branch, value 96.0000",
      "command": "<guest-path> examples/pricing_policy.py",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: (gold 20%)",
      "evidence": "…(gold 20%)\nregular  12 items   142.5000  (bulk 5%)\nregular   1 items      60.00  (otherwise)\nrejected: Rule 'itemz__ge' does not exist. Available rules: tier__eq, items__ge ['at $.branches[1].when']\n",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "gold      2 items    96.0000  (gold 20%)\nregular  12 items   142.5000  (bulk 5%)\nregular   1 items      60.00  (otherwise)\nrejected: Rule 'itemz__ge' does not exist. Available rules: tier__eq, items__ge ['at $.branches[1].when']\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "Conditional values that compose with | and can be defined as JSON: the first branch whose condition matches decides.",
      "source": "README.md Examples: examples/pricing_policy.py",
      "input": "examples/pricing_policy.py",
      "command": "<guest-path> examples/pricing_policy.py",
      "evidence": "gold      2 items    96.0000  (gold 20%)\nregular  12 items   142.5000  (bulk 5%)\nregular   1 items      60.00  (otherwise)\nrejected: Rule 'itemz__ge' does not exist. Available rules: tier__eq, items__ge ['at $.branches[1].when']",
      "deferred": false,
      "expected": "JSON policy result with explain labels",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "gold      2 items    96.0000  (gold 20%)\nregular  12 items   142.5000  (bulk 5%)\nregular   1 items      60.00  (otherwise)\nrejected: Rule 'itemz__ge' does not exist. Available rules: tier__eq, items__ge ['at $.branches[1].when']\n",
      "stderr": "",
      "output_truncated": false,
      "verdict": "yes",
      "outcome": "command completed successfully"
    },
    {
      "kind": "example",
      "claim": "Conditional values that compose with | and can be defined as JSON: the first branch whose condition matches decides.",
      "source": "README.md Examples: examples/expense_approvals.py",
      "input": "examples/expense_approvals.py",
      "command": "<guest-path> examples/expense_approvals.py",
      "evidence": "Ruleset(large | travel | medium | otherwise)\nRuleset(CFO on leave | large | travel | medium | otherwise)\n  25000 equipment  -> CEO\n   1200 travel     -> travel desk\n    800 software   -> head of IT\n     40 office     -> auto-approved",
      "deferred": false,
      "expected": "approval routing with CFO override",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "Ruleset(large | travel | medium | otherwise)\nRuleset(CFO on leave | large | travel | medium | otherwise)\n  25000 equipment  -> CEO\n   1200 travel     -> travel desk\n    800 software   -> head of IT\n     40 office     -> auto-approved\n",
      "stderr": "",
      "output_truncated": false,
      "verdict": "yes",
      "outcome": "command completed successfully"
    },
    {
      "kind": "example",
      "claim": "Conditional values that compose with | and can be defined as JSON: the first branch whose condition matches decides.",
      "source": "README.md Examples: examples/ticket_routing.py",
      "input": "examples/ticket_routing.py",
      "command": "<guest-path> examples/ticket_routing.py",
      "evidence": "Outage in EU region    -> on-call    urgent [outage]\nNeed SSO help          -> enterprise normal [enterprise]\nWrong invoice amount   -> billing    normal [billing]\nHow do I export?       -> support    normal [otherwise]",
      "deferred": false,
      "expected": "ticket routing via pyflowstep flows",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "Outage in EU region    -> on-call    urgent [outage]\nNeed SSO help          -> enterprise normal [enterprise]\nWrong invoice amount   -> billing    normal [billing]\nHow do I export?       -> support    normal [otherwise]\n",
      "stderr": "",
      "output_truncated": false,
      "verdict": "yes",
      "outcome": "command completed successfully"
    }
  ],
  "cycle_checks": [
    {
      "kind": "cycle",
      "claim": "Scheduled or looping main behavior",
      "source": "repository entry points",
      "input": "source inspection",
      "expected": "identify the product trigger",
      "verdict": "yes",
      "outcome": "Inspected README and examples/: pyruleset is a library with no cron, loop, webhook, --once or --now entrypoint.",
      "evidence": "Inspected README and examples/: pyruleset is a library with no cron, loop, webhook, --once or --now entrypoint.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "c1171e32dfce0df78cf247ff307fb41fc38963b8",
    "ci_read_at": "2026-11-15T20:35:30Z",
    "ci_state": null,
    "commits_90d": 7,
    "last_commit_at": "2026-11-08T04:40:29Z",
    "last_release_at": null,
    "median_reply_hours": null,
    "merged_prs_90d": 0,
    "note": "actively maintained: last commit 0 days ago; 7 commits and 0 merged PRs in 90 days; 0 open issues, 0 open PRs; no releases",
    "open_issues": 0,
    "open_prs": 0,
    "reply_share": null,
    "reply_threads": 0,
    "verdict": "maintained"
  },
  "dependencies": [
    "python 3.12+",
    "pyvocabulary (from PyPI via pyproject)",
    "pyformula, pyspecification, pyflowstep, jsonschema (optional, needed by examples/README snippets)"
  ],
  "local_or_hosted": "local",
  "readme_deviations": [
    "README documents uv sync / uv run; uv was not used, a plain venv with pip was used instead"
  ],
  "safety": {
    "version": "z2x-1",
    "summary": "Nothing suspicious seen in this run.",
    "limitations": [
      "A short run cannot establish that code is safe.",
      "Connections show IP addresses; proxies can hide the final hostname.",
      "Tracing covers dispatched commands and their children, not the whole OS; guest root can interfere with tracing."
    ]
  },
  "observed": {
    "traced": true,
    "trace_truncated": false,
    "network_rule": true,
    "unsorted_contacts": false,
    "protocols_recorded": false,
    "lookups_recorded": true,
    "unsorted_blocked_ports": [],
    "contacts": [],
    "contacts_not_listed": 0,
    "lookups": [
      {
        "owner": "installer",
        "programs": [
          "git-remote-https"
        ],
        "names": [
          "github.com"
        ]
      },
      {
        "owner": "installer",
        "programs": [
          "pip",
          "python3"
        ],
        "names": [
          "files.pythonhosted.org",
          "pypi.org"
        ]
      }
    ],
    "credential_reads": [],
    "outside_writes": 0,
    "download_and_run_lines": 0,
    "malware_advisories": [],
    "vulnerabilities": [],
    "secrets": 0,
    "secrets_in_tests": 0,
    "download_lines_in_tests": 0,
    "dependency_versions": 20,
    "scanned": {
      "secrets": true,
      "dependencies": true,
      "source": true
    },
    "capped_kinds": [],
    "findings_capped": false,
    "malware_checked": true,
    "scan_skips": {},
    "compiled": {
      "counts": {},
      "paths": []
    },
    "installed": {
      "packages": 14,
      "malicious": []
    },
    "installed_inventory": true,
    "installed_partial": false
  },
  "platform": "linux",
  "test_version": "readme-5e13058bbfd6c1145b4cd29e0956ef26e5ba632f0d8c02c0154287d1c9855ebd",
  "touched": {
    "evidence_file": "touched.json.gz",
    "linked_files": [
      "agent-events.jsonl.gz",
      "command-output.jsonl.gz"
    ],
    "network": {
      "canary_checked": true,
      "canary_sent": false,
      "canary_sent_to": [],
      "hosts": [
        "files.pythonhosted.org",
        "github.com",
        "pypi.org"
      ],
      "package_registries": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "private_address_attempts": 0,
      "recorded": true,
      "repo_hosts": [],
      "unattributed": [],
      "hosts_withheld": 1
    },
    "secret_files": {
      "opened_by_agent": [],
      "opened_by_other": [],
      "opened_by_repo": [],
      "planted": [
        "~/.env",
        "~/.ssh/id_ed25519",
        "~/.aws/credentials",
        "~/.config/gh/hosts.yml"
      ],
      "recorded": true
    },
    "version": 1
  },
  "evidence_strength": "readme_checked"
}
