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:
Takeshi
2026-09-30 23:52:24 +09:00
parent 6077e02ebe
commit 5dde0c5ec2
490 changed files with 54051 additions and 809 deletions
+45 -1
View File
@@ -93,12 +93,56 @@ func _verify_mid_ride() -> bool:
_expect(bool(_runtime.save_to_path(save_path).get(&"ok", false)), "boarded save writes isolated disk slot")
_expect(bool(_runtime.load_from_path(save_path).get(&"ok", false)), "boarded disk slot reloads")
var snapshot: Dictionary = _runtime.create_snapshot()
_expect(snapshot[&"systems"][&"runtime"][&"runtime_schema_version"] == 9, "runtime schema9 records elevator state and explicit vertical routing")
_expect(snapshot[&"systems"][&"runtime"][&"runtime_schema_version"] == 13, "runtime schema13 records elevator state and explicit vertical routing")
_expect(_runtime.restore_snapshot(snapshot), "mid-ride Runtime snapshot restores actor/cabin/Path ownership")
var shaft: Dictionary = _runtime.elevators.get_report()[&"shafts"][0]
var busy := _cmd(&"demolish_facility", {&"instance_id": shaft[&"module_ids"][1]})
_expect(not busy.is_success() and busy.details.get(&"reason") == &"ELEVATOR_BUSY", "occupied shaft demolition rejected before spending or topology changes")
_expect(_runtime.restore_snapshot(snapshot), "snapshot resets rejected command metadata")
# Diagnose total reserve depletion while a natural passenger is aboard.
var riders: Array[StringName] = []
for trip: Dictionary in _runtime.elevators.get_report()[&"trips"]:
if trip[&"state"] == PathService.ELEVATOR_REQUEST_BOARDED:
riders.append(trip[&"actor_id"])
_expect(not riders.is_empty(), "depletion drill starts with actual boarded passenger")
_state.set_resource(&"mana", 0)
_clock.advance_minutes(1)
var outage: Dictionary = _runtime.elevators.get_report()
_expect(not outage[&"shafts"][0][&"powered"] and outage[&"trips"].is_empty(), "reserve outage stops cabin and releases trip ownership")
for actor_id: StringName in riders:
_expect(_runtime.path_service.get_active_elevator_request(actor_id).is_empty(), "outage releases Path passenger request")
var safe_arrivals := 0
for event: SimulationDomainEvent in _runtime.domain_events.recent_events():
if event.event_type == &"ELEVATOR_ARRIVED" and event.absolute_minute == _clock.absolute_minute and event.payload.get(&"actor_id", &"") == actor_id and bool(event.payload.get(&"emergency", false)):
if event.payload.get(&"cell") in shaft[&"stops"]:
safe_arrivals += 1
_expect(safe_arrivals == 1, "boarded passenger alights exactly once at a valid shaft stop")
var outage_snapshot: Dictionary = _runtime.create_snapshot()
_expect(_runtime.restore_snapshot(outage_snapshot), "emergency alighting and empty reserve survive Runtime save")
_state.set_resource(&"mana", 100)
_clock.advance_minutes(1)
_expect(_runtime.elevators.get_report()[&"shafts"][0][&"powered"], "cabin supply returns when reserve recovers")
_expect(_runtime.restore_snapshot(snapshot), "rewind depletion drill to original passenger state")
for cell: Vector3i in shaft[&"stops"]:
_runtime.path_service.configure_cell_traffic(cell, 4, 0, true)
_state.set_resource(&"mana", 0)
_clock.advance_minutes(1)
for actor_id: StringName in riders:
_expect(_runtime.elevators.get_actor_trip(actor_id).get(&"state") == PathService.ELEVATOR_REQUEST_BOARDED, "no safe landing retains boarded passenger instead of teleporting")
var held_shaft: Dictionary = _runtime.elevators.get_report()[&"shafts"][0]
_clock.advance_minutes(20)
var held_after: Dictionary = _runtime.elevators.get_report()[&"shafts"][0]
_expect(held_after[&"remaining_minutes"] == held_shaft[&"remaining_minutes"], "powerless held cabin does not advance physical journey")
var held_snapshot: Dictionary = _runtime.create_snapshot()
_expect(_runtime.restore_snapshot(held_snapshot) and _runtime.create_snapshot() == held_snapshot, "no-landing outage preserves full Runtime save and passenger ownership")
for cell: Vector3i in shaft[&"stops"]:
_runtime.path_service.configure_cell_traffic(cell)
_state.set_resource(&"mana", 100)
_clock.advance_minutes(45)
for actor_id: StringName in riders:
_expect(_runtime.elevators.get_actor_trip(actor_id).is_empty() and _runtime.path_service.get_active_elevator_request(actor_id).is_empty(), "landing repair and power restoration release held trip ownership")
_expect(_runtime.restore_snapshot(_runtime.create_snapshot()), "recovered held cabin remains saveable")
_expect(_runtime.restore_snapshot(snapshot), "restore original ride after no-landing drill")
_clock.advance_minutes(45)
var expected: Dictionary = _runtime.create_snapshot()
_expect(_runtime.restore_snapshot(snapshot), "rewind boarded save for deterministic replay")