Owned native type-description and inherited Automation transport

Run: scratch/runs/20261117-sims-owned-native-typeinfo-factory-dispatch-integration/result.json.

The native SYSTEM lookup now maps IDispatch/ITypeInfo/ITypeLib to the standard PSDispatch/PSTypeInfo/PSTypeLib classes, with genuine registry overrides taking precedence. Public CoGetClassObject creates the x86 IPSFactoryBuffer. Its class-specific factories reject other IIDs, preserve aggregation through the controlling unknown, and keep IRpcProxyBuffer's IUnknown independent. No Sims-specific registry mapping is seeded.

The owned byte channel now transports bounded typed descriptor graphs, counted strings, Automation values, nested type interfaces and reference attachments. ReleaseTypeAttr/ReleaseFuncDesc/ReleaseVarDesc/ReleaseTLibAttr consume exact per-proxy leases, retaining their controlling unknown until release. Original native descriptors and output references are released by the native owner. Reply references transfer to the authenticated caller before completion and retire on cancellation, including completed replies never polled. All outputs validate before synchronous publication; replaced BYREF owners release afterwards because native Release may call back. Native WAT remains the metadata and Invoke implementation.

Inherited IDispatch contracts are integrated into custom typed interfaces obtained from the real native type library. An actual x86 OpenCAB control returns ISetupCABFile; its inherited GetTypeInfo/GetIDsOfNames/Invoke and custom File method roundtrip, including embedded-NUL BSTRs. Two separate x86 instances with independent memories and heap positions repeat the typeinfo/library/derived-interface calls. Executing native ReadFile cancellation, nested calls, disconnect, retirement, unpolled replies, malformed references/graphs/late outputs, descriptor double release and native flags/frame restoration are covered. The focused final proof reports zero owned allocations, objects, descriptors, exports, requests and pending frames.

The released 13,623-byte codec candidate was adopted from exact SHA-256 1fe08c12d80b542ab96f75502b5fe637a24c740ffeed582d1539f706838e699e. The released native-boundary control was retained at SHA-256 401fcbe7f8c5d27c75b684962e9038288280f1222b31da82705b86595038988f; it was not treated as a completed transport. Unsupported/local-only calls and unsupported value kinds fail explicitly before dispatch rather than transfer raw pointers or fabricate success. This change implements the owned local channel, not an interoperable Microsoft NDR wire implementation.

Primary ABI/reference sources: oaidl.idl, standard class declarations, MS-OAUT GetTypeInfo, IPSFactoryBuffer::CreateProxy, and IRpcStubBuffer::IsIIDSupported. Only declarations/contracts were used; no provider implementation was copied.

Actual original-installation outcome and selected whole-image reviews are recorded in the run result. Sims installation/native Quit, FullT-db74d863 and BW2/IS11 require their real outcomes and remain open absent that evidence.

The first fresh original on published a3ed133885 passed OpenCAB output marshalling and reached native ISetupCABFile slots 11 and 7. Slot 7 returned ISetupComponents (91814ec5-b5f0-11d2-80b9-00104b1f6cea), whose native slot 8 has a by-value VARIANT index and an ISetupComponent output. Its VT_VARIANT parameter exposed a separate typed ABI defect. The correction derives the real four-word argument width from native metadata, retains the original x86 frame, reconstructs owned VARIANT values in the native server, and serializes BYREF updates with exact alias identity. Non-BYREF reply resources remain validation temporaries. Native scalar, embedded-NUL BSTR, BYREF, nested component interface, malformed reply and executing ReadFile cancellation controls cover this path, including a separate-memory caller. No copied provider method is used.

The first run's actual installer error remained 0x80004001 at that next boundary. Its shutdown action expired locally before physical ARM/DOWN; the later tool preview appeared teal, but retained bootstrap/exiterror PNG hashes are identical. This preview discrepancy and the local scene-age refusal are explicitly corrected in original/exiterror-review-hash-correction.json. No physical input or native Quit is claimed. Host cancellation produced actual native exit 0 and both EOFs; no endpoint query followed the terminal record. A single additional original is conditional on the distinct VARIANT defect being tested and published.

The single additional original ran on published fa85608f81. It passed the returned collection's VARIANT transport and entered actual native ISetupComponents slot 8 with a four-word BSTR variant and an output pointer. The shipped method ends in ret 0x18, confirming the six-word native ABI including this. It then trapped in the emulator's API fallback. A names-only compilation was stripped and compared byte-for-byte with the retained original module before identifying that trap as handle_fallback, through the ordinary API dispatch functions. Retained engine disassembly independently resolves its call to IAT 0x46c2ac as OLEAUT32 ordinal 12, VariantChangeType. The engine normalizer selects VT_I4 for I4/I2/UI4/UI2 and VT_BSTR otherwise; the observed BSTR index therefore requires a real owned BSTR copy, not a fabricated component result.

The follow-on native implementation provides public named and ordinal-12 lookup and synchronous native conversion for the required fundamental values. It stages results before replacing destination storage, clones counted BSTRs (including embedded NUL), follows bounded borrowed BYREF chains, preserves independent source ownership, and returns explicit HRESULTs for overflow, malformed data and unsupported conversions. Integer/BSTR conversion and bounded native VarI4FromStr reuse retain the exact outer stdcall frame. Unsupported object/array/record or locale-sensitive conversions fail explicitly; they are not advertised as implemented coercions. The compiler-owned string pool grows by 256 bytes for the additional API name. The API contract and ordinal declarations establish the ABI and ordinal; no provider implementation was copied.

The additional original's selected whole image shows 0x80010108 after the native child trap. No physical input or native Quit is claimed. Normal host cancellation did not finish, so the identity-checked owned parent process group was killed; actual exit was -9 with both EOFs, and the independent watchdog was joined. The parent execution-provider exit audit is consequently unavailable, rather than inferred from its children's audits. The terminal remained closed with no further endpoint queries. There is no third original in this worker task: the last native coercion correction is qualified offline only. Full installation, FullT-db74d863 and BW2/IS11 remain open.

The forced parent shutdown also left the Embedding child close receipt incomplete (actualWait/stdoutEOF/stderrEOF false). A later scoped /proc check confirms that all six recorded original parent/child PIDs are absent; this does not substitute for the missing child wait/EOF evidence. That audit limitation remains explicit in the run result.