mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-22 16:11:34 +01:00
The prompt-routing hook can now suggest skills you installed yourself: any skill that lists `triggers:` in its SKILL.md, not only gstack's /review, /qa and /verify. It also stops sending ordinary bug reports to /qa. Why: a bug-fix skill you install was never named (0 of 60 real bug reports); now it's named on 40 of 60, and /qa takes none of them instead of 3. Nothing to do after merge. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/specialist-batched#2 reader=api-contract Review-Finding: p1/specialist-batched#1 reader=security
18 lines
25 KiB
JSON
18 lines
25 KiB
JSON
[
|
|
{
|
|
"id": "tox-dev__tox-3666",
|
|
"prompt_sha256": "5eafedfdecbe3401713cc9301128fd2bbdceecd948f8ed2f4d15283f06cb7b0f",
|
|
"prompt": "You are working in a Linux container. Complete the task described below. Work on your own until it is done; nobody is available to answer questions. When you are done, stop. The state of the container when you stop is what gets graded.\n\n<task>\nTox fails to install dependency groups with self references\n## Issue\n\nI have a project that has a \"test\" dependency group which installs all the extras from the project being tested. However, because tox has chosen to install dependency groups separately, `pip` cannot find the dependencies because the project itself is not on the PyPI.\n\nThe fix is to install all the dependencies and the project itself in the same step.\n\n## Environment\n\nProvide at least:\n\n- OS: Fedora Linux 41\n\n<details open>\n<summary>Output of <code>pip list</code> of the host Python, where <code>tox</code> is installed</summary>\n\n```console\nPackage Version\n--------------------------------------- -----------\nadal 1.2.7\nantlr4-python3-runtime 4.13.2\napplicationinsights 0.11.9\nargcomplete 3.6.2\nargopt 0.9.1\nattrs 25.1.0\nawscli 2.25.0\nawscrt 0.24.2\nazure-appconfiguration 1.1.1\nazure-batch 14.2.0\nazure-common 1.1.28\nazure-core 1.30.2\nazure-cosmos 3.2.0\nazure-data-tables 12.4.0\nazure-datalake-store 0.0.53\nazure-graphrbac 0.60.0\nazure-keyvault 1.1.0\nazure-keyvault-administration 4.4.0b2\nazure-keyvault-certificates 4.7.0\nazure-keyvault-keys 4.9.0b3\nazure-keyvault-secrets 4.7.0\nazure-loganalytics 0.1.0\nazure-mgmt-advisor 9.0.0\nazure-mgmt-apimanagement 4.0.0\nazure-mgmt-appconfiguration 3.0.0\nazure-mgmt-appcontainers 2.0.0\nazure-mgmt-applicationinsights 1.0.0\nazure-mgmt-authorization 4.0.0\nazure-mgmt-batch 17.3.0\nazure-mgmt-batchai 7.0.0b1\nazure-mgmt-billing 6.0.0\nazure-mgmt-botservice 2.0.0b3\nazure-mgmt-cdn 12.0.0\nazure-mgmt-cognitiveservices 13.5.0\nazure-mgmt-compute 31.0.0\nazure-mgmt-consumption 2.0.0\nazure-mgmt-containerinstance 10.1.0\nazure-mgmt-containerregistry 10.3.0\nazure-mgmt-containerservice 31.0.0\nazure-mgmt-core 1.3.2\nazure-mgmt-cosmosdb 9.5.1\nazure-mgmt-databoxedge 1.0.0\nazure-mgmt-datalake-analytics 0.2.1\nazure-mgmt-datalake-store 0.5.0\nazure-mgmt-datamigration 10.0.0\nazure-mgmt-devtestlabs 4.0.0\nazure-mgmt-dns 8.0.0\nazure-mgmt-eventgrid 10.2.0b2\nazure-mgmt-eventhub 10.1.0\nazure-mgmt-extendedlocation 1.0.0b2\nazure-mgmt-hdinsight 9.0.0\nazure-mgmt-imagebuilder 1.3.0\nazure-mgmt-iotcentral 10.0.0b1\nazure-mgmt-iothub 3.0.0\nazure-mgmt-iothubprovisioningservices 1.1.0\nazure-mgmt-keyvault 10.3.0\nazure-mgmt-kusto 0.3.0\nazure-mgmt-loganalytics 13.0.0b4\nazure-mgmt-managedservices 1.0.0\nazure-mgmt-managementgroups 1.0.0\nazure-mgmt-maps 2.0.0\nazure-mgmt-marketplaceordering 1.1.0\nazure-mgmt-media 9.0.0\nazure-mgmt-monitor 5.0.0\nazure-mgmt-msi 7.0.0\nazure-mgmt-netapp 10.1.0\nazure-mgmt-policyinsights 1.1.0b4\nazure-mgmt-privatedns 1.0.0\nazure-mgmt-rdbms 10.2.0b17\nazure-mgmt-recoveryservices 3.0.0\nazure-mgmt-recoveryservicesbackup 9.1.0\nazure-mgmt-redhatopenshift 1.4.0\nazure-mgmt-redis 14.3.0\nazure-mgmt-relay 0.1.0\nazure-mgmt-resource 23.1.1\nazure-mgmt-search 9.0.0\nazure-mgmt-security 6.0.0\nazure-mgmt-servicebus 8.2.0\nazure-mgmt-servicefabric 2.1.0\nazure-mgmt-servicefabricmanagedclusters 2.0.0b6\nazure-mgmt-servicelinker 1.2.0b2\nazure-mgmt-signalr 2.0.0b1\nazure-mgmt-sql 4.0.0b17\nazure-mgmt-sqlvirtualmachine 1.0.0b5\nazure-mgmt-storage 21.2.0\nazure-mgmt-synapse 2.1.0b5\nazure-mgmt-trafficmanager 1.0.0\nazure-mgmt-web 7.2.0\nazure-multiapi-storage 1.2.0\nazure-storage-common 1.4.2\nazure-synapse-accesscontrol 0.5.0\nazure-synapse-artifacts 0.19.0\nazure-synapse-managedprivateendpoints 0.4.0\nazure-synapse-spark 0.2.0\nbcrypt 4.1.2\nBeaker 1.12.1\nbeautifulsoup4 4.13.4\nblivet 3.11.0\nblivet-gui 2.6.0\nblockbuster 1.5.23\nboto3 1.38.36\nbotocore 1.38.36\nBrlapi 0.8.5\nbuild 1.2.2.post1\nCacheControl 0.14.0\ncachetools 5.5.2\ncertifi 2024.8.30\ncffi 1.17.1\ncfgv 3.4.0\nchardet 5.2.0\ncharset-normalizer 3.4.0\ncleo 2.1.0\nclick 8.1.7\ncolorama 0.4.6\ncoverage 7.6.10\ncrashtest 0.4.1\ncrypt_r 3.13.1\ncryptography 43.0.3\ncupshelpers 1.0\ndasbus 1.7\ndbus-python 1.3.2\ndecorator 5.1.1\nDeprecated 1.2.15\ndistlib 0.3.9\ndistro 1.9.0\ndnf 4.23.0\ndocutils 0.20.1\ndulwich 0.21.7\nexceptiongroup 1.2.2\nfabric 3.2.2\nfastjsonschema 2.20.0\nfedora-third-party 0.10\nfile-magic 0.4.0\nfilelock 3.16.1\nfluidity-sm 0.2.0\nforbiddenfruit 0.1.4\nfros 1.1\ngit-fame 2.0.1\ngpg 1.23.2\nh11 0.16.0\nhatch 1.14.1\nhatch-containers 0.7.0\nhatchling 1.27.0\nhttpx 0.28.1\nhumanfriendly 10.0\nhumanize 4.9.0\nhyperlink 21.0.0\nhypothesis 6.124.7\nidentify 2.6.1\nidna 3.10\niniconfig 2.0.0\ninstaller 0.7.0\ninvoke 2.2.0\niso639 0.1.4\nisodate 0.6.1\njaraco.classes 3.4.0\njavaproperties 0.8.1\njeepney 0.8.0\njmespath 1.0.1\njsondiff 2.2.1\njsonschema 4.19.1\njsonschema-specifications 2023.11.2\nkeyring 24.3.1\nknack 0.12.0\nlangtable 0.0.68\nlexicon 2.0.1\nlibcomps 0.1.21\nlibdnf 0.74.0\nlouis 3.33.0\nlxml 5.3.2\nMako 1.2.3\nmarkdown-it-py 3.0.0\nMarkupSafe 2.1.5\nmdurl 0.1.2\nmore-itertools 10.5.0\nmsal 1.32.3\nmsal-extensions 1.3.1\nmsgpack 1.1.0\nmsrest 0.7.1\nmsrestazure 0.6.4\nmypy 1.15.0\nmypy-extensions 1.0.0\nnftables 0.1\nnodeenv 1.9.1\noauthlib 3.2.2\nolefile 0.47\noutcome 1.3.0.post0\npackaging 24.2\nparamiko 3.5.1\nPaste 3.10.1\npathspec 0.12.1\nperf 0.1\npexpect 4.9.0\npid 2.2.3\npillow 11.0.0\npip 25.1.1\npkginfo 1.11.2\nplatformdirs 4.3.6\npluggy 1.5.0\nply 3.11\npoetry 1.8.4\npoetry-core 1.9.1\npoetry-plugin-export 1.8.0\nportalocker 2.10.1\npre_commit 4.2.0\nproductmd 1.45\nprompt_toolkit 3.0.41\npsutil 5.9.8\nptyprocess 0.7.0\npwquality 1.4.5\npyasn1 0.6.0\npycairo 1.25.1\npycparser 2.22\npycrypto 2.6.1\npycups 2.0.4\npycurl 7.45.3\npyenchant 3.2.2\nPyGithub 2.3.0\nPygments 2.18.0\nPyGObject 3.48.2\npyinotify 0.9.6\nPyJWT 2.8.0\npykickstart 3.58\nPyNaCl 1.5.0\npyOpenSSL 24.2.1\npyparsing 3.1.2\npyparted 3.13.0\npyproject-api 1.8.0\npyproject_hooks 1.2.0\nPySocks 1.7.1\npytest 8.3.4\npython-augeas 1.1.0\npython-dateutil 2.8.2\npython-linux-procfs 0.7.3\npython-meh 0.52\npython-pam 2.0.2\npyudev 0.24.3\npyxdg 0.27\nPyYAML 6.0.1\npyynl 0.0.1\nRapidFuzz 3.10.0\nreferencing 0.36.2\nregex 2024.11.6\nrequests 2.32.3\nrequests-file 2.0.0\nrequests-ftp 0.3.1\nrequests-oauthlib 1.3.1\nrequests-toolbelt 1.0.0\nrich 13.9.4\nrpds-py 0.19.1\nrpm 4.20.1\nruamel.yaml 0.18.6\nruamel.yaml.clib 0.2.12\ns3transfer 0.13.0\nscp 0.14.5\nSecretStorage 3.3.3\nselinux 3.7\nsemver 3.0.2\nsepolicy 3.7\nsetools 4.5.1\nsetuptools 69.2.0\nshellingham 1.5.4\nsimpleaudio 1.0.4\nsimpleline 1.9.0\nsix 1.16.0\nsniffio 1.3.1\nsortedcontainers 2.4.0\nsos 4.9.1\nsoupsieve 2.7\nsshtunnel 0.4.0\nsystemd-python 235\ntabulate 0.9.0\nTempita 0.5.2\ntomli_w 1.2.0\ntomlkit 0.13.2\ntox 4.27.0\ntqdm 4.67.1\ntrio 0.30.0\ntrove-classifiers 2024.10.16\ntrustme 1.2.1\ntruststore 0.10.0\ntyping_extensions 4.12.2\nurllib3 2.2.3\nuserpath 1.9.2\nuv 0.7.8\nuvloop 0.21.0\nvirtualenv 20.31.2\nwcwidth 0.2.13\nwebsocket-client 1.7.0\nwrapt 1.17.1\nxkbregistry 0.3\nxmltodict 0.13.0\nzipp 3.20.0\nzstandard 0.23.0\n```\n\n</details>\n\n## Output of running tox\n\n<details open>\n<summary>Output of <code>tox -rvv</code></summary>\n\n```console\n tox -e py310 \npy310: install_dependency-groups> python -I -m pip install 'anyio-http[brotli,cbor,json,opentelemetry,zstd]' 'anyio[trio]' 'coverage[toml]>=7' 'hypercorn>=0.17.3' 'pytest>=8.0' 'sse-starlette>=2.3.6' 'starlette[full]>=0.47.1' trustme\nCollecting coverage>=7 (from coverage[toml]>=7)\n Using cached coverage-7.9.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.9 kB)\nCollecting hypercorn>=0.17.3\n Using cached hypercorn-0.17.3-py3-none-any.whl.metadata (5.4 kB)\nCollecting pytest>=8.0\n Using cached pytest-8.4.1-py3-none-any.whl.metadata (7.7 kB)\nCollecting sse-starlette>=2.3.6\n Using cached sse_starlette-2.4.1-py3-none-any.whl.metadata (10 kB)\nCollecting starlette>=0.47.1 (from starlette[full]>=0.47.1)\n Using cached starlette-0.47.1-py3-none-any.whl.metadata (6.2 kB)\nCollecting trustme\n Using cached trustme-1.2.1-py3-none-any.whl.metadata (5.7 kB)\nERROR: Could not find a version that satisfies the requirement anyio-http[brotli,cbor,json,opentelemetry,zstd] (from versions: none)\nERROR: No matching distribution found for anyio-http[brotli,cbor,json,opentelemetry,zstd] \n\npy310: exit 1 (1.48 seconds) /home/alex/workspace/anyio-http> python -I -m pip install 'anyio-http[brotli,cbor,json,opentelemetry,zstd]' 'anyio[trio]' 'coverage[toml]>=7' 'hypercorn>=0.17.3' 'pytest>=8.0' 'sse-starlette>=2.3.6' 'starlette[full]>=0.47.1' trustme pid=588857\n py310: FAIL code 1 (1.49 seconds)\n evaluation failed :( (1.74 seconds)\n```\n\n</details>\n\n## Minimal example\n\n<!-- If possible, provide a minimal reproducer for the issue. -->\n\n```console\n[build-system]\nrequires = [\"setuptools >= 77\"]\nbuild-backend = \"setuptools.build_meta\"\n\n[project]\nname = \"exampleproject\"\nversion = \"1.0.0\"\n\n[project.optional-dependencies]\njson = [\"orjson >= 3.10.18\"]\n\n[dependency-groups]\ntest = [\"exampleproject[json]\"]\n\n[tool.tox]\nenv_list = [\"py313\"]\nrequires = [\"tox >= 4.22\"]\n\n[tool.tox.env_run_base]\npackage = \"editable\"\ndependency_groups = [\"test\"]\n```\nInstallation works fine with: `pip install --group test -e .`\n\n</task>\n\nWhen you finish, end your final message with one line: STATUS: FIXED or STATUS: NOT FIXED.\n"
|
|
},
|
|
{
|
|
"id": "zauberzeug__nicegui-5914",
|
|
"prompt_sha256": "dc37f12b7c4962bae3e7a23b2aa3b0fcb11deabd30c182fc8a31d9c6c15f9a17",
|
|
"prompt": "You are working in a Linux container. Complete the task described below. Work on your own until it is done; nobody is available to answer questions. When you are done, stop. The state of the container when you stop is what gets graded.\n\n<task>\nRefreshing sub pages from within parent elements raises RuntimeError\n### First Check\n\n- [x] I added a very descriptive title here.\n- [x] This is not a security issue (those should be reported via the [security advisory](https://github.com/zauberzeug/nicegui/security/advisories/new) instead).\n- [x] This is not a Q&A. I am sure something is wrong with NiceGUI or its documentation.\n- [x] I used the GitHub search to find a similar [issue](https://github.com/zauberzeug/nicegui/issues) and came up empty.\n\n### Example Code\n\n```python\nimport asyncio\nfrom nicegui import ui\n\ndef root():\n sub_pages = ui.sub_pages()\n sub_pages.add('/', main)\n\nasync def do_refresh():\n await ui.context.client.sub_pages_router.refresh()\n\nasync def main():\n ui.button(\"Refresh happy flow\", on_click=do_refresh)\n with ui.card():\n ui.button(\"Refresh raises exception\", on_click=do_refresh)\n await asyncio.sleep(2)\n ui.label('after 2 sec')\n\nui.run(root)\n```\n\n### Description\n\nCalling `ui.context.client.sub_pages_router.refresh()` from nested elements raises `RuntimeError('The parent element this slot belongs to has been deleted.')`.\nWhen calling outside of a parent element, no exception is raised.\nIn both cases, the page appears to refresh as expected, regardless of the exception.\n\nI did not look into the source code, but perhaps elements needs to be removed bottom-up?\n\n\n\n### NiceGUI Version\n\n3.9.0\n\n### Python Version\n\n3.12.7\n\n### Browser\n\nChrome, Other\n\n### Operating System\n\nWindows\n\n### Additional Context\n\n```\nThe parent element this slot belongs to has been deleted.\nTraceback (most recent call last):\n File \"[...]\\Lib\\site-packages\\nicegui\\events.py\", line 459, in wait_for_result\n await result\n File \"[...]\", line 13, in do_refresh\n await ui.context.client.sub_pages_router.refresh()\n File \"[...]\\Lib\\site-packages\\nicegui\\sub_pages_router.py\", line 62, in refresh\n await self._handle_open(self.current_path)\n File \"[...]\\Lib\\site-packages\\nicegui\\sub_pages_router.py\", line 72, in _handle_open\n return await self._can_resolve_full_path(context.client)\n ^^^^^^^^^^^^^^\n File \"[...]\\Lib\\site-packages\\nicegui\\context.py\", line 41, in client\n return self.slot.parent.client\n ^^^^^^^^^^^^^^^^\n File \"[...]\\Lib\\site-packages\\nicegui\\slot.py\", line 31, in parent\n raise RuntimeError('The parent element this slot belongs to has been deleted.')\nRuntimeError: The parent element this slot belongs to has been deleted.\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"[...]\\Lib\\site-packages\\nicegui\\background_tasks.py\", line 91, in _handle_exceptions\n task.result()\n File [...]\\Lib\\site-packages\\nicegui\\events.py\", line 461, in wait_for_result\n core.app.handle_exception(e)\n File \"[...]\\Lib\\site-packages\\nicegui\\app\\app.py\", line 167, in handle_exception\n if context.slot_stack and context.client is not None:\n ^^^^^^^^^^^^^^\n File \"[...]\\Lib\\site-packages\\nicegui\\context.py\", line 41, in client\n return self.slot.parent.client\n ^^^^^^^^^^^^^^^^\n File \"[...]\\Lib\\site-packages\\nicegui\\slot.py\", line 31, in parent\n raise RuntimeError('The parent element this slot belongs to has been deleted.')\nRuntimeError: The parent element this slot belongs to has been deleted.\n```\n\n</task>\n\nWhen you finish, end your final message with one line: STATUS: FIXED or STATUS: NOT FIXED.\n"
|
|
},
|
|
{
|
|
"id": "hkuds__openharness-217",
|
|
"prompt_sha256": "975b99080aea76b51d980047ecec19989c21911c5bba3803375916bea81fda65",
|
|
"prompt": "You are working in a Linux container. Complete the task described below. Work on your own until it is done; nobody is available to answer questions. When you are done, stop. The state of the container when you stop is what gets graded.\n\n<task>\n[Bug]: Windows browser-open in DeviceCodeFlow uses shell=True with externally-supplied URL\n### What happened?\n\n`DeviceCodeFlow._try_open_browser` in `src/openharness/auth/flows.py` opens the browser on Windows by calling:\n\n```python\nsubprocess.Popen(\n [\"start\", \"\", url],\n shell=True,\n stdout=subprocess.DEVNULL,\n stderr=subprocess.DEVNULL,\n)\n```\n\nBecause `shell=True` routes the call through `cmd.exe`, characters like `&`, `|`, and `^` inside the URL are interpreted as **command separators**, not as URL data. The `url` argument here is **externally supplied** — it is the `verification_uri` returned by the GitHub device-flow endpoint, or for users who pass `enterprise_url` to the flow, it is a value derived from a user-configured (and potentially compromised) GitHub Enterprise host.\n\nA device-flow endpoint that returned `verification_uri` like:\n\n```\nhttps://github.com/login/device&calc.exe\n```\n\n…would launch `calc.exe` alongside the browser the next time a user ran `oh setup` / Copilot login on Windows.\n\nThe macOS and Linux/WSL branches in the same function correctly pass argv lists with `shell=False`, so this only affects Windows.\n\n### Steps to reproduce\n\nThe call site is reached during any GitHub OAuth device-code login (`oh setup`, Copilot login). To demonstrate the underlying primitive on a Windows machine without a real malicious server, run:\n\n```python\n# windows-repro.py — run on Windows with `python windows-repro.py`\nimport subprocess\n\nmalicious_url = \"https://example.com&calc.exe\"\nsubprocess.Popen(\n [\"start\", \"\", malicious_url],\n shell=True,\n)\n```\n\nThis both opens the browser **and** launches Calculator. Replace `calc.exe` with `cmd /c <anything>` to demonstrate arbitrary command execution.\n\nTo trigger it through OpenHarness end-to-end you would need a GitHub Enterprise endpoint (or a man-in-the-middle on the device-flow response) that returns a poisoned `verification_uri`; the call chain is `oh auth ... -> DeviceCodeFlow.run -> request_device_code -> _try_open_browser(dc.verification_uri)`.\n\n### Expected behavior\n\nA URL returned by the device-flow endpoint should never be parsed as a shell command line. The Windows branch should use a launcher that does not go through `cmd.exe` — e.g. `os.startfile(url)`, which calls `ShellExecuteW` directly and hands the full URL to the registered protocol handler verbatim. Non-`http(s)` schemes should also be rejected up front so `file:` / `javascript:` / a bare executable name cannot reach the launcher.\n\n### Environment\n\n- File: `src/openharness/auth/flows.py:84-91`\n- Affected platform: Windows (any Python)\n- Reachable code paths: `oh setup` (Copilot/GitHub OAuth), any caller of `DeviceCodeFlow` with a non-default `enterprise_url`, and `BrowserFlow` (which delegates to `DeviceCodeFlow._try_open_browser`).\n\n### Relevant logs or screenshots\n\nn/a — the bug is in the call construction itself.\n\n---\n\nHappy to send a PR replacing the Windows branch with `os.startfile` and adding a scheme guard plus regression tests for the four platform branches.\n\n</task>\n\nWhen you finish, end your final message with one line: STATUS: FIXED or STATUS: NOT FIXED.\n"
|
|
}
|
|
]
|