P14-03: Prove new-PID pairs inside the roster; declare UIDs and policy pins

- tests/s2/test_new_pid_pairs.gd runs each writer/reader save-restart pair as
  two real child processes and keeps their complete output in the private
  profile, since the script-level roster runs suites without arguments.
- Commit the Godot UIDs of scripts added this session (and the pre-existing
  peeping-room scripts that lacked tracked UIDs) plus the legacy fixture's
  thumbnail import, so a private import generates nothing undeclared.
- Repin suite-policy source SHAs for test_main_dashboard (A06 HUD, palette 25)
  and test_runtime_transport (sustained outage helper); flags unchanged.
- Register the pair suite's completion marker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Takeshi
2026-10-20 16:54:45 +09:00
co-authored by Claude Opus 5.5
parent a8edd3c3a1
commit 40364345ab
24 changed files with 147 additions and 2 deletions
+1
View File
@@ -245,6 +245,7 @@ test-transport:
$(GODOT) --headless --path . --script res://tests/transport/test_route_wait_choice.gd
$(GODOT) --headless --path . --script res://tests/transport/test_route_wait_choice.gd -- writer
$(GODOT) --headless --path . --script res://tests/transport/test_route_wait_choice.gd -- reader
$(GODOT) --headless --path . --script res://tests/s2/test_new_pid_pairs.gd
capture-transport:
THE_TREE_TRANSPORT_CAPTURE=1 $(GODOT) --path . --script res://tests/transport/test_runtime_transport.gd
@@ -3908,6 +3908,23 @@
"text": "\tprint(\"%s: %d checks\" % [\"PASS\" if _failures == 0 else \"FAIL\", _checks])"
}
]
},
{
"test": "tests/s2/test_new_pid_pairs.gd",
"template": "PASS: <checks> checks",
"required": true,
"fixed_check_count_used": false,
"source_sha256_at_schema_audit": "9742f9ac253067e6ae69a53faed054d71925f316d038ff7c5e480c3a9be91b04",
"authority": {
"path": "docs/plans/original-completion-2026-10-02/execution/p14-03-route-wait/EVIDENCE_MATRIX.md",
"scope": "Claude session 2026-10-20: new-PID pair suite; exact label/schema only"
},
"source_marker_lines": [
{
"line": 45,
"text": "\tprint(\"%s: %d checks\" % [\"PASS\" if _failures == 0 else \"FAIL\", _checks])"
}
]
}
],
"unknown_roster_suite_policy": "refuse, explicitly review its source/schema before accepting",
@@ -0,0 +1 @@
uid://fstsv5yarw5v
@@ -0,0 +1 @@
uid://clvwcbbt34gwr
@@ -0,0 +1 @@
uid://bi36fvp1jiiiv
+1
View File
@@ -0,0 +1 @@
uid://5mjcum1r1poa
@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cnde4l2e1lib7"
path="res://.godot/imported/thumbnail.png-307ea4ea2aa92de395157267241a407e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://tests/fixtures/p14-03/legacy_rush_v1/thumbnail.png"
dest_files=["res://.godot/imported/thumbnail.png-307ea4ea2aa92de395157267241a407e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
+1
View File
@@ -0,0 +1 @@
uid://3h45paa0oqnn
+1
View File
@@ -0,0 +1 @@
uid://jetoym5gu2ts
@@ -0,0 +1 @@
uid://bdhjn1ujekdi3
@@ -0,0 +1 @@
uid://c340fnfuwchcs
+68
View File
@@ -0,0 +1,68 @@
extends SceneTree
## Runs every writer/reader save-restart pair as two real child Godot processes
## (distinct PIDs) from this one suite, so a script-level regression roster also
## proves the new-PID halves. Each child's complete stdout+stderr and exit code
## are kept under user://pair-evidence/ (inside the run's private profile);
## summaries printed here avoid completion-marker wording on purpose.
const PAIRS: Array[String] = [
"res://tests/s2/test_mana_reserve_new_pid.gd",
"res://tests/s2/test_mana_recovery_new_pid.gd",
"res://tests/transport/test_runtime_warp.gd",
"res://tests/mvp/test_whole_tower_outage.gd",
"res://tests/transport/test_route_wait_choice.gd",
]
const EVIDENCE_DIR := "user://pair-evidence"
var _checks := 0
var _failures := 0
func _initialize() -> void:
call_deferred("_run")
func _run() -> void:
var engine := OS.get_executable_path()
var project := ProjectSettings.globalize_path("res://")
DirAccess.make_dir_recursive_absolute(ProjectSettings.globalize_path(EVIDENCE_DIR))
print("New-PID pairs: parent pid %d engine %s" % [OS.get_process_id(), engine])
for script: String in PAIRS:
var pids := {}
for mode: String in ["writer", "reader"]:
var output: Array = []
var code := OS.execute(engine, ["--headless", "--path", project, "--script", script, "--", mode], output, true)
var text := "".join(output)
var name := "%s.%s" % [script.get_file().get_basename(), mode]
var file := FileAccess.open(EVIDENCE_DIR.path_join(name + ".log"), FileAccess.WRITE)
file.store_string(text)
file.close()
var pid := _child_pid(text)
pids[mode] = pid
var passed := code == 0 and _child_marker_passed(text)
print(" pair %s %s exit=%d child_pid=%d bytes=%d sha256=%s" % [script.get_file(), mode, code, pid, text.to_utf8_buffer().size(), text.sha256_text()])
_expect(passed, "%s %s child completes with zero failures" % [script.get_file(), mode])
_expect(int(pids["writer"]) > 0 and int(pids["reader"]) > 0 and pids["writer"] != pids["reader"] and pids["reader"] != OS.get_process_id(), "%s writer and reader ran in distinct processes" % script.get_file())
print("%s: %d checks" % ["PASS" if _failures == 0 else "FAIL", _checks])
quit(_failures)
## Each pair script prints its own pid on its first line ("... pid N" or "(pid N)").
static func _child_pid(text: String) -> int:
var regex := RegEx.new()
regex.compile("pid (\\d+)")
var found := regex.search(text)
return int(found.get_string(1)) if found != null else -1
static func _child_marker_passed(text: String) -> bool:
var regex := RegEx.new()
regex.compile("(?m)^PASS: (\\d+) checks$")
var found := regex.search(text)
return found != null and int(found.get_string(1)) > 0 and not text.contains("FAIL:") and not text.contains("SCRIPT ERROR")
func _expect(condition: bool, label: String) -> void:
_checks += 1
if not condition:
_failures += 1
push_error(" ✗ %s" % label)
+1
View File
@@ -0,0 +1 @@
uid://bykhpoojytbrd
@@ -0,0 +1 @@
uid://cewrt8dc6d4hi
@@ -0,0 +1 @@
uid://b0c3ouuq42ycg
@@ -0,0 +1 @@
uid://dftsky13pe0uj
@@ -0,0 +1 @@
uid://4r40f1kpjmvj
@@ -0,0 +1 @@
uid://cnnon5woufurp
@@ -0,0 +1 @@
uid://4n5welqfhdqg
@@ -0,0 +1 @@
uid://8uytmpjup8q4
@@ -0,0 +1 @@
uid://btfqo5k3jf8p2
+1
View File
@@ -0,0 +1 @@
uid://73ewrfw84byc
+2 -2
View File
@@ -191,7 +191,7 @@
"new_audio_QA": false
},
"tests/ui/test_main_dashboard.gd": {
"source_sha256": "fa9ee0c4b9aee00a2be6d05a9dab7c0c3e8b0beb2b944257de1dc308bfc3cc20",
"source_sha256": "305227c1077a92ef3ee522b561a68b0685767740b46b51ff789c800931647ef1",
"ordinary_cleanup_prepared": false,
"ordinary_control_labels": [],
"old_bounded_teardown": true,
@@ -379,7 +379,7 @@
"source_only_ownership_review": true
},
"tests/transport/test_runtime_transport.gd": {
"source_sha256": "ec6f8fa8e8f2a76a6f6214b4ee84861aba1bb13845a342c5126905b01f428a15",
"source_sha256": "78a5563ff2421ae65a0988cf0d26669f54bcc0f44250b00e5334cadf1228da94",
"ordinary_cleanup_prepared": true,
"ordinary_control_labels": [
"single"