From f1b8d41bb49641be04998410335f5166cee3010a Mon Sep 17 00:00:00 2001 From: "Aleksei (Faumaray) Selikhov" Date: Wed, 2 Dec 2026 23:10:35 +0300 Subject: [PATCH] Persist item custody and restore in-flight work from historical saves --- CMakeLists.txt | 1 + docs/agent-workflow/tasks/S15-04.md | 48 ++ engine/include/settlement/core/checkpoint.hpp | 6 +- engine/src/checkpoint.cpp | 7 +- engine/src/world_save.cpp | 353 +++++++++++- tests/checkpoint_tests.cpp | 6 +- tests/custody_migration_tests.cpp | 214 +++++++ tests/fixtures/custody_v14/README.md | 7 + tests/fixtures/custody_v14/capture.cpp | 59 ++ tests/fixtures/custody_v14/fixtures.hpp | 541 ++++++++++++++++++ 10 files changed, 1226 insertions(+), 16 deletions(-) create mode 100644 docs/agent-workflow/tasks/S15-04.md create mode 100644 tests/custody_migration_tests.cpp create mode 100644 tests/fixtures/custody_v14/README.md create mode 100644 tests/fixtures/custody_v14/capture.cpp create mode 100644 tests/fixtures/custody_v14/fixtures.hpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e6f933..7f926fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,6 +121,7 @@ if(BUILD_TESTING) add_executable(settlement_core_tests tests/checkpoint_tests.cpp tests/checkpoint_file_tests.cpp + tests/custody_migration_tests.cpp tests/core_tests.cpp tests/executor_tests.cpp tests/identity_tests.cpp diff --git a/docs/agent-workflow/tasks/S15-04.md b/docs/agent-workflow/tasks/S15-04.md new file mode 100644 index 0000000..a2d3d22 --- /dev/null +++ b/docs/agent-workflow/tasks/S15-04.md @@ -0,0 +1,48 @@ +# Migrate historical cargo and persist modern custody atomically + +Task ID: S15-04 +Role: astra_implementer +Status: READY + +## 1. Context and baseline +Isolated s15 worktree f6493e2. Stable read-only historical checkout /tmp/stoneheart-milestones.xprJ2SVp/fixture-v14 at same ref, old Windows build available. Current published checkpoint schema2/body14, schema1/body1–13. S06-03 under construction in sibling s06 exclusively owns World types/normal transitions, will supply concrete data declarations via parent. Source-grounded M01-P5/F8, docs/plan/custody.md include full decisions. + +## 2. Objective and deliverables +Capture genuine old schema2/raw14 fixtures now, then implement canonical raw15/checkpoint3 encoding, strict validation, bounded migration of prior genuine worlds and before-output typed rejection of unrepresentable raw13 states. Complete end-to-end after root integrates S06 schema declarations into this worktree. + +## 3. Scope and non-goals +Persistence/codecs and validated restored state only. No World gameplay changes, command dispatcher, UI, net or new dependency. Data snapshots/custody/command semantics remain owned by sibling S06/S04. Do not invent temporary independent schema if peer interface pending; use that interval for golden collection and historical phase audit. + +## 4. Files to inspect +Read root/S06 docs plan/custody, M01-F8, old world_save.cpp full validator and historical fields, checkpoint.hpp/.cpp, checkpoint_files.cpp, world.hpp current14, new custody declarations when supplied, existing tests/checkpoint*, identity/production_identity/replay/snapshot/quantity, pinned Binary budgets and hash. Fixtures old source and golden corpus/probe helpers in /tmp/stoneheart-milestones.xprJ2SVp. S15-03 already version/size-safe reader/write service. + +## 5. Write ownership and coordination +Write scope: engine/src/world_save.cpp; optional NEW engine/src/custody_save.cpp/internal header for supported codec; engine/include/settlement/core/checkpoint.hpp; engine/src/checkpoint.cpp; engine/src/checkpoint_files.cpp only as genuinely required; tests/checkpoint_tests.cpp/tests/checkpoint_file_tests.cpp/tests/snapshot_tests.cpp only for schema/current snapshot checks; NEW tests/custody_migration_tests.cpp and concise frozen fixture data if needed; CMakeLists.txt limited to registering owned codec/test sources; docs/plan/systems/S15.md +Do not change world.hpp/world.cpp (S06 owner), dispatcher or LAN/app. Other agents work in sibling checkouts; never revert their work. Root will integrate S06 headers when ready. No Git/remote/children or shared Serena switch. + +## 6. Implementation or investigation approach +First capture authentic schema2/raw14 from old binary before peer edits. Include fixed seed/UUID, actual legacy Working worksite after pickup, between stops/hauled product, normal/direct order, staged simple as applicable. Preserve original bytes or minimal readable hex fixture + provenance+SHA and exercise actual decode; do not generate expected old bytes using new writer. Parse/check input under historical schema first; preserve true unused/complete routes. For versions before 5 preserve sleep normalization, versions1–8 historical footer/different fields. Old Working delivery order with stops cleared/no resident material reconstructs exactly validated input at ProductionId; direct SawPlank/CutStoneBlock/WeaveCloth inputs stay in storage; post-carpentry output belongs to resident, no active production link. Meal and tending phases distinct. Allocate migrated IDs deterministically by owner kind/ID/item, active execution by AgentId. Opening balance computed only after implicit site stock reconstructed. Migrated active admission generation1,next2, no fabricated receipt, inactive next1. + +## 7. Interfaces and data contracts +Explicit schema table 1→body1..13, 2→14, 3→15 with digest before decoding, no version-constant-only dropping v2. Strict authenticated body15 data includes all counters/IDs, owner stacks incl site, live execution+claims/capacity backing and source leases, saved phase/pending completion/suspended partials, opening/source/sink totals, exact canonical creation+ordinal receipt ring incl bounds/retired refs. Enforce sorted unique live identities, ID nonzero/less-than valid highwater, one owner, references/counts/claim capacity and valid reservations; historical receipts may name retired IDs below issued highwater, never demand liveness of those refs. Reject modern missing/inconsistent states; no rematerializing missing modern data. Original current14 vs Legacy13 outputs must remain available as defined. Use shared S06 pure validation/projection method where feasible; avoid duplicate simulation/codec rules. + +## 8. Dependencies and integration +Raw13 projection performs complete legacy representability check BEFORE first externally written byte incl single Plank/StoneBlock canceled orderless haul, mixed cargo, missing dropoff, suspended residual bed/loom, zero-completion pending or other modern combinations. Signal typed UnsupportedLegacyState from agreed core type for S16. Preserve valid historical reserved counts/source storage leases, stops and route metadata, actual frozen old byte corpora exact. Modern persistent codec must save unsupported-on-LAN states safely. Parent handles per-worktree header merge; report exact needed seam early. Avoid a 128MiB scratch copy just to detect unsupported states when pure preflight suffices. + +## 9. Edge cases security and performance +Strict 128 MiB body/existing size limits/1M collection caps and exact 4096 receipts, <=1024 bytes each request/result, checked iteration/preallocation budget/count arithmetic before allocation. No hash-only conflict comparison. Tests fully authenticated malformed data for wrong outer/body pair, duplicates and mismatched counters/balances, dangling live vs valid historical refs, embedded wrong epoch, exhausted IDs, canonical order. Preserve existing file/owner transaction semantics and background service. Avoid O(N²) owner/claim lookups and full defensive copies in hot paths. + +## 10. Acceptance criteria +1. Tests load authentic old fixtures (old1–14 layout as supported) at real phases then continue to same economic/gameplay outcome, including original current14. 2. Canonical full modern equality over save/load mid transfers/suspension/return and replay, retained snapshots include new state. 3. Host-facing raw13 rejected states write zero bytes while normal golden projections match. 4. Every malformed candidate rejected without affecting active world/data. 5. All cross-branch integration, Wine CTest and focused migration tests; native caveat. + +## 11. Verification commands and evidence +Source /tmp/stoneheart-verify.KoZwE4o8/env.sh. From YOUR worktree configure cmake -S . -B /tmp/stoneheart-milestones.xprJ2SVp/s15-custody-build -G Ninja --toolchain "$SETTLEMENT_VERIFY/cross.cmake" -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DFETCHCONTENT_SOURCE_DIR_VOID_LIBRARY:PATH="$SETTLEMENT_VERIFY/candidate/_deps/void_library-src". Build with cmake --build --parallel 6, run ctest --test-dir --output-on-failure and your targeted tests. Evidence required. For historical capture use immutable /tmp/stoneheart-milestones.xprJ2SVp/fixture-v14 headers/source and matching prechange runtime library; save evidence/probe/hash under /tmp, freeze meaningful fixtures in tests where necessary. Later CTest -V/targeted custody migration/current/old golden probes and git diff --check; s15-custody-* logs. + +## 12. Constraints and stop conditions +If core declarations are not frozen, deliver authentic fixtures and precise needed interfaces now; do not guess incompatible wire layout or edit S06 files. Root coordinates compile/integration. No standalone incomplete publication. After two failed same-cause fixes escalate with evidence. + +## 13. Authorization and decisions +User authorizes full roadmap, file compatibility and Gitea milestones. Root accepts 1–3 outer + 1–15 body migration and all F8 constraints. Server/client adverse input validation is defensive, with no external communication. Root owns all public actions. + +## 14. Return format +Return S15-04 progress including authentic prechange fixture SHA early, actual agreed storage schema/constraints, changed paths/tests/golden behaviors; mark native/combined gates explicitly. diff --git a/engine/include/settlement/core/checkpoint.hpp b/engine/include/settlement/core/checkpoint.hpp index caf7e2b..cb57b41 100644 --- a/engine/include/settlement/core/checkpoint.hpp +++ b/engine/include/settlement/core/checkpoint.hpp @@ -15,7 +15,7 @@ namespace settlement { -inline constexpr std::uint32_t checkpoint_version = 2; +inline constexpr std::uint32_t checkpoint_version = 3; inline constexpr std::string_view checkpoint_signature = "STHCHKPT"; inline constexpr std::size_t max_checkpoint_body_bytes = 128 * 1024 * 1024; inline constexpr std::size_t max_checkpoint_metadata_bytes = 64 * 1024; @@ -47,10 +47,10 @@ struct WorldCheckpoint { RulesManifest rules; }; -// Both schemas store magic, schema, metadata length and body length, then world UUID, +// All schemas store magic, schema, metadata length and body length, then world UUID, // city, tick, rules fingerprint and the sorted complete package closure. Each // package stores its ID, exact version and SHA-256. The body uses World's save -// codec: schema 1 accepts legacy bodies 1–13; schema 2 requires body 14. +// codec: schema 1 accepts bodies 1–13; schema 2 requires 14; schema 3 requires 15. // A final SHA-256 covers every preceding byte. Integers are little-endian. // The caller holds a stable World for the entire synchronous encode operation. [[nodiscard]] std::expected encode_checkpoint( diff --git a/engine/src/checkpoint.cpp b/engine/src/checkpoint.cpp index 81da2e6..7ccb480 100644 --- a/engine/src/checkpoint.cpp +++ b/engine/src/checkpoint.cpp @@ -165,7 +165,7 @@ std::expected encode_checkpoint( fail(CheckpointError::LimitExceeded, "metadata_length", "Checkpoint metadata exceeds 64 KiB."); } std::ostringstream stream(std::ios::binary); - world.write_save(stream, WorldSaveFormat::Current14); + world.write_save(stream, WorldSaveFormat::Current15); auto body = std::move(stream).str(); if (body.size() > max_checkpoint_body_bytes) { fail(CheckpointError::LimitExceeded, "body_length", "Checkpoint world exceeds 128 MiB."); @@ -213,7 +213,7 @@ std::expected decode_checkpoint( fail(CheckpointError::InvalidFrame, "magic", "Checkpoint signature does not match."); } const auto schema = get(header, "version"); - if (schema != 1 && schema != checkpoint_version) { + if (schema != 1 && schema != 2 && schema != 3) { fail(CheckpointError::UnsupportedVersion, "version", "Checkpoint schema is not supported."); } const auto metadata_size = get(header, "metadata_length"); @@ -270,7 +270,8 @@ std::expected decode_checkpoint( Void::Binary::Reader body_header(wire_bytes(body).subspan(8, 4)); const auto body_version = get(body_header, "world.version"); if ((schema == 1 && (body_version < 1 || body_version > 13)) || - (schema == 2 && body_version != 14)) { + (schema == 2 && body_version != 14) || + (schema == 3 && body_version != 15)) { fail(CheckpointError::InvalidWorld, "world.version", "Checkpoint schema and world version do not match."); } std::ispanstream stream(std::span{body.data(), body.size()}); diff --git a/engine/src/world_save.cpp b/engine/src/world_save.cpp index 4a72d2e..ce895e6 100644 --- a/engine/src/world_save.cpp +++ b/engine/src/world_save.cpp @@ -18,7 +18,7 @@ namespace settlement { namespace { constexpr std::string_view signature = "SETTLERS"; -constexpr std::uint32_t save_version = 14; +constexpr std::uint32_t save_version = 15; constexpr std::uint32_t last_legacy_footer_version = 8; constexpr std::size_t max_records = 1'000'000; constexpr std::size_t max_save_bytes = 128 * 1024 * 1024; @@ -86,6 +86,11 @@ public: } } + void allocate(std::size_t count, std::size_t size) { + require_save(count <= max_save_bytes / size && + allocations_.consume_field(count * size).has_value(), "Save allocation budget exceeded."); + } + void set_version(std::uint32_t version) { legacy_footer_ = version <= last_legacy_footer_version; } @@ -104,6 +109,7 @@ private: std::istream& stream_; std::size_t bytes_ = 0; // Legacy footers cover the signature and version, which are read first. + Void::Binary::DecodeBudget allocations_{{max_save_bytes, max_save_bytes, 64}}; bool legacy_footer_ = true; std::uint64_t legacy_digest_ = Void::Hash::fnv1a64_offset_basis; }; @@ -115,6 +121,7 @@ void sequence(Archive& archive, Vector& values, std::size_t limit, Visit visit) archive.field(length); require_save(length <= limit, "Save contains too many records."); if constexpr (Archive::reading) { + archive.allocate(length, sizeof(typename Vector::value_type)); for (std::uint32_t i = 0; i < length; ++i) { values.emplace_back(); visit(values.back()); @@ -371,10 +378,192 @@ struct WorldSaveCodec { } } - static void validate(const World& world); + template + static void custody(Archive& archive, State& world); + static void validate(const World& world, bool modern = false); }; -void WorldSaveCodec::validate(const World& world) { +namespace { + +template +void owner_fields(Archive& archive, Owner& owner) { + archive.field(owner.kind); + archive.field(owner.id); + require_save(owner.kind <= OwnerKind::Production, "Unknown custody owner."); + require_save((owner.kind == OwnerKind::None) == (owner.id == 0), "Invalid custody owner identity."); +} + +template +void claim_fields(Archive& archive, Claim& claim) { + archive.field(claim.id); + archive.field(claim.kind); + owner_fields(archive, claim.owner); + archive.field(claim.stack); + archive.field(claim.item); + archive.field(claim.count); + archive.field(claim.backing); + archive.field(claim.origin_storage); + require_save(claim.kind <= ReservationKind::Tending && claim.item <= ItemType::Loom, + "Unknown reservation kind or item."); + require_save(claim.id != 0 || claim == Reservation{}, "Noncanonical released reservation."); +} + +template +void request_fields(Archive& archive, Request& request) { + // These are exact tagged little-endian fields, never an object image or hash. + std::uint16_t size = static_cast(44 + 13 * request.line_count); + archive.field(size); + require_save(size <= 1024, "Custody request exceeds 1024 bytes."); + archive.field(request.key.kind); + archive.field(request.key.id); + archive.field(request.key.ordinal); + archive.field(request.operation); + archive.field(request.kind); + archive.field(request.production); + archive.field(request.source); + archive.field(request.destination); + archive.field(request.line_count); + require_save(request.line_count <= custody_material_limit && size == 44 + 13 * request.line_count, + "Noncanonical custody request length."); + require_save(request.key.kind <= CustodyKeyKind::Operation && request.operation <= CustodyOperation::Tend && + request.kind <= TransferKind::Return && request.key.id != 0 && request.key.ordinal != 0 && + ((request.key.kind == CustodyKeyKind::Admission) == (request.operation == CustodyOperation::Admit)), + "Invalid custody request tag or key."); + for (std::size_t i = 0; i < request.line_count; ++i) { + auto& line = request.lines[i]; + archive.field(line.storage); + archive.field(line.item); + archive.field(line.count); + require_save(line.storage != 0 && line.item > ItemType::None && line.item <= ItemType::Loom && line.count != 0, + "Invalid custody request line."); + } + for (std::size_t i = request.line_count; i < request.lines.size(); ++i) { + require_save(request.lines[i] == CustodyLine{}, "Noncanonical unused request line."); + } +} + +template +void result_fields(Archive& archive, Result& result) { + std::uint16_t size = static_cast(12 + 8 * result.reservation_count + 22 * result.effect_count); + archive.field(size); + require_save(size <= 1024, "Custody result exceeds 1024 bytes."); + archive.field(result.status); + archive.field(result.transfer); + archive.field(result.reservation_count); + archive.field(result.effect_count); + flag(archive, result.terminal); + require_save(result.status <= CustodyStatus::NoDestination && + result.reservation_count <= custody_reservation_limit && result.effect_count <= item_type_count && + size == 12 + 8 * result.reservation_count + 22 * result.effect_count, + "Noncanonical custody result length or tag."); + for (std::size_t i = 0; i < result.reservation_count; ++i) archive.field(result.reservations[i]); + for (std::size_t i = result.reservation_count; i < result.reservations.size(); ++i) { + require_save(result.reservations[i] == 0, "Noncanonical unused result reservation."); + } + for (std::size_t i = 0; i < result.effect_count; ++i) { + auto& effect = result.effects[i]; + owner_fields(archive, effect.owner); + archive.field(effect.stack); + archive.field(effect.item); + archive.field(effect.count); + require_save(effect.owner.kind != OwnerKind::None && effect.stack != 0 && + effect.item > ItemType::None && effect.item <= ItemType::Loom && effect.count != 0, + "Invalid custody result effect."); + } + for (std::size_t i = result.effect_count; i < result.effects.size(); ++i) { + require_save(result.effects[i] == CustodyEffect{}, "Noncanonical unused result effect."); + } +} + +} // namespace + +template +void WorldSaveCodec::custody(Archive& archive, State& world) { + archive.field(world.next_stack_id_); + archive.field(world.next_reservation_id_); + archive.field(world.next_transfer_id_); + const auto inventory = [&](auto& value, bool quantities) { + for (std::size_t i = 1; i <= item_type_count; ++i) { + const auto type = static_cast(i); + auto count = value.item_count(type); + if (quantities) archive.field(count); + auto id = value.stack_id(type); + archive.field(id); + require_save((id == 0) == (count == 0), "Noncanonical custody stack identity."); + if constexpr (Archive::reading) { + if (quantities && count != 0) value.add(type, count); + value.set_stack_id(type, id); + } + } + }; + for (auto& storage : world.storages_) { + for (auto& stack : storage.items) archive.field(stack.id); + } + for (auto& agent : world.agents_) { + inventory(agent.inventory, false); + archive.field(agent.next_admission); + bool present = agent.execution.has_value(); + flag(archive, present); + if constexpr (Archive::reading) { if (present) agent.execution.emplace(); } + if (!present) continue; + auto& execution = *agent.execution; + archive.field(execution.id); + archive.field(execution.kind); + archive.field(execution.production); + archive.field(execution.source); + archive.field(execution.destination); + archive.field(execution.next_operation); + archive.field(execution.blocked); + archive.field(execution.reservation_count); + require_save(execution.kind <= TransferKind::Return && execution.blocked <= CustodyStatus::NoDestination && + execution.reservation_count <= custody_reservation_limit, "Invalid custody execution fields."); + for (std::size_t i = 0; i < execution.reservation_count; ++i) claim_fields(archive, execution.reservations[i]); + for (std::size_t i = execution.reservation_count; i < execution.reservations.size(); ++i) { + require_save(execution.reservations[i] == Reservation{}, "Noncanonical unused reservation."); + } + } + for (auto& order : world.production_orders_) { + inventory(order.input, true); + flag(archive, order.suspended); + } + for (auto& balance : world.item_balances_) { + archive.field(balance.opening); + archive.field(balance.grant); + archive.field(balance.harvest); + archive.field(balance.recipe_output); + archive.field(balance.recipe_input); + archive.field(balance.meal); + archive.field(balance.installation); + archive.field(balance.demolition); + } + auto count = static_cast(world.custody_receipts_.size()); + require_save(world.custody_receipts_.size() <= custody_receipt_limit, "Too many custody receipts."); + archive.field(count); + require_save(count <= custody_receipt_limit, "Too many custody receipts."); + if constexpr (Archive::reading) { + archive.allocate(count, sizeof(CustodyReceipt) + sizeof(std::shared_ptr)); + world.custody_receipts_.reserve(count); + for (std::uint32_t i = 0; i < count; ++i) { + auto receipt = std::make_shared(); + request_fields(archive, receipt->request); + result_fields(archive, receipt->result); + world.custody_receipts_.push_back(std::move(receipt)); + } + world.custody_receipt_cursor_ = 0; + } else { + require_save(count == custody_receipt_limit ? world.custody_receipt_cursor_ < count : + world.custody_receipt_cursor_ == 0, "Invalid custody receipt cursor."); + for (std::size_t i = 0; i < count; ++i) { + const auto index = (i + world.custody_receipt_cursor_) % count; + const auto& receipt = world.custody_receipts_[index]; + require_save(receipt != nullptr, "Missing custody receipt."); + request_fields(archive, receipt->request); + result_fields(archive, receipt->result); + } + } +} + +void WorldSaveCodec::validate(const World& world, bool modern) { const auto invalid = [](bool good) { require_save(good, "Save contains inconsistent simulation state."); }; const auto inside = [&](GridPosition p) { return p.x >= 0 && p.x < world.width_ && p.y >= 0 && p.y < world.height_; @@ -466,6 +655,21 @@ void WorldSaveCodec::validate(const World& world) { invalid(resident != world.agents_.end() && resident->id == order.bed_owner); bed_owners.push_back(order.bed_owner); } + if (modern) { + invalid(order.materials.size() <= custody_material_limit && + order.collected_stops <= order.delivery_stops.size()); + for (const auto& material : order.materials) { + static_cast(item_index(material.type)); + invalid(material.count > 0 && world.find_storage(material.storage_id) != nullptr); + } + StorageId previous_stop = 0; + for (const auto& stop : order.delivery_stops) { + invalid(stop.storage_id > previous_stop && world.find_storage(stop.storage_id) != nullptr); + previous_stop = stop.storage_id; + valid_route(stop.route_to_next); + } + continue; + } if (order.state != JobState::InProgress) { invalid(order.materials.empty() && order.delivery_stops.empty() && order.collected_stops == 0); continue; @@ -551,7 +755,7 @@ void WorldSaveCodec::validate(const World& world) { std::vector rest_destinations; for (const auto& agent : world.agents_) { using enum AgentState; - invalid(agent.state <= Sleeping && agent.route_cursor <= agent.route.size() && agent.hunger <= max_hunger && + invalid(agent.state <= (modern ? Returning : Sleeping) && agent.route_cursor <= agent.route.size() && agent.hunger <= max_hunger && (world.hunger_enabled_ || agent.hunger == 0) && agent.fatigue <= max_fatigue && (world.scenario_active_ || agent.fatigue == 0)); invalid(!agent.resting_on_ground || agent.state == Sleeping || agent.state == GoingToSleep); @@ -566,7 +770,7 @@ void WorldSaveCodec::validate(const World& world) { const bool has_storage = agent.storage_id != 0; invalid(!has_storage || world.find_storage(agent.storage_id) != nullptr); const bool carpentry = has_order && is_carpentry_recipe(production->recipe); - invalid(agent.haul_route.empty() || has_source || carpentry); + invalid(modern || agent.haul_route.empty() || has_source || carpentry); if (has_job) { invalid(!has_order && !has_storage && !has_source && agent.inventory.empty() && (agent.state == Travelling || agent.state == Working) && agent.work_remaining > 0); @@ -576,6 +780,11 @@ void WorldSaveCodec::validate(const World& world) { auto& claimed = job_claims[static_cast(job - world.jobs_.begin())]; invalid(claimed == 0); claimed = 1; + } else if (modern && agent.state != GoingToSleep && agent.state != Sleeping) { + invalid(!has_source || world.find_resource_node(agent.resource_node_id) != nullptr); + // Live property, claims, execution phase and zero-time pending work + // are checked together by the authoritative custody validator. + continue; } else if (has_order) { invalid(!has_storage && !has_source && agent.work_remaining > 0); const auto order_index = static_cast(production - world.production_orders_.data()); @@ -657,6 +866,7 @@ void WorldSaveCodec::validate(const World& world) { for (std::size_t i = 0; i < world.jobs_.size(); ++i) { invalid((job_claims[i] != 0) == (world.jobs_[i].state == JobState::InProgress)); } + if (modern) { world.validate_custody(); return; } for (std::size_t i = 0; i < world.production_orders_.size(); ++i) { invalid((order_claims[i] != 0) == (world.production_orders_[i].state == JobState::InProgress)); } @@ -674,10 +884,133 @@ void WorldSaveCodec::validate(const World& world) { } } +void World::migrate_legacy_custody() { + // This function runs only after historical fields, phases, reservations and + // (for versions 1–8) the historical footer have all passed validation. + next_stack_id_ = next_reservation_id_ = next_transfer_id_ = 1; + item_balances_ = {}; + custody_receipts_.clear(); + custody_receipt_cursor_ = 0; + for (auto& order : production_orders_) { + if (order.state == JobState::InProgress && delivers_materials(order.recipe) && order.delivery_stops.empty()) { + for (const auto& material : order.materials) order.input.add(material.type, material.count); + } + } + const auto identity = [&](ItemType item, std::uint32_t count) { + require_save(next_stack_id_ != std::numeric_limits::max(), "Migrated stack identities exhausted."); + auto& opening = item_balances_[item_index(item)].opening; + require_save(count <= std::numeric_limits::max() - opening, "Migrated opening balance overflow."); + opening += count; + return next_stack_id_++; + }; + // Stable owner-kind / owner-ID / item order, independent of worker count. + for (auto& storage : storages_) { + for (auto& stack : storage.items) stack.id = identity(stack.type, stack.count); + } + const auto identify_inventory = [&](Inventory& inventory) { + for (std::size_t i = 1; i <= item_type_count; ++i) { + const auto item = static_cast(i); + if (const auto count = inventory.item_count(item)) inventory.set_stack_id(item, identity(item, count)); + } + }; + for (auto& agent : agents_) identify_inventory(agent.inventory); + for (auto& order : production_orders_) identify_inventory(order.input); + + for (auto& agent : agents_) { + agent.next_admission = 1; + agent.execution.reset(); + const bool active = agent.production_id != 0 || agent.resource_node_id != 0 || + agent.state == AgentState::Hauling || agent.state == AgentState::GoingToEat || agent.state == AgentState::Eating; + if (!active) continue; + TransferExecution execution; + execution.id = next_transfer_id_++; + execution.production = agent.production_id; + execution.source = agent.resource_node_id; + execution.destination = agent.storage_id; + const auto add = [&](Reservation claim) -> ReservationId { + require_save(execution.reservation_count < custody_reservation_limit && + next_reservation_id_ != std::numeric_limits::max(), + "Migrated reservation limit exceeded."); + claim.id = next_reservation_id_++; + execution.reservations[execution.reservation_count++] = claim; + return claim.id; + }; + const auto storage_stack = [&](StorageId storage, ItemType item) -> StackId { + const auto& items = storages_[record_index(storages_, storage)].items; + const auto found = std::lower_bound(items.begin(), items.end(), item, + [](const auto& stack, ItemType target) { return stack.type < target; }); + require_save(found != items.end() && found->type == item, "Missing migrated reserved stock."); + return found->id; + }; + ReservationId capacity_backing = 0; + if (agent.production_id != 0) { + execution.kind = TransferKind::Production; + const auto& order = production_orders_[record_index(production_orders_, agent.production_id)]; + const bool delivery = delivers_materials(order.recipe); + const bool at_site = delivery && order.delivery_stops.empty(); + if (!is_construction(order.recipe) || is_carpentry_recipe(order.recipe)) { + execution.destination = order.materials.front().storage_id; + } + for (const auto& material : order.materials) { + StockOwner owner{OwnerKind::Storage, material.storage_id}; + StackId stack = 0; + if (at_site) { + owner = {OwnerKind::Production, order.id}; + stack = order.input.stack_id(material.type); + } else if (delivery) { + const auto stop = std::lower_bound(order.delivery_stops.begin(), order.delivery_stops.end(), material.storage_id, + [](const auto& entry, StorageId id) { return entry.storage_id < id; }); + if (static_cast(stop - order.delivery_stops.begin()) < order.collected_stops) { + owner = {OwnerKind::Resident, agent.id}; + stack = agent.inventory.stack_id(material.type); + } + } + if (owner.kind == OwnerKind::Storage) stack = storage_stack(material.storage_id, material.type); + const auto claim = add({0, ReservationKind::Item, owner, stack, material.type, material.count, 0, material.storage_id}); + if (!capacity_backing && execution.destination == material.storage_id && owner.kind == OwnerKind::Storage) { + capacity_backing = claim; + } + } + add({0, ReservationKind::Worksite, {OwnerKind::Production, order.id}, 0, {}, 1}); + } else if (agent.resource_node_id != 0) { + execution.kind = agent.storage_id ? TransferKind::Harvest : TransferKind::Tending; + add({0, agent.storage_id ? ReservationKind::Harvest : ReservationKind::Tending, {}, 0, {}, 1}); + } else if (agent.state == AgentState::GoingToEat || agent.state == AgentState::Eating) { + execution.kind = TransferKind::Meal; + execution.destination = 0; + if (agent.state == AgentState::GoingToEat) { + add({0, ReservationKind::Item, {OwnerKind::Storage, agent.storage_id}, + storage_stack(agent.storage_id, ItemType::Berries), ItemType::Berries, 1, 0, agent.storage_id}); + } else { + add({0, ReservationKind::Item, {OwnerKind::Resident, agent.id}, + agent.inventory.stack_id(ItemType::Berries), ItemType::Berries, 1}); + } + } else { + execution.kind = TransferKind::Return; + for (std::size_t i = 1; i <= item_type_count; ++i) { + const auto item = static_cast(i); + if (const auto count = agent.inventory.item_count(item)) { + add({0, ReservationKind::Item, {OwnerKind::Resident, agent.id}, agent.inventory.stack_id(item), item, count}); + } + } + } + if (execution.destination != 0) { + add({0, ReservationKind::Capacity, {OwnerKind::Storage, execution.destination}, 0, {}, 1, capacity_backing}); + } + agent.execution = execution; + agent.next_admission = 2; + } +} + void World::write_save(std::ostream& stream, WorldSaveFormat format) const { const auto version = static_cast(format); - require_save(format == WorldSaveFormat::Legacy13 || format == WorldSaveFormat::Current14, + require_save(format == WorldSaveFormat::Legacy13 || format == WorldSaveFormat::Current14 || + format == WorldSaveFormat::Current15, "Unsupported save output format."); + if (format != WorldSaveFormat::Current15 && !legacy_representable()) { + throw UnsupportedLegacyState{}; + } + if (format == WorldSaveFormat::Current15) WorldSaveCodec::validate(*this, true); SaveWriter archive(stream); for (char letter : signature) archive.field(letter); archive.field(version); @@ -685,6 +1018,7 @@ void World::write_save(std::ostream& stream, WorldSaveFormat format) const { archive.field(width_); archive.field(height_); WorldSaveCodec::body(archive, *this, version); + if (version >= 15) WorldSaveCodec::custody(archive, *this); } std::unique_ptr World::read_save(std::istream& stream, std::size_t workers, ExecutionMode mode, @@ -707,6 +1041,7 @@ std::unique_ptr World::read_save(std::istream& stream, std::size_t worker archive.field(height); auto world = std::make_unique(seed, width, height, workers, mode, std::move(worker_options)); WorldSaveCodec::body(archive, *world, version); + if (version >= 15) WorldSaveCodec::custody(archive, *world); archive.finish(); if (version < 5) { std::vector occupied_ground; @@ -723,7 +1058,11 @@ std::unique_ptr World::read_save(std::istream& stream, std::size_t worker } } } - WorldSaveCodec::validate(*world); + WorldSaveCodec::validate(*world, version >= 15); + if (version < 15) { + world->migrate_legacy_custody(); + world->validate_custody(); + } return world; } diff --git a/tests/checkpoint_tests.cpp b/tests/checkpoint_tests.cpp index 0c93483..9b3f688 100644 --- a/tests/checkpoint_tests.cpp +++ b/tests/checkpoint_tests.cpp @@ -180,8 +180,8 @@ Test CheckpointTests::test_authentic_v1_import_and_authenticated_schema_body_pai } auto imported = decoded(old_checkpoint(0), catalog); auto current = encoded(*imported.world, rules); - require(static_cast(current[8]) == 2 && - static_cast(current[layout(current).body_begin + 8]) == 14, + require(static_cast(current[8]) == 3 && + static_cast(current[layout(current).body_begin + 8]) == 15, "new checkpoint lacks the current schema/body pair"); auto false_legacy = current; change(false_legacy, 8, std::uint32_t{1}); rehash(false_legacy); @@ -211,7 +211,7 @@ Test CheckpointTests::test_round_trip_preserves_identity_and_legacy_world_bytes( require(saved_state(*restored.world) == before && saved_state(world) == before, "checkpoint changed the original or restored canonical state"); std::ostringstream modern(std::ios::binary); - world.write_save(modern, WorldSaveFormat::Current14); + world.write_save(modern, WorldSaveFormat::Current15); require(bytes.substr(layout(bytes).body_begin, modern.str().size()) == modern.str(), "checkpoint did not use the current world serialization"); require(before.substr(0, 8) == "SETTLERS" && static_cast(before[8]) == 13, diff --git a/tests/custody_migration_tests.cpp b/tests/custody_migration_tests.cpp new file mode 100644 index 0000000..230a3f9 --- /dev/null +++ b/tests/custody_migration_tests.cpp @@ -0,0 +1,214 @@ +#include "settlement/core/checkpoint.hpp" +#include "fixtures/custody_v14/fixtures.hpp" + +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +namespace { +using namespace settlement; +using Void::Testing::Test; +void require(bool condition, std::string_view message) { + if (!condition) throw std::runtime_error(std::string(message)); +} +std::string unhex(std::string_view hex) { + const auto digit = [](char c) { return c <= '9' ? c - '0' : c - 'a' + 10; }; + std::string result; + for (std::size_t i = 0; i < hex.size(); i += 2) result.push_back(static_cast(digit(hex[i]) * 16 + digit(hex[i + 1]))); + return result; +} +std::string raw(const World& world, WorldSaveFormat format = WorldSaveFormat::Current15) { + std::ostringstream stream(std::ios::binary); world.write_save(stream, format); return stream.str(); +} +WorldCheckpoint load(std::string_view bytes, std::size_t workers = 1) { + const auto catalog = builtin_rule_packages(); + auto result = decode_checkpoint(bytes, *catalog, workers, + workers == 1 ? ExecutionMode::SerialReference : ExecutionMode::Parallel); + if (!result) throw std::runtime_error(result.error().message); + return std::move(*result); +} +std::string save(const WorldCheckpoint& saved) { + auto result = encode_checkpoint(*saved.world, saved.world_id, saved.city, saved.rules); + if (!result) throw std::runtime_error(result.error().message); + return std::move(*result); +} +const custody_v14::Fixture& fixture(std::string_view name) { + for (const auto& entry : custody_v14::fixtures) if (entry.name == name) return entry; + throw std::runtime_error("missing historical fixture"); +} +std::size_t body_begin(std::string_view bytes) { + Void::Binary::Reader reader(std::as_bytes(std::span{bytes.data(), bytes.size()}).subspan(12)); + return 24 + reader.readLittle().value(); +} +template void change(std::string& bytes, std::size_t offset, T value) { + Void::Binary::Writer writer(std::as_writable_bytes(std::span{bytes.data(), bytes.size()}).subspan(offset)); + require(writer.writeLittle(value).has_value(), "mutation exceeded frame"); +} +void rehash(std::string& bytes) { + auto hasher = Void::Crypto::Hasher::create(Void::Crypto::HashAlgorithm::Sha256); + require(hasher && hasher->update(std::string_view(bytes).substr(0,bytes.size()-32)), "hash failed"); + auto digest = hasher->finalize(); require(digest.has_value(), "hash finalization failed"); + std::memcpy(bytes.data()+bytes.size()-32, digest->data(), 32); +} +void reject(std::string bytes) { + rehash(bytes); + auto catalog = builtin_rule_packages(); + require(!decode_checkpoint(bytes,*catalog,1,ExecutionMode::SerialReference), "authenticated malformed custody was accepted"); +} +void legacy_reject(const World& world) { + for (auto format : {WorldSaveFormat::Legacy13, WorldSaveFormat::Current14}) { + std::ostringstream out(std::ios::binary); + bool failed = false; + try { world.write_save(out,format); } catch (const UnsupportedLegacyState&) { failed=true; } + require(failed && out.str().empty(), "unsupported projection wrote a prefix or lost typed error"); + } +} +struct [[= Void::Testing::name("CustodyMigrationTests")]] CustodyMigrationTests : Void::Testing::Suite { + [[= Void::Testing::tag("custody-migration")]] Test authentic_historical_phases_keep_eighty_tick_projection(); + [[= Void::Testing::tag("custody-migration")]] Test opening_stock_and_admission_are_reconstructed_without_receipts(); + [[= Void::Testing::tag("custody-migration")]] Test modern_frames_reject_identity_balance_and_pair_corruption(); + [[= Void::Testing::tag("custody-migration")]] Test cancellation_is_durable_and_legacy_refusal_is_before_output(); + [[= Void::Testing::tag("custody-migration")]] Test completed_receipts_keep_retired_stock_and_order_references(); + [[= Void::Testing::tag("custody-migration")]] Test single_finished_material_and_partial_return_use_modern_format(); + [[= Void::Testing::tag("custody-migration")]] Test suspended_sites_and_zero_completion_use_modern_format(); +}; +Test CustodyMigrationTests::authentic_historical_phases_keep_eighty_tick_projection() { + for (const auto& original : custody_v14::fixtures) { + const auto bytes=unhex(original.checkpoint); + const auto digest=Void::Crypto::sha256(std::string_view(bytes)); + require(digest.has_value(), "fixture hashing failed"); + const auto expected_digest=unhex(original.sha256); + require(std::ranges::equal(*digest,std::as_bytes(std::span{expected_digest.data(),expected_digest.size()})), "historical fixture SHA differs"); + for (auto workers : {1U,2U,6U,12U}) { + auto restored=load(bytes,workers); + require(raw(*restored.world,WorldSaveFormat::Current14)==bytes.substr(body_begin(bytes),bytes.size()-body_begin(bytes)-32), original.name); + for (std::size_t tick=0;tickstep(); + roundtrip.world->step(); + require(raw(*roundtrip.world)==raw(*restored.world), "modern continuation diverged"); + } + } + } +} +Test CustodyMigrationTests::opening_stock_and_admission_are_reconstructed_without_receipts() { + for(const auto& original:custody_v14::fixtures) { + auto restored=load(unhex(original.checkpoint)); const auto& world=*restored.world; + world.validate_custody(); + require(world.custody_receipts().empty(),"migration invented historical receipts"); + const auto& actor=world.agents().front(); + require(actor.execution && actor.next_admission==2 && actor.execution->next_operation==1,"active legacy admission was not marked consumed"); + CustodyRequest retry;retry.key={CustodyKeyKind::Admission,actor.id,1}; + require(restored.world->custody_request(retry).status==CustodyStatus::Stale,"migrated admission was executed again"); + if(original.name=="cabin-working") { + const auto& input=world.production_orders().front().input; + require(input.item_count(ItemType::Plank)==3&&input.item_count(ItemType::StoneBlock)==2&&actor.inventory.empty(),"implicit worksite stock was not restored"); + require(world.item_balances()[2].opening==3&&world.item_balances()[3].opening==2,"opening was measured before worksite restoration"); + } + if(original.name.starts_with("direct-")) require(world.production_orders().front().input.empty(),"direct recipe debited input during migration"); + } +} +Test CustodyMigrationTests::modern_frames_reject_identity_balance_and_pair_corruption() { + auto restored=load(unhex(fixture("cabin-before-pickup").checkpoint)); + const auto good=save(restored), before=raw(*restored.world); + const auto extension=body_begin(good)+raw(*restored.world,WorldSaveFormat::Current14).size(); + for(auto offset:{extension,extension+8,extension+16}) { + auto bad=good;change(bad,offset,std::uint64_t{0});reject(std::move(bad)); + } + auto duplicate=good;change(duplicate,extension+24+8,std::uint64_t{1});reject(std::move(duplicate)); + auto bad_balance=good; // Last 11*64 bytes before receipt count are the balance ledger. + const auto balance=good.size()-32-4-item_type_count*64; + change(bad_balance,balance,std::uint64_t{1});reject(std::move(bad_balance)); + for(auto schema:{1U,2U}){auto bad=good;change(bad,8,schema);reject(std::move(bad));} + auto false_three=unhex(fixture("cabin-working").checkpoint);change(false_three,8,3U);reject(std::move(false_three)); + require(raw(*restored.world)==before,"decoding corrupt candidate mutated active owner"); +} +Test CustodyMigrationTests::cancellation_is_durable_and_legacy_refusal_is_before_output() { + for(auto name:{"cabin-between-stops","cabin-to-site","cabin-working"}) { + auto restored=load(unhex(fixture(name).checkpoint)); + const auto id=restored.world->production_orders().front().id; + require(restored.world->cancel_production(id)==CommandStatus::Accepted,"cancel refused historical active construction"); + legacy_reject(*restored.world); + const auto bytes=save(restored);auto loaded=load(bytes); + require(save(loaded)==bytes,"return cargo lost in modern checkpoint"); + for(int tick=0;tick<80;++tick){restored.world->step();loaded.world->step();require(raw(*restored.world)==raw(*loaded.world),"return differed after restore");} + } +} +Test CustodyMigrationTests::completed_receipts_keep_retired_stock_and_order_references() { + auto restored=load(unhex(fixture("cabin-working").checkpoint)); + require(restored.world->cancel_production(restored.world->production_orders().front().id)==CommandStatus::Accepted,"fixture active order removal failed"); + require(!restored.world->custody_receipts().empty(),"fixture did not create cancellation receipt"); + const auto remembered=restored.world->custody_receipts().back(); + for(int tick=0;tick<80;++tick)restored.world->step(); + const auto bytes=save(restored);auto loaded=load(bytes); + require(loaded.world->custody_request(remembered->request)==remembered->result,"historical result was lost after referenced stock/order retirement"); +} +Test CustodyMigrationTests::single_finished_material_and_partial_return_use_modern_format() { + for (auto item : {ItemType::Plank, ItemType::StoneBlock}) { + auto metadata = load(unhex(fixture("cabin-working").checkpoint)); + auto world = std::make_unique(43,20,8,1,ExecutionMode::SerialReference); + const auto first=world->add_storage({3,3},20), second=world->add_storage({8,3},20); + world->stock_storage(first,item,1); + world->stock_storage(second,ItemType::Plank,item==ItemType::Plank?2:3); + world->stock_storage(second,ItemType::StoneBlock,item==ItemType::StoneBlock?1:2); + static_cast(world->spawn_agent({1,3}));world->queue_production({14,3},RecipeId::BuildCabin); + for(int tick=0;tick<10&&world->agents().front().inventory.empty();++tick)world->step(); + require(world->agents().front().inventory.item_count(item)==1,"fixture missed single-item pickup"); + require(world->cancel_production(world->production_orders().front().id)==CommandStatus::Accepted,"single cargo cancellation failed"); + legacy_reject(*world);metadata.world=std::move(world); + const auto encoded=save(metadata);require(save(load(encoded))==encoded,"single finished material did not roundtrip"); + } + for (bool partial : {false,true}) { + auto restored=load(unhex(fixture("cabin-working").checkpoint)); + restored.world->stock_storage(restored.world->storages()[0].id,ItemType::Wood,partial?19:20); + restored.world->stock_storage(restored.world->storages()[1].id,ItemType::Wood,20); + require(restored.world->cancel_production(restored.world->production_orders().front().id)==CommandStatus::Accepted,"full-store cancellation failed"); + for(int tick=0;tick<40;++tick)restored.world->step(); + require(restored.world->agents().front().inventory.item_count(ItemType::Plank)==(partial?2U:3U),"return did not respect exact available capacity"); + require(restored.world->agents().front().inventory.item_count(ItemType::StoneBlock)==2,"mixed return dropped second item"); + legacy_reject(*restored.world);const auto encoded=save(restored);require(save(load(encoded))==encoded,"partial or blocked return did not roundtrip"); + } +} +Test CustodyMigrationTests::suspended_sites_and_zero_completion_use_modern_format() { + for(bool bed:{false,true}) { + auto metadata=load(unhex(fixture("cabin-working").checkpoint)); + auto world=std::make_unique(43,20,8,1,ExecutionMode::SerialReference); + world->start_scenario({2,2});const auto storage=world->add_storage({3,3},20); + world->stock_storage(storage,ItemType::Wood,bed?1:2);static_cast(world->spawn_agent({1,3})); + if(bed)require(world->apply_command({1,1,CommandKind::PlaceBed,{6,3}}).status==CommandStatus::Accepted,"bed placement failed"); + else world->queue_production({6,3},RecipeId::BuildLoom); + for(int tick=0;tick<45;++tick)world->step(); + require(world->cancel_production(world->production_orders().front().id)==CommandStatus::Accepted,"residual site cancellation failed"); + require(world->production_orders().front().suspended,"residual site was not suspended"); + legacy_reject(*world);metadata.world=std::move(world); + const auto encoded=save(metadata);auto loaded=load(encoded);require(save(loaded)==encoded,"suspended site did not roundtrip"); + require(loaded.world->resume_production(loaded.world->production_orders().front().id)==CommandStatus::Accepted,"suspended site cannot resume after restore"); + } + auto metadata=load(unhex(fixture("cabin-working").checkpoint)); + auto encoded=save(metadata); + // The historical prefix is kept in raw15. Parse its first agent timer rather + // than relying on native object layout; this is a valid pending completion. + const auto body=body_begin(encoded); + Void::Binary::Reader reader(std::as_bytes(std::span{encoded.data(),encoded.size()}).subspan(body)); + require(reader.skip(20).has_value(),"missing dimensions"); + const auto width=reader.readLittle().value(),height=reader.readLittle().value(); + require(reader.skip(81+static_cast(width)*height+4+25).has_value(),"missing first agent"); + const auto route=reader.readLittle().value(); + require(reader.skip(static_cast(route)*8+8).has_value(),"missing first route"); + change(encoded,body+reader.position(),std::uint32_t{0});rehash(encoded); + auto pending=load(encoded);legacy_reject(*pending.world); + require(save(pending)==encoded,"pending zero timer did not roundtrip"); + pending.world->step();pending.world->validate_custody(); +} +} // namespace diff --git a/tests/fixtures/custody_v14/README.md b/tests/fixtures/custody_v14/README.md new file mode 100644 index 0000000..6a5adbf --- /dev/null +++ b/tests/fixtures/custody_v14/README.md @@ -0,0 +1,7 @@ +# Frozen schema 2 migration corpus + +`fixtures.hpp` contains 13 authentic checkpoints and FNV-1a hashes of 80 subsequent raw13 states for each. They were emitted by `capture.cpp`, compiled exclusively against source and headers at `f6493e2d1cdb9e07eb18b9901fd8878b5d3fa51e`, using the pinned VoidLibrary `7b0fea6095f603f9e1904f66dfdc7752f4be4792`, Windows x64 GCC 16.2 and Wine 11. Each fixture includes its full SHA-256. These bytes were captured before the custody implementation and are never regenerated by the current writer. + +Seed is 43. UUID is `91020304-0506-4708-890a-0b0c0d0e0f10`, city 7, built-in rules. The probe records exact states before pickup, between stops, approaching the worksite, Working with implicit consumed delivery, three direct recipes, finished carpenter cargo without a production link, harvesting, harvested cargo, both meal phases and tending. The `.continuation13` probe output stores 80 length-prefixed raw13 frames (32-bit little-endian lengths). + +Reproduce in a separate historical checkout at that exact commit, build its `settlement_core`, then compile this probe with that checkout's headers and library. Pass an existing directory prefix including its trailing separator. Do not use current headers or objects with the historical probe. The generated fixture header retains only checkpoints and per-tick hashes; complete raw frames and build logs are verification artifacts outside the repository. diff --git a/tests/fixtures/custody_v14/capture.cpp b/tests/fixtures/custody_v14/capture.cpp new file mode 100644 index 0000000..3a72b74 --- /dev/null +++ b/tests/fixtures/custody_v14/capture.cpp @@ -0,0 +1,59 @@ +#include "settlement/core/checkpoint.hpp" +#include +#include +#include +#include +#include +#include +using namespace settlement; +constexpr Void::Uuid::Uuid uuid{{0x91,2,3,4,5,6,0x47,8,0x89,10,11,12,13,14,15,16}}; +std::string prefix; +void capture(const World& world, const std::string& name) { + auto rules=default_rules_manifest(); auto data=encode_checkpoint(world,uuid,7,*rules); + if(!data) throw std::runtime_error(data.error().message); + std::ofstream(prefix+name+".checkpoint",std::ios::binary).write(data->data(),data->size()); + std::ofstream raw(prefix+name+".raw14",std::ios::binary); world.write_save(raw,WorldSaveFormat::Current14);raw.close(); + std::ofstream legacy(prefix+name+".raw13",std::ios::binary); world.write_save(legacy,WorldSaveFormat::Legacy13);legacy.close(); + const auto&a=world.agents().front(); + std::cout<write_save(frame,WorldSaveFormat::Legacy13); const auto bytes=frame.str(); std::uint32_t count=bytes.size(); continuation.write(reinterpret_cast(&count),4); continuation.write(bytes.data(),bytes.size()); copy->step();} +} +int main(int argc,char**argv){ + if(argc!=2)return 2;prefix=argv[1]; + World w(43,20,8,1,ExecutionMode::SerialReference); + auto a=w.add_storage({3,3},20),b=w.add_storage({8,3},20); + w.stock_storage(a,ItemType::Plank,3);w.stock_storage(b,ItemType::StoneBlock,2); + (void)w.spawn_agent({1,3}); w.queue_production({14,3},RecipeId::BuildCabin); + std::set seen; + for(unsigned i=0;i<80;++i){w.step();const auto&agent=w.agents().front();const auto&o=w.production_orders().front(); + std::string name; + if(agent.state==AgentState::FetchingMaterials)name="cabin-before-pickup"; + if(agent.state==AgentState::Hauling&&o.collected_stops==1)name="cabin-between-stops"; + if(agent.state==AgentState::Hauling&&o.collected_stops==2)name="cabin-to-site"; + if(agent.state==AgentState::Working)name="cabin-working"; + if(!name.empty()&&seen.insert(name).second)capture(w,name); + } + for(auto recipe:{RecipeId::SawPlank,RecipeId::CutStoneBlock,RecipeId::WeaveCloth}){ + World d(43,20,8,1,ExecutionMode::SerialReference);auto s=d.add_storage({3,3},20); + d.stock_storage(s,recipe==RecipeId::SawPlank?ItemType::Wood:recipe==RecipeId::CutStoneBlock?ItemType::Stone:ItemType::Flax,1); + (void)d.spawn_agent({2,3});d.queue_production({6,3},recipe); + for(int i=0;i<40;++i){d.step();if(d.agents().front().state==AgentState::Working){capture(d,"direct-"+std::to_string(int(recipe)));break;}} + } + World c(43,24,24,1,ExecutionMode::SerialReference);c.start_scenario({2,2});auto s=c.add_storage({3,3},20);c.stock_storage(s,ItemType::Wood,5); + const auto carpenter=c.spawn_agent({2,3}); (void)c.apply_command({1,1,CommandKind::AssignProfession,{},static_cast(Profession::Carpenter),{},carpenter});c.queue_production(*c.carpenter_workshop(),RecipeId::CraftWoodenDoor); + for(int i=0;i<120;++i){c.step();if(c.agents().front().state==AgentState::Hauling&&c.agents().front().production_id==0&&c.agents().front().inventory.item_count(ItemType::WoodenDoor)){capture(c,"carpenter-output");break;}} + + World h(43,20,8,1,ExecutionMode::SerialReference);(void)h.add_storage({14,3},20);(void)h.add_resource_node({3,3},ItemType::Wood,1);(void)h.spawn_agent({1,3}); + bool gathering=false,hauling=false; + for(int i=0;i<60;++i){h.step();if(!gathering&&h.agents().front().state==AgentState::Gathering){capture(h,"harvest-gathering");gathering=true;}if(!hauling&&h.agents().front().state==AgentState::Hauling){capture(h,"harvest-hauled");hauling=true;}} + World m(43,20,8,1,ExecutionMode::SerialReference);auto pantry=m.add_storage({14,3},20,StorageKind::Pantry);m.stock_storage(pantry,ItemType::Berries,5);(void)m.spawn_agent({1,3});m.enable_hunger(); + bool going=false,eating=false; + for(int i=0;i<220;++i){m.step();if(!going&&m.agents().front().state==AgentState::GoingToEat){capture(m,"meal-going");going=true;}if(!eating&&m.agents().front().state==AgentState::Eating){capture(m,"meal-eating");eating=true;}} + World t(43,20,8,1,ExecutionMode::SerialReference);t.start_scenario({2,2});(void)t.spawn_agent({1,3});(void)t.apply_command({1,1,CommandKind::PlaceTreePlot,{5,3}}); + bool tending=false; + for(int i=0;i<60;++i){t.step();if(t.agents().front().state==AgentState::Gathering&&t.agents().front().storage_id==0){capture(t,"tending");tending=true;break;}} + return seen.size()==4&&gathering&&hauling&&going&&eating&&tending?0:3; +} diff --git a/tests/fixtures/custody_v14/fixtures.hpp b/tests/fixtures/custody_v14/fixtures.hpp new file mode 100644 index 0000000..552f54e --- /dev/null +++ b/tests/fixtures/custody_v14/fixtures.hpp @@ -0,0 +1,541 @@ +// Frozen output of f6493e2d1cdb9e07eb18b9901fd8878b5d3fa51e; see capture.cpp. +#pragma once +#include +#include +#include +namespace custody_v14 { +struct Fixture { std::string_view name, sha256, checkpoint; std::array ticks; }; +inline constexpr std::array fixtures{{ + {"cabin-before-pickup", "6fb53ddaf7d666a5e5b0e899ffbad1d7137dea4e7a037fcf824f521cf5f0b531", + "53544843484b505402000000b6000000cf020000000000009102030405064708890a0b0c0d0e0f1007000000000000000100" + "00000000000006d39e42fa79f06859b9bee1dcb08088142cb83e8cdcf72dc0984cfc62cd83d1020000001100736574746c65" + "6d656e742e636f6c6f6e790500312e302e3008e18a58989430c5435a2de6fb8f6a27a912b4d2970c1b965282408880d2c089" + "0f00736574746c656d656e742e636f72650500312e302e3061b36b8a230eebbe862e696603e021ace7151a9faf0ab3c069ab" + "7124188d337f534554544c4552530e0000002b00000000000000140000000800000001000000000000000500000000000000" + "2300000000000000000000000000000000000000000000000002000000000000000100000000000000010000000000000003" + "0000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000001000000010000000000000002000000030000000500000000" + "00000000020000000200000003000000030000000300000001000000000000001c0000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0100000000000000000000000000000000000000000002000000010000000000000003000000030000001400000000000000" + "0001000000030300000003000000020000000000000008000000030000001400000000000000000100000004020000000200" + "00000100000001000000000000000e0000000300000002010200000001000000000000000303000000020000000000000004" + "0200000002000000010000000000000005000000040000000300000005000000030000000600000003000000070000000300" + "0000080000000300000002000000000000000600000009000000030000000a000000030000000b000000030000000c000000" + "030000000d000000030000000e00000003000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000089063e25ca59b04935ace8779f45e200ab2acbca2dc88fec7e" + "c5f3504eda9248" + , { + 0x599836ebcd30a29fULL, 0xcaac4531bb7bcf12ULL, 0xe100830a1464be03ULL, 0x027cbdd51f3b01c8ULL, + 0x1df54a0c813e02d9ULL, 0x770d4f71d98b81f6ULL, 0x1a291bf5fa80794eULL, 0xd66ea3ba081db91dULL, + 0x8373c6a20d010194ULL, 0xadddce31831e3cabULL, 0x17dcacae773a6e1aULL, 0xb7dcf72a67c28f09ULL, + 0x2b7379835239007dULL, 0xb581902af1f964a5ULL, 0xe6bb81ec4d2a4351ULL, 0xc9af37bf6bd67281ULL, + 0xc3565d7aa175849dULL, 0x4d6474224135e8c5ULL, 0xcea8c74d08b63769ULL, 0xfc9083bebbf8ed39ULL, + 0x94f2e4644ed7432dULL, 0x27ca7a848c14c2a5ULL, 0xa2268d43d90f4401ULL, 0xcbf17ad8282e5291ULL, + 0xdbb636c9dfd9f8edULL, 0x6e8dccea1d177865ULL, 0xefd22014e497c709ULL, 0x92c8073c7dcaac39ULL, + 0x8e8a57a7244dff5dULL, 0xa38a4398de1e3425ULL, 0xd4c4355a394f12d1ULL, 0xb32f60f8bad1de21ULL, + 0xacd686b3f070f03dULL, 0xc1d672a5aa412505ULL, 0x431ac5d071c173a9ULL, 0xe610acf80af458d9ULL, + 0x0964e2e7b7e27f6dULL, 0x9c3c7907f51ffee5ULL, 0x8ba6b67d280aafa1ULL, 0x4063795b91398ed1ULL, + 0x6681875fe5343f60ULL, 0xe9be99df149af205ULL, 0xc48ba8b0a8d56182ULL, 0xeaacd0ee5560795fULL, + 0x44d6d03be494df34ULL, 0xe2e0fdde315410b9ULL, 0x7d59e1a2ab98dc56ULL, 0x96639e9fe22a5203ULL, + 0x75f2d8f87f7c8c38ULL, 0xc2d8882fdfd29b5dULL, 0x259190664a78239aULL, 0x324e15c71a395c77ULL, + 0x6f153cf79c35aaecULL, 0xa12dd10bdf333b31ULL, 0x1eb3f4656731424eULL, 0xffb3418445bf349bULL, + 0xdf427bdce3116ed0ULL, 0xd1ff457831b6a835ULL, 0x14556cf5e3bd2eb2ULL, 0x3a7695339048468fULL, + 0x94a094811f7cac64ULL, 0xcb21a9774e6fc6e9ULL, 0xf61ad61fa9760bc6ULL, 0x3cc530cc6eb4baf3ULL, + 0x1c546b250c06f528ULL, 0x01b101b04e90ed4dULL, 0x646a09e6b936758aULL, 0x01a6d82b69b927a7ULL, + 0x1576cf2428c013dcULL, 0xb70f1a548afc2ae1ULL, 0x5d8c6de5d5ef943eULL, 0x15948accf188244bULL, + 0xf523c5258eda5e80ULL, 0x7860d7a4be411125ULL, 0x532de676527b80a2ULL, 0x794f0eb3ff06987fULL, + 0xd3790e018e3afe54ULL, 0x71833ba3dafa2fd9ULL, 0x0bfc1f68553efb76ULL, 0x2505dc658bd07123ULL, + }}, + {"cabin-between-stops", "daca83d48f48b53f986305655017c01e4d40a73e7085d81088e5f71f7073ef4b", + "53544843484b505402000000b6000000b6020000000000009102030405064708890a0b0c0d0e0f1007000000000000000200" + "00000000000006d39e42fa79f06859b9bee1dcb08088142cb83e8cdcf72dc0984cfc62cd83d1020000001100736574746c65" + "6d656e742e636f6c6f6e790500312e302e3008e18a58989430c5435a2de6fb8f6a27a912b4d2970c1b965282408880d2c089" + "0f00736574746c656d656e742e636f72650500312e302e3061b36b8a230eebbe862e696603e021ace7151a9faf0ab3c069ab" + "7124188d337f534554544c4552530e0000002b00000000000000140000000800000002000000000000000500000000000000" + "2300000000000000000000000000000000000000000000000002000000000000000100000000000000010000000000000003" + "0000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000001000000010000000000000003000000030000000400000000" + "0000000005000000040000000300000005000000030000000600000003000000070000000300000008000000030000000000" + "0000000000001c00000000000000000000000000000000000000000000000000000003000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000002000000" + "0100000000000000030000000300000014000000000000000000000000020000000000000008000000030000001400000000" + "00000000010000000402000000020000000100000001000000000000000e0000000300000002010200000001000000000000" + "0003030000000200000000000000040200000002000000010000000000000000000000020000000000000006000000090000" + "00030000000a000000030000000b000000030000000c000000030000000d000000030000000e000000030000000100000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "bfc296aeae849041ff62087240ac2f981e75d1791610f8f7c3bcc5e9792e6320" + , { + 0xcaac4531bb7bcf12ULL, 0xe100830a1464be03ULL, 0x027cbdd51f3b01c8ULL, 0x1df54a0c813e02d9ULL, + 0x770d4f71d98b81f6ULL, 0x1a291bf5fa80794eULL, 0xd66ea3ba081db91dULL, 0x8373c6a20d010194ULL, + 0xadddce31831e3cabULL, 0x17dcacae773a6e1aULL, 0xb7dcf72a67c28f09ULL, 0x2b7379835239007dULL, + 0xb581902af1f964a5ULL, 0xe6bb81ec4d2a4351ULL, 0xc9af37bf6bd67281ULL, 0xc3565d7aa175849dULL, + 0x4d6474224135e8c5ULL, 0xcea8c74d08b63769ULL, 0xfc9083bebbf8ed39ULL, 0x94f2e4644ed7432dULL, + 0x27ca7a848c14c2a5ULL, 0xa2268d43d90f4401ULL, 0xcbf17ad8282e5291ULL, 0xdbb636c9dfd9f8edULL, + 0x6e8dccea1d177865ULL, 0xefd22014e497c709ULL, 0x92c8073c7dcaac39ULL, 0x8e8a57a7244dff5dULL, + 0xa38a4398de1e3425ULL, 0xd4c4355a394f12d1ULL, 0xb32f60f8bad1de21ULL, 0xacd686b3f070f03dULL, + 0xc1d672a5aa412505ULL, 0x431ac5d071c173a9ULL, 0xe610acf80af458d9ULL, 0x0964e2e7b7e27f6dULL, + 0x9c3c7907f51ffee5ULL, 0x8ba6b67d280aafa1ULL, 0x4063795b91398ed1ULL, 0x6681875fe5343f60ULL, + 0xe9be99df149af205ULL, 0xc48ba8b0a8d56182ULL, 0xeaacd0ee5560795fULL, 0x44d6d03be494df34ULL, + 0xe2e0fdde315410b9ULL, 0x7d59e1a2ab98dc56ULL, 0x96639e9fe22a5203ULL, 0x75f2d8f87f7c8c38ULL, + 0xc2d8882fdfd29b5dULL, 0x259190664a78239aULL, 0x324e15c71a395c77ULL, 0x6f153cf79c35aaecULL, + 0xa12dd10bdf333b31ULL, 0x1eb3f4656731424eULL, 0xffb3418445bf349bULL, 0xdf427bdce3116ed0ULL, + 0xd1ff457831b6a835ULL, 0x14556cf5e3bd2eb2ULL, 0x3a7695339048468fULL, 0x94a094811f7cac64ULL, + 0xcb21a9774e6fc6e9ULL, 0xf61ad61fa9760bc6ULL, 0x3cc530cc6eb4baf3ULL, 0x1c546b250c06f528ULL, + 0x01b101b04e90ed4dULL, 0x646a09e6b936758aULL, 0x01a6d82b69b927a7ULL, 0x1576cf2428c013dcULL, + 0xb70f1a548afc2ae1ULL, 0x5d8c6de5d5ef943eULL, 0x15948accf188244bULL, 0xf523c5258eda5e80ULL, + 0x7860d7a4be411125ULL, 0x532de676527b80a2ULL, 0x794f0eb3ff06987fULL, 0xd3790e018e3afe54ULL, + 0x71833ba3dafa2fd9ULL, 0x0bfc1f68553efb76ULL, 0x2505dc658bd07123ULL, 0x049516be2922ab58ULL, + }}, + {"cabin-to-site", "86b61386600533badf032b4a17ac75c38a302f4c2b78fed37a38a76232360178", + "53544843484b505402000000b600000085020000000000009102030405064708890a0b0c0d0e0f1007000000000000000700" + "00000000000006d39e42fa79f06859b9bee1dcb08088142cb83e8cdcf72dc0984cfc62cd83d1020000001100736574746c65" + "6d656e742e636f6c6f6e790500312e302e3008e18a58989430c5435a2de6fb8f6a27a912b4d2970c1b965282408880d2c089" + "0f00736574746c656d656e742e636f72650500312e302e3061b36b8a230eebbe862e696603e021ace7151a9faf0ab3c069ab" + "7124188d337f534554544c4552530e0000002b00000000000000140000000800000007000000000000000500000000000000" + "2300000000000000000000000000000000000000000000000002000000000000000100000000000000010000000000000003" + "0000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000001000000010000000000000008000000030000000400000000" + "000000000600000009000000030000000a000000030000000b000000030000000c000000030000000d000000030000000e00" + "00000300000000000000000000001c0000000000000000000000000000000000000000000000000000000300000002000000" + "0000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000" + "0000000002000000010000000000000003000000030000001400000000000000000000000002000000000000000800000003" + "000000140000000000000000000000000100000001000000000000000e000000030000000201020000000100000000000000" + "0303000000020000000000000004020000000200000001000000000000000000000002000000000000000000000002000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "00232dd846a1a33102aa254a632f5ad28dd7c9da49baab15e4af6c417b21fe8b28" + , { + 0x1a291bf5fa80794eULL, 0xd66ea3ba081db91dULL, 0x8373c6a20d010194ULL, 0xadddce31831e3cabULL, + 0x17dcacae773a6e1aULL, 0xb7dcf72a67c28f09ULL, 0x2b7379835239007dULL, 0xb581902af1f964a5ULL, + 0xe6bb81ec4d2a4351ULL, 0xc9af37bf6bd67281ULL, 0xc3565d7aa175849dULL, 0x4d6474224135e8c5ULL, + 0xcea8c74d08b63769ULL, 0xfc9083bebbf8ed39ULL, 0x94f2e4644ed7432dULL, 0x27ca7a848c14c2a5ULL, + 0xa2268d43d90f4401ULL, 0xcbf17ad8282e5291ULL, 0xdbb636c9dfd9f8edULL, 0x6e8dccea1d177865ULL, + 0xefd22014e497c709ULL, 0x92c8073c7dcaac39ULL, 0x8e8a57a7244dff5dULL, 0xa38a4398de1e3425ULL, + 0xd4c4355a394f12d1ULL, 0xb32f60f8bad1de21ULL, 0xacd686b3f070f03dULL, 0xc1d672a5aa412505ULL, + 0x431ac5d071c173a9ULL, 0xe610acf80af458d9ULL, 0x0964e2e7b7e27f6dULL, 0x9c3c7907f51ffee5ULL, + 0x8ba6b67d280aafa1ULL, 0x4063795b91398ed1ULL, 0x6681875fe5343f60ULL, 0xe9be99df149af205ULL, + 0xc48ba8b0a8d56182ULL, 0xeaacd0ee5560795fULL, 0x44d6d03be494df34ULL, 0xe2e0fdde315410b9ULL, + 0x7d59e1a2ab98dc56ULL, 0x96639e9fe22a5203ULL, 0x75f2d8f87f7c8c38ULL, 0xc2d8882fdfd29b5dULL, + 0x259190664a78239aULL, 0x324e15c71a395c77ULL, 0x6f153cf79c35aaecULL, 0xa12dd10bdf333b31ULL, + 0x1eb3f4656731424eULL, 0xffb3418445bf349bULL, 0xdf427bdce3116ed0ULL, 0xd1ff457831b6a835ULL, + 0x14556cf5e3bd2eb2ULL, 0x3a7695339048468fULL, 0x94a094811f7cac64ULL, 0xcb21a9774e6fc6e9ULL, + 0xf61ad61fa9760bc6ULL, 0x3cc530cc6eb4baf3ULL, 0x1c546b250c06f528ULL, 0x01b101b04e90ed4dULL, + 0x646a09e6b936758aULL, 0x01a6d82b69b927a7ULL, 0x1576cf2428c013dcULL, 0xb70f1a548afc2ae1ULL, + 0x5d8c6de5d5ef943eULL, 0x15948accf188244bULL, 0xf523c5258eda5e80ULL, 0x7860d7a4be411125ULL, + 0x532de676527b80a2ULL, 0x794f0eb3ff06987fULL, 0xd3790e018e3afe54ULL, 0x71833ba3dafa2fd9ULL, + 0x0bfc1f68553efb76ULL, 0x2505dc658bd07123ULL, 0x049516be2922ab58ULL, 0x517ac5f58978ba7dULL, + 0xb433ce2bf41e42baULL, 0xc0f0538cc3df7b97ULL, 0xfdb77abd45dbca0cULL, 0x2fd00ed188d95a51ULL, + }}, + {"cabin-working", "f443380bc6ff9c74d2a24d80d0261b6cd9f7560796ae76548f2b7aa24e3ef505", + "53544843484b505402000000b60000003d020000000000009102030405064708890a0b0c0d0e0f1007000000000000000d00" + "00000000000006d39e42fa79f06859b9bee1dcb08088142cb83e8cdcf72dc0984cfc62cd83d1020000001100736574746c65" + "6d656e742e636f6c6f6e790500312e302e3008e18a58989430c5435a2de6fb8f6a27a912b4d2970c1b965282408880d2c089" + "0f00736574746c656d656e742e636f72650500312e302e3061b36b8a230eebbe862e696603e021ace7151a9faf0ab3c069ab" + "7124188d337f534554544c4552530e0000002b0000000000000014000000080000000d000000000000000500000000000000" + "2300000000000000000000000000000000000000000000000002000000000000000100000000000000010000000000000003" + "0000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "000000000000000000000000000000000000000000000000000100000001000000000000000e000000030000000200000000" + "000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000" + "0000000000000200000001000000000000000300000003000000140000000000000000000000000200000000000000080000" + "0003000000140000000000000000000000000100000001000000000000000e00000003000000020102000000010000000000" + "0000030300000002000000000000000402000000000000000000000000000000000000000000000000000000000000000000" + "000000000000000000000000000000000000000000000000000000000009318a0b695a881878b8800d4ac312fa11b89fe3b0" + "62514839b4bc0b5ac25594" + , { + 0x2b7379835239007dULL, 0xb581902af1f964a5ULL, 0xe6bb81ec4d2a4351ULL, 0xc9af37bf6bd67281ULL, + 0xc3565d7aa175849dULL, 0x4d6474224135e8c5ULL, 0xcea8c74d08b63769ULL, 0xfc9083bebbf8ed39ULL, + 0x94f2e4644ed7432dULL, 0x27ca7a848c14c2a5ULL, 0xa2268d43d90f4401ULL, 0xcbf17ad8282e5291ULL, + 0xdbb636c9dfd9f8edULL, 0x6e8dccea1d177865ULL, 0xefd22014e497c709ULL, 0x92c8073c7dcaac39ULL, + 0x8e8a57a7244dff5dULL, 0xa38a4398de1e3425ULL, 0xd4c4355a394f12d1ULL, 0xb32f60f8bad1de21ULL, + 0xacd686b3f070f03dULL, 0xc1d672a5aa412505ULL, 0x431ac5d071c173a9ULL, 0xe610acf80af458d9ULL, + 0x0964e2e7b7e27f6dULL, 0x9c3c7907f51ffee5ULL, 0x8ba6b67d280aafa1ULL, 0x4063795b91398ed1ULL, + 0x6681875fe5343f60ULL, 0xe9be99df149af205ULL, 0xc48ba8b0a8d56182ULL, 0xeaacd0ee5560795fULL, + 0x44d6d03be494df34ULL, 0xe2e0fdde315410b9ULL, 0x7d59e1a2ab98dc56ULL, 0x96639e9fe22a5203ULL, + 0x75f2d8f87f7c8c38ULL, 0xc2d8882fdfd29b5dULL, 0x259190664a78239aULL, 0x324e15c71a395c77ULL, + 0x6f153cf79c35aaecULL, 0xa12dd10bdf333b31ULL, 0x1eb3f4656731424eULL, 0xffb3418445bf349bULL, + 0xdf427bdce3116ed0ULL, 0xd1ff457831b6a835ULL, 0x14556cf5e3bd2eb2ULL, 0x3a7695339048468fULL, + 0x94a094811f7cac64ULL, 0xcb21a9774e6fc6e9ULL, 0xf61ad61fa9760bc6ULL, 0x3cc530cc6eb4baf3ULL, + 0x1c546b250c06f528ULL, 0x01b101b04e90ed4dULL, 0x646a09e6b936758aULL, 0x01a6d82b69b927a7ULL, + 0x1576cf2428c013dcULL, 0xb70f1a548afc2ae1ULL, 0x5d8c6de5d5ef943eULL, 0x15948accf188244bULL, + 0xf523c5258eda5e80ULL, 0x7860d7a4be411125ULL, 0x532de676527b80a2ULL, 0x794f0eb3ff06987fULL, + 0xd3790e018e3afe54ULL, 0x71833ba3dafa2fd9ULL, 0x0bfc1f68553efb76ULL, 0x2505dc658bd07123ULL, + 0x049516be2922ab58ULL, 0x517ac5f58978ba7dULL, 0xb433ce2bf41e42baULL, 0xc0f0538cc3df7b97ULL, + 0xfdb77abd45dbca0cULL, 0x2fd00ed188d95a51ULL, 0xad56322b10d7616eULL, 0x8e557f49ef6553bbULL, + 0x6de4b9a28cb78df0ULL, 0x60a1833ddb5cc755ULL, 0xa2f7aabb8d634dd2ULL, 0xc918d2f939ee65afULL, + }}, + {"carpenter-output", "6a401e39d87c97a16fbe4e7bc4a5d7cc88f6f26b176b2551102e66aa14ace446", + "53544843484b505402000000b6000000bf030000000000009102030405064708890a0b0c0d0e0f1007000000000000001100" + "00000000000006d39e42fa79f06859b9bee1dcb08088142cb83e8cdcf72dc0984cfc62cd83d1020000001100736574746c65" + "6d656e742e636f6c6f6e790500312e302e3008e18a58989430c5435a2de6fb8f6a27a912b4d2970c1b965282408880d2c089" + "0f00736574746c656d656e742e636f72650500312e302e3061b36b8a230eebbe862e696603e021ace7151a9faf0ab3c069ab" + "7124188d337f534554544c4552530e0000002b00000000000000180000001800000011000000000000000400000000000000" + "0b00000000000000000000000000000000000000000000000102000000000000000100000000000000010000000000000002" + "0000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000100000000" + "0000000200000002000000040000000000000000020000000300000002000000030000000300000000000000000000000000" + "0000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000001000000" + "0000000000000000000000000000000000000000000000003600110000050000000000000000010000000100000000000000" + "0300000003000000140000000100000000010000000103000000000000000100000001000000000000000200000002000000" + "0e02000000000000000000000000000000000000000000000000000001000000020000000200000001000000000000000000" + "000000000000010000000000000001abbc5e54e4c970fef93640a799432f9b3e1e0a0c462351d36c6d1bb3992b331b" + , { + 0xa6ec0093d932ebd8ULL, 0x87baf2e646efc9a5ULL, 0x1ab6ff5ac2d06a08ULL, 0x5b21ac6329697a51ULL, + 0x892f269f06860362ULL, 0x0ce6c8acfd0548abULL, 0x10128ab0047f29e4ULL, 0xcc8b9971929bb83dULL, + 0xb18f7c65729d2eaeULL, 0x6cff10cc2991c957ULL, 0xee671e7028e38f80ULL, 0x836fd8346ea210a9ULL, + 0x3b1e5c33e40d38baULL, 0xe2891c128cba04c3ULL, 0xab7996b49c542e9cULL, 0xfce08ee5878a2fb5ULL, + 0xc8857c8fb93a4a66ULL, 0x5bcafda5a7a0d4cfULL, 0x9068789e8a217ab8ULL, 0x731f33f4164b9621ULL, + 0xb33de24022b9c652ULL, 0x6bd1afe2193ce33bULL, 0xa1f25e81be2bc454ULL, 0x401ed1b4b68ba8cdULL, + 0xbf6fdd789c7567deULL, 0x277fa8b37cd738a7ULL, 0xe79f2e754b0372b0ULL, 0x5e5b4caafb0549f9ULL, + 0xede1e8920bdd2beaULL, 0x2545a8b9b6961593ULL, 0x68186f9c92fabe0cULL, 0xd7cc035c13ed6905ULL, + 0x85245577afe0d9d6ULL, 0x0bf76d05f70a191fULL, 0x016493e3d5aabc68ULL, 0x4e0aa86aa2aecf71ULL, + 0x6fdcbb28196055c2ULL, 0xb6fb2618e466474bULL, 0x68e55ff0b8ae7ec4ULL, 0x61f7a5cf724460ddULL, + 0x0a6251a626cc838eULL, 0x026b1d2a093a71f7ULL, 0xe1501a77a228e4a0ULL, 0x7658d43be7e765c9ULL, + 0x2e07583b5d528ddaULL, 0xd572181a05ff59e3ULL, 0xb30ae3ca1d51d9bcULL, 0xca772914473b3355ULL, + 0x03131d7a6972f2c6ULL, 0x296197d46751d86fULL, 0xcaf619893a5a2318ULL, 0x71139dc19b0aeac1ULL, + 0x443b4551b6f17632ULL, 0x69c619af9dfc37dbULL, 0xac222fcda9561bb4ULL, 0x86e7da1dcd2f53edULL, + 0x3bc4ef7c28f4c1beULL, 0xe06df1d434cfe647ULL, 0x275b095bac0978d0ULL, 0x9e1727915c0b5019ULL, + 0x34aaf0fb2280d70aULL, 0x6c0eb122cd39c0b3ULL, 0xaee17805a99e692cULL, 0xa5629d8ad39e6ca5ULL, + 0xbfb1f66260198236ULL, 0x90b9689924d6c63fULL, 0x0b94652fc0d513c8ULL, 0x4bff1238276e2411ULL, + 0x00da1e39ad9805a2ULL, 0x8491c047a4174aebULL, 0xe53a71f4452dd8a4ULL, 0x1ae5eef02a3d0e7dULL, + 0x86b763a9b34bdd6eULL, 0xbb59664ac1331f97ULL, 0x9a3e63985a219240ULL, 0x2f471d5c9fe01369ULL, + 0x2bfbc208e211e27aULL, 0xd36681e78abeae83ULL, 0xf9d3ec3333f584dcULL, 0x170e96d694ff8575ULL, + }}, + {"direct-0", "ae9fb9da88ee94c6e06905ab4dbedc291ad42fd81dfd8f5e7c1d23ffbe5b0ad4", + "53544843484b505402000000b60000003c020000000000009102030405064708890a0b0c0d0e0f1007000000000000000400" + "00000000000006d39e42fa79f06859b9bee1dcb08088142cb83e8cdcf72dc0984cfc62cd83d1020000001100736574746c65" + "6d656e742e636f6c6f6e790500312e302e3008e18a58989430c5435a2de6fb8f6a27a912b4d2970c1b965282408880d2c089" + "0f00736574746c656d656e742e636f72650500312e302e3061b36b8a230eebbe862e696603e021ace7151a9faf0ab3c069ab" + "7124188d337f534554544c4552530e0000002b00000000000000140000000800000004000000000000000100000000000000" + "0500000000000000000000000000000000000000000000000002000000000000000100000000000000010000000000000002" + "0000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000001000000010000000000000006000000030000000200000000" + "0000000004000000030000000300000004000000030000000500000003000000060000000300000004000000000000000b00" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000001000000000000000000000000000000000000000000010000000100000000000000" + "0300000003000000140000000000000000010000000101000000010000000100000001000000000000000600000003000000" + "0001010000000100000000000000010100000000000000000000000000000000000000000000000000000000000000000000" + "000000000000000000000000000000000000000000000000000000007a31faff08de99b99ec1e7f1a71b99f6c6bbf004087d" + "dd0b81acf4ca14acd130" + , { + 0xcb3aa5dfb03965c9ULL, 0xeabf911762701811ULL, 0x3267ff311c8f5285ULL, 0xc9a54b382b66e91dULL, + 0x3eadc9b41b6a79c1ULL, 0x88d52de6de23fa69ULL, 0xda6625e9c8402245ULL, 0xdf431e91a4cc8a4dULL, + 0x88968629292726d9ULL, 0x90616d8a80511ad1ULL, 0xefc3df7a957d1395ULL, 0x1e8ec6e4dc12bf8eULL, + 0xdaf77dfbd58cb967ULL, 0x611d034605ba46f0ULL, 0x2fe16de272eb1379ULL, 0xd3cfbd66bb79843aULL, + 0x91b047e412719a33ULL, 0x1a8b985c61eb123cULL, 0xf23946c97dcc7825ULL, 0x3f4e05a9cdb2c0f6ULL, + 0xbcc048eb14dcb00fULL, 0x08ff6dc7f49a22f8ULL, 0x4b90993f02ab24c1ULL, 0xb5988855fac97ae2ULL, + 0x737912d351c190dbULL, 0xfc54634ba13b08e4ULL, 0xd40211b8bd1c6ecdULL, 0x2116d0990d02b79eULL, + 0x514c488aa75ce6b7ULL, 0x63a50cfa36aa3f00ULL, 0xa636387144bb40c9ULL, 0xd657c71aec697c4aULL, + 0x9438519843619243ULL, 0x1d13a21092db0a4cULL, 0xf4c1507daebc7035ULL, 0xb5a2d0389f82ee46ULL, + 0x33151379e6acdd5fULL, 0x7f543856c66a5048ULL, 0x4e18a2f3339b1cd1ULL, 0xb820920a2bb972f2ULL, + 0x76011c8782b188ebULL, 0xfedc6cffd22b00f4ULL, 0xd68a1b6cee0c66ddULL, 0x976b9b27ded2e4eeULL, + 0x53d4523ed84cdec7ULL, 0xd9f9d789087a6c50ULL, 0xa8be422575ab38d9ULL, 0x4cac91a9be39a99aULL, + 0x0a8d1c271531bf93ULL, 0x93686c9f64ab379cULL, 0x6b161b0c808c9d85ULL, 0xb82ad9ecd072e656ULL, + 0x359d1d2e179cd56fULL, 0x81dc420af75a4858ULL, 0xc46d6d82056b4a21ULL, 0x2e755c98fd89a042ULL, + 0xec55e7165481b63bULL, 0x7531378ea3fb2e44ULL, 0x4cdee5fbbfdc942dULL, 0x99f3a4dc0fc2dcfeULL, + 0xe6b5cbc19f1c7697ULL, 0xf90e90312e69cee0ULL, 0x3b9fbba83c7ad0a9ULL, 0x6bc14a51e4290c2aULL, + 0x29a1d4cf3b212223ULL, 0xb27d25478a9a9a2cULL, 0x8a2ad3b4a67c0015ULL, 0x4b0c536f97427e26ULL, + 0xc87e96b0de6c6d3fULL, 0x14bdbb8dbe29e028ULL, 0xe382262a2b5aacb1ULL, 0x4d8a1541237902d2ULL, + 0x0b6a9fbe7a7118cbULL, 0x9445f036c9ea90d4ULL, 0x6bf39ea3e5cbf6bdULL, 0x2cd51e5ed69274ceULL, + 0xe93dd575d00c6ea7ULL, 0x6f635ac00039fc30ULL, 0x3e27c55c6d6ac8b9ULL, 0xe21614e0b5f9397aULL, + }}, + {"direct-1", "452313012591f9337c1410095355887d778a47c225d09b3fe550d9f8ec2cc67a", + "53544843484b505402000000b60000003c020000000000009102030405064708890a0b0c0d0e0f1007000000000000000400" + "00000000000006d39e42fa79f06859b9bee1dcb08088142cb83e8cdcf72dc0984cfc62cd83d1020000001100736574746c65" + "6d656e742e636f6c6f6e790500312e302e3008e18a58989430c5435a2de6fb8f6a27a912b4d2970c1b965282408880d2c089" + "0f00736574746c656d656e742e636f72650500312e302e3061b36b8a230eebbe862e696603e021ace7151a9faf0ab3c069ab" + "7124188d337f534554544c4552530e0000002b00000000000000140000000800000004000000000000000100000000000000" + "0500000000000000000000000000000000000000000000000002000000000000000100000000000000010000000000000002" + "0000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000001000000010000000000000006000000030000000200000000" + "0000000004000000030000000300000004000000030000000500000003000000060000000300000004000000000000000f00" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000001000000000000000000000000000000000000000000010000000100000000000000" + "0300000003000000140000000000000000010000000201000000010000000100000001000000000000000600000003000000" + "0101010000000100000000000000020100000000000000000000000000000000000000000000000000000000000000000000" + "00000000000000000000000000000000000000000000000000000000d4e59fb1f410d7b6ab8e531ff066559d5d44677d61c6" + "544d069a18fd0269e030" + , { + 0x37ae3152f9978e76ULL, 0x57331c8aabce40beULL, 0x1351af3574563b7aULL, 0xaa8efb3c832dd212ULL, + 0xc09abf5a0172a736ULL, 0xdfcf4f278ad81e4eULL, 0xa5d66bbb835d0672ULL, 0xd5a638c8993d780aULL, + 0xf50a119c72854f86ULL, 0xfcd4f8fdc9af437eULL, 0xd0ad8f7eed43fc8aULL, 0x5030d7afa10ed4d2ULL, + 0x3d54d6a175847066ULL, 0x44cf6298a3dd292eULL, 0x0ad67f2c9c621152ULL, 0xcd445e1c36765956ULL, + 0x1d1b333928ab77cbULL, 0x8f20ad074bb134a4ULL, 0xf8c4a61402cfa309ULL, 0x2f038e4a264230aaULL, + 0x29580d1fd74f61dfULL, 0x9c67a99332277128ULL, 0x5bdb109eaa1bb50dULL, 0xaf0d290b75c64ffeULL, + 0xfee3fe2867fb6e73ULL, 0x70e977f68b012b4cULL, 0xda8d7103421f99b1ULL, 0x10cc593965922752ULL, + 0xbde40cbf69cf9887ULL, 0xf70d48c574378d30ULL, 0xb680afd0ec2bd115ULL, 0xcfcc67d067665166ULL, + 0x1fa33ced599b6fdbULL, 0x91a8b6bb7ca12cb4ULL, 0xfb4cafc833bf9b19ULL, 0xa55858d8f8125dfaULL, + 0x9facd7aea91f8f2fULL, 0x12bc742203f79e78ULL, 0x5e631a52db0bad1dULL, 0xb19532bfa6b6480eULL, + 0x016c07dc98eb6683ULL, 0x737181aabbf1235cULL, 0xdd157ab7730f91c1ULL, 0x872123c8376254a2ULL, + 0xc06c16739abf9097ULL, 0x6d6213544607ba80ULL, 0xb908b9851d1bc925ULL, 0x4621325f39367eb6ULL, + 0x95f8077c2b6b9d2bULL, 0x07fd814a4e715a04ULL, 0x71a17a57058fc869ULL, 0xa7e0628d2902560aULL, + 0xa234e162da0f873fULL, 0x15447dd634e79688ULL, 0xd4b7e4e1acdbda6dULL, 0x27e9fd4e7886755eULL, + 0x77c0d26b6abb93d3ULL, 0xe9c64c398dc150acULL, 0x536a454644dfbf11ULL, 0x89a92d7c68524cb2ULL, + 0x534d8ff6618f2867ULL, 0x8c76cbfc6bf71d10ULL, 0x4bea3307e3eb60f5ULL, 0x6535eb075f25e146ULL, + 0xb50cc024515affbbULL, 0x271239f27460bc94ULL, 0x90b632ff2b7f2af9ULL, 0x3ac1dc0fefd1eddaULL, + 0x35165ae5a0df1f0fULL, 0xa825f758fbb72e58ULL, 0xf3cc9d89d2cb3cfdULL, 0x46feb5f69e75d7eeULL, + 0x96d58b1390aaf663ULL, 0x08db04e1b3b0b33cULL, 0x727efdee6acf21a1ULL, 0x1c8aa6ff2f21e482ULL, + 0x55d599aa927f2077ULL, 0x02cb968b3dc74a60ULL, 0x4e723cbc14db5905ULL, 0xdb8ab59630f60e96ULL, + }}, + {"direct-4", "34fddc7587d05b995c207d9db896146154ace52dc152e62004efac370c1258ec", + "53544843484b505402000000b60000003c020000000000009102030405064708890a0b0c0d0e0f1007000000000000000400" + "00000000000006d39e42fa79f06859b9bee1dcb08088142cb83e8cdcf72dc0984cfc62cd83d1020000001100736574746c65" + "6d656e742e636f6c6f6e790500312e302e3008e18a58989430c5435a2de6fb8f6a27a912b4d2970c1b965282408880d2c089" + "0f00736574746c656d656e742e636f72650500312e302e3061b36b8a230eebbe862e696603e021ace7151a9faf0ab3c069ab" + "7124188d337f534554544c4552530e0000002b00000000000000140000000800000004000000000000000200000000000000" + "0900000000000000000000000000000000000000000000000002000000000000000100000000000000010000000000000002" + "0000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000001000000010000000000000006000000030000000200000000" + "0000000004000000030000000300000004000000030000000500000003000000060000000300000004000000000000000b00" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000001000000000000000000000000000000000000000000010000000100000000000000" + "0300000003000000140000000000000000010000000701000000010000000100000001000000000000000600000003000000" + "0401010000000100000000000000070100000000000000000000000000000000000000000000000000000000000000000000" + "00000000000000000000000000000000000000000000000000000000db4ee0a01a3bdbe2c73bce9fb3c27baca13e5aaa12a1" + "d06e25ec370dcebd6e75" + , { + 0x390c415e34d0166aULL, 0x554a4dca2da2d072ULL, 0x0a6d78876d939f76ULL, 0x3746c232f2e153feULL, + 0x1dac5cc0bc01befaULL, 0x2230655659c7bab2ULL, 0xc98216266ea8b8ceULL, 0xcb18300291d12896ULL, + 0x8c028e6e517d8faaULL, 0x15e0477b18051b22ULL, 0xcb03723857f5ea26ULL, 0x550bb6fd219fa238ULL, + 0x6cf696b2deed2d21ULL, 0xb5fe1220613db27aULL, 0x134d258ced91df3bULL, 0xca82240862b0591cULL, + 0x9e3eceaeb9118035ULL, 0xf8bc7d34089f3e3eULL, 0xd1d2bf535ea84f7fULL, 0xb666fe781169bcf0ULL, + 0x0e2358ec20130a79ULL, 0x572ad459a2638fd2ULL, 0xb479e7c62eb7bc93ULL, 0x6baee641a3d63674ULL, + 0x3f6b90e7fa375d8dULL, 0x6002defff95500f6ULL, 0xace5e1f9f03e4777ULL, 0x5793c0b1528f9a48ULL, + 0xe34b6141b0bd5a71ULL, 0xb8861bd4922daa8aULL, 0x15d52f411e81d74bULL, 0xcd0a2dbc93a0512cULL, + 0xa0c6d862ea017845ULL, 0xfb4486e8398f364eULL, 0x482789e230787ccfULL, 0x2cbbc906e339ea40ULL, + 0x8478237af1e337c9ULL, 0x59b2de0dd35387e2ULL, 0xb701f17a5fa7b4a3ULL, 0x6e36eff5d4c62e84ULL, + 0x41f39a9c2b27559dULL, 0xd657a98ecb252e46ULL, 0xaf6debae212e3f87ULL, 0xcde88b40245fc798ULL, + 0xe5d36af5e1ad5281ULL, 0x2edae66363fdd7daULL, 0x8c29f9cff052049bULL, 0x435ef84b65707e7cULL, + 0x171ba2f1bbd1a595ULL, 0x719951770b5f639eULL, 0x4aaf9396616874dfULL, 0x2f43d2bb1429e250ULL, + 0x87002d2f22d32fd9ULL, 0xd007a89ca523b532ULL, 0x2d56bc093177e1f3ULL, 0xe48bba84a6965bd4ULL, + 0xb848652afcf782edULL, 0xd8dfb342fc152656ULL, 0x25c2b63cf2fe6cd7ULL, 0xd07094f4554fbfa8ULL, + 0x78b4e478a87cea51ULL, 0x4def9f0b89ed3a6aULL, 0xab3eb2781641672bULL, 0x6273b0f38b5fe10cULL, + 0x36305b99e1c10825ULL, 0x90ae0a1f314ec62eULL, 0xdd910d1928380cafULL, 0xc2254c3ddaf97a20ULL, + 0x19e1a6b1e9a2c7a9ULL, 0xef1c6144cb1317c2ULL, 0x4c6b74b157674483ULL, 0x03a0732ccc85be64ULL, + 0xd75d1dd322e6e57dULL, 0x6bc12cc5c2e4be26ULL, 0x44d76ee518edcf67ULL, 0x63520e771c1f5778ULL, + 0x7b3cee2cd96ce261ULL, 0xc444699a5bbd67baULL, 0x21937d06e811947bULL, 0xd8c87b825d300e5cULL, + }}, + {"harvest-gathering", "2983ac00f777101dd7d71bd7379764ac32aa2330608fed9a4bf4dc1f2ee01426", + "53544843484b505402000000b600000069020000000000009102030405064708890a0b0c0d0e0f1007000000000000000200" + "00000000000006d39e42fa79f06859b9bee1dcb08088142cb83e8cdcf72dc0984cfc62cd83d1020000001100736574746c65" + "6d656e742e636f6c6f6e790500312e302e3008e18a58989430c5435a2de6fb8f6a27a912b4d2970c1b965282408880d2c089" + "0f00736574746c656d656e742e636f72650500312e302e3061b36b8a230eebbe862e696603e021ace7151a9faf0ab3c069ab" + "7124188d337f534554544c4552530e0000002b00000000000000140000000800000002000000000000000200000000000000" + "0f00000000000000000000000000000000000000000000000002000000000000000100000000000000020000000000000002" + "0000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000001000000010000000000000003000000030000000300000000" + "0000000002000000020000000300000003000000030000000200000000000000020000000100000000000000010000000000" + "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b000000" + "0400000003000000050000000300000006000000030000000700000003000000080000000300000009000000030000000a00" + "0000030000000b000000030000000c000000030000000d000000030000000e00000003000000000000000000000000000000" + "0000000000000100000001000000000000000300000003000000010100000001000000010000000100000000000000000001" + "00000001000000000000000e0000000300000014000000010000000000000000000000000000000000000000000000000000" + "00000000000000000000000000000000000000000000006719c2fed4abf63ffe4456b03d95b13c12ef3078097d13e1a1b74a" + "bb30b5cf17" + , { + 0x4034a5761e22ecabULL, 0xf78178bf59b905d9ULL, 0x5fd5644d1fa59357ULL, 0xaa768617a1b90374ULL, + 0x6ceeba0f2fe9089dULL, 0xee339afe091ed342ULL, 0xaeb06ae4ea87af53ULL, 0x7b6079611fd6a880ULL, + 0xbbc9c0a6facb2499ULL, 0xe75c76afc2037eceULL, 0xec829e3d4f72762fULL, 0x07bfb4a042a471ecULL, + 0x55e6cc33aa390f75ULL, 0x3e52625e8b2045b6ULL, 0x4f7d9d5bcf978d4dULL, 0x303f84c95c235208ULL, + 0xb2896b1b8df536cfULL, 0xc0fc67ce76a32cbaULL, 0x421810bd51ac0c71ULL, 0x32d353a79afcd8dcULL, + 0x9dd13f2ee856f313ULL, 0xac443be1d104e8feULL, 0x61a1fa6a365c4a35ULL, 0xd6d4e506f73bbaf0ULL, + 0x51cc2c0b015adcd7ULL, 0x603f28bdea08d2c2ULL, 0x543c6dcbb870c959ULL, 0xfdbfa374e6fab424ULL, + 0x44669f6c836f5bfbULL, 0x52d99c1f6c1d51e6ULL, 0x6404d71cb094997dULL, 0x44c6be8a3d205e38ULL, + 0x06f612cf620661bfULL, 0x15690f824ab457aaULL, 0x9684b87125bd3761ULL, 0x873ffb5b6f0e03ccULL, + 0xb25878efc953ff43ULL, 0xc0cb75a2b201f52eULL, 0x7629342b17595665ULL, 0x2b418cbacb4ce5e0ULL, + 0x665365cbe257e907ULL, 0x74c6627ecb05def2ULL, 0xa8a9157f8c81f449ULL, 0x522c4b28bb0bdf14ULL, + 0x98d34720578086ebULL, 0xa74643d3402e7cd6ULL, 0xb8717ed084a5c46dULL, 0x9933663e11318928ULL, + 0x1b7d4c9043036defULL, 0x29f049432bb163daULL, 0xab0bf23206ba4391ULL, 0x9bc7351c500b0ffcULL, + 0x06c520a39d652a33ULL, 0x15381d568613201eULL, 0xca95dbdeeb6a8155ULL, 0x3fc8c67bac49f210ULL, + 0xbac00d7fb66913f7ULL, 0xc9330a329f1709e2ULL, 0xbd304f406d7f0079ULL, 0x66b384e99c08eb44ULL, + 0xad5a80e1387d931bULL, 0xbbcd7d94212b8906ULL, 0x292932be9169f41dULL, 0x09eb1a2c1df5b8d8ULL, + 0xcc1a6e7142dbbc5fULL, 0xda8d6b242b89b24aULL, 0x5ba9141306929201ULL, 0x4c6456fd4fe35e6cULL, + 0x777cd491aa2959e3ULL, 0x85efd14492d74fceULL, 0x3b4d8fccf82eb105ULL, 0xf065e85cac224080ULL, + 0x2b77c16dc32d43a7ULL, 0x39eabe20abdb3992ULL, 0x6dcd71216d574ee9ULL, 0x1750a6ca9be139b4ULL, + 0x5df7a2c23855e18bULL, 0x6c6a9f752103d776ULL, 0x7d95da72657b1f0dULL, 0x5e57c1dff206e3c8ULL, + }}, + {"harvest-hauled", "038b7ae299004c672e20cefb6c50ab9bacd6f83606ceca83d9d5edd20ff8cfad", + "53544843484b505402000000b600000059020000000000009102030405064708890a0b0c0d0e0f1007000000000000000400" + "00000000000006d39e42fa79f06859b9bee1dcb08088142cb83e8cdcf72dc0984cfc62cd83d1020000001100736574746c65" + "6d656e742e636f6c6f6e790500312e302e3008e18a58989430c5435a2de6fb8f6a27a912b4d2970c1b965282408880d2c089" + "0f00736574746c656d656e742e636f72650500312e302e3061b36b8a230eebbe862e696603e021ace7151a9faf0ab3c069ab" + "7124188d337f534554544c4552530e0000002b00000000000000140000000800000004000000000000000200000000000000" + "0f00000000000000000000000000000000000000000000000002000000000000000100000000000000020000000000000002" + "0000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000001000000010000000000000003000000030000000400000000" + "000000000b000000040000000300000005000000030000000600000003000000070000000300000008000000030000000900" + "0000030000000a000000030000000b000000030000000c000000030000000d000000030000000e0000000300000000000000" + "0000000000000000000000000000000001000000000000000100000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000001000000010000000000" + "0000030000000300000001000000000100000000000000010000000000000000000100000001000000000000000e00000003" + "0000001400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "00000000000000df9205984b13c7ea46ccd323ab458977e4ea273b047760dbebb30e7fd311d16f" + , { + 0x5fd5644d1fa59357ULL, 0xaa768617a1b90374ULL, 0x6ceeba0f2fe9089dULL, 0xee339afe091ed342ULL, + 0xaeb06ae4ea87af53ULL, 0x7b6079611fd6a880ULL, 0xbbc9c0a6facb2499ULL, 0xe75c76afc2037eceULL, + 0xec829e3d4f72762fULL, 0x07bfb4a042a471ecULL, 0x55e6cc33aa390f75ULL, 0x3e52625e8b2045b6ULL, + 0x4f7d9d5bcf978d4dULL, 0x303f84c95c235208ULL, 0xb2896b1b8df536cfULL, 0xc0fc67ce76a32cbaULL, + 0x421810bd51ac0c71ULL, 0x32d353a79afcd8dcULL, 0x9dd13f2ee856f313ULL, 0xac443be1d104e8feULL, + 0x61a1fa6a365c4a35ULL, 0xd6d4e506f73bbaf0ULL, 0x51cc2c0b015adcd7ULL, 0x603f28bdea08d2c2ULL, + 0x543c6dcbb870c959ULL, 0xfdbfa374e6fab424ULL, 0x44669f6c836f5bfbULL, 0x52d99c1f6c1d51e6ULL, + 0x6404d71cb094997dULL, 0x44c6be8a3d205e38ULL, 0x06f612cf620661bfULL, 0x15690f824ab457aaULL, + 0x9684b87125bd3761ULL, 0x873ffb5b6f0e03ccULL, 0xb25878efc953ff43ULL, 0xc0cb75a2b201f52eULL, + 0x7629342b17595665ULL, 0x2b418cbacb4ce5e0ULL, 0x665365cbe257e907ULL, 0x74c6627ecb05def2ULL, + 0xa8a9157f8c81f449ULL, 0x522c4b28bb0bdf14ULL, 0x98d34720578086ebULL, 0xa74643d3402e7cd6ULL, + 0xb8717ed084a5c46dULL, 0x9933663e11318928ULL, 0x1b7d4c9043036defULL, 0x29f049432bb163daULL, + 0xab0bf23206ba4391ULL, 0x9bc7351c500b0ffcULL, 0x06c520a39d652a33ULL, 0x15381d568613201eULL, + 0xca95dbdeeb6a8155ULL, 0x3fc8c67bac49f210ULL, 0xbac00d7fb66913f7ULL, 0xc9330a329f1709e2ULL, + 0xbd304f406d7f0079ULL, 0x66b384e99c08eb44ULL, 0xad5a80e1387d931bULL, 0xbbcd7d94212b8906ULL, + 0x292932be9169f41dULL, 0x09eb1a2c1df5b8d8ULL, 0xcc1a6e7142dbbc5fULL, 0xda8d6b242b89b24aULL, + 0x5ba9141306929201ULL, 0x4c6456fd4fe35e6cULL, 0x777cd491aa2959e3ULL, 0x85efd14492d74fceULL, + 0x3b4d8fccf82eb105ULL, 0xf065e85cac224080ULL, 0x2b77c16dc32d43a7ULL, 0x39eabe20abdb3992ULL, + 0x6dcd71216d574ee9ULL, 0x1750a6ca9be139b4ULL, 0x5df7a2c23855e18bULL, 0x6c6a9f752103d776ULL, + 0x7d95da72657b1f0dULL, 0x5e57c1dff206e3c8ULL, 0xe0a1a83223d8c88fULL, 0xef14a4e50c86be7aULL, + }}, + {"meal-eating", "6ef841c3978ffb1cc6c622485ae00f612b8df62e728a00998dff39c4cb23dd86", + "53544843484b505402000000b6000000e3010000000000009102030405064708890a0b0c0d0e0f1007000000000000009b00" + "00000000000006d39e42fa79f06859b9bee1dcb08088142cb83e8cdcf72dc0984cfc62cd83d1020000001100736574746c65" + "6d656e742e636f6c6f6e790500312e302e3008e18a58989430c5435a2de6fb8f6a27a912b4d2970c1b965282408880d2c089" + "0f00736574746c656d656e742e636f72650500312e302e3061b36b8a230eebbe862e696603e021ace7151a9faf0ab3c069ab" + "7124188d337f534554544c4552530e0000002b0000000000000014000000080000009b000000000000000100000000000000" + "0e00000000000000000000000000000000000000000000000102000000000000000100000000000000010000000000000002" + "0000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "000000000000000000000000000000000000000000000000000100000001000000000000000e000000030000000700000000" + "0000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000000" + "000001000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000" + "0000000000000100000001000000000000000e00000003000000140000000000000001010000000504000000000000000000" + "000000000000000000000000000000000000000000000000000000000000000000000000000000cbca12e9de2b541fa0a67c" + "950419717981e249938bede98f7bc5ac8b21bb41e4" + , { + 0x0eae6cbd44a5eb4cULL, 0x666bd2a801c60dc5ULL, 0xaa5ed34a6065dbaaULL, 0x0de79ba8983d3fb3ULL, + 0x99ab26421b611ba8ULL, 0xc09e84ec6875f729ULL, 0xec94b6b0b80ab7b5ULL, 0xf98239f36dc2c19dULL, + 0xd44d9d9512ae9821ULL, 0xa5f198ebe67c6949ULL, 0x6960ffccf032887dULL, 0x892b7289233b1e85ULL, + 0xa0d41230356d6121ULL, 0xccf5a29ed61d7299ULL, 0x38d1425618c651e5ULL, 0x47a8b158ccfd867dULL, + 0x227414fa71e95d01ULL, 0x997c1739f8dc3b99ULL, 0xb78777324f6d4d5dULL, 0x7cb5f0d7359af0d5ULL, + 0x07c728f9efefcf21ULL, 0xce1cfa5e52220209ULL, 0x84c0a7e6fb14fc35ULL, 0x91ae2b29b0cd061dULL, + 0x6c798ecb55b8dca1ULL, 0xb3700e5dd0287429ULL, 0x018cf103333cccfdULL, 0x96a9e7fb0ce72965ULL, + 0x390003667877a5a1ULL, 0x652193d51927b719ULL, 0x464fb7c802725cc5ULL, 0xdfd4a28f1007cafdULL, + 0xbaa00630b4f3a181ULL, 0x31a808703be68019ULL, 0x4fb36868927791ddULL, 0x14e1e20d78a53555ULL, + 0x9ff31a3032fa13a1ULL, 0x44f1d52f88f4cf69ULL, 0x70e806f3d8898ff5ULL, 0x7dd58a368e4199ddULL, + 0x6dfbe560e5e9e3a1ULL, 0x3f9fe0b7b9b7b4c9ULL, 0x030f4798c36dd3fdULL, 0x0d7ec2cc43b9f6c5ULL, + 0x3a8259fc08a8aca1ULL, 0x5148f2e1f69c4ad9ULL, 0xd27f8a21ec019d65ULL, 0xe156f924a038d1fdULL, + 0xa6c7653d92683541ULL, 0x1dcf677d195b13d9ULL, 0x3bdac7756fec259dULL, 0x166438a308d63c55ULL, + 0xa17570c5c32b1aa1ULL, 0x67cb422a255d4d89ULL, 0x0913f82a1b93d475ULL, 0x16017b6cd14bde5dULL, + 0x0627d69728f42821ULL, 0x37c35ea0f0a74c69ULL, 0x9b3b38cf0678187dULL, 0x30582fc6e02274e5ULL, + 0xd2ae4b324bb2f121ULL, 0xe974e41839a68f59ULL, 0xcaa3080b22f13505ULL, 0x7982ea5ae343167dULL, + 0x3ef35673d57279c1ULL, 0xb5fb58b35c655859ULL, 0xd406b8abb2f66a1dULL, 0xae9029d94be080d5ULL, + 0x39a161fc06355f21ULL, 0x8aa4af24c1c5cba9ULL, 0xb69ae0e9115a8c35ULL, 0x98d2751a6199af9dULL, + 0x739dd8bc06858621ULL, 0x6ff7c3243fcc3dc9ULL, 0x33672a0549825cfdULL, 0x287badb017120c85ULL, + 0x40244d5729444f21ULL, 0x96fbccd72f6d4719ULL, 0x02d76c8e72162665ULL, 0x11aedb91264d5afdULL, + }}, + {"meal-going", "2bf42eb752cdbb6d06a69cfe3f7eb68cbf0686d5ec855b986599b2f4b589390d", + "53544843484b505402000000b60000004b020000000000009102030405064708890a0b0c0d0e0f1007000000000000008f00" + "00000000000006d39e42fa79f06859b9bee1dcb08088142cb83e8cdcf72dc0984cfc62cd83d1020000001100736574746c65" + "6d656e742e636f6c6f6e790500312e302e3008e18a58989430c5435a2de6fb8f6a27a912b4d2970c1b965282408880d2c089" + "0f00736574746c656d656e742e636f72650500312e302e3061b36b8a230eebbe862e696603e021ace7151a9faf0ab3c069ab" + "7124188d337f534554544c4552530e0000002b0000000000000014000000080000008f000000000000000100000000000000" + "0e00000000000000000000000000000000000000000000000102000000000000000100000000000000010000000000000002" + "0000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000001000000010000000000000002000000030000000600000000" + "000000000d000000020000000300000003000000030000000400000003000000050000000300000006000000030000000700" + "000003000000080000000300000009000000030000000a000000030000000b000000030000000c000000030000000d000000" + "030000000e000000030000000100000000000000000000000000000000000000010000000000000000000000000000000000" + "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4000000" + "000000000000000000000100000001000000000000000e000000030000001400000000000000010100000005050000000100" + "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000919d8854127c30" + "0dbea118a7d16c7f0c3044dd54f2148b20800d6204105412e3" + , { + 0xfd9dfc2a0c96299dULL, 0x055fa24bd46f74c7ULL, 0xc3a99a4764c3bac9ULL, 0x788d6816d3b41547ULL, + 0xabaedc2e42067cddULL, 0xad632a0f1d2c4b17ULL, 0xc9b73d3b4e831031ULL, 0x7d5bc37e22cdc2f7ULL, + 0xcc366163e21db0fdULL, 0xe24026ad5ef92427ULL, 0xa4867348eeb2b129ULL, 0x165dc919e3326217ULL, + 0x0eae6cbd44a5eb4cULL, 0x666bd2a801c60dc5ULL, 0xaa5ed34a6065dbaaULL, 0x0de79ba8983d3fb3ULL, + 0x99ab26421b611ba8ULL, 0xc09e84ec6875f729ULL, 0xec94b6b0b80ab7b5ULL, 0xf98239f36dc2c19dULL, + 0xd44d9d9512ae9821ULL, 0xa5f198ebe67c6949ULL, 0x6960ffccf032887dULL, 0x892b7289233b1e85ULL, + 0xa0d41230356d6121ULL, 0xccf5a29ed61d7299ULL, 0x38d1425618c651e5ULL, 0x47a8b158ccfd867dULL, + 0x227414fa71e95d01ULL, 0x997c1739f8dc3b99ULL, 0xb78777324f6d4d5dULL, 0x7cb5f0d7359af0d5ULL, + 0x07c728f9efefcf21ULL, 0xce1cfa5e52220209ULL, 0x84c0a7e6fb14fc35ULL, 0x91ae2b29b0cd061dULL, + 0x6c798ecb55b8dca1ULL, 0xb3700e5dd0287429ULL, 0x018cf103333cccfdULL, 0x96a9e7fb0ce72965ULL, + 0x390003667877a5a1ULL, 0x652193d51927b719ULL, 0x464fb7c802725cc5ULL, 0xdfd4a28f1007cafdULL, + 0xbaa00630b4f3a181ULL, 0x31a808703be68019ULL, 0x4fb36868927791ddULL, 0x14e1e20d78a53555ULL, + 0x9ff31a3032fa13a1ULL, 0x44f1d52f88f4cf69ULL, 0x70e806f3d8898ff5ULL, 0x7dd58a368e4199ddULL, + 0x6dfbe560e5e9e3a1ULL, 0x3f9fe0b7b9b7b4c9ULL, 0x030f4798c36dd3fdULL, 0x0d7ec2cc43b9f6c5ULL, + 0x3a8259fc08a8aca1ULL, 0x5148f2e1f69c4ad9ULL, 0xd27f8a21ec019d65ULL, 0xe156f924a038d1fdULL, + 0xa6c7653d92683541ULL, 0x1dcf677d195b13d9ULL, 0x3bdac7756fec259dULL, 0x166438a308d63c55ULL, + 0xa17570c5c32b1aa1ULL, 0x67cb422a255d4d89ULL, 0x0913f82a1b93d475ULL, 0x16017b6cd14bde5dULL, + 0x0627d69728f42821ULL, 0x37c35ea0f0a74c69ULL, 0x9b3b38cf0678187dULL, 0x30582fc6e02274e5ULL, + 0xd2ae4b324bb2f121ULL, 0xe974e41839a68f59ULL, 0xcaa3080b22f13505ULL, 0x7982ea5ae343167dULL, + 0x3ef35673d57279c1ULL, 0xb5fb58b35c655859ULL, 0xd406b8abb2f66a1dULL, 0xae9029d94be080d5ULL, + }}, + {"tending", "3827f807449b4eef713945b5e196e082e48e10d7971587e8281f3f858f76c475", + "53544843484b505402000000b600000004020000000000009102030405064708890a0b0c0d0e0f1007000000000000000400" + "00000000000006d39e42fa79f06859b9bee1dcb08088142cb83e8cdcf72dc0984cfc62cd83d1020000001100736574746c65" + "6d656e742e636f6c6f6e790500312e302e3008e18a58989430c5435a2de6fb8f6a27a912b4d2970c1b965282408880d2c089" + "0f00736574746c656d656e742e636f72650500312e302e3061b36b8a230eebbe862e696603e021ace7151a9faf0ab3c069ab" + "7124188d337f534554544c4552530e0000002b00000000000000140000000800000004000000000000000100000000000000" + "0500000000000000000000000000000000000000000000000102000000000000000100000000000000020000000000000001" + "0000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000000001000000010000000000000005000000030000000300000000" + "0000000004000000020000000300000003000000030000000400000003000000050000000300000004000000000000000500" + "0000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "0000000000000000000000000000000000000000000000002900040000000000000001000000010000000000000005000000" + "0300000001000000000600000001000000010200000000000000000000000000000000010000000200000002000000010000" + "00000000000000000000000000010000000000000001b4030ca9d1f16481a8e535b4d15d5386c3373d95462d4d421acb8c39" + "bffd838c" + , { + 0x40e38438faf94b0bULL, 0x14761863e62e2a4dULL, 0xe6cd2e9002d72edbULL, 0x05e511dfedbab179ULL, + 0xa31d1be8a64993d3ULL, 0x2689b1c58ae359daULL, 0x0a35fc84aa4f48c7ULL, 0xfcb493ac0b7a9ca0ULL, + 0xa5b6852baae0b5d5ULL, 0x475c01f9c9b77106ULL, 0x8f687924c6abc753ULL, 0xda1797bdf654a5fcULL, + 0x06e3f4bcdb5865e1ULL, 0xcfc208819fd468a2ULL, 0x8f5cf81cd325dcefULL, 0xab87d8ad5efdc448ULL, + 0x9596d5a2eab7763dULL, 0xc5aea624fbd7c04eULL, 0xd450e36c43ad31dbULL, 0xa28d719e4a7f7b04ULL, + 0x9397942622050189ULL, 0xed40d75b33713baaULL, 0x8b456815cce24137ULL, 0x914e242111a8c7d0ULL, + 0x2ccbce0483ab8405ULL, 0xbbfc27d8b7020bb6ULL, 0x332345807b3a2dc3ULL, 0x9762664544b614ecULL, + 0x80116ad6bde724d1ULL, 0x68fb7be5021b5cf2ULL, 0xfc7eb3a74944f05fULL, 0x67bda54ab54433f8ULL, + 0x58e78171ef50baedULL, 0x88ff51f4007104feULL, 0x59ed9f385b844e8bULL, 0x3d906a7dcfbe2e34ULL, + 0x1aacdcfefacfcfb9ULL, 0x7d5eec1f9d8fca7aULL, 0x4d8111fad96086a7ULL, 0x55025b12df1abec0ULL, + 0xc29ec7a141fddb35ULL, 0x8c1fa47cb9bc6066ULL, 0xd42c1ba7b6b0b6b3ULL, 0x0a89ff17710cfe1cULL, + 0x3d5c395e0c4893c1ULL, 0x130d1df7cee5a682ULL, 0xb9c9822e97a65f4fULL, 0xc26a3ddb3fe313e8ULL, + 0xcc0f1a441ba7a41dULL, 0xfc26eac62cc7ee2eULL, 0xefc098d519d6a5bbULL, 0xdfd2a9ccc358e324ULL, + 0xb07fd69bb92226e9ULL, 0x519a59517381094aULL, 0xa6b51d7ea30bb517ULL, 0xb43c43de5efdc2f0ULL, + 0x7016e37ab2bcc1e5ULL, 0xff473d4ee6134996ULL, 0x766e5af6aa4b6ba3ULL, 0xaccc3e6664a7b30cULL, + 0xc302fb492ed47b31ULL, 0x1fc6fc206a2749d2ULL, 0xb34a33e2b150dd3fULL, 0x6f49b0cbe9ae8d98ULL, + 0x8e54ca4832dab44dULL, 0x0caacdd834d6e0deULL, 0x810f8a2cdff9866bULL, 0xab721e2bcde3c154ULL, + 0x9d91429d9d844719ULL, 0xe0ad724af039639aULL, 0x74a2fcef5dd5be87ULL, 0xc2e40ec0dd4051e0ULL, + 0x5e61b8a44f430e15ULL, 0xb3418f713e319846ULL, 0x3c07f20dfe9e7413ULL, 0xa04712d2c81a5b3cULL, + 0x72c982344fd28d21ULL, 0x2caac15025f78162ULL, 0x558c7331a4eb922fULL, 0xfc64d6ec78b13188ULL, + }}, +}}; +} // namespace custody_v14