Execute world flag packed event descriptor

This commit is contained in:
Jan Petykiewicz 2026-04-15 23:03:18 -07:00
commit e44e0d5ac5
8 changed files with 242 additions and 76 deletions

View file

@ -0,0 +1,44 @@
{
"format_version": 1,
"fixture_id": "packed-event-world-flag-save-slice-fixture",
"source": {
"kind": "captured-runtime",
"description": "Fixture proving the first real whole-game world-flag descriptor imports and executes through the ordinary runtime path."
},
"state_save_slice_path": "packed-event-world-flag-save-slice.json",
"commands": [
{
"kind": "service_trigger_kind",
"trigger_kind": 6
}
],
"expected_summary": {
"packed_event_collection_present": true,
"packed_event_record_count": 1,
"packed_event_decoded_record_count": 1,
"packed_event_imported_runtime_record_count": 1,
"event_runtime_record_count": 1,
"packed_event_blocked_unmapped_world_descriptor_count": 0,
"total_event_record_service_count": 1,
"total_trigger_dispatch_count": 1
},
"expected_state_fragment": {
"world_flags": {
"world.disable_stock_buying_and_selling": true
},
"packed_event_collection": {
"records": [
{
"import_outcome": "imported",
"decoded_actions": [
{
"kind": "set_world_flag",
"key": "world.disable_stock_buying_and_selling",
"value": true
}
]
}
]
}
}
}

View file

@ -1,14 +1,14 @@
{
"format_version": 1,
"save_slice_id": "packed-event-world-parity-save-slice",
"save_slice_id": "packed-event-world-flag-save-slice",
"source": {
"description": "Tracked save-slice document preserving the remaining whole-game descriptor frontier.",
"original_save_filename": "captured-world-parity.gms",
"original_save_sha256": "world-parity-sample-sha256",
"description": "Tracked save-slice document proving the first real world-flag descriptor imports and executes.",
"original_save_filename": "captured-world-flag.gms",
"original_save_sha256": "world-flag-sample-sha256",
"notes": [
"tracked as JSON save-slice document rather than raw .smp",
"keeps the still-unmapped world descriptor family explicit after the first real whole-game condition batch moved to checked-in metadata",
"whole-game world-flag descriptor identity is checked in, but keyed runtime mapping remains parity-only"
"descriptor 110 now lowers through checked-in runtime key metadata",
"whole-game world-flag descriptor sample for Disable Stock Buying and Selling"
]
},
"save_slice": {
@ -35,14 +35,14 @@
"live_record_count": 1,
"live_entry_ids": [49],
"decoded_record_count": 1,
"imported_runtime_record_count": 0,
"imported_runtime_record_count": 1,
"records": [
{
"record_index": 0,
"live_entry_id": 49,
"payload_offset": 32320,
"payload_len": 112,
"decode_status": "parity_only",
"decode_status": "executable",
"payload_family": "real_packed_v1",
"trigger_kind": 6,
"one_shot": false,
@ -84,21 +84,27 @@
"semantic_preview": "Set Disable Stock Buying and Selling to TRUE",
"locomotive_name": null,
"notes": [
"checked-in whole-game descriptor family without a grounded executable key mapping yet"
"checked-in whole-game world-flag descriptor family"
]
}
],
"decoded_conditions": [],
"decoded_actions": [],
"executable_import_ready": false,
"decoded_actions": [
{
"kind": "set_world_flag",
"key": "world.disable_stock_buying_and_selling",
"value": true
}
],
"executable_import_ready": true,
"notes": [
"world-side descriptor remains parity-only"
"checked-in whole-game world-flag grouped-effect import sample"
]
}
]
},
"notes": [
"whole-game parity frontier sample"
"whole-game world-flag effect sample"
]
}
}

View file

@ -1,33 +0,0 @@
{
"format_version": 1,
"fixture_id": "packed-event-world-parity-save-slice-fixture",
"source": {
"kind": "captured-runtime",
"description": "Fixture keeping the current whole-game descriptor and condition frontier explicit."
},
"state_save_slice_path": "packed-event-world-parity-save-slice.json",
"commands": [
{
"kind": "service_trigger_kind",
"trigger_kind": 7
}
],
"expected_summary": {
"packed_event_collection_present": true,
"packed_event_record_count": 1,
"packed_event_decoded_record_count": 1,
"packed_event_imported_runtime_record_count": 0,
"event_runtime_record_count": 0,
"packed_event_blocked_unmapped_world_descriptor_count": 1,
"packed_event_blocked_unmapped_world_condition_count": 0
},
"expected_state_fragment": {
"packed_event_collection": {
"records": [
{
"import_outcome": "blocked_unmapped_world_descriptor"
}
]
}
}
}