{
  "schema_version": 1,
  "run_id": "mimilabs--hccinfhir-gpt-6-luna-1795702891256970256",
  "date": "2026-11-26T14:32:43.323596+00:00",
  "repo": "mimilabs/hccinfhir",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "532724728bb04a3b0bc903a9b8b25dd934646200",
  "outcome": "pass",
  "time_to_working_s": 601.7974652820267,
  "install_s": 47.924,
  "first_use_s": 463.541,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Calculate a CMS-HCC V28 RAF score from ICD-10 diagnosis codes",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "Risk adjustment score calculation",
      "source": "A comprehensive Python library for calculating HCC (Hierarchical Condition Category) risk adjustment scores from healthcare claims data.",
      "input": [
        "E11.9",
        "I10",
        "N18.3"
      ],
      "expected": "risk_score 0.496; HCC 38",
      "command": "Python API hccinfhir.model_calculate.calculate_raf",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"RAFResult(risk_score=0.496, risk_score_demographics=0.33, risk_score_chronic_only=0.16599999999999998, risk_score_hcc=0.16599999999999998, risk_score_payment=0.496, hcc_list=['38'], hcc_details=[HCCDetail(hcc='38', label='Diabetes with Glycemic, Unspecified, or No Complications', is_chronic=True, coefficient=0.166)], cc_to_dx={'38': {'E119'}}, coefficients={'F65_69': 0.33, '38': 0.166, 'D1': 0.0}, interactions={'NMCAID_NORIGDIS_F65_69': 1.0, 'ND_PBD_NORIGDIS_F65_69': 1.0, 'D1': 1.0}, demographics=Demographics(age=67, sex='2', dual_elgbl_cd='NA', orec='0', crec='0', new_enrollee=False, snp=False, version='V2', low_income=False, graft_months=None, category='F65_69', non_aged=False, orig_disabled=False, disabled=False, esrd=False, lti=False, fbd=False, pbd=False), model_inputs=None, model_name='CMS-HCC Model V28', version='V2', diagnosis_codes=['E11.9', 'I10', 'N18.3'], service_level_data=None)\"",
      "evidence": "…\"RAFResult(risk_score=0.496, risk_score_demographics=0.33, risk_score_chronic_only=0.16599999999999998, risk_score_hcc=0.16599999999999998, risk_score_payment=0.496, hcc_list=['38'], hcc_details=[HCCDetail(hcc='38', label='Diabetes with Glycemic, Unspecified, or No Complications', is_chronic=True, coefficient=0.166)], cc_to_dx={'38': {'E119'}}, coefficients={'F65_69': 0.33, '38': 0.166, 'D1': 0.0}, interactions={'NMCAID_NORIGDIS_F65_69': 1.0, 'ND_PBD_NORIGDIS_F65_69': 1.0, 'D1': 1.0}, demographics=Demographics(age=67, sex='2', dual_elgbl_cd='NA', orec='0', crec='0', new_enrollee=False, snp=Fal",
      "cwd": "<guest-path>",
      "returncode": 0,
      "hardware_prerequisite": null,
      "stdout": "0.166, 'D1': 0.0}, interactions={'NMCAID_NORIGDIS_F65_69': 1.0, 'ND_PBD_NORIGDIS_F65_69': 1.0, 'D1': 1.0}, demographics=Demographics(age=67, sex='2', dual_elgbl_cd='NA', orec='0', crec='0', new_enrollee=False, snp=False, version='V2', low_income=False, graft_months=None, category='F65_69', non_aged=False, orig_disabled=False, disabled=False, esrd=False, lti=False, fbd=False, pbd=False), model_inputs=None, model_name='CMS-HCC Model V28', version='V2', diagnosis_codes=['E11.9', 'I10', 'N18.3'], service_level_data=None)\", \"source_file\": \"<guest-path>\"}\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Direct diagnosis code processing",
      "source": "**Multiple Input Formats**: FHIR EOB, X12 837, X12 834, direct diagnosis codes",
      "input": [
        "E11.9",
        "I10",
        "N18.3"
      ],
      "expected": "risk_score 0.496; HCC 38",
      "command": "Python API hccinfhir.model_calculate.calculate_raf",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"RAFResult(risk_score=0.496, risk_score_demographics=0.33, risk_score_chronic_only=0.16599999999999998, risk_score_hcc=0.16599999999999998, risk_score_payment=0.496, hcc_list=['38'], hcc_details=[HCCDetail(hcc='38', label='Diabetes with Glycemic, Unspecified, or No Complications', is_chronic=True, coefficient=0.166)], cc_to_dx={'38': {'E119'}}, coefficients={'F65_69': 0.33, '38': 0.166, 'D1': 0.0}, interactions={'NMCAID_NORIGDIS_F65_69': 1.0, 'ND_PBD_NORIGDIS_F65_69': 1.0, 'D1': 1.0}, demographics=Demographics(age=67, sex='2', dual_elgbl_cd='NA', orec='0', crec='0', new_enrollee=False, snp=False, version='V2', low_income=False, graft_months=None, category='F65_69', non_aged=False, orig_disabled=False, disabled=False, esrd=False, lti=False, fbd=False, pbd=False), model_inputs=None, model_name='CMS-HCC Model V28', version='V2', diagnosis_codes=['E11.9', 'I10', 'N18.3'], service_level_data=None)\"",
      "evidence": "…\"RAFResult(risk_score=0.496, risk_score_demographics=0.33, risk_score_chronic_only=0.16599999999999998, risk_score_hcc=0.16599999999999998, risk_score_payment=0.496, hcc_list=['38'], hcc_details=[HCCDetail(hcc='38', label='Diabetes with Glycemic, Unspecified, or No Complications', is_chronic=True, coefficient=0.166)], cc_to_dx={'38': {'E119'}}, coefficients={'F65_69': 0.33, '38': 0.166, 'D1': 0.0}, interactions={'NMCAID_NORIGDIS_F65_69': 1.0, 'ND_PBD_NORIGDIS_F65_69': 1.0, 'D1': 1.0}, demographics=Demographics(age=67, sex='2', dual_elgbl_cd='NA', orec='0', crec='0', new_enrollee=False, snp=Fal",
      "cwd": "<guest-path>",
      "returncode": 0,
      "hardware_prerequisite": null,
      "stdout": "0.166, 'D1': 0.0}, interactions={'NMCAID_NORIGDIS_F65_69': 1.0, 'ND_PBD_NORIGDIS_F65_69': 1.0, 'D1': 1.0}, demographics=Demographics(age=67, sex='2', dual_elgbl_cd='NA', orec='0', crec='0', new_enrollee=False, snp=False, version='V2', low_income=False, graft_months=None, category='F65_69', non_aged=False, orig_disabled=False, disabled=False, esrd=False, lti=False, fbd=False, pbd=False), model_inputs=None, model_name='CMS-HCC Model V28', version='V2', diagnosis_codes=['E11.9', 'I10', 'N18.3'], service_level_data=None)\", \"source_file\": \"<guest-path>\"}\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "CMS HCC model calculation",
      "source": "**Comprehensive HCC Models**: Support for CMS-HCC V22/V24/V28, ESRD models, RxHCC",
      "input": [
        "E11.9",
        "I10",
        "N18.3"
      ],
      "expected": "risk_score 0.496; HCC 38",
      "command": "Python API hccinfhir.model_calculate.calculate_raf",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"RAFResult(risk_score=0.496, risk_score_demographics=0.33, risk_score_chronic_only=0.16599999999999998, risk_score_hcc=0.16599999999999998, risk_score_payment=0.496, hcc_list=['38'], hcc_details=[HCCDetail(hcc='38', label='Diabetes with Glycemic, Unspecified, or No Complications', is_chronic=True, coefficient=0.166)], cc_to_dx={'38': {'E119'}}, coefficients={'F65_69': 0.33, '38': 0.166, 'D1': 0.0}, interactions={'NMCAID_NORIGDIS_F65_69': 1.0, 'ND_PBD_NORIGDIS_F65_69': 1.0, 'D1': 1.0}, demographics=Demographics(age=67, sex='2', dual_elgbl_cd='NA', orec='0', crec='0', new_enrollee=False, snp=False, version='V2', low_income=False, graft_months=None, category='F65_69', non_aged=False, orig_disabled=False, disabled=False, esrd=False, lti=False, fbd=False, pbd=False), model_inputs=None, model_name='CMS-HCC Model V28', version='V2', diagnosis_codes=['E11.9', 'I10', 'N18.3'], service_level_data=None)\"",
      "evidence": "…\"RAFResult(risk_score=0.496, risk_score_demographics=0.33, risk_score_chronic_only=0.16599999999999998, risk_score_hcc=0.16599999999999998, risk_score_payment=0.496, hcc_list=['38'], hcc_details=[HCCDetail(hcc='38', label='Diabetes with Glycemic, Unspecified, or No Complications', is_chronic=True, coefficient=0.166)], cc_to_dx={'38': {'E119'}}, coefficients={'F65_69': 0.33, '38': 0.166, 'D1': 0.0}, interactions={'NMCAID_NORIGDIS_F65_69': 1.0, 'ND_PBD_NORIGDIS_F65_69': 1.0, 'D1': 1.0}, demographics=Demographics(age=67, sex='2', dual_elgbl_cd='NA', orec='0', crec='0', new_enrollee=False, snp=Fal",
      "cwd": "<guest-path>",
      "returncode": 0,
      "hardware_prerequisite": null,
      "stdout": "0.166, 'D1': 0.0}, interactions={'NMCAID_NORIGDIS_F65_69': 1.0, 'ND_PBD_NORIGDIS_F65_69': 1.0, 'D1': 1.0}, demographics=Demographics(age=67, sex='2', dual_elgbl_cd='NA', orec='0', crec='0', new_enrollee=False, snp=False, version='V2', low_income=False, graft_months=None, category='F65_69', non_aged=False, orig_disabled=False, disabled=False, esrd=False, lti=False, fbd=False, pbd=False), model_inputs=None, model_name='CMS-HCC Model V28', version='V2', diagnosis_codes=['E11.9', 'I10', 'N18.3'], service_level_data=None)\", \"source_file\": \"<guest-path>\"}\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "README Quick Start diagnosis risk calculation",
      "source": "README.md Quick Start",
      "input": "E11.9, I10, N18.3; age 67; sex F",
      "command": "",
      "evidence": "Quick Start block was run during setup and printed these outputs; checker python_example replay rejects this formatted output as not directly bound to a repository return value.",
      "deferred": true,
      "expected": "Risk Score: 0.496; HCCs: ['38']",
      "verdict": "deferred",
      "outcome": "Quick Start block was run during setup and printed these outputs; checker python_example replay rejects this formatted output as not directly bound to a repository return value."
    }
  ],
  "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 operation/API sections, src/hccinfhir entrypoints and examples: this is an invoked calculation library; no cron, recurring loop, webhook, --once, or --now cycle is documented.",
      "evidence": "Inspected README operation/API sections, src/hccinfhir entrypoints and examples: this is an invoked calculation library; no cron, recurring loop, webhook, --once, or --now cycle is documented.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "532724728bb04a3b0bc903a9b8b25dd934646200",
    "ci_read_at": "2026-11-26T14:19:38Z",
    "ci_state": "SUCCESS",
    "commits_90d": 15,
    "last_commit_at": "2026-11-26T13:33:08Z",
    "last_release_at": null,
    "median_reply_hours": null,
    "merged_prs_90d": 1,
    "note": "slow: last commit 0 days ago; 15 commits and 1 merged PRs in 90 days; 0 open issues, 0 open PRs; 0 of 12 recent threads got a maintainer reply; no releases",
    "open_issues": 0,
    "open_prs": 0,
    "reply_share": 0.0,
    "reply_threads": 12,
    "verdict": "slow"
  },
  "dependencies": [
    "Python 3.12",
    "Pydantic 2.14.4"
  ],
  "local_or_hosted": "local",
  "readme_deviations": [],
  "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": [
          "python"
        ],
        "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": 1,
    "scanned": {
      "secrets": true,
      "dependencies": true,
      "source": true
    },
    "capped_kinds": [],
    "findings_capped": false,
    "malware_checked": true,
    "scan_skips": {},
    "compiled": {
      "counts": {},
      "paths": []
    },
    "installed": {
      "packages": 16,
      "malicious": [],
      "vulnerabilities": [
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-4xh5-x5gv-qwph"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-58qw-9mgm-455v"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-6vgw-5pg2-w6jp"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-jp4c-xjxw-mgf9"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-qwm4-qh6w-59xr"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-wf93-45jw-7689"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-1795"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-1796"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-196"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-2875"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-2876"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-3721"
        }
      ]
    },
    "installed_inventory": true,
    "installed_partial": false
  },
  "platform": "linux",
  "test_version": "readme-4243f19282e59714a358f5d27849c5ebf3ef413d1667fe1ae5969f004abbb1d7",
  "touched": {
    "evidence_file": "touched.json.gz",
    "linked_files": [
      "agent-events.jsonl.gz",
      "command-output.jsonl.gz"
    ],
    "network": {
      "allowed_hosts": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "blocked_hosts": [],
      "canary_checked": true,
      "canary_sent": false,
      "canary_sent_to": [],
      "hosts": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "package_registries": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "private_address_attempts": 0,
      "recorded": true,
      "repo_hosts": [],
      "unanswered_hosts": [],
      "unattributed": [],
      "hosts_withheld": 2
    },
    "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"
}
