Files
praxisandClaude Fable 5.2 45ecd73fe0 Evidence records
1888 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:48 +02:00

75 lines
6.5 KiB
JSON

{
"status": "OPT_IN_SOURCE_FOCUSED_PASS_R27_PREPARED_NOT_EXECUTED",
"original_contract": "Existing LoadLibraryW direct remote-thread operation had DWORD exit and exact-module witness but no same-thread error. Existing R26 NULL return is not reinterpreted.",
"implementation": "Opt-in inject(..., diagnostic_last_error=True) wraps the same actual-owner-resolved LoadLibraryW with a same-thread GetLastError only on NULL. Full-width HMODULE, DWORD error and completion marker use a fixed40-byte result header. Production/default loader behavior unchanged.",
"ABI": "44-byte x64 thunk preserves RBX, reserves32 shadow bytes with16-byte call alignment, restores stack, and returns0 after completion. Both target API pointers are independently resolved through their actual containing target modules/RVAs using one snapshot.",
"memory_custody": "Separate owned path/result and code allocations. Code is written RW, only that new code allocation becomesRX and its instruction cache is flushed. Joined/pre-thread failures release allocations; a pending thread retains them. No existing module/page or process mitigation is changed.",
"focused_validation": {
"command": "PYTHONPATH=ops:tests python3 -m unittest windows_native_bootstrap_test.SameThreadLoaderDiagnostic",
"tests": 3,
"result": "PASS",
"log": "runtime/continuation-20261026/windows-loader-same-thread-error-diagnostic/focused-assembly-ABI-result.log",
"coverage": [
"Exact machine code executed against compiled x64 ms_abi functions",
"Success64-bit HMODULE and errors126/193/1114/5 in same OS thread",
"GetLastError skipped on success and directly after null LoadLibrary result",
"RBX canary and actual MSABI callees/shadow-space/alignment",
"Incomplete marker/pending thread withhold error interpretation and preserve custody",
"Default path no thunk/error export; target forwarder rebasing for both exports"
]
},
"source_sha256": {
"ops/windows_native_bootstrap.py": "eccb5445e8cfead81012c39e0ed0ba68b86cdd2d8c9fac7126e0afc24d6677bb",
"tests/windows_native_bootstrap_test.py": "e13846a5cdbb102777364f73fd8b9b77099646f57d24bfdbfdfd1f967b222671"
},
"runtime_plan": "runtime/continuation-20261026/windows-loader-same-thread-error-diagnostic/R27-command.json",
"runtime_status": "R27_EXECUTED_ONCE_INCOMPLETE_NO_AUTHORITATIVE_LOAD_RESULT",
"isolated_helper": "runtime/vm-build-share/windows-same-thread-loader-error-20261026-r27/isolated-helper/windows_native_bootstrap.py",
"production_target_overlay": false,
"critical_limit": "New executable thunk can introduce a distinct failure. Interpret load result only after joined completion marker + full result; preserve1440 and never replay on failure.",
"unwind_limit": "This small private nonleaf thunk has no registered exception-unwind metadata. Normal success/error returns are tested; an exception/fatal before its completion is a changed diagnostic failure, not proof of original DLL failure.",
"primary_sources": [
"https://learn.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-getlasterror",
"https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-loadlibraryw",
"https://learn.microsoft.com/en-us/cpp/build/x64-calling-convention?view=msvc-170",
"https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualprotectex",
"https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-flushinstructioncache"
],
"R27_actual_owner_result": {
"path": "runtime/vm-build-share/windows-same-thread-loader-error-20261026-r27/R27-one-same-thread-loader-error-result.json",
"status": "R27_INCOMPLETE_DIAGNOSTIC_PRESERVED_NO_RETRY",
"thread_id": 1628,
"thread_joined": true,
"exit_dword": 0,
"completion_marker": 0,
"full_module_and_last_error_authority": false,
"allocations_released": true,
"process_handle_closed": true,
"raw_untrusted_module_error_fields_in_original_receipt": "not retained; values unobserved and cannot now be recovered from the freed allocation"
},
"source_vs_actual_dispatch_audit": {
"static_entry_and_layout_bug_found": false,
"qualified_findings": [
"CreateRemoteThread start is the new code allocation and its parameter is the separate data allocation",
"Fixed little-endian QQQQII header is40bytes; result module+24/error+32/completion+36",
"Success conditional branch lands on the unconditional completion store; normal prologue/epilogue satisfy tested MS x64 call ABI",
"R27 reached the completion refusal after validating the first24 header bytes; result does not prove that the thread entered the written code"
],
"fixture_applicability": "Exact thunk bytes were exercised through a direct compiled ms_abi call with real memory/protection and return paths. The fixture does not exercise Windows remote-thread initialization, TLS/DLL callbacks, native hooks, or read back the actual Windows code allocation.",
"unresolved": "Actual code bytes and thread entry/control flow were not captured by R27. Joined exit0 with marker0 alone cannot distinguish startup interception, early thread exit/exception, call behavior or another dispatch issue. No attribution to the original DLL load is admitted."
},
"incomplete_result_preservation_followup": {
"status": "PASS_ONE_CHANGED_INCOMPLETE_RESULT_CASE",
"command": "PYTHONPATH=ops:tests python3 -m unittest windows_native_bootstrap_test.SameThreadLoaderDiagnostic.test_incomplete_result_preserves_untrusted_fields_without_result_authority",
"log": "runtime/continuation-20261026/windows-loader-same-thread-error-diagnostic/focused-incomplete-candidate-preservation.log",
"behavior": "Always retain parsed header/pointers/HMODULE/error/marker under untrusted_result_candidates before any header/completion refusal. Candidate values never set remote_last_error_observed/full_width_module_handle_observed or trusted result fields.",
"coverage": "Incomplete null+193 and incomplete full64-bit module candidates retained; joined flag true, completion/authority false, cleanup preserved.",
"previous_3_ABI_cases": "Authoritative unchanged; not rerun",
"source_sha256": {
"ops/windows_native_bootstrap.py": "3f6e56f4aa97506d85e4c3ccb370674376596565152a7c4e5ee19714c3a935f0",
"tests/windows_native_bootstrap_test.py": "a98780eeb23c9013a3997d1dd3258e13a7f8a2562062fb25a35e1c814d4c4ce5"
},
"existing_R27_staged_helper": "Preserved unchanged. No retrospective result recovery or VM replay."
}
}