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:
@@ -107,6 +107,9 @@ var _processed_requests: Dictionary = {}
|
||||
var _quarantined := false
|
||||
var _quarantine_reason: StringName = &""
|
||||
var _transaction_active := false
|
||||
# Private serialized copy: equality is checked against a fresh snapshot on every
|
||||
# validation. Live dependency checks remain unconditional, even on a cache hit.
|
||||
var _validated_owned_snapshot: Dictionary = {}
|
||||
|
||||
|
||||
## The explicit three-way binding is intentional: exact rollback must restore
|
||||
@@ -503,14 +506,24 @@ func restore_snapshot(snapshot: Dictionary) -> bool:
|
||||
return true
|
||||
|
||||
|
||||
func is_bound_to(adapter: RouteSubslotPathAdapter, source: SpatialSubslotService, path: PathService) -> bool:
|
||||
return _configured and _adapter == adapter and _source == source and _path == path
|
||||
|
||||
|
||||
func validate_invariants() -> Dictionary:
|
||||
var errors: Array[String] = []
|
||||
if not _configured or _adapter == null or _source == null or _path == null:
|
||||
errors.append("Facility infrastructure projector is not configured.")
|
||||
return {&"ok": false, &"errors": errors}
|
||||
var parsed := _parse_snapshot(create_snapshot())
|
||||
if not bool(parsed[&"ok"]):
|
||||
errors.append(String(parsed[&"message"]))
|
||||
var owned_snapshot := create_snapshot()
|
||||
if owned_snapshot != _validated_owned_snapshot:
|
||||
var parsed := _parse_snapshot(owned_snapshot)
|
||||
if not bool(parsed[&"ok"]):
|
||||
errors.append(String(parsed[&"message"]))
|
||||
else:
|
||||
# create_snapshot allocates every container; no caller or live state
|
||||
# retains a mutable reference to this successful validation input.
|
||||
_validated_owned_snapshot = owned_snapshot
|
||||
if not _quarantined and not _dependencies_match_current_state():
|
||||
errors.append("Facility infrastructure live crosslinks are stale.")
|
||||
return {&"ok": errors.is_empty(), &"errors": errors}
|
||||
@@ -991,9 +1004,11 @@ func _dependencies_match_projection_map(projections: Dictionary) -> bool:
|
||||
if _adapter == null or _source == null or _path == null:
|
||||
return false
|
||||
if not _adapter.is_bound_to(_source, _path) \
|
||||
or _adapter.is_quarantined() \
|
||||
or _adapter.is_projection_stale():
|
||||
or _adapter.is_quarantined():
|
||||
return false
|
||||
# For this exact, non-quarantined binding, adapter validation also checks
|
||||
# projection staleness. Keep the independent source invariant audit, but
|
||||
# avoid repeating the same live projection scan through is_projection_stale().
|
||||
if not bool(_source.validate_invariants().get(&"ok", false)) \
|
||||
or not bool(_adapter.validate_invariants().get(&"ok", false)):
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user