diff --git a/docs/agent/tasks/task-701-ipv6-egress-cidr-fix-and-deny-class-property-tests-for-sandb.md b/docs/agent/tasks/task-701-ipv6-egress-cidr-fix-and-deny-class-property-tests-for-sandb.md index 8521a1a902..6da7b26576 100644 --- a/docs/agent/tasks/task-701-ipv6-egress-cidr-fix-and-deny-class-property-tests-for-sandb.md +++ b/docs/agent/tasks/task-701-ipv6-egress-cidr-fix-and-deny-class-property-tests-for-sandb.md @@ -1,7 +1,7 @@ # Task 701: IPv6 Egress CIDR Fix and Deny-Class Property Tests for Sandbox Policy **Issue**: [#701](https://github.com/dan-petty/devops-cli/issues/701) -**Status**: In Progress +**Status**: Done **Milestone**: `v0.2.24` **Priority**: `priority/p0-critical` **Scope**: `type/feature`, `scope/cli`, `priority/p0-critical` @@ -14,8 +14,8 @@ - **Context & Rationale**: The policy boundary is a set of pure functions: `safe_resolve_subpath`, `validate_no_path_traversal` and `validate_path_parameter` (`src/devops_cli/core/paths.py:16-175`), the last guarding agent tool kwargs via `ai/ext_langchain.py:18` and `ai/agents/context.py:19`; `is_loopback_or_private_host` (`core/validation.py:81-98`); and the whitelist validators and ipBlock builders behind `devops sandbox network-policy` (`sandbox/models.py:55-215`). Tests use hand-picked inputs with no IPv6 or NUL case (`tests/test_consolidation_core_paths.py:128-171`, `tests/test_validation.py:190-216`); `hypothesis` is not a dependency. Defects found: `_resolve_public_host` and `_resolve_local_host` append `/32` to IPv6 addresses (`models.py:125,149,163,185`), so the docstring "strictly to validated whitelisted destinations" (`models.py:190`) is false; `_extract_host_or_ip` truncates IPv6 hosts (`models.py:63-65`); NUL makes `safe_resolve_subpath` raise `ValueError` past `error_cls` (`paths.py:56`); a substring `..` test rejects benign names; six metadata-name checks in five modules disagree (`core/validation.py:40,229`, `sandbox/probe.py:55`, `sandbox/models.py:84`, `telemetry/waterfall.py:127`, `ai/models/ollama.py:37`). vibes' campaign is a fixed event table with an unread seed (`lsm_gate.py:257-276`); its README accepts 0.85 containment, its pattern claims 1.0. - **Deliverable Breakdown**: - [x] **PR1**: Emit each address's full-length prefix (`ipaddress.ip_network(ip).with_prefixlen`, `/128` for IPv6 and `/32` for IPv4) in `_resolve_public_host` and `_resolve_local_host`; parse bare, bracketed, URL, and CIDR IPv6 endpoints in `_extract_host_or_ip` using `urllib.parse` and `ipaddress`; update `is_non_public_ip` to support IPv6; add comprehensive regression tests in `tests/test_sandbox_networking.py` and `tests/test_validation.py`. - - [ ] **PR2**: One metadata predicate on ollama's superset (`fd00:ec2::254`, bare `metadata`, trailing dot) at all six sites; NUL raises `error_cls`; a component-wise `part == ".."` check after one decode. - - [ ] **PR3**: Add `hypothesis` to the dev group unless Reach Tally, Replay Gate and Hash-Seed Check for Parser Fuzzing already has, and write properties whose classes come from the oracle, not syntax. + - [x] **PR2**: One metadata predicate on ollama's superset (`fd00:ec2::254`, bare `metadata`, trailing dot) at all six sites; NUL raises `error_cls`; a component-wise `part == ".."` check after one decode. + - [x] **PR3**: Add `hypothesis` to the dev group unless Reach Tally, Replay Gate and Hash-Seed Check for Parser Fuzzing already has, and write properties whose classes come from the oracle, not syntax. - **Constraint**: The sibling task's CI profile runs explicit examples only, so these tests need a per-test `@settings(phases=[Phase.explicit, Phase.generate], derandomize=True)`: derandomized generation is fixed per commit, not a lucky search. A property that encodes today's behaviour, such as denying `%252e%252e/etc`, which pathlib never decodes, passes forever and finds nothing. The metadata predicate widens what five call sites deny; test each. No floor below 1.0: a deterministic predicate that allows one forbidden input has a bug. - **Measured**: `uv run --no-sync python /probe/rewrite/p.py`: with `getaddrinfo` stubbed to one AAAA and one A record, `_resolve_public_host` returned `2606:4700::1/32`, which covers 2**96 addresses; `_extract_host_or_ip("fd00:ec2::254")` returned `fd00`. Same run: `validate_path_parameter("file_path", ...)` denied `notes..txt`, `v1..2.diff` and `a..b/c` but allowed `~/.ssh/id_rsa` and `file:///etc/passwd` with `allow_absolute=False`; `safe_resolve_subpath(base, "a\x00b")` raised `ValueError`. - **Source**: vibes `patterns/kernel-enforced-lsm-sandbox-containment.md`, `patterns/zero-trust-sandboxing-and-observability.md`, `examples/ebpf-lsm-kernel-gate/lsm_gate.py`, `examples/ebpf-lsm-kernel-gate/README.md`, `examples/ebpf-lsm-kernel-gate/test_lsm_gate.py`, `examples/ephemeral-container-sandbox/README.md`, `observations/systems/34-ebpf-lsm-kernel-gates-and-dynamic-containment-fuzzing.md` diff --git a/pyproject.toml b/pyproject.toml index 6d0b3857a9..e798f19645 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,6 +72,7 @@ dev = [ "bandit==1.9.4", "actionlint-py==1.7.12.24", "pre-commit==4.6.2", + "hypothesis==6.168.3", ] [tool.hatch.build.targets.wheel] diff --git a/tests/test_sandbox_policy_properties.py b/tests/test_sandbox_policy_properties.py new file mode 100644 index 0000000000..96b4d4c984 --- /dev/null +++ b/tests/test_sandbox_policy_properties.py @@ -0,0 +1,315 @@ +"""Hypothesis property-based tests for sandbox policy boundaries and deny-class oracles. + +Validates deterministic containment, prefix-length oracle, path traversal, +benign multi-dot handling, NUL-byte rejection, and unified metadata denials. +""" + +from __future__ import annotations + +import ipaddress +from pathlib import Path +from typing import Any +from urllib.parse import urlparse + +from hypothesis import Phase, example, given, settings +from hypothesis import strategies as st + +from devops_cli.ai.models.ollama import _is_cloud_metadata_host as _ollama_is_metadata +from devops_cli.core.paths import ( + safe_resolve_subpath, + validate_no_path_traversal, + validate_path_parameter, +) +from devops_cli.core.validation import ( + is_cloud_metadata_host, + is_loopback_or_private_host, + is_non_public_ip, + validate_url, +) +from devops_cli.exceptions import ( + SecurityError, + SSRFBlockedError, +) +from devops_cli.sandbox.models import ( + _extract_host_or_ip, + _resolve_local_host, + _resolve_public_host, + _validate_local_whitelist_item, +) +from devops_cli.sandbox.probe import _resolve_safe_socket_addr +from devops_cli.telemetry.waterfall import _resolve_safe_jaeger_target + +# Standard derandomized settings profile for deterministic CI property runs +_DERANDOMIZED = settings( + phases=[Phase.explicit, Phase.generate], + derandomize=True, + max_examples=50, +) + + +class CustomSubpathError(Exception): + """Custom error class for safe_resolve_subpath testing.""" + + +def _check_raises(func: Any, *args: Any, expected_exc: type[Exception], **kwargs: Any) -> bool: + """Helper verifying that func raises expected_exc.""" + try: + func(*args, **kwargs) + return False + except expected_exc: + return True + + +# ============================================================================= +# 1. Path Traversal & NUL-Byte Property Tests +# ============================================================================= + +_TRAVERSAL_PREFIXES = ("../", "..\\", "%2e%2e/", "%2e%2e\\", "%2E%2E/", "%2E%2E\\") +_TRAVERSAL_SEGMENTS = ("/../", "\\..\\", "/%2e%2e/", "\\%2e%2e\\", "/%2E%2E/", "\\%2E%2E\\") + + +@_DERANDOMIZED +@given( + base=st.text(alphabet="abcdefghijklmnopqrstuvwxyz0123456789_-", min_size=1, max_size=10), + suffix=st.text(alphabet="abcdefghijklmnopqrstuvwxyz0123456789_-", min_size=1, max_size=10), + prefix_sep=st.sampled_from(_TRAVERSAL_PREFIXES), + segment_sep=st.sampled_from(_TRAVERSAL_SEGMENTS), +) +@example(base="foo", suffix="bar", prefix_sep="../", segment_sep="/../") +@example(base="etc", suffix="passwd", prefix_sep="%2e%2e/", segment_sep="/%2e%2e/") +def test_property_path_traversal_segments_are_denied( + base: str, suffix: str, prefix_sep: str, segment_sep: str +) -> None: + """Property: Any path with explicit directory traversal segments is rejected.""" + traversal_paths = [ + f"{prefix_sep}{suffix}", + f"{base}{segment_sep}{suffix}", + f"{base}/..", + "..", + ] + for p in traversal_paths: + traversal_blocked = _check_raises( + validate_no_path_traversal, p, expected_exc=(SecurityError, ValueError) + ) + param_blocked = _check_raises( + validate_path_parameter, + "file_path", + p, + allow_absolute=False, + expected_exc=SecurityError, + ) + assert (traversal_blocked, param_blocked) == (True, True) + + +@_DERANDOMIZED +@given( + left=st.text(alphabet="abcdefghijklmnopqrstuvwxyz0123456789_-", min_size=1, max_size=10), + right=st.text(alphabet="abcdefghijklmnopqrstuvwxyz0123456789_-", min_size=1, max_size=10), + ext=st.text(alphabet="abcdefghijklmnopqrstuvwxyz", min_size=1, max_size=4), +) +@example(left="notes", right="txt", ext="md") +@example(left="v1", right="2", ext="diff") +@example(left="a", right="b", ext="c") +def test_property_benign_multidot_paths_permitted(left: str, right: str, ext: str) -> None: + """Property: Benign filenames containing '..' as an internal substring are permitted.""" + benign_paths = [ + f"{left}..{right}", + f"{left}..{right}.{ext}", + f"sub/{left}..{right}", + f"sub/{left}..{right}/{ext}", + ] + for p in benign_paths: + val_no_trav = validate_no_path_traversal(p, label="test") + validate_path_parameter("file_path", p, allow_absolute=False) + assert val_no_trav == Path(p) + + +@_DERANDOMIZED +@given( + head=st.text(alphabet="abcdefghijklmnopqrstuvwxyz", min_size=0, max_size=8), + tail=st.text(alphabet="abcdefghijklmnopqrstuvwxyz", min_size=0, max_size=8), +) +@example(head="a", tail="b") +@example(head="", tail="test") +def test_property_nul_bytes_in_subpath_raise_error_cls(head: str, tail: str) -> None: + """Property: Embedded NUL bytes in safe_resolve_subpath raise error_cls, never raw ValueError.""" + path_with_nul = f"{head}\x00{tail}" + raises_custom = _check_raises( + safe_resolve_subpath, + Path("/tmp/sandbox"), + path_with_nul, + error_cls=CustomSubpathError, + expected_exc=CustomSubpathError, + ) + assert raises_custom is True + + +@_DERANDOMIZED +@given( + path_suffix=st.text(alphabet="abcdefghijklmnopqrstuvwxyz0123456789_/-", min_size=1, max_size=15) +) +@example(path_suffix="etc/passwd") +@example(path_suffix=".ssh/id_rsa") +def test_property_absolute_tilde_and_file_schemes_denied_when_not_allowed(path_suffix: str) -> None: + """Property: Absolute paths, tilde, and file:// URIs are denied when allow_absolute=False.""" + disallowed_forms = [ + f"/{path_suffix}", + f"~/{path_suffix}", + f"~{path_suffix}", + f"file:///{path_suffix}", + f"file://{path_suffix}", + ] + for target in disallowed_forms: + blocked = _check_raises( + validate_path_parameter, + "target", + target, + allow_absolute=False, + expected_exc=SecurityError, + ) + assert blocked is True + + +# ============================================================================= +# 2. IPv6 Prefix-Length & CIDR Oracle Tests +# ============================================================================= + + +@_DERANDOMIZED +@given(ip=st.ip_addresses()) +def test_property_resolve_hosts_emit_correct_prefix_lengths( + ip: ipaddress.IPv4Address | ipaddress.IPv6Address, +) -> None: + """Property: _resolve_public_host and _resolve_local_host emit /128 for IPv6 and /32 for IPv4.""" + from unittest.mock import patch + + ip_str = str(ip) + expected_prefix = "128" if isinstance(ip, ipaddress.IPv6Address) else "32" + expected_cidr = f"{ip_str}/{expected_prefix}" + mock_addr = [(2, 1, 6, "", (ip_str, 80))] + + net = ipaddress.ip_network(ip_str, strict=False) + is_public = not is_non_public_ip(net) + + with patch("socket.getaddrinfo", return_value=mock_addr): + if is_public: + blocks_direct = _resolve_public_host(ip_str) + blocks_dns = _resolve_public_host("example.com") + assert (blocks_direct, blocks_dns) == ([expected_cidr], [expected_cidr]) + elif (ip.is_private or ip.is_loopback) and not is_cloud_metadata_host( + ip, resolve_dns=False + ): + blocks_direct = _resolve_local_host(ip_str) + blocks_dns = _resolve_local_host("service.internal") + assert (blocks_direct, blocks_dns) == ([expected_cidr], [expected_cidr]) + + +@_DERANDOMIZED +@given( + ip=st.ip_addresses(v=6), + port=st.integers(min_value=1, max_value=65535), + prefix_len=st.integers(min_value=0, max_value=128), +) +@example(ip=ipaddress.IPv6Address("fd00:ec2::254"), port=8080, prefix_len=128) +@example(ip=ipaddress.IPv6Address("::1"), port=11434, prefix_len=128) +@example(ip=ipaddress.IPv6Address("2001:db8::1"), port=443, prefix_len=64) +def test_property_extract_host_or_ip_parses_ipv6_oracle( + ip: ipaddress.IPv6Address, port: int, prefix_len: int +) -> None: + """Property: _extract_host_or_ip extracts full IPv6 addresses, CIDRs, bracketed and URL forms.""" + ip_str = str(ip) + cidr_str = f"{ip_str}/{prefix_len}" + bracketed_port = f"[{ip_str}]:{port}" + bracketed_no_port = f"[{ip_str}]" + http_url = f"http://[{ip_str}]:{port}/api/v1" + + parsed_bare = _extract_host_or_ip(ip_str) + parsed_cidr = _extract_host_or_ip(cidr_str) + parsed_bracketed_port = _extract_host_or_ip(bracketed_port) + parsed_bracketed = _extract_host_or_ip(bracketed_no_port) + parsed_url = _extract_host_or_ip(http_url) + + expected_cidr = str(ipaddress.ip_network(cidr_str, strict=False)) + + # Oracle invariant: parsed host must never be truncated to first segment (e.g. 'fd00') + assert ( + parsed_bare, + parsed_cidr, + parsed_bracketed_port, + parsed_bracketed, + parsed_url, + ) == ( + ip_str, + expected_cidr, + ip_str, + ip_str, + ip_str, + ) + + +# ============================================================================= +# 3. Cloud Metadata & Link-Local Containment Oracle Across All Six Sites +# ============================================================================= + +_METADATA_ORACLE_TARGETS = ( + "169.254.169.254", + "169.254.169.254.", + "169.254.1.1", + "fd00:ec2::254", + "[fd00:ec2::254]", + "metadata.google.internal", + "metadata.google.internal.", + "metadata", + "metadata.", + "fe80::1", + "[fe80::1]", +) + + +@_DERANDOMIZED +@given(target=st.sampled_from(_METADATA_ORACLE_TARGETS)) +def test_property_cloud_metadata_superset_containment_at_all_six_sites(target: str) -> None: + """Property: Unified cloud metadata superset is rejected with 1.0 containment across all six sites.""" + clean_host = target.strip("[]").rstrip(".") + url_target = ( + f"[{clean_host}]" if ":" in clean_host and not clean_host.startswith("[") else target + ) + + # 1. Canonical is_cloud_metadata_host predicate + pred_meta = is_cloud_metadata_host(target, resolve_dns=False) + + # 2. core/validation.py: is_loopback_or_private_host + pred_priv = is_loopback_or_private_host(target, resolve_dns=False) + + # 3. core/validation.py: validate_url + url_str = f"http://{url_target}/latest/meta-data/" + val_url_blocked = _check_raises( + validate_url, url_str, allow_private=True, expected_exc=SSRFBlockedError + ) + + # 4. sandbox/probe.py: _resolve_safe_socket_addr + probe_blocked, _ = _resolve_safe_socket_addr(clean_host, 80) + + # 5. sandbox/models.py: local whitelist and local host + whitelist_blocked = _check_raises( + _validate_local_whitelist_item, f"http://{url_target}:80", expected_exc=ValueError + ) + models_host_blocked = _check_raises(_resolve_local_host, target, expected_exc=ValueError) + + # 6. telemetry/waterfall.py: _resolve_safe_jaeger_target + parsed_endpoint = urlparse(f"http://{url_target}:14268") + jaeger_blocked, _ = _resolve_safe_jaeger_target(parsed_endpoint) + + # 7. ai/models/ollama.py: _is_cloud_metadata_host + ollama_blocked = _ollama_is_metadata(target) + + assert ( + pred_meta, + pred_priv, + val_url_blocked, + probe_blocked, + whitelist_blocked, + models_host_blocked, + jaeger_blocked, + ollama_blocked, + ) == (True, True, True, True, True, True, True, True) diff --git a/uv.lock b/uv.lock index a7dfaa5d1d..5c9aa3faa2 100755 --- a/uv.lock +++ b/uv.lock @@ -687,6 +687,7 @@ dependencies = [ dev = [ { name = "actionlint-py" }, { name = "bandit" }, + { name = "hypothesis" }, { name = "mypy" }, { name = "pre-commit" }, { name = "pytest" }, @@ -751,6 +752,7 @@ requires-dist = [ dev = [ { name = "actionlint-py", specifier = "==1.7.12.24" }, { name = "bandit", specifier = "==1.9.4" }, + { name = "hypothesis", specifier = "==6.168.3" }, { name = "mypy", specifier = "==2.3.1" }, { name = "pre-commit", specifier = "==4.6.2" }, { name = "pytest", specifier = "==9.1.1" }, @@ -1228,6 +1230,68 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/48/30/47d0bf6072f7252e6521f3447ccfa40b421b6824517f82854703d0f5a98b/hyperframe-6.1.0-py3-none-any.whl", hash = "sha256:b03380493a519fce58ea5af42e4a42317bf9bd425596f7a0835ffce80f1a42e5", size = 13007, upload-time = "2025-01-22T21:41:47.295Z" }, ] +[[package]] +name = "hypothesis" +version = "6.168.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "sortedcontainers" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/09/b7/13118bbc45d6d8b9d04e2de779e2a4ff23145ea39efa692b994fb874ca72/hypothesis-6.168.3.tar.gz", hash = "sha256:a43388f9067678fef6e13bdff325b6cfa6961a590498bb37f7ff31589c83bc75", size = 511022, upload-time = "2026-09-28T05:20:58.499Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2b/cd/746a2fc1e5e5ba34f07ea6ee1ad07525a3dde5ff4836db3a7980af49a891/hypothesis-6.168.3-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:d20972ca134e652e9928ecd200966a8a2857adc2812c1d74b12a872e5cd503eb", size = 791536, upload-time = "2026-09-28T05:18:57.162Z" }, + { url = "https://files.pythonhosted.org/packages/c3/0f/7a158e377b69556c8e12c25c8fd811d0103e54c24a12dab1f3b9819f202e/hypothesis-6.168.3-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:eafbec09d3e87d13d8242411d1f5868b5e879f1bd6d95e233e9ff80c527bea1c", size = 787313, upload-time = "2026-09-28T05:20:18.122Z" }, + { url = "https://files.pythonhosted.org/packages/45/c6/7df9104ee359e8fcd77791781c47e70794964ca69673665e0de2a6590f4c/hypothesis-6.168.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:73c5627497968cc62d140e9fde1ea21e12cac7b64dc419fea8286cd34ff1ad4e", size = 1124036, upload-time = "2026-09-28T05:20:04.372Z" }, + { url = "https://files.pythonhosted.org/packages/92/0f/8a61715404a73b9a82cb1f976803428d603cdea976a9c30266c72ad6a7ce/hypothesis-6.168.3-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:29dc56e6dc6eeb0aeb08ac463f847279bde2336c4786faf7ee0af4b93cd031a7", size = 1147875, upload-time = "2026-09-28T05:19:15.495Z" }, + { url = "https://files.pythonhosted.org/packages/e4/3f/2b16e95cc3b9a069afa23830a012aefe377ce4a457a227e5a5026eb827ff/hypothesis-6.168.3-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:753bb501f8560d2e321ed3b62596b4496c56f15668b0a0669231ccc3e6c4e80d", size = 1149489, upload-time = "2026-09-28T05:19:18.886Z" }, + { url = "https://files.pythonhosted.org/packages/f6/e7/d7cf6dc068bb02732b2a6e38a35a0dcb7f2137608198fc79d740f69d197c/hypothesis-6.168.3-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:71ab606c472449cb872ef2a7acaec679ee4f651b7f0a477a04ebc85d8933ef8c", size = 1191992, upload-time = "2026-09-28T05:19:21.83Z" }, + { url = "https://files.pythonhosted.org/packages/5f/26/f1e5b25dec15998e8375d722825ec3dae1075cbe7cb1f74221b2312a2e33/hypothesis-6.168.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:26928956c54748e4dfa587333741ab750246123b93484955646ff316cca27eef", size = 1169911, upload-time = "2026-09-28T05:19:27.996Z" }, + { url = "https://files.pythonhosted.org/packages/03/36/901234a49147e6bf8a5b9e54b775706a223c2b52befea1106ea2aaf15d48/hypothesis-6.168.3-cp310-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:0bdfc53c041b61c854fa3761735736b991bc2bddafee45a361cfe4d43027c1ef", size = 1129406, upload-time = "2026-09-28T05:18:42.632Z" }, + { url = "https://files.pythonhosted.org/packages/55/c1/5fc9ff91ec9fba6bb527833386c66812524b5cc75fe7d4a4f9122ee1c420/hypothesis-6.168.3-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:650528e2b1e2a45e95c2df624d4b9364b8ac5a027ba84e1eea2bc5398dd01dcd", size = 1160399, upload-time = "2026-09-28T05:20:23.911Z" }, + { url = "https://files.pythonhosted.org/packages/9b/d2/49ad1ef5c55547c8abfd0fc571b3493806dda530fd5cb3d8263dbad86a72/hypothesis-6.168.3-cp310-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:209dc54cdb1b4d6d7020ad8d09e44c49756361b7183adacea4d6f5705085b595", size = 1299906, upload-time = "2026-09-28T05:18:58.417Z" }, + { url = "https://files.pythonhosted.org/packages/0d/5f/f98a26094c4f462c4215807bed0f9a6b5508b27a3c329bcba1bc8adc7ac7/hypothesis-6.168.3-cp310-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:af8ca98cd11dc7f9427bb90483abcd9688d4df2e8e63893a30a2423b027ebb11", size = 1425538, upload-time = "2026-09-28T05:20:49.074Z" }, + { url = "https://files.pythonhosted.org/packages/d0/b8/c5b4406e3a6591e51a42f85469351d1d824e0a54b84167aec9b2353759fe/hypothesis-6.168.3-cp310-abi3-musllinux_1_2_i686.whl", hash = "sha256:f8122cfdd0bc0ba843063effa22ac310bdebdb3a1319bf1e63f14baa119c72ab", size = 1377084, upload-time = "2026-09-28T05:20:06.618Z" }, + { url = "https://files.pythonhosted.org/packages/e0/01/0d84a8ea469d024c15f602799c0b8410fbe03d99fdb0370449b33c3c916f/hypothesis-6.168.3-cp310-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:4bedbb379eab34f792af7ee9a05aae04e9c08bbb52e0f90f5a2110d4fe4b2fbd", size = 1281162, upload-time = "2026-09-28T05:19:42.768Z" }, + { url = "https://files.pythonhosted.org/packages/22/b5/ea6435038de1a795f005cb603531e8ccc053febc50180f3ab55583c9c60e/hypothesis-6.168.3-cp310-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:5a953115b9f5c95133ab2d04efffeec96e5658c3207923dca7285f7db3e6bbef", size = 1300433, upload-time = "2026-09-28T05:18:55.634Z" }, + { url = "https://files.pythonhosted.org/packages/6c/78/fa6c77d9f64b6d592e69e582d83cbce7d7e56897faa4762885a2123b0166/hypothesis-6.168.3-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:6173558e676ad25ed1e20507fa4024a0d816dd90f715f77006e5a28f19109026", size = 1336273, upload-time = "2026-09-28T05:19:08.273Z" }, + { url = "https://files.pythonhosted.org/packages/f1/56/4acd0d778bab818c9ea336fcba768bf43bc70db7f84cc373579298df4641/hypothesis-6.168.3-cp310-abi3-win32.whl", hash = "sha256:dc66390fb12d80585aa9222bf538ce8b7aa22cf5d118250647355a1c9e8f62f4", size = 678211, upload-time = "2026-09-28T05:19:23.355Z" }, + { url = "https://files.pythonhosted.org/packages/b0/db/0a02b146ad1c30f9716362f2e1a379dfd6b0f7be03ac1e22c9da24c9e2a9/hypothesis-6.168.3-cp310-abi3-win_amd64.whl", hash = "sha256:92325b276360fe86c5bf71a568c0d53a6d140b0de36dcf029f9164a17803bb24", size = 684906, upload-time = "2026-09-28T05:18:35.099Z" }, + { url = "https://files.pythonhosted.org/packages/a3/c0/958deaf726848f96f52250740bf39f13f476b068e22f73e2b358eaa07532/hypothesis-6.168.3-cp310-abi3-win_arm64.whl", hash = "sha256:3cf6f1eeaf41cd8d60cf1f88fde905ca1dd77c906929a507d6ac7f66f2ccba2a", size = 683292, upload-time = "2026-09-28T05:19:57.404Z" }, + { url = "https://files.pythonhosted.org/packages/6e/79/27b0cb56ff5d2bc92458bf6fcebdb1f0dc01f57f043a178e9f9d74498169/hypothesis-6.168.3-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:e2d4c68729a13df9af4998d2652cfb5d541c5609b88c306880a5dfb284938ec2", size = 793287, upload-time = "2026-09-28T05:20:38.522Z" }, + { url = "https://files.pythonhosted.org/packages/e8/bd/5342f95c3bc36586777ef8cb8eba87ac7acf0184210327fb0e6d8654e295/hypothesis-6.168.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:b345f818083ec99966a43ca4f7b38feb62c6920ce28572bc2bde4948a8b7eaba", size = 784857, upload-time = "2026-09-28T05:20:42.609Z" }, + { url = "https://files.pythonhosted.org/packages/4a/5f/fc774241518a0588d362680a3084275058aab86d6bc02a2c61e1073142d0/hypothesis-6.168.3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0608c610fc002978fc5de0f471770d8817e9455cb8649a47983c9f8bccfc1897", size = 1123330, upload-time = "2026-09-28T05:19:29.735Z" }, + { url = "https://files.pythonhosted.org/packages/b0/e6/131f16775a3dca5f4fe27f0d6ad9a9851600098a54a872d163f6ebf0b664/hypothesis-6.168.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9dcf6448b1ecc37f2b23f2d1b3ddfc9ff6b6910614c15a642dc82f419b96037b", size = 1169178, upload-time = "2026-09-28T05:19:53.436Z" }, + { url = "https://files.pythonhosted.org/packages/06/61/c9f5bff8b73321c9fd12f2d69666c6e4861b97b60f5f24fdd6ac293007fd/hypothesis-6.168.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ae4f9f094041dcce5119ebd7bab71062743ab02b6e654d056b370beda78c19e2", size = 1299127, upload-time = "2026-09-28T05:20:14.486Z" }, + { url = "https://files.pythonhosted.org/packages/e4/6d/d4618f8ab12dd76c4d58ea052252759aa2bf0c4e71f4b502ba5d577e0b9f/hypothesis-6.168.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:d479985fe73af97badfb72dc6d20c6a353e486a36f6d065f600026e0cf954a86", size = 1335390, upload-time = "2026-09-28T05:20:10.326Z" }, + { url = "https://files.pythonhosted.org/packages/95/b6/727161e17cc297df1aeea945de05c532033b66751625bec192bc5b5ff707/hypothesis-6.168.3-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:785e2c45f8c08e274b4bf1ccae97f1a4e09407e9a68e80790cfab1d17a4a45fa", size = 624291, upload-time = "2026-09-28T05:18:36.376Z" }, + { url = "https://files.pythonhosted.org/packages/77/23/2f9b506392a0b8712440bcb781abc5713be9ffac1303b6d10f3669050882/hypothesis-6.168.3-cp314-cp314-win_amd64.whl", hash = "sha256:320920b1e3dae8611eee8a03d063cf2187446f2a17c38cfb8a7fc1466f71eee2", size = 682064, upload-time = "2026-09-28T05:20:16.336Z" }, + { url = "https://files.pythonhosted.org/packages/50/93/efabfd95eb2b69c0c9fa1e1c83c8290aa2715d46baeb5a7764faf09c133a/hypothesis-6.168.3-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:35380baa981108a7f60c4eab71e46acd8d8f58440520346a1a6aba06dca7e074", size = 791875, upload-time = "2026-09-28T05:19:37.789Z" }, + { url = "https://files.pythonhosted.org/packages/1b/fc/2a0ada1623a9a33048bbf9f00a7c92513398c6b8865cba5efb854262ce30/hypothesis-6.168.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f0aaaed00438fa6673d856aaee12a4a8afbde82a9f3c5ff487cacfb064239afe", size = 783412, upload-time = "2026-09-28T05:18:48.266Z" }, + { url = "https://files.pythonhosted.org/packages/41/31/73c615d37eeb12da0209555612c32ced628d860267c23cfd2691c6207aea/hypothesis-6.168.3-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f27e6df1576bf838e7f484d4ae5cba92114497ca30afb917056bf1ea33e95675", size = 1121662, upload-time = "2026-09-28T05:19:26.225Z" }, + { url = "https://files.pythonhosted.org/packages/92/54/1893344a3b8bbf83fa7c9bb7e96f6836580213854f46671cb749f7b4706c/hypothesis-6.168.3-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3bc85014577982ec6d2e266edc5cd6e7a7d3674c648791ca983c67a52f89a0c4", size = 1167761, upload-time = "2026-09-28T05:18:49.85Z" }, + { url = "https://files.pythonhosted.org/packages/26/97/a61d82968febd25a0f08ffbbfabfaeead66f68fc5fa73f3c9ece1c36fc8f/hypothesis-6.168.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:ccfc29505aa1cdcc254cb9cd701fd0811fef5480addd97d4127a00df023410f7", size = 1297309, upload-time = "2026-09-28T05:19:51.711Z" }, + { url = "https://files.pythonhosted.org/packages/bc/01/fe8e4cf6d39d02f4efadaa351427fa13722086cfc54a2da3579741c5177a/hypothesis-6.168.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:32d0699566aaa93f9e97a44705d7164386f1e91de78d277f53bada35e78bcc96", size = 1334260, upload-time = "2026-09-28T05:19:00.121Z" }, + { url = "https://files.pythonhosted.org/packages/39/6a/09177ebc62f4778f94379ecade6a51299d3d8c4f4b75ba636bf3a0202364/hypothesis-6.168.3-cp314-cp314t-win_amd64.whl", hash = "sha256:28d88fa174ecbd4ecbd7bb290f06d0db084a3971c3f511ae2830b65b5e25500f", size = 681992, upload-time = "2026-09-28T05:19:48.043Z" }, + { url = "https://files.pythonhosted.org/packages/f9/f6/890bf33d608cd63348d3146a3ca83362fbf09e589c5e5230a00c403070f4/hypothesis-6.168.3-cp315-abi3.abi3t-macosx_10_12_x86_64.whl", hash = "sha256:61f5782d807b1e6aa5c9beef1054cb2037e7d1add48a64972cd6ee447778781f", size = 791231, upload-time = "2026-09-28T05:18:43.998Z" }, + { url = "https://files.pythonhosted.org/packages/03/dd/fc36b204f8aa7437c676576d9437f0422de46aa8a729e6cd5bbb0224e759/hypothesis-6.168.3-cp315-abi3.abi3t-macosx_11_0_arm64.whl", hash = "sha256:7aacf3cf40c7ce8f9e4924d5b57bc0b068beafdfed2347bcf160a28b4cfbba7b", size = 783171, upload-time = "2026-09-28T05:19:20.353Z" }, + { url = "https://files.pythonhosted.org/packages/5c/d2/3cd087d577db67c404991d7723e64d7cd75570cdc82a0f7329aed6f2086c/hypothesis-6.168.3-cp315-abi3.abi3t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:01768a03a30dc54df7fe457c0b34016c84d598fa00d5965ededab93ba4eb3408", size = 1121152, upload-time = "2026-09-28T05:18:39.095Z" }, + { url = "https://files.pythonhosted.org/packages/42/6f/a05a68cc66e7a22701c50bf94fb9ddeb36f4f5d0de3cc130066709eda621/hypothesis-6.168.3-cp315-abi3.abi3t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1a8a4ffc6c6e6e577f2bfbcfebf7cffbb310283ba2532c729570a0a752cebaaa", size = 1144069, upload-time = "2026-09-28T05:20:44.705Z" }, + { url = "https://files.pythonhosted.org/packages/4a/f4/fdd7a093fb2fb3a0ce24256c92ad5bf67936f4669bd06d5ceae4298150ec/hypothesis-6.168.3-cp315-abi3.abi3t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b987d73eba95183a7e59cca6d1925c588aa4307922d9852cc2b4d282a2ae4128", size = 1146692, upload-time = "2026-09-28T05:20:25.83Z" }, + { url = "https://files.pythonhosted.org/packages/f1/c8/6dbd4377e935505ae4fc8ee4c7b18c69994c4bbaca015447c470218bdbee/hypothesis-6.168.3-cp315-abi3.abi3t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d4569c39bd97d9573e946429ed676f3b55a7c8ed80920addd67d384a47d59b38", size = 1189480, upload-time = "2026-09-28T05:20:46.734Z" }, + { url = "https://files.pythonhosted.org/packages/ba/bf/ff288b496b690000d2686dcfa7f67855e4c5a6dddb464ed8e4880be83bb2/hypothesis-6.168.3-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6042b8707a4b25bbbfe20b110258fb7549a68951e5525608a8ce06091039e9fc", size = 1167109, upload-time = "2026-09-28T05:19:24.758Z" }, + { url = "https://files.pythonhosted.org/packages/d9/d1/3fee2bc29fc747fabbb27e174515592e390809ca465d3bbbabbcfa3235a8/hypothesis-6.168.3-cp315-abi3.abi3t-manylinux_2_31_riscv64.whl", hash = "sha256:f413629de94d38a7a2ad259697a6752526143cb49c2e2d7bdba19381c80693f6", size = 1126823, upload-time = "2026-09-28T05:18:52.636Z" }, + { url = "https://files.pythonhosted.org/packages/58/6a/585294392fa6a6d9719446a042a777ba98ecca265d9e48cbedc10c88df0f/hypothesis-6.168.3-cp315-abi3.abi3t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f071737e4e775bebba07e319eb645a880d1e0186b4d24bad23255e849d86d483", size = 1155773, upload-time = "2026-09-28T05:20:51.268Z" }, + { url = "https://files.pythonhosted.org/packages/cd/4d/fa283ff79996debf1ff08593e01f8b773eb8211b19b3d6d5d491317a65bf/hypothesis-6.168.3-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl", hash = "sha256:f59a3912858d0609c26054aa1c474847c797937f5e0e1c77f0d3f08032e50f09", size = 1296671, upload-time = "2026-09-28T05:18:46.937Z" }, + { url = "https://files.pythonhosted.org/packages/42/05/98f9c2f628da5afabb6c3e8df5d2d299d2d50bf306b14a6e26d3954c4951/hypothesis-6.168.3-cp315-abi3.abi3t-musllinux_1_2_armv7l.whl", hash = "sha256:f09c05a23a8025dd5cad07c2ed299a46778e72d49ff0dd5bf353bcc0f7dc1580", size = 1422001, upload-time = "2026-09-28T05:19:04.188Z" }, + { url = "https://files.pythonhosted.org/packages/b8/c9/f2109ade29a7ec284d55bca328d784743e8b13e321576fd34ee7e65f99af/hypothesis-6.168.3-cp315-abi3.abi3t-musllinux_1_2_i686.whl", hash = "sha256:44ace770bda3a0301739fc5a413c764de790c739df1f1a7218dd049f8594d9f5", size = 1374182, upload-time = "2026-09-28T05:20:27.764Z" }, + { url = "https://files.pythonhosted.org/packages/ce/6d/e05d5f72441564a3bebc71fa155deafd0fd3b015d6014ec8a00edf6e42bb/hypothesis-6.168.3-cp315-abi3.abi3t-musllinux_1_2_ppc64le.whl", hash = "sha256:03b131043608f94a2578a2a896a1a72092acb7079815eef5b8513b08447e0e62", size = 1278402, upload-time = "2026-09-28T05:20:56.332Z" }, + { url = "https://files.pythonhosted.org/packages/96/d7/6988a7f1f69c5c530687dce03a32c157e2d878e3a2e32af9269ce016b78a/hypothesis-6.168.3-cp315-abi3.abi3t-musllinux_1_2_riscv64.whl", hash = "sha256:e9784aca26eddfe99b03a0292320db742cc8a74200ef864fdce949f526f973cd", size = 1297770, upload-time = "2026-09-28T05:19:11.387Z" }, + { url = "https://files.pythonhosted.org/packages/a2/28/5bb82b60b836bd2329e1fe01ad94efc2b14dfa806f8e50ed14b795d78770/hypothesis-6.168.3-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl", hash = "sha256:2b52ac363096232bebc2add117e9178d91f4248f4cdb919fd1026b5f86a4bb16", size = 1333977, upload-time = "2026-09-28T05:20:02.483Z" }, + { url = "https://files.pythonhosted.org/packages/8e/7d/d419841b8f65481ea1a50c4ba36f2670d48b8c7a51e4e8586089564cf7f6/hypothesis-6.168.3-cp315-abi3.abi3t-win32.whl", hash = "sha256:d28e3a6b511a74ce37df5274b51f36c2b274fea7365e00b16f0c81e22acd5957", size = 675394, upload-time = "2026-09-28T05:19:55.237Z" }, + { url = "https://files.pythonhosted.org/packages/d8/d2/1de6a2ad100e44817f2e9a8e8ba3eeaf4769621f4f87f2d4966c4971fcc4/hypothesis-6.168.3-cp315-abi3.abi3t-win_amd64.whl", hash = "sha256:7b9638789548361a57d984f56619ac694a914c328181d911271618409261ff4a", size = 681699, upload-time = "2026-09-28T05:19:09.957Z" }, + { url = "https://files.pythonhosted.org/packages/c0/79/be3370fd02734d6b1d950183ae9224580d19fa8d356b95348d60f1e3eeb7/hypothesis-6.168.3-cp315-abi3.abi3t-win_arm64.whl", hash = "sha256:65d78e4357ec48ed2c67825f06740ee3599be4cfe770a6092bed07108d679ac5", size = 679849, upload-time = "2026-09-28T05:19:06.884Z" }, +] + [[package]] name = "identify" version = "2.6.19" @@ -3036,6 +3100,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/e9/44/75a9c9421471a6c4805dbf2356f7c181a29c1879239abab1ea2cc8f38b40/sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2", size = 10235, upload-time = "2024-02-25T23:20:01.196Z" }, ] +[[package]] +name = "sortedcontainers" +version = "2.4.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e8/c4/ba2f8066cceb6f23394729afe52f3bf7adec04bf9ed2c820b39e19299111/sortedcontainers-2.4.0.tar.gz", hash = "sha256:25caa5a06cc30b6b83d11423433f65d1f9d76c4c6a0c90e3379eaa43b9bfdb88", size = 30594, upload-time = "2021-05-16T22:03:42.897Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl", hash = "sha256:a163dcaede0f1c021485e957a39245190e74249897e2ae4b2aa38595db237ee0", size = 29575, upload-time = "2021-05-16T22:03:41.177Z" }, +] + [[package]] name = "sse-starlette" version = "3.4.11"