bdo-toolkit 1.1.0__tar.gz → 1.1.2__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.1.0/src/bdo_toolkit.egg-info → bdo_toolkit-1.1.2}/PKG-INFO +1 -1
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/assembly.py +19 -1
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/storage.py +71 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_version.py +1 -1
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/_detail_learning.py +12 -9
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2/src/bdo_toolkit.egg-info}/PKG-INFO +1 -1
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_character_state.py +36 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_solare_learning_adversarial.py +16 -2
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/LICENSE +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/README.md +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/pyproject.toml +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/setup.cfg +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/__init__.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_async_sessions.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_async_utils.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_calibration/__init__.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_calibration/_constants.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_calibration/_formatting.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_calibration/_records.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_calibration/analysis.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_calibration/capture.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_calibration/companions.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_calibration/live.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_calibration/models.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_calibration/observations.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_calibration/persistence.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_calibration/progress.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_calibration/validation.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_calibration/workflow.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_capture_backend.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_capture_options.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_capture_runtime.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_deposit_origin.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_engine.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_framing.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/__init__.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/_constants.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/_records.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/character_discovery.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/character_models.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/character_profile.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/character_slots.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/character_witnesses.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/characters.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/formatting.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/inventory.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/models.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_item_state/session.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_observation_session.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_origin/__init__.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_origin/discovery.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_origin/manual.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_origin/models.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_origin/tracker.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_profile_io.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_profile_runtime.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_protocol.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_reassembly.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_record_geometry.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_specs.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_storage_destination_validation.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_storage_hydration.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/_tracked_capture.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/agris/__init__.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/agris/_calibration_models.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/agris/_capture.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/agris/_discovery.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/agris/_profile.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/agris/_validation.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/agris/async_session.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/agris/calibration.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/agris/models.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/agris/replay.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/agris/session.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/calibration.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/capture.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/capture_diagnosis.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/character_calibration.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/character_state.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/cli.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/diagnostics.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/events.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/filters.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/grind/__init__.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/grind/_pipeline.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/grind/models.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/grind/session.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/item_state.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/origin_learning.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/profiles.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/py.typed +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/raw/__init__.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/raw/_collector.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/raw/models.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/raw/replay.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/raw/session.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/remote_profiles.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/__init__.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/_constants.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/_details.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/_discovery.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/_live_tracker.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/_replay_capture.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/_result.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/_scanner.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/_short_board.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/_validation.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/async_session.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/models.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/replay.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/solare/session.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/writers.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/xp/__init__.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/xp/_tracker.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/xp/models.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/xp/profile.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/xp/replay.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit/xp/session.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit.egg-info/SOURCES.txt +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit.egg-info/dependency_links.txt +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit.egg-info/entry_points.txt +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit.egg-info/requires.txt +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/src/bdo_toolkit.egg-info/top_level.txt +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_agris_async.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_agris_cli.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_agris_discovery.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_agris_evidence.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_agris_models.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_agris_profiles.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_agris_replay.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_agris_session.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_async_sessions.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_calibration.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_calibration_conveniences.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_calibration_lifecycle.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_calibration_persistence.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_calibration_progress.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_calibration_retention.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_capture_backend.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_capture_diagnosis.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_capture_replay.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_capture_runtime.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_character_calibration.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_character_loadouts.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_cli.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_decoder_diagnostics.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_deposit_origin.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_direction.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_dynamic_storage_calibration_matrix.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_engine.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_examples_and_writers.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_explicit_profile.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_fixture_catalog.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_fixture_regressions.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_framing.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_grind.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_initial_load_storage.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_inventory_snapshots.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_item_state.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_live_capture_session.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_origin_learning.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_package_layout.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_profile_validation.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_raw.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_reassembly.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_remote_profiles.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_solare_api.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_solare_details.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_solare_equipment.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_solare_history.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_solare_learning.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_solare_real_captures.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_solare_replay.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_solare_session.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_storage_destination_validation.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_storage_events.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_storage_hydration_tracker.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_storage_unknown_destination_calibration.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_toolkit_api.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_xp.py +0 -0
- {bdo_toolkit-1.1.0 → bdo_toolkit-1.1.2}/tests/test_xp_profiles.py +0 -0
|
@@ -44,6 +44,7 @@ from .storage import (
|
|
|
44
44
|
_character_storage_snapshot_fallback,
|
|
45
45
|
_reconcile_split_storage_hydration,
|
|
46
46
|
_small_character_storage_fallback,
|
|
47
|
+
_worker_adjacent_storage_sweep,
|
|
47
48
|
)
|
|
48
49
|
|
|
49
50
|
|
|
@@ -347,7 +348,19 @@ class _CharacterStateAccumulator:
|
|
|
347
348
|
)
|
|
348
349
|
small_fallback_used = bool(storage_events)
|
|
349
350
|
|
|
350
|
-
|
|
351
|
+
worker_sweep_used = False
|
|
352
|
+
if (
|
|
353
|
+
not storage_events
|
|
354
|
+
and fallback_observations is None
|
|
355
|
+
and decoder_health is not None
|
|
356
|
+
and decoder_health.storage_is_compatible
|
|
357
|
+
):
|
|
358
|
+
storage_events = _worker_adjacent_storage_sweep(
|
|
359
|
+
neutral_storage_events, live_storage_boundaries, inventory_anchors,
|
|
360
|
+
)
|
|
361
|
+
worker_sweep_used = bool(storage_events)
|
|
362
|
+
|
|
363
|
+
if storage_events and neutral_storage_events and not worker_sweep_used:
|
|
351
364
|
(
|
|
352
365
|
reconciled_events,
|
|
353
366
|
reconciled_observations,
|
|
@@ -422,6 +435,11 @@ class _CharacterStateAccumulator:
|
|
|
422
435
|
"wrappers; the empty current state is preserved, but no record-level "
|
|
423
436
|
"container metadata was available."
|
|
424
437
|
)
|
|
438
|
+
if worker_sweep_used:
|
|
439
|
+
warnings.append(
|
|
440
|
+
"Storage hydration recovered from consecutive storage frames in TCP "
|
|
441
|
+
"stream order. Worker production was excluded."
|
|
442
|
+
)
|
|
425
443
|
if small_fallback_used:
|
|
426
444
|
warnings.append(
|
|
427
445
|
"Sparse storage state was inferred from one identity-complete cohort "
|
|
@@ -11,6 +11,7 @@ from .._protocol import (
|
|
|
11
11
|
STORAGE_LOCATIONS,
|
|
12
12
|
storage_location,
|
|
13
13
|
)
|
|
14
|
+
from .._storage_hydration import StorageHydrationTracker
|
|
14
15
|
from ..events import BDOEvent
|
|
15
16
|
|
|
16
17
|
from ._constants import (
|
|
@@ -224,6 +225,76 @@ def _small_character_storage_fallback(
|
|
|
224
225
|
return tuple(replace(event, event_type="storage_snapshot", source=None) for event in events)
|
|
225
226
|
|
|
226
227
|
|
|
228
|
+
def _worker_adjacent_storage_sweep(
|
|
229
|
+
events: tuple[BDOEvent, ...],
|
|
230
|
+
boundaries: tuple[BDOEvent, ...],
|
|
231
|
+
anchors: tuple[_HydrationAnchor, ...],
|
|
232
|
+
) -> tuple[BDOEvent, ...]:
|
|
233
|
+
"""Recover one contiguous broad sweep obscured by worker callback ordering.
|
|
234
|
+
|
|
235
|
+
Assembly has already selected the latest inventory flow and generation.
|
|
236
|
+
Require the entire neutral run, with consecutive frame byte ranges, so
|
|
237
|
+
neither missing frames nor live mutations can be bridged.
|
|
238
|
+
"""
|
|
239
|
+
if not events or not anchors or not boundaries:
|
|
240
|
+
return ()
|
|
241
|
+
if any(
|
|
242
|
+
e.source != "Worker Production" or e.event_type != "storage_delta"
|
|
243
|
+
for e in boundaries
|
|
244
|
+
):
|
|
245
|
+
return ()
|
|
246
|
+
if len({e.opcode for e in events}) != 1 or any(
|
|
247
|
+
not e.storage_instance or not e.storage_id or e.quantity <= 0 for e in events
|
|
248
|
+
):
|
|
249
|
+
return ()
|
|
250
|
+
times = sorted({e.timestamp for e in events})
|
|
251
|
+
anchor = max(a.timestamp for a in anchors)
|
|
252
|
+
if not anchor <= times[0] <= times[-1] <= anchor + _STORAGE_HYDRATION_EPOCH_SECONDS:
|
|
253
|
+
return ()
|
|
254
|
+
if times[-1] - times[0] > _STORAGE_HYDRATION_MAX_BURST_SECONDS or any(
|
|
255
|
+
b - a > _STORAGE_HYDRATION_BURST_GAP_SECONDS for a, b in zip(times, times[1:])
|
|
256
|
+
):
|
|
257
|
+
return ()
|
|
258
|
+
frame_events: dict[int, list[BDOEvent]] = {}
|
|
259
|
+
for event in events:
|
|
260
|
+
seq = _event_frame_key(event).stream_sequence
|
|
261
|
+
if seq is None:
|
|
262
|
+
return ()
|
|
263
|
+
frame_events.setdefault(seq, []).append(event)
|
|
264
|
+
positions: list[tuple[int, int, int]] = []
|
|
265
|
+
for seq, rows in frame_events.items():
|
|
266
|
+
first = rows[0]
|
|
267
|
+
if not first.message_length or not first.storage_id:
|
|
268
|
+
return ()
|
|
269
|
+
if len(rows) != (first.record_count or 1):
|
|
270
|
+
return ()
|
|
271
|
+
if len({row.record_index for row in rows}) != len(rows):
|
|
272
|
+
return ()
|
|
273
|
+
positions.append((seq, first.message_length, first.storage_id))
|
|
274
|
+
positions.sort()
|
|
275
|
+
towns: set[int] = set()
|
|
276
|
+
previous_town = None
|
|
277
|
+
end = positions[0][0]
|
|
278
|
+
for start, length, town in positions:
|
|
279
|
+
if start != end or (town != previous_town and town in towns):
|
|
280
|
+
return ()
|
|
281
|
+
end = start + length
|
|
282
|
+
towns.add(town)
|
|
283
|
+
previous_town = town
|
|
284
|
+
if (
|
|
285
|
+
len(towns) < StorageHydrationTracker.MIN_UNANCHORED_DESTINATIONS
|
|
286
|
+
or max(map(len, frame_events.values())) < StorageHydrationTracker.MIN_UNANCHORED_RECORD_COUNT
|
|
287
|
+
):
|
|
288
|
+
return ()
|
|
289
|
+
for event in boundaries:
|
|
290
|
+
seq = _event_frame_key(event).stream_sequence
|
|
291
|
+
if seq is None or not event.message_length:
|
|
292
|
+
return ()
|
|
293
|
+
if seq < end and seq + event.message_length > positions[0][0]:
|
|
294
|
+
return ()
|
|
295
|
+
return tuple(replace(e, event_type="storage_snapshot") for e in events)
|
|
296
|
+
|
|
297
|
+
|
|
227
298
|
def _reconcile_split_storage_hydration(
|
|
228
299
|
frames: Iterable[BDOFrame],
|
|
229
300
|
snapshot_events: Iterable[BDOEvent],
|
|
@@ -70,7 +70,8 @@ _MAX_AGGREGATE_VECTORS = 256
|
|
|
70
70
|
_MAX_LEARNED_RECORD_END = 32 * 1024
|
|
71
71
|
_MIN_HISTORY_DISCRIMINATORS = 5
|
|
72
72
|
_PREFILTER_ROWS = 32
|
|
73
|
-
|
|
73
|
+
_MAX_WHOLE_ZERO_REGION = 15
|
|
74
|
+
_MAX_ZERO_PLACEMENT_REGION = 16
|
|
74
75
|
|
|
75
76
|
|
|
76
77
|
@dataclass(frozen=True)
|
|
@@ -489,8 +490,8 @@ def _anchored_zero_outcome_offsets(
|
|
|
489
490
|
one bounded 12..15-byte zero region may remain. Shorter unassigned gaps
|
|
490
491
|
cannot contain a complete three-counter array. Every complete placement
|
|
491
492
|
in a fully zero region decodes the same vector. Otherwise require a unique
|
|
492
|
-
bounded region and exactly one all-zero array placement.
|
|
493
|
-
zero region is promoted.
|
|
493
|
+
bounded region of at most 16 bytes and exactly one all-zero array placement.
|
|
494
|
+
No arbitrary zero region is promoted.
|
|
494
495
|
Distinct container proofs and conflicting counter solutions still reject.
|
|
495
496
|
"""
|
|
496
497
|
complementary = tuple(
|
|
@@ -533,7 +534,7 @@ def _anchored_zero_outcome_offsets(
|
|
|
533
534
|
if elos[0] >= class_field:
|
|
534
535
|
fixed.append((elos[0], 4))
|
|
535
536
|
proofs: set[tuple[int, ...]] = set()
|
|
536
|
-
|
|
537
|
+
placement_containers: set[tuple[int, int]] = set()
|
|
537
538
|
for first_offset, second_offset in complementary:
|
|
538
539
|
intervals = sorted(fixed + [(first_offset, 12), (second_offset, 12)])
|
|
539
540
|
cursor = class_field
|
|
@@ -553,22 +554,24 @@ def _anchored_zero_outcome_offsets(
|
|
|
553
554
|
wide = [(start, size) for start, size in gaps if size >= 12]
|
|
554
555
|
# Unknown bytes smaller than a full array cannot compete with its
|
|
555
556
|
# container. Larger gaps still require the unique bounded proof below.
|
|
556
|
-
if len(wide) != 1 or wide[0][1] >
|
|
557
|
+
if len(wide) != 1 or wide[0][1] > _MAX_ZERO_PLACEMENT_REGION:
|
|
557
558
|
continue
|
|
558
559
|
start, size = wide[0]
|
|
559
|
-
if
|
|
560
|
+
if size <= _MAX_WHOLE_ZERO_REGION and all(
|
|
561
|
+
row[start:start + size] == bytes(size) for row in rows
|
|
562
|
+
):
|
|
560
563
|
proofs.add(tuple(range(start, start + size - 12 + 1)))
|
|
561
564
|
if len(proofs) > 1:
|
|
562
565
|
return ()
|
|
563
566
|
else:
|
|
564
|
-
|
|
567
|
+
placement_containers.add((start, size))
|
|
565
568
|
if proofs:
|
|
566
569
|
return next(iter(proofs))
|
|
567
570
|
# Only after ordinary whole-container proof fails: the complementary
|
|
568
571
|
# counters require zero in every slot. Adjacent bytes have no meaning.
|
|
569
|
-
if len(
|
|
572
|
+
if len(placement_containers) != 1:
|
|
570
573
|
return ()
|
|
571
|
-
start, size =
|
|
574
|
+
start, size = placement_containers.pop()
|
|
572
575
|
placements = tuple(
|
|
573
576
|
offset for offset in range(start, start + size - 12 + 1)
|
|
574
577
|
if all(row[offset:offset + 12] == bytes(12) for row in rows)
|
|
@@ -2977,3 +2977,39 @@ def test_small_load_fallback_preserves_snapshot_before_later_activity():
|
|
|
2977
2977
|
state = accumulator.snapshot()
|
|
2978
2978
|
assert state.storages.nonempty_count == 1
|
|
2979
2979
|
assert any("Sparse storage state was inferred" in w for w in state.warnings)
|
|
2980
|
+
|
|
2981
|
+
|
|
2982
|
+
@pytest.mark.parametrize("workers", [1, 237])
|
|
2983
|
+
@pytest.mark.parametrize("boundary", ["outside", "inside", "unknown", "manual", "gap"])
|
|
2984
|
+
def test_worker_burst_can_only_recover_contiguous_neutral_frames(workers, boundary):
|
|
2985
|
+
accumulator = _CharacterStateAccumulator(
|
|
2986
|
+
profile_source="test", specs=(_storage_snapshot_spec(),),
|
|
2987
|
+
)
|
|
2988
|
+
accumulator.observe_event(_state_inventory_anchor())
|
|
2989
|
+
for index in range(workers):
|
|
2990
|
+
worker = _state_storage_event(
|
|
2991
|
+
timestamp=1.3, sequence=200_000 + 257 * index,
|
|
2992
|
+
storage_id=32, event_type="storage_delta",
|
|
2993
|
+
)
|
|
2994
|
+
worker = replace(worker, source="Worker Production")
|
|
2995
|
+
if index == 0:
|
|
2996
|
+
if boundary == "inside":
|
|
2997
|
+
worker = replace(worker, extra={"stream_sequence": 1257})
|
|
2998
|
+
elif boundary == "unknown":
|
|
2999
|
+
worker = replace(worker, extra={})
|
|
3000
|
+
elif boundary == "manual":
|
|
3001
|
+
worker = replace(worker, source="Manual")
|
|
3002
|
+
accumulator.observe_event(worker)
|
|
3003
|
+
for index, town in enumerate(tuple(STORAGE_LOCATIONS)[:17]):
|
|
3004
|
+
seq = 1000 + index * 257 + int(boundary == "gap" and index > 0)
|
|
3005
|
+
event = _state_storage_event(
|
|
3006
|
+
timestamp=1.2, sequence=seq, storage_id=town, event_type="storage_record",
|
|
3007
|
+
)
|
|
3008
|
+
count = 8 if index == 0 else 1
|
|
3009
|
+
for i in range(count):
|
|
3010
|
+
accumulator.observe_event(replace(
|
|
3011
|
+
event, record_index=i + 1, record_count=count,
|
|
3012
|
+
storage_instance=f"town-{town}-stack-{i}",
|
|
3013
|
+
))
|
|
3014
|
+
result = accumulator.snapshot(decoder_health=DecoderHealth(storage_status="compatible"))
|
|
3015
|
+
assert result.storages.occupied_stacks == (24 if boundary == "outside" else 0)
|
|
@@ -688,19 +688,33 @@ def test_zero_outcomes_reject_another_gap_large_enough_for_a_counter_array(gap_s
|
|
|
688
688
|
assert learning._learn_performance_offsets(replace(records, rows=rows), 12, occupancies) is None
|
|
689
689
|
|
|
690
690
|
|
|
691
|
-
@pytest.mark.parametrize("leading,trailing", (
|
|
691
|
+
@pytest.mark.parametrize("leading,trailing", (
|
|
692
|
+
(b"", b"\x12\x34"), (b"\x56", b"\x78"), (b"\x34\x12", b""),
|
|
693
|
+
(b"", b"\x01\x02\x03\x04"), (b"\x01\x02", b"\x03\x04"), (b"\x01\x02\x03\x04", b""),
|
|
694
|
+
))
|
|
692
695
|
def test_zero_outcomes_require_unique_placement_inside_nonzero_container(leading, trailing):
|
|
693
696
|
records, occupancies = _zero_draw_tail()
|
|
694
697
|
rows = tuple(row[:7867] + (leading if i == 1 else bytes(len(leading))) +
|
|
695
698
|
row[7867:] + (trailing if i == 1 else bytes(len(trailing)))
|
|
696
699
|
for i, row in enumerate(records.rows))
|
|
697
|
-
records.family.frame_length +=
|
|
700
|
+
records.family.frame_length += len(leading) + len(trailing)
|
|
698
701
|
performance = learning._learn_performance_offsets(replace(records, rows=rows), 12, occupancies)
|
|
699
702
|
assert performance is not None
|
|
700
703
|
assert performance.draws_offset == 7867 + len(leading)
|
|
701
704
|
assert not performance.zero_outcome_candidates
|
|
702
705
|
|
|
703
706
|
|
|
707
|
+
@pytest.mark.parametrize("trailing", (
|
|
708
|
+
b"\x00\x01\x02\x03", # Two valid starts in a 16-byte region.
|
|
709
|
+
b"\x01\x02\x03\x04\x05", # Unique placement, but beyond the fallback's bound.
|
|
710
|
+
))
|
|
711
|
+
def test_zero_outcomes_reject_ambiguous_or_oversized_placement_region(trailing):
|
|
712
|
+
records, occupancies = _zero_draw_tail()
|
|
713
|
+
rows = tuple(row + trailing for row in records.rows)
|
|
714
|
+
records.family.frame_length += len(trailing)
|
|
715
|
+
assert learning._learn_performance_offsets(replace(records, rows=rows), 12, occupancies) is None
|
|
716
|
+
|
|
717
|
+
|
|
704
718
|
@pytest.mark.parametrize("damage", ("large_tail", "nonzero_before", "nonzero_after", "other_wide_gap"))
|
|
705
719
|
def test_zero_outcome_equivalence_rejects_unproved_containers(damage):
|
|
706
720
|
records, occupancies = _zero_draw_tail()
|
|
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
|
|
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.1.0 → bdo_toolkit-1.1.2}/tests/test_storage_unknown_destination_calibration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|