bdo-toolkit 1.0.9__tar.gz → 1.0.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bdo_toolkit-1.0.9/src/bdo_toolkit.egg-info → bdo_toolkit-1.0.10}/PKG-INFO +1 -1
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_version.py +1 -1
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/solare/_constants.py +1 -1
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/solare/_detail_learning.py +3 -1
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/solare/_details.py +4 -19
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/solare/_discovery.py +14 -9
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10/src/bdo_toolkit.egg-info}/PKG-INFO +1 -1
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_solare_details.py +21 -3
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_solare_learning_adversarial.py +16 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_solare_replay.py +60 -8
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/LICENSE +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/README.md +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/pyproject.toml +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/setup.cfg +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/__init__.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_async_sessions.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_async_utils.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_calibration/__init__.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_calibration/_constants.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_calibration/_formatting.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_calibration/_records.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_calibration/analysis.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_calibration/capture.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_calibration/companions.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_calibration/live.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_calibration/models.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_calibration/observations.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_calibration/persistence.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_calibration/progress.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_calibration/validation.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_calibration/workflow.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_capture_backend.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_capture_options.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_capture_runtime.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_deposit_origin.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_engine.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_framing.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_item_state/__init__.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_item_state/_constants.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_item_state/_records.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_item_state/assembly.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_item_state/formatting.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_item_state/inventory.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_item_state/models.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_item_state/session.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_item_state/storage.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_observation_session.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_origin/__init__.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_origin/discovery.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_origin/manual.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_origin/models.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_origin/tracker.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_profile_io.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_profile_runtime.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_protocol.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_reassembly.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_record_geometry.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_specs.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_storage_destination_validation.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_storage_hydration.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/_tracked_capture.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/agris/__init__.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/agris/_calibration_models.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/agris/_capture.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/agris/_discovery.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/agris/_profile.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/agris/_validation.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/agris/async_session.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/agris/calibration.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/agris/models.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/agris/replay.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/agris/session.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/calibration.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/capture.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/capture_diagnosis.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/character_state.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/cli.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/diagnostics.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/events.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/filters.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/grind/__init__.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/grind/_pipeline.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/grind/models.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/grind/session.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/item_state.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/origin_learning.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/profiles.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/py.typed +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/raw/__init__.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/raw/_collector.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/raw/models.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/raw/replay.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/raw/session.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/remote_profiles.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/solare/__init__.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/solare/_live_tracker.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/solare/_replay_capture.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/solare/_result.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/solare/_scanner.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/solare/_validation.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/solare/async_session.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/solare/models.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/solare/replay.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/solare/session.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/writers.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/xp/__init__.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/xp/_tracker.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/xp/models.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/xp/profile.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/xp/replay.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit/xp/session.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit.egg-info/SOURCES.txt +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit.egg-info/dependency_links.txt +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit.egg-info/entry_points.txt +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit.egg-info/requires.txt +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/src/bdo_toolkit.egg-info/top_level.txt +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_agris_async.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_agris_cli.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_agris_discovery.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_agris_evidence.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_agris_models.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_agris_profiles.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_agris_replay.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_agris_session.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_async_sessions.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_calibration.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_calibration_conveniences.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_calibration_lifecycle.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_calibration_persistence.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_calibration_progress.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_calibration_retention.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_capture_backend.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_capture_diagnosis.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_capture_replay.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_capture_runtime.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_character_state.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_cli.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_decoder_diagnostics.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_deposit_origin.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_direction.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_dynamic_storage_calibration_matrix.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_engine.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_examples_and_writers.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_explicit_profile.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_fixture_catalog.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_fixture_regressions.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_framing.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_grind.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_initial_load_storage.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_inventory_snapshots.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_item_state.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_live_capture_session.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_origin_learning.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_package_layout.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_profile_validation.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_raw.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_reassembly.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_remote_profiles.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_solare_api.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_solare_equipment.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_solare_learning.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_solare_real_captures.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_solare_session.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_storage_destination_validation.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_storage_events.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_storage_hydration_tracker.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_storage_unknown_destination_calibration.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_toolkit_api.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_xp.py +0 -0
- {bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_xp_profiles.py +0 -0
|
@@ -37,7 +37,7 @@ SOLARE_MAX_ACTIVE_FLOWS = 64
|
|
|
37
37
|
# callbacks out of sequence. Solare permits a larger per-flow reorder count
|
|
38
38
|
# than the generic item route, while an explicit byte ceiling preserves the
|
|
39
39
|
# existing bounded-memory posture.
|
|
40
|
-
SOLARE_MAX_PENDING_SEGMENTS =
|
|
40
|
+
SOLARE_MAX_PENDING_SEGMENTS = 3000
|
|
41
41
|
SOLARE_MAX_PENDING_BYTES = 8 * 1024 * 1024
|
|
42
42
|
|
|
43
43
|
PLAYER_NAME_BYTES = frozenset(
|
|
@@ -909,7 +909,9 @@ def _raw_base_candidates(
|
|
|
909
909
|
break
|
|
910
910
|
if not any(block):
|
|
911
911
|
continue
|
|
912
|
-
|
|
912
|
+
# The candidate fixes this block's boundary. A byte in the
|
|
913
|
+
# preceding binary field must not extend its CSV text.
|
|
914
|
+
shape = _csv_integer_count(block, 0)
|
|
913
915
|
if (shape is None or not 2 <= shape[0] <= value_count
|
|
914
916
|
or shape[0] % 2 or shape[1] > maximum_text_length
|
|
915
917
|
or any(block[shape[1]:])):
|
|
@@ -28,7 +28,10 @@ from ._constants import (
|
|
|
28
28
|
SOLARE_RICH_RECORD_COUNTS,
|
|
29
29
|
class_name,
|
|
30
30
|
)
|
|
31
|
-
from ._discovery import
|
|
31
|
+
from ._discovery import (
|
|
32
|
+
DiscoveredSolareFamily,
|
|
33
|
+
_read_player_identifier as _read_name,
|
|
34
|
+
)
|
|
32
35
|
from ._validation import validate_retain_raw_extensions
|
|
33
36
|
from .models import (
|
|
34
37
|
SolareClass,
|
|
@@ -287,24 +290,6 @@ def _u32le(data: bytes, offset: int) -> int:
|
|
|
287
290
|
return int.from_bytes(data[offset : offset + 4], "little")
|
|
288
291
|
|
|
289
292
|
|
|
290
|
-
def _read_name(data: bytes, offset: int, max_chars: int = 32) -> str:
|
|
291
|
-
raw = bytearray()
|
|
292
|
-
for index in range(max_chars):
|
|
293
|
-
position = offset + index * 2
|
|
294
|
-
if position + 1 >= len(data):
|
|
295
|
-
return ""
|
|
296
|
-
low = data[position]
|
|
297
|
-
high = data[position + 1]
|
|
298
|
-
if low == 0 and high == 0:
|
|
299
|
-
return raw.decode("ascii") if raw else ""
|
|
300
|
-
if high != 0 or not (
|
|
301
|
-
48 <= low <= 57 or 65 <= low <= 90 or 97 <= low <= 122 or low in (45, 95)
|
|
302
|
-
):
|
|
303
|
-
return ""
|
|
304
|
-
raw.append(low)
|
|
305
|
-
return ""
|
|
306
|
-
|
|
307
|
-
|
|
308
293
|
def _read_u32_slots(data: bytes, base: int, offset: int) -> tuple[int, int, int]:
|
|
309
294
|
return tuple(
|
|
310
295
|
_u32le(data, base + offset + index * 4) for index in range(_CLASS_SLOT_COUNT)
|
|
@@ -147,21 +147,25 @@ class _NamePair:
|
|
|
147
147
|
names: tuple[str, ...]
|
|
148
148
|
|
|
149
149
|
|
|
150
|
+
def _is_player_identifier_codepoint(code: int) -> bool:
|
|
151
|
+
# Korean captures use precomposed Hangul syllables in the same UTF-16LE
|
|
152
|
+
# fields. Keep the accepted alphabet bounded rather than accepting arbitrary
|
|
153
|
+
# Unicode text from binary fields during structural discovery.
|
|
154
|
+
return code in PLAYER_NAME_BYTES or 0xAC00 <= code <= 0xD7A3
|
|
155
|
+
|
|
156
|
+
|
|
150
157
|
def _read_player_identifier(data: bytes, offset: int, max_chars: int = 32) -> str:
|
|
151
158
|
if offset < 0:
|
|
152
159
|
return ""
|
|
153
|
-
raw = bytearray()
|
|
154
160
|
for index in range(max_chars):
|
|
155
161
|
position = offset + index * 2
|
|
156
162
|
if position + 1 >= len(data):
|
|
157
163
|
return ""
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
if high != 0 or low not in PLAYER_NAME_BYTES:
|
|
164
|
+
code = data[position] | data[position + 1] << 8
|
|
165
|
+
if code == 0:
|
|
166
|
+
return data[offset:position].decode("utf-16-le")
|
|
167
|
+
if not _is_player_identifier_codepoint(code):
|
|
163
168
|
return ""
|
|
164
|
-
raw.append(low)
|
|
165
169
|
return ""
|
|
166
170
|
|
|
167
171
|
|
|
@@ -172,8 +176,9 @@ def _identifier_starts_here(data: bytes, offset: int) -> bool:
|
|
|
172
176
|
return False
|
|
173
177
|
if (
|
|
174
178
|
offset >= 2
|
|
175
|
-
and
|
|
176
|
-
|
|
179
|
+
and _is_player_identifier_codepoint(
|
|
180
|
+
data[offset - 2] | data[offset - 1] << 8
|
|
181
|
+
)
|
|
177
182
|
):
|
|
178
183
|
return False
|
|
179
184
|
return True
|
|
@@ -207,6 +207,7 @@ def _synthetic_snapshot(
|
|
|
207
207
|
*,
|
|
208
208
|
rich_ranks: tuple[int, ...] | None = None,
|
|
209
209
|
include_agent: bool = False,
|
|
210
|
+
name_prefix: str = "TestPlayer",
|
|
210
211
|
) -> _SyntheticSnapshot:
|
|
211
212
|
class_codes = tuple(code for code in sorted(CLASS_NAMES) if include_agent or code != 35)
|
|
212
213
|
record_count = len(class_codes) * 20
|
|
@@ -214,7 +215,7 @@ def _synthetic_snapshot(
|
|
|
214
215
|
rich_ranks = tuple(range(1, record_count + 1))
|
|
215
216
|
assert len(rich_ranks) == record_count
|
|
216
217
|
ranks = rich_ranks
|
|
217
|
-
names = tuple(f"
|
|
218
|
+
names = tuple(f"{name_prefix}{rank:04d}" for rank in ranks)
|
|
218
219
|
primary_codes = tuple(code for code in class_codes for _ in range(20))
|
|
219
220
|
rich_opcode = 0x7070 # Deliberately unrelated to every observed opcode.
|
|
220
221
|
|
|
@@ -311,7 +312,7 @@ def _synthetic_snapshot(
|
|
|
311
312
|
for in_frame_index, base in enumerate((0, layout.overall_stride)):
|
|
312
313
|
ordinal = frame_index * 2 + in_frame_index
|
|
313
314
|
overall_rank = ordinal + 1
|
|
314
|
-
name = f"
|
|
315
|
+
name = f"{name_prefix}{overall_rank:04d}"
|
|
315
316
|
encoded_name = name.encode("utf-16le") + b"\x00\x00"
|
|
316
317
|
message[
|
|
317
318
|
base
|
|
@@ -433,7 +434,7 @@ def _synthetic_snapshot(
|
|
|
433
434
|
record_stride=layout.overall_stride,
|
|
434
435
|
name_offset=layout.overall_name,
|
|
435
436
|
rank_offset=layout.overall_rank,
|
|
436
|
-
names=tuple(f"
|
|
437
|
+
names=tuple(f"{name_prefix}{rank:04d}" for rank in range(1, 101)),
|
|
437
438
|
ranks=tuple(range(1, 101)),
|
|
438
439
|
first_stream_offset=rich.last_stream_end,
|
|
439
440
|
last_stream_end=rich.last_stream_end + 50 * layout.overall_length,
|
|
@@ -441,6 +442,23 @@ def _synthetic_snapshot(
|
|
|
441
442
|
return _SyntheticSnapshot(tuple(rich_frames), rich, tuple(overall_frames), overall)
|
|
442
443
|
|
|
443
444
|
|
|
445
|
+
@pytest.mark.parametrize("layout", _LAYOUTS, ids=lambda item: item.layout_id)
|
|
446
|
+
def test_registered_details_preserve_korean_names_and_performance(layout: _Layout) -> None:
|
|
447
|
+
synthetic = _synthetic_snapshot(layout, name_prefix="\uac00\ub098")
|
|
448
|
+
rich = decode_solare_details(synthetic.rich_frames, synthetic.rich)
|
|
449
|
+
overall = decode_solare_overall_details(synthetic.overall_frames, synthetic.overall)
|
|
450
|
+
assert rich is not None
|
|
451
|
+
assert overall is not None
|
|
452
|
+
assert rich.players[0].name == "\uac00\ub0980001"
|
|
453
|
+
assert rich.players[-1].name == "\uac00\ub0980620"
|
|
454
|
+
assert rich.players[0].elo == 9999
|
|
455
|
+
assert rich.players[0].classes_played[0].matches == 101
|
|
456
|
+
assert overall.entries[0].name == "\uac00\ub0980001"
|
|
457
|
+
assert overall.entries[-1].name == "\uac00\ub0980100"
|
|
458
|
+
assert "performance" in overall.capabilities
|
|
459
|
+
assert overall.entries[0].classes_played[0].wins == 120
|
|
460
|
+
|
|
461
|
+
|
|
444
462
|
@pytest.mark.parametrize("layout", _LAYOUTS, ids=lambda item: item.layout_id)
|
|
445
463
|
def test_detailed_layout_extracts_exact_raw_slot_boundaries(layout: _Layout) -> None:
|
|
446
464
|
synthetic = _synthetic_snapshot(layout)
|
|
@@ -713,6 +713,22 @@ def test_malformed_partial_addon_rejected_even_in_one_tertiary_slot(text):
|
|
|
713
713
|
assert learning._learn_performance_offsets(changed, 12, occupancies) is None
|
|
714
714
|
|
|
715
715
|
|
|
716
|
+
@pytest.mark.parametrize("preceding", (ord("0"), ord("5"), ord("9"), ord(",")))
|
|
717
|
+
@pytest.mark.parametrize("count", (0, 2, 4, 6, 8, 10, 12))
|
|
718
|
+
def test_addon_boundary_validation_ignores_preceding_binary_byte(preceding, count):
|
|
719
|
+
records, occupancies = _zero_draw_tail()
|
|
720
|
+
row = bytearray(records.rows[0])
|
|
721
|
+
row[360] = preceding
|
|
722
|
+
text = b",".join([b"1572"] * count)
|
|
723
|
+
row[361:862] = text + bytes(501 - len(text))
|
|
724
|
+
rows = (bytes(row),) + records.rows[1:]
|
|
725
|
+
assert learning._raw_base_candidates(
|
|
726
|
+
rows, occupancies, value_count=12, slot_size=501,
|
|
727
|
+
minimum_text_length=20, maximum_text_length=100,
|
|
728
|
+
allow_empty_slots=True,
|
|
729
|
+
) == (361,)
|
|
730
|
+
|
|
731
|
+
|
|
716
732
|
def test_blank_addon_requires_entire_slot_to_be_zero():
|
|
717
733
|
records, occupancies = _zero_draw_tail()
|
|
718
734
|
row = bytearray(records.rows[0])
|
|
@@ -311,6 +311,57 @@ def _assert_selected_snapshot(
|
|
|
311
311
|
) == (0x5555, 50, 4_210, 30, 120)
|
|
312
312
|
|
|
313
313
|
|
|
314
|
+
def test_korean_and_mixed_names_confirm_both_leaderboards() -> None:
|
|
315
|
+
# Exercise suffix rejection for Hangul too: discovery must select the full
|
|
316
|
+
# name column, not the Latin/digit suffix of a mixed identifier.
|
|
317
|
+
frames = _complete_frames(name_prefix="\uac00\ub098_KR", include_agent=True)
|
|
318
|
+
result = build_solare_result(frames, _health(frames))
|
|
319
|
+
assert result.complete
|
|
320
|
+
assert result.snapshot is not None
|
|
321
|
+
assert len(result.snapshot.players) == 640
|
|
322
|
+
assert len(result.snapshot.overall_top_100) == 100
|
|
323
|
+
assert result.snapshot.players[0].name == "\uac00\ub098_KR0001"
|
|
324
|
+
assert result.snapshot.overall_top_100[0].name == "\uac00\ub098_KR0001"
|
|
325
|
+
assert result.evidence.exact_cross_check == 100
|
|
326
|
+
assert result.evidence.rich_layout is not None
|
|
327
|
+
assert result.evidence.rich_layout.name_offset == 20
|
|
328
|
+
assert result.evidence.overall_layout is not None
|
|
329
|
+
assert result.evidence.overall_layout.name_offset == 30
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
@pytest.mark.parametrize("name", ("\uac00\ub098", "KR_\uac00\ub09819", "\uac00" * 31))
|
|
333
|
+
def test_korean_name_reader_preserves_full_identifiers_and_rejects_suffixes(name):
|
|
334
|
+
from bdo_toolkit.solare._details import _read_name
|
|
335
|
+
from bdo_toolkit.solare._discovery import (
|
|
336
|
+
_identifier_starts_here, _read_player_identifier,
|
|
337
|
+
)
|
|
338
|
+
|
|
339
|
+
data = bytes(2) + name.encode("utf-16-le") + bytes(2)
|
|
340
|
+
assert _read_player_identifier(data, 2) == name
|
|
341
|
+
assert _read_name(data, 2) == name
|
|
342
|
+
assert _identifier_starts_here(data, 2)
|
|
343
|
+
assert not _identifier_starts_here(data, 4)
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
@pytest.mark.parametrize("data", (
|
|
347
|
+
"\uac00".encode("utf-16-le"), # missing terminator
|
|
348
|
+
"\uac00".encode("utf-16-le") + b"\x00", # truncated code unit
|
|
349
|
+
"\uac00".encode("utf-16-le") * 32 + bytes(2), # exceeds field bound
|
|
350
|
+
b"\x00\xd8\x00\x00", # unpaired surrogate
|
|
351
|
+
"\uac00 \ub098\x00".encode("utf-16-le"), # spaces
|
|
352
|
+
"\uac00\u200b\ub098\x00".encode("utf-16-le"), # invisible separator
|
|
353
|
+
"\uac00\n\ub098\x00".encode("utf-16-le"), # control character
|
|
354
|
+
"\uac00!\x00".encode("utf-16-le"), # punctuation
|
|
355
|
+
"\uac00\U0001f600\x00".encode("utf-16-le"), # outside reviewed alphabet
|
|
356
|
+
))
|
|
357
|
+
def test_malformed_or_unsupported_name_text_is_rejected(data):
|
|
358
|
+
from bdo_toolkit.solare._details import _read_name
|
|
359
|
+
from bdo_toolkit.solare._discovery import _read_player_identifier
|
|
360
|
+
|
|
361
|
+
assert _read_player_identifier(data, 0) == ""
|
|
362
|
+
assert _read_name(data, 0) == ""
|
|
363
|
+
|
|
364
|
+
|
|
314
365
|
def test_complete_result_is_opcode_agnostic_and_falls_back_to_rankings() -> None:
|
|
315
366
|
frames = _complete_frames(rich_opcode=0x7654, overall_opcode=0x3210)
|
|
316
367
|
|
|
@@ -1353,7 +1404,8 @@ def test_frame_collector_reassembles_generic_messages_and_tracks_health() -> Non
|
|
|
1353
1404
|
assert collector.health().retained_large_messages == 0
|
|
1354
1405
|
|
|
1355
1406
|
|
|
1356
|
-
|
|
1407
|
+
@pytest.mark.parametrize("piece_size", (23, 7))
|
|
1408
|
+
def test_solare_collector_tolerates_large_lossless_npcap_reorder_burst(piece_size: int) -> None:
|
|
1357
1409
|
observed: list[BDOFrame] = []
|
|
1358
1410
|
collector = SolareFrameCollector((8889,), observed.append)
|
|
1359
1411
|
message = bytearray(8_192)
|
|
@@ -1362,14 +1414,14 @@ def test_solare_collector_tolerates_large_lossless_npcap_reorder_burst() -> None
|
|
|
1362
1414
|
message[3:5] = (0x4567).to_bytes(2, "little")
|
|
1363
1415
|
stream = bytes(message) * 2
|
|
1364
1416
|
pieces = tuple(
|
|
1365
|
-
stream[offset : offset +
|
|
1366
|
-
for offset in range(0, len(stream),
|
|
1417
|
+
stream[offset : offset + piece_size]
|
|
1418
|
+
for offset in range(0, len(stream), piece_size)
|
|
1367
1419
|
)
|
|
1368
1420
|
|
|
1369
1421
|
# Anchor with the SYN, then emulate a Windows/Npcap callback batch whose
|
|
1370
|
-
#
|
|
1371
|
-
#
|
|
1372
|
-
#
|
|
1422
|
+
# prefix arrives after more than 700 or 2,300 later segments. The latter
|
|
1423
|
+
# exceeds the old 2,048-segment cap and the observed 2,088-segment EU burst,
|
|
1424
|
+
# but remains under Solare's explicit
|
|
1373
1425
|
# count/byte limits and under the ordinary gap deadline.
|
|
1374
1426
|
collector.process_tcp_segment(
|
|
1375
1427
|
source_ip=FLOW.source_ip,
|
|
@@ -1387,9 +1439,9 @@ def test_solare_collector_tolerates_large_lossless_npcap_reorder_burst() -> None
|
|
|
1387
1439
|
source_port=FLOW.source_port,
|
|
1388
1440
|
destination_ip=FLOW.destination_ip,
|
|
1389
1441
|
destination_port=FLOW.destination_port,
|
|
1390
|
-
sequence=1_000 + index *
|
|
1442
|
+
sequence=1_000 + index * piece_size,
|
|
1391
1443
|
payload=piece,
|
|
1392
|
-
timestamp=1.0 + index /
|
|
1444
|
+
timestamp=1.0 + index / 10_000,
|
|
1393
1445
|
)
|
|
1394
1446
|
collector.process_tcp_segment(
|
|
1395
1447
|
source_ip=FLOW.source_ip,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bdo_toolkit-1.0.9 → bdo_toolkit-1.0.10}/tests/test_storage_unknown_destination_calibration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|