Record original-alignment implementation and traceability checkpoint
Capture current source, content data, tests, asset licenses, and original-specification traceability. Original implementation remains incomplete. The accepted matching UI generation passed 154 suites and 12,253 checks, with eight rendered staff-contract screens reviewed. Latest native Windows and full-original acceptance remain outstanding.
This commit is contained in:
@@ -173,6 +173,20 @@ func _run_service_sale_with_round_trip() -> void:
|
||||
_expect(active[0].price_snapshot == 25 and active[0].duration_minutes == 3, "service freezes quoted price and duration")
|
||||
|
||||
var mid_snapshot: Dictionary = _runtime.create_snapshot()
|
||||
var before_elapsed: int = active[0].elapsed_minutes
|
||||
var before_wallet: int = _runtime.economy_service.get_balance(&"GUEST_WALLET:guest_1")
|
||||
_state.set_resource(&"mana", 0)
|
||||
_clock.advance_minutes(5)
|
||||
var paused_service: ServiceInstance = _runtime.facility_service.get_service(service_id)
|
||||
_expect(paused_service.state == ServiceInstance.State.PAUSED and paused_service.elapsed_minutes == before_elapsed, "reserve depletion pauses active service without advancing work")
|
||||
_expect(_runtime.economy_service.get_balance(&"GUEST_WALLET:guest_1") == before_wallet, "paused service does not charge guest")
|
||||
_expect(_runtime.inventory_service.total_quantity(_facility_inventory_id, &"ingredient/basic_meal") == 2, "paused service retains reserved ingredients")
|
||||
_expect(_runtime.restore_snapshot(_runtime.create_snapshot()), "paused service and empty reserve restore together")
|
||||
_state.set_resource(&"mana", 100)
|
||||
# A just-built consumer may still await its first network allocation.
|
||||
_clock.advance_minutes(10 - (_clock.absolute_minute % 10) + 3)
|
||||
_expect(_runtime.facility_service.get_service(service_id).state == ServiceInstance.State.COMPLETED and _runtime.economy_service.get_balance(&"GUEST_WALLET:guest_1") == before_wallet - 25, "reserve recovery completes and charges once")
|
||||
_expect(_runtime.restore_snapshot(mid_snapshot), "rewind service outage drill before ordinary replay")
|
||||
var mid_digest := SimulationDigest.compute(mid_snapshot)
|
||||
_clock.advance_minutes(3)
|
||||
var completed: ServiceInstance = _runtime.facility_service.get_service(service_id)
|
||||
|
||||
Reference in New Issue
Block a user