{
  "schema_version": 1,
  "run_id": "statisticsnorway--ssb-model-solver-gpt-6-luna-1796306045411602589",
  "date": "2026-12-03T14:06:02.747293+00:00",
  "repo": "statisticsnorway/ssb-model-solver",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "eff15474c9994594ad21d9d75cf1050b8616a18a",
  "outcome": "pass",
  "time_to_working_s": 667.8778576269979,
  "install_s": 95.324,
  "first_use_s": 494.969,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Install the pinned Python package and run its supplied ModelSolver example to analyze and solve a multi-equation model.",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "The ModelSolver package defines and numerically analyzes models",
      "source": "# SSB Model Solver\n\n[![PyPI](https://img.shields.io/pypi/v/ssb-model-solver.svg)][pypi status]\n[![Status](https://img.shields.io/pypi/status/ssb-model-solver.svg)][pypi status]\n[![Python Version](https://img.shields.io/pypi/pyversions/ssb-model-solver)][pypi status]\n[![License](https://img.shields.io/pypi/l/ssb-model-solver)][license]\n\n[![Documentation](https://github.com/statisticsnorway/ssb-model-solver/actions/workflows/docs.yml/badge.svg)][documentation]\n[![Tests](https://github.com/statisticsnorway/ssb-model-solver/actions/workflows/tests.yml/badge.svg)][tests]\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-model-solver&metric=coverage)][sonarcov]\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-model-solver&metric=alert_status)][sonarquality]\n\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]\n[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)][poetry]\n\n[pypi status]: https://pypi.org/project/ssb-model-solver/\n[documentation]: https://statisticsnorway.github.io/ssb-model-solver\n[tests]: https://github.com/statisticsnorway/ssb-model-solver/actions?workflow=Tests\n[sonarcov]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-model-solver\n[sonarquality]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-model-solver\n[pre-commit]: https://github.com/pre-commit/pre-commit\n[black]: https://github.com/psf/black\n[poetry]: https://python-poetry.org/\n\n`ModelSolver` is a class that defines, block analyses and solves dynamic and algebraic models numerically.\nSee [documentation](https://github.com/statisticsnorway/model-solver/blob/main/model-solver.pdf) for detailed information about theory and implementation of the class.\n\nOpprettet av:\nMagnus Kvåle Helliesen <<email>>\n\n## Features\n\nModelSolver is a Python class. It defines, analyses and solves dynamic algebraic model with lots of equations.\n\nThe package is imported using\n\n```python\nimport model_solver as ms\n```\n\nUsage is\n\n```python\nmodel = ms.ModelSolver(equations, endogenous)\n```\n\nwhere `equations` are equations and `endogenous` are endogenous variables, both stored as strings in lists.\n\n## Built with\nModelSolver uses the following packages\n* [NumPy](https://numpy.org/)\n* [NetworkX](https://networkx.org/)\n* [Pandas](https://pandas.pydata.org/)\n* [SymEngine](https://pypi.org/project/symengine/)\n* [Numba](https://numba.pydata.org/)\n* [collections](https://docs.python.org/3/library/collections.html)\n* [functools](https://docs.python.org/3/library/functools.html)\n* [Matplotlib](https://matplotlib.org/)\n\n## Example of use\nLet `equations = ['x+y = 1', 'x-y = 2']` and `endogenous = ['x', 'y']`, then the model class is instatiatied by\n\n```python\nmodel = ms.ModelSolver(equations, endogenous)\n```\n\nWhen instatiatied, the class reads in the equations, analyzes them for any lags, before it block analyzes it to find the smallest model blocks that must be solved simultaneously.\nNote that ModelSolver is not case sensitive, such that 'x' and 'X' are the same, both in equations, lists and dataframe (below).\n\nWhen the class is finished instatiating, the user can call the following methods:\n* ```solution = model.solve(dataframe)``` where `dataframe` is a **Pandas** dataframe containing initial values for the endogenous variables and values for the exogenous variables. `solution` is a dataframe with same dimensions as `dataframe` containing the solutions for the endogenous variables.\n* ```model.switch_endo_vars(old_endo_var, new_endo_var)``` switches the endogenous variables `old_endo_var` for `new_endo_var`.\n* ```model.describe()``` writes out information about the model: the number of blocks, the size of the blocks etc.\n* ```model.find_endo_var('var')``` returns the block number in which `var` is solved for.\n* ```model.show_block(block_number)``` returns information about the block: endogenous variables, predetermined variables and equations.\n* ```model.show_blocks()``` returns information about all blocks.\n* ```model.find_unused_vars(dataframe)``` returns a list of the columns in `dataframe` that the model does not use, neither as endogenous nor as exogenous variables.\n* ```model.trace_to_exog_vars(block_nunber)``` traces back to the exogenous variables that may affect the block.\n* ```model.trace_to_exog_vals(block_nunber, period_index)``` traces back to the exogenous variable values for the period.\n* ```model.draw_blockwise_graph(variable, maximum_ancestor_generations, maximum_decendants_generations)``` where `variable` is a variable of interest, and `maximum_ancestor_generations` and `maximum_decendants_generations`are non-negative integers that governs the number of generations before and after the variable to be graphed. The output is a HTML-file with a relational graph.\n* ```model.sensitivity(block_nunber, period_index[, method='std', exog_subset=None])``` analyses the sensitivity of the endogenous variable in the block with respect to the exogenous variabels that determine the solution for the period.\n\n## Installation\n\nYou can install _SSB Model Solver_ via [pip] from [PyPI]:\n\n```console\npip install ssb-model-solver\n```\n\n## Usage\n\nPlease see the [Reference Guide] for details.\n\n## Contributing\n\nContributions are very welcome.\nTo learn more, see the [Contributor Guide].\n\n## License\n\nDistributed under the terms of the [MIT license][license],\n_SSB Model Solver_ is free and open source software.\n\n## Issues\n\nIf you encounter any problems,\nplease [file an issue] along with a detailed description.\n\n## Credits\n\nThis project was generated from [Statistics Norway]'s [SSB PyPI Template].\n\n[statistics norway]: https://www.ssb.no/en\n[pypi]: https://pypi.org/\n[ssb pypi template]: https://github.com/statisticsnorway/ssb-pypitemplate\n[file an issue]: https://github.com/statisticsnorway/ssb-model-solver/issues\n[pip]: https://pip.pypa.io/\n\n<!-- github-only -->\n\n[license]: https://github.com/statisticsnorway/ssb-model-solver/blob/main/LICENSE\n[contributor guide]: https://github.com/statisticsnorway/ssb-model-solver/blob/main/CONTRIBUTING.md\n[reference guide]: https://statisticsnorway.github.io/ssb-model-solver/reference.html\n",
      "input": "the supplied six-equation example and four-period Pandas data",
      "expected": "Block 5 has endogenous variables in 2019Q2 that evaluate to:",
      "command": "<guest-path> examples/example-model-solver.py",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Block 5 has endogenous variables in 2019Q2 that evaluate to:",
      "evidence": "Block 5 has endogenous variables in 2019Q2 that evaluate to:\nca=1.9428571428571428\ncb=1.2571428571428571\n\nBlock 5 has predetermined variables in 2019Q2 that evaluate to:\nx1=2.0\nx2=2.0\ni2=2.0\ni1=2.0\nBlock consists of a definition\n\n1 endogenous variables:\nk2\n\n2 predetermined variables:\nk2(-1) i2\n\n1 equations:\nk2 = k2(-1)+i2\n",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "ariables:\nca cb\n\n4 predetermined variables:\nx1 x2 i2 i1\n\n2 equations:\n0.2*x1+0.7*x2 = 0.1*ca+0.8*cb+0.3*i1\n0.8*x1+0.3*x2 = 0.9*ca+0.2*cb+0.1*i2\nGraph of block containing ca with <=5 generations of ancestors and <=5 generations of decendants: DiGraph with 6 nodes and 5 edges\n\nBlock 5 has endogenous variables in 2019Q2 that evaluate to:\nca=1.9428571428571428\ncb=1.2571428571428571\n\nBlock 5 has predetermined variables in 2019Q2 that evaluate to:\nx1=2.0\nx2=2.0\ni2=2.0\ni1=2.0\nBlock consists of a definition\n\n1 endogenous variables:\nk2\n\n2 predetermined variables:\nk2(-1) i2\n\n1 equations:\nk2 = k2(-1)+i2\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "ModelSolver analyzes and solves dynamic algebraic models",
      "source": "ModelSolver is a Python class. It defines, analyses and solves dynamic algebraic model with lots of equations.",
      "input": "the supplied six-equation example and four-period Pandas data",
      "expected": "Block 5 has endogenous variables in 2019Q2 that evaluate to:",
      "command": "<guest-path> examples/example-model-solver.py",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Block 5 has endogenous variables in 2019Q2 that evaluate to:",
      "evidence": "Block 5 has endogenous variables in 2019Q2 that evaluate to:\ncb=1.2571428571428571\nca=1.9428571428571428\n\nBlock 5 has predetermined variables in 2019Q2 that evaluate to:\ni1=2.0\ni2=2.0\nx2=2.0\nx1=2.0\nBlock consists of a definition\n\n1 endogenous variables:\nk2\n\n2 predetermined variables:\ni2 k2(-1)\n\n1 equations:\nk2 = k2(-1)+i2\n",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "ariables:\ncb ca\n\n4 predetermined variables:\ni1 i2 x2 x1\n\n2 equations:\n0.8*x1+0.3*x2 = 0.9*ca+0.2*cb+0.1*i2\n0.2*x1+0.7*x2 = 0.1*ca+0.8*cb+0.3*i1\nGraph of block containing ca with <=5 generations of ancestors and <=5 generations of decendants: DiGraph with 6 nodes and 5 edges\n\nBlock 5 has endogenous variables in 2019Q2 that evaluate to:\ncb=1.2571428571428571\nca=1.9428571428571428\n\nBlock 5 has predetermined variables in 2019Q2 that evaluate to:\ni1=2.0\ni2=2.0\nx2=2.0\nx1=2.0\nBlock consists of a definition\n\n1 endogenous variables:\nk2\n\n2 predetermined variables:\ni2 k2(-1)\n\n1 equations:\nk2 = k2(-1)+i2\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "Run the supplied ModelSolver example to solve the input model",
      "source": "examples/example-model-solver.py",
      "input": "six equations, six endogenous variables and the example Pandas input data",
      "command": "<guest-path> examples/example-model-solver.py",
      "evidence": "variables:\nca cb\n\n4 predetermined variables:\ni1 i2 x2 x1\n\n2 equations:\n0.2*x1+0.7*x2 = 0.1*ca+0.8*cb+0.3*i1\n0.8*x1+0.3*x2 = 0.9*ca+0.2*cb+0.1*i2\nGraph of block containing ca with <=5 generations of ancestors and <=5 generations of decendants: DiGraph with 6 nodes and 5 edges\n\nBlock 5 has endogenous variables in 2019Q2 that evaluate to:\nca=1.9428571428571428\ncb=1.2571428571428571\n\nBlock 5 has predetermined variables in 2019Q2 that evaluate to:\ni1=2.0\ni2=2.0\nx2=2.0\nx1=2.0\nBlock consists of a definition\n\n1 endogenous variables:\nk2\n\n2 predetermined variables:\nk2(-1) i2\n\n1 equations:\nk2 = k2(-1)+i2",
      "deferred": false,
      "expected": "the example solves the model and prints the calculated block values",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "ariables:\nca cb\n\n4 predetermined variables:\ni1 i2 x2 x1\n\n2 equations:\n0.2*x1+0.7*x2 = 0.1*ca+0.8*cb+0.3*i1\n0.8*x1+0.3*x2 = 0.9*ca+0.2*cb+0.1*i2\nGraph of block containing ca with <=5 generations of ancestors and <=5 generations of decendants: DiGraph with 6 nodes and 5 edges\n\nBlock 5 has endogenous variables in 2019Q2 that evaluate to:\nca=1.9428571428571428\ncb=1.2571428571428571\n\nBlock 5 has predetermined variables in 2019Q2 that evaluate to:\ni1=2.0\ni2=2.0\nx2=2.0\nx1=2.0\nBlock consists of a definition\n\n1 endogenous variables:\nk2\n\n2 predetermined variables:\nk2(-1) i2\n\n1 equations:\nk2 = k2(-1)+i2\n",
      "stderr": "",
      "output_truncated": true,
      "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.md, examples/example-model-solver.py, src/model_solver/model_solver.py and project entrypoints. They expose model construction, solving, graphing and analysis calls, but no product scheduler, cron loop, webhook, --once or --now trigger.",
      "evidence": "Inspected README.md, examples/example-model-solver.py, src/model_solver/model_solver.py and project entrypoints. They expose model construction, solving, graphing and analysis calls, but no product scheduler, cron loop, webhook, --once or --now trigger.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "eff15474c9994594ad21d9d75cf1050b8616a18a",
    "ci_read_at": "2026-12-03T13:24:50Z",
    "ci_state": "FAILURE",
    "commits_90d": 20,
    "last_commit_at": "2026-12-03T13:09:28Z",
    "last_release_at": "2026-12-03T13:10:09Z",
    "median_reply_hours": 11739.6,
    "merged_prs_90d": 10,
    "note": "actively maintained: last commit 0 days ago; 20 commits and 10 merged PRs in 90 days; 0 open issues, 0 open PRs; 1 of 3 recent threads got a maintainer reply, median first reply 11739.6h; latest release 2026-12-03",
    "open_issues": 0,
    "open_prs": 0,
    "reply_share": 0.33,
    "reply_threads": 3,
    "verdict": "maintained"
  },
  "dependencies": [
    "Python 3.12.3",
    "pip 26.3 in the project virtual environment",
    "NumPy 2.5.5",
    "NetworkX 3.7",
    "Pandas 3.1.2",
    "SymEngine 0.15.0",
    "Numba 0.68.1",
    "Matplotlib 3.11.2"
  ],
  "local_or_hosted": "local",
  "readme_deviations": [
    "README's fenced usage snippet calls ms.ModelSolver but does not include the import or define equations/endogenous. The installed package's documented import is import model_solver as ms; the complete example script instead says import src.model_solver as ms. Running that script directly from the che"
  ],
  "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": 117,
    "scanned": {
      "secrets": true,
      "dependencies": true,
      "source": true
    },
    "capped_kinds": [],
    "findings_capped": false,
    "malware_checked": true,
    "scan_skips": {},
    "compiled": {
      "counts": {},
      "paths": []
    },
    "installed": {
      "packages": 21,
      "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-9921296b570156b61c9d0650e6c09f949fad4a68063b5ad61d7da83ca3fecb26",
  "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"
}
