1888 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
121 lines
6.4 KiB
JSON
121 lines
6.4 KiB
JSON
{
|
|
"schema_version": 1,
|
|
"kind": "linux-client-shutdown-lifecycle-review",
|
|
"date": "2026-10-21",
|
|
"status": "implemented-offline-tested-live-validation-pending",
|
|
"observed_scope": {
|
|
"controlled_local_native_world_session": true,
|
|
"original_window_close_requested_by_operator": true,
|
|
"initial_twenty_second_wait_expired": true,
|
|
"later_owned_process_absence_verified_by_operator": true,
|
|
"backend_terminal_phase": "blocked",
|
|
"retained_pipe_closed": true,
|
|
"retained_pipe_error": 14,
|
|
"source_logout_ack_observed": false,
|
|
"child_exit_status_retained": false
|
|
},
|
|
"findings": [
|
|
"The launcher reports blocked as soon as the pipe is closed or has an error while the client process is still present.",
|
|
"Native error14 is a feed/conversion or consumed-length failure, not a normal-close reason. It must remain in diagnostic evidence.",
|
|
"The owner starts the exact Wine client process, binds native PID to child.pid, and can observe child.poll() exit status; the tested baseline discarded that result; the implementation now retains actual waitpid status.",
|
|
"Process absence alone does not establish a successful exit or user intent. The operator-authored close receipt proves only this controlled test."
|
|
],
|
|
"source_anchors": [
|
|
"ops/native_client_lifecycle.py:100",
|
|
"ops/native_client_lifecycle.py:109",
|
|
"ops/native_client_lifecycle.py:120",
|
|
"ops/native_client_lifecycle.py:130",
|
|
"ops/native_client_lifecycle.py:145",
|
|
"ops/native_client_lifecycle.py:165",
|
|
"ops/native_client_lifecycle.py:181",
|
|
"ops/forever_launcher_backend.py:108",
|
|
"ops/debug_client_owner.py:121",
|
|
"ops/engine_main_thread_probe.py:98",
|
|
"native/wine_pipe_host.c:288"
|
|
],
|
|
"proposed_minimal_lifecycle_contract": {
|
|
"owning_wrapper_receipt": {
|
|
"private_atomic": true,
|
|
"mode": "0600",
|
|
"identity_fields": [
|
|
"schema",
|
|
"native_pid",
|
|
"native_starttime",
|
|
"owner_pid",
|
|
"owner_starttime",
|
|
"launch_identity"
|
|
],
|
|
"result_fields": [
|
|
"observed_child_exit_status",
|
|
"exited_successfully",
|
|
"observed_monotonic_ns"
|
|
],
|
|
"identity_binding": "Capture exact current owned child PID/starttime at launch; only record an actual Popen exit result before owner cleanup. No inferred user-close intent.",
|
|
"privacy": "Numeric lifecycle metadata only; no credentials, account, realm address, packet payload or exception text."
|
|
},
|
|
"backend_decision": [
|
|
{
|
|
"condition": "Matching verified child receipt proves actual successful original process exit",
|
|
"outcome": "Client closed; diagnostics saved.",
|
|
"preserve": "Keep earlier pipe error14 and packet trace in diagnostics; do not describe it as a proven normal user exit."
|
|
},
|
|
{
|
|
"condition": "Owned client remains live after bounded shutdown observation",
|
|
"outcome": "Retain blocked/error outcome; a real disconnect is not converted to successful closure."
|
|
},
|
|
{
|
|
"condition": "Matching receipt proves nonzero exit or signal",
|
|
"outcome": "Retain abnormal-exit/error reporting and original diagnostic error."
|
|
},
|
|
{
|
|
"condition": "Only PID absence, missing/invalid/stale receipt or mismatched owner identity",
|
|
"outcome": "Do not infer success; retain unknown/abnormal termination reporting."
|
|
}
|
|
],
|
|
"grace_policy": "A finite bounded observation period may await a real exit receipt after pipe termination. This record does not establish a correct timeout duration. No authentication, probe, world-entry or credential replay."
|
|
},
|
|
"required_focused_tests": [
|
|
"Delayed successful exit retains error14 but reports factual closed outcome",
|
|
"Still-live disconnected client times out with blocked/error",
|
|
"Nonzero and signaled exit remain errors",
|
|
"PID absence without a valid receipt never becomes success",
|
|
"Stale or wrong PID/starttime/owner/launch identity rejected",
|
|
"Symlink, malformed, oversized or nonprivate receipt rejected",
|
|
"Receipt failure remains fail-safe; no authentication/network side effects"
|
|
],
|
|
"acceptance_limits": [
|
|
"Implementation and118 offline tests pass; no live retry performed by this agent.",
|
|
"Successful-exit classification is factual process status; normal user-close intent remains unproven.",
|
|
"No source logout acknowledgment is inferred."
|
|
],
|
|
"private_evidence_sha256": "6b452ca2e94aa407f90148012ceb9757c3dad4bfd529e6c77f7c03d03364a896",
|
|
"implementation": {
|
|
"files": {
|
|
"ops/native_client_lifecycle.py": "db24902624aec812bcd3206eaa1698ecafcdeb501449126031315b99a45e3dbc",
|
|
"ops/debug_client_owner.py": "60c6818210256e57cea78c23a349aca3bdbd7e4f366804f275a8e95988d6e071",
|
|
"ops/engine_main_thread_probe.py": "9affb3728c2f41cd52f56f3183677158593034d5d6109be279ed4acc3381bfe5",
|
|
"ops/forever_launcher_backend.py": "90c983a234d6a5fd888926b06ec2e10c829e3372d79854242770f10f5e5407ce",
|
|
"tests/native_client_lifecycle_test.py": "751b79fa0ef47e259ac1145adc4192134b4625c0239cbba7491c5fd0b7fecff6",
|
|
"tests/launcher_shutdown_lifecycle_test.py": "c9b59ddc6b6de1b7b6dccb1dfd72b61f7774a53cd781b0877f809d13ecb00775",
|
|
"tests/forever_launcher_test.py": "368bdb58c14bde3a0b24b563e00d3621167018b450a83516b60feba42211a9ee"
|
|
},
|
|
"new_receipt_methods": 22,
|
|
"new_backend_methods": 7,
|
|
"focused_and_related_total": 118,
|
|
"test_groups": 8,
|
|
"test_result": "PASS",
|
|
"default_shutdown_grace_seconds": 30,
|
|
"maximum_explicit_grace_seconds": 60,
|
|
"actual_exit_source": "Actual os.waitpid status only; explicit main-thread ptrace terminal witness retained. Popen synthetic zero after ECHILD never accepted.",
|
|
"diagnostic_outcome": "Successful exact-child exit writes bounded private outcome retaining observed pipe error before factual closed message; missing/abnormal/live states remain blocked.",
|
|
"private_storage": "Owned nonsymlink0700 directory; atomic0600 bounded regular files; exact schema/no duplicate JSON fields; fresh launch/owner/native identities.",
|
|
"live_validation": "Pending root-controlled original client close test; no live execution by implementation agent.",
|
|
"independent_review": {
|
|
"path": "runtime/nearby-player-writer-20261021/lifecycle-popup-independent-review.json",
|
|
"sha256": "5a651b8bac8cdd668d03ebcda2e8ee54f92f439fcb4e6ac84d810554fb6d4bbd",
|
|
"verdict": "ACCEPT",
|
|
"independent_combined_tests": 71
|
|
}
|
|
}
|
|
}
|