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
@@ -13,6 +13,8 @@ func _initialize() -> void:
func _run() -> void:
print("Simulation digest: v1 byte compatibility and growing-history benchmark")
_test_text_chunk_boundaries()
_test_scalar_cache_boundaries()
_test_value_types()
_test_dictionary_layouts()
_test_mutable_values()
@@ -220,3 +222,33 @@ func _expect(condition: bool, label: String) -> void:
else:
_failures += 1
push_error(" FAIL: %s" % label)
func _test_scalar_cache_boundaries() -> void:
var values: Array = []
for i in 700:
values.append(i-350)
values.append("entry_%d" % i)
values.append(StringName("entry_%d" % i))
values.append("x".repeat(129))
values.append(StringName("x".repeat(129)))
values.append("utf8_" + String.chr(0x1f333))
values.append(values.duplicate())
_expect_bytes(values, "bounded scalar cache saturation preserves exact canonical bytes")
_expect_bytes([1,"1",&"1",1,"1",&"1"], "scalar cache preserves int string and name type tags")
var previous := Digest.compute(values)
values[0] = -999999
_expect_bytes(values, "new digest reads changed input after prior cache lifetime")
_expect(Digest.compute(values) != previous, "per-call scalar caches never retain previous input")
func _test_text_chunk_boundaries() -> void:
for count: int in [63,64,65,129]:
var strings: Array[String] = []
var names: Array[StringName] = []
for index in count:
var text := "field_%d:" % index + String.chr(0x1f333) + String.chr(0) + "end"
strings.append(text)
names.append(StringName(text))
_expect_bytes(strings, "UTF8 and NUL string chunk boundary %d" % count)
_expect_bytes(names, "StringName chunk boundary %d" % count)