{
  "checker": {
    "details": {
      "checks": [
        {
          "check": "install",
          "details": {
            "argv": [
              "/tmp/pwbenv/bin/pip",
              "show",
              "pwb-toolbox"
            ],
            "kind": "cli",
            "needs_browser": false,
            "needs_credentials": false,
            "returncode": 0,
            "scope": "partial: install",
            "stderr": "",
            "stdout": "Name: pwb-toolbox\nVersion: 0.1.36\nSummary: A toolbox library for quant traders\nHome-page: https://github.com/paperswithbacktest/pwb-toolbox\nAuthor: Your Name\nAuthor-email: <email>\nLicense: MIT\nLocation: /tmp/pwbenv/lib/python3.12/site-packages\nRequires: backtrader, beautifulsoup4, ccxt, click, datasets, deap, ffn, huggingface_hub, ib_insync, matplotlib, numpy, pandas, pyarrow, python-dateutil, requests, scikit-learn, scipy, tqdm, transformers, webdriver_manager\nRequired-by: ",
            "working": false
          },
          "optional": false,
          "status": "PASS"
        },
        {
          "check": "credentials_error",
          "details": {
            "argv": [
              "/tmp/pwbenv/bin/python",
              "-c",
              "import pwb_toolbox.datasets as pwb_ds; df = pwb_ds.get_pricing([\"AAPL\", \"MSFT\", \"GOOGL\"])"
            ],
            "kind": "cli",
            "needs_browser": false,
            "needs_credentials": true,
            "returncode": 1,
            "scope": "partial: missing credentials",
            "stderr": "Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/pwbenv/lib/python3.12/site-packages/pwb_toolbox/datasets/__init__.py\", line 1160, in get_pricing\n    mapping = load_dataset(\"Universe-Daily-Price\")\n              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/tmp/pwbenv/lib/python3.12/site-packages/pwb_toolbox/datasets/__init__.py\", line 750, in load_dataset\n    raise ValueError(\"Set PWB_API_KEY or HF_ACCESS_TOKEN to load datasets.\")\nValueError: Set PWB_API_KEY or HF_ACCESS_TOKEN to load datasets.",
            "stdout": "",
            "working": false
          },
          "optional": false,
          "status": "PASS"
        }
      ],
      "scope": "partial checks",
      "working": false
    },
    "status": "PASS"
  },
  "deviations": [
    "python3-venv was missing in the guest: installed python3.12-venv and python3-pip via apt, then created the venv under /tmp/pwbenv.",
    "Earlier stuck step (README Datasets, missing PWB_API_KEY/HF_ACCESS_TOKEN) reproduced exactly. It is a prerequisite (credentials) gap, not a repo defect; no source was changed and no patch was produced."
  ],
  "fault_owner": "prerequisite",
  "main_blocker": "No PWB_API_KEY or HF_ACCESS_TOKEN in the guest; the README says the dataset functions require one.",
  "operation": "README 'Datasets' section: pwb_ds.get_pricing([\"AAPL\",\"MSFT\",\"GOOGL\"]) (pwb_toolbox.datasets). Ran it without credentials; it fails with the documented missing-credential error.",
  "operation_scope": "Partial: install and build verified; the dataset operation itself is unverified because PWB_API_KEY or HF_ACCESS_TOKEN is not available in this guest. No other README operation exercises the package without data access (backtesting and performance examples depend on the datasets module; execution needs brokers; the build is setup only).",
  "outcome": "needs_credentials",
  "steps": [
    "python3 -m venv /tmp/pwbenv (after apt install python3.12-venv)",
    "pip install -r requirements.txt",
    "pip install <host-path> (installs pwb-toolbox 0.1.36 from the pinned checkout)",
    "Contributing: python -m build (run in a copy of the checkout to keep the tree clean) -> pwb_toolbox-0.1.36-py3-none-any.whl and sdist built successfully",
    "README Datasets: pwb_ds.get_pricing(...) -> ValueError: Set PWB_API_KEY or HF_ACCESS_TOKEN to load datasets."
  ],
  "stuck_step": "README 'Datasets' section: pwb_ds.get_pricing / load_dataset",
  "suggested_fix": "Provide PWB_API_KEY (Papers With Backtest API key) or HF_ACCESS_TOKEN in the guest environment, then rerun: /tmp/pwbenv/bin/python -c 'import pwb_toolbox.datasets as pwb_ds; df = pwb_ds.get_pricing([\"AAPL\",\"MSFT\",\"GOOGL\"])'. Credentials were not requested or obtained here."
}
