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:
@@ -63,6 +63,7 @@ func _run() -> void:
|
||||
_test_uncertain_rollback_quarantines_and_recovers()
|
||||
_test_strict_snapshot_round_trip_and_atomic_rejection()
|
||||
_test_strict_input_and_route_only_boundary()
|
||||
_test_validation_cache_checks_history_and_live_graph()
|
||||
if _failures == 0:
|
||||
print("PASS: %d checks" % _checks)
|
||||
else:
|
||||
@@ -450,6 +451,35 @@ func _test_strict_input_and_route_only_boundary() -> void:
|
||||
_expect(not adapter.configure(source, path, [Vector3i.ZERO]), "configured adapter rejects reconfiguration")
|
||||
|
||||
|
||||
func _test_validation_cache_checks_history_and_live_graph() -> void:
|
||||
var source := SpatialType.new()
|
||||
var path := PathType.new()
|
||||
var adapter := AdapterType.new()
|
||||
var start := Vector3i(0, 0, 0)
|
||||
var middle := Vector3i(1, 0, 0)
|
||||
var goal := Vector3i(2, 0, 0)
|
||||
_expect(adapter.configure(source, path, [start, goal]), "cache fixture configures")
|
||||
_expect(adapter.place_route(&"cache_place", &"cache_route", [middle]).is_success(), "cache fixture places route")
|
||||
_expect(adapter.validate_invariants()[&"ok"] and adapter.validate_invariants()[&"ok"], "fresh and unchanged validations succeed")
|
||||
var exported := adapter.create_snapshot()
|
||||
exported[&"projected_walkable_cells"].clear()
|
||||
exported[&"processed_requests"][0][&"input_cells"].clear()
|
||||
_expect(adapter.validate_invariants()[&"ok"], "snapshot mutation cannot change live state or cached input")
|
||||
var requests: Dictionary = adapter.get("_processed_requests")
|
||||
var fingerprint: String = requests[&"cache_place"][&"fingerprint"]
|
||||
requests[&"cache_place"][&"fingerprint"] = "invalid"
|
||||
_expect(not adapter.validate_invariants()[&"ok"], "warm cache detects history corruption without revision change")
|
||||
requests[&"cache_place"][&"fingerprint"] = fingerprint
|
||||
_expect(adapter.validate_invariants()[&"ok"], "restored history validates")
|
||||
var before := path.create_snapshot()
|
||||
_expect(path.rebuild_graph([start, goal]), "remove live bridge independently")
|
||||
_expect(not adapter.validate_invariants()[&"ok"], "warm cache still detects live graph divergence")
|
||||
_expect(path.rebuild_graph([start, middle, goal]) and path.restore_snapshot(before), "restore live path")
|
||||
_expect(adapter.validate_invariants()[&"ok"], "repaired graph validates")
|
||||
_expect(adapter.remove_route(&"cache_remove", &"cache_route").is_success(), "route removal updates cached history input")
|
||||
_expect(adapter.validate_invariants()[&"ok"], "updated history validates fully")
|
||||
|
||||
|
||||
func _assert_exact_rollback(
|
||||
adapter: RouteSubslotPathAdapter,
|
||||
source: SpatialSubslotService,
|
||||
|
||||
Reference in New Issue
Block a user