6.8 KiB
Companion 1.0.0.14 Windows qualification, 7 November 2026
The signed installer passed offline package checks and the corrected standalone Windows DPAPI qualification. The author subsequently confirmed persistent authorisation and automatic reconnection on the installed 1.0.0.14 Companion after exiting and restarting it.
| Item | Value |
|---|---|
| Application source | 9e313f1abe |
| Installer source | 64c55e2a1a |
| Signed installer | C:\Users\Nick\Downloads\PlotDirectorCompanion-1.0.0.14-64c55e2a\PlotDirectorCompanionSetup.exe |
| EXE SHA-256 | 24E8BD0521DA4B318EF674835C59DA1CF3FEBF7E8701CC980BBE3D705405BBD9 |
| Embedded MSI SHA-256 | EEC37EDA85FCA31D236DA584C6B044BDE827B1A94D671D529C4B5B1B33ED4321 |
The existing branch fast-forwarded from 21f9eac to 9e313f1. The native/VSTO payload was built once from that revision. Release metadata selects application 1.0.0.14 and MSI 1.0.14 with a new ProductCode and the existing UpgradeCode. The package retains the prior replacement-access checks and exact payload validation. EXE and MSI use the existing local developer signer. Public certificate trust was not added.
| Check | Result |
|---|---|
| Release solution and VSTO build | Passed with zero warnings and errors |
| Windows tray publish and VSTO manifest signing | Passed |
| Native foundation | 237 checks passed on Windows |
| Native companion, HTTP, workflow, tray, import and Intent suites | All six passed |
| Trusted installation security regression | Passed |
| Payload, installer and upgrade assertions | 41, 97 and 33 passed |
The native and security suites exercised simulated startup and restart, access expiry, rotation retry, sign-out and revocation, scope isolation, association permission loss and zero automatic prose requests. Source review confirmed the old pause marker suppresses launch only for Word processes already running when the marker was written. Windows logon startup and the real Word/PWA path still require manual acceptance.
A temporary fixture referencing the packaged Windows agent assembly exercised its actual CurrentUser DPAPI store with synthetic data. The PowerShell-hosted fixture saved and restored a credential and preference in separate processes, found no plaintext credential in the envelope and rejected altered server and account scope. A standalone .NET 10 fixture failed to protect data with Windows error 127, "The specified procedure could not be found." It reproduced with an STA Windows Desktop fixture referencing the packaged Windows agent. The separate managed ProtectedData control also failed in the standalone console host and passed in PowerShell. The host-dependent cause remains undetermined. The passing hosted fixture does not establish that the tray can persist approval. No fallback or product code change was made.
Read-only snapshots confirmed the installed MSI remains 1.0.13, with identical installed payload hashes and Word registration. No live installation, Word or tray launch, configuration change, or deployment was performed. Private snapshots and fixture logs remain in C:\Temp\PlotDirectorQualification-1.0.0.14.
For live acceptance, the upgrade is expected to require one initial browser approval. The key gate is confirming that approval can be saved and a subsequent ordinary restart reconnects without opening the browser. The remaining scenarios are in the persistent-authorisation handover.
DPAPI follow-up
The original failure was a qualification fixture naming collision. Its managed entry assembly was named Dpapi.dll, matching the Windows native DPAPI.dll dependency case-insensitively. The failing call reached crypt32!CryptProtectData and returned FALSE with Win32 error 127 (ERROR_PROC_NOT_FOUND). The exception chain was CryptographicException ("Windows could not read or write this user's protected Companion approval") wrapping Win32Exception (127), with this stack:
WindowsUserProtection.Transform (CompanionStateStore.cs:39)
WindowsUserProtection.Protect (CompanionStateStore.cs:33)
ProtectedCompanionStateStore.Save (CompanionStateStore.cs:50)
Program.Main (standalone fixture, write operation)
Both hosts were x64 on .NET 10.0.14. PowerShell 7.6.9 used its bundled CoreCLR, and its successful control invoked CurrentUser ProtectedData before loading the fixture, bringing in System32 DPAPI.dll first. The original standalone STA fixture used shared CoreCLR and Windows Desktop 10.0.14 and loaded its managed Dpapi.dll before the first DPAPI call. Both loaded System32 crypt32.dll. Module inspection found the managed fixture but no System32 DPAPI.dll in the failing process. The native probe also failed with a null description, absent entropy and either flags 0 or 1, and managed ProtectedData returned the same error in that process.
The correction was to name the temporary fixture assembly PlotDirector.StorageQualification and build into a clean output directory. The renamed host loaded System32 DPAPI.dll and passed. Explicitly loading the old managed Dpapi.dll into that same renamed host before its first DPAPI call restored error 127. Leaving that assembly unloaded in a fresh process restored success. The product payload contains no Dpapi.dll and the fixture's Agent DLL SHA-256 matches the packaged DLL. The product DPAPI implementation and signed artifacts required no changes.
Two standalone STA Windows Desktop 10.0.14 processes, PIDs 27056 and 5588, used the packaged production store on a temporary file. The first saved a synthetic installation credential, installation ID, server, account, refresh expiry and a preference without writing the credential in plaintext, then exited. The second restored and verified all those fields, rejected tampering with either server or account scope, and removed the synthetic fixture data. Neither process hosted PowerShell or used a DPAPI warmup call.
The native suite passed again (237 checks), including simulated renewal, process recovery, permission checking, isolation and revocation. The trusted installation security and loopback native HTTP regressions also passed. These checks used synthetic data and did not start the tray, Word or a live approval flow. Read-only inventory during this follow-up found MSI1.0.14 already registered, whereas the original pass observed MSI1.0.13. No installation or settings mutation was performed during the follow-up, and the changed inventory is not evidence of a successful live acceptance test.
The original signed installer and SHA-256 above identify the qualified package.
Manual Windows acceptance
The author manually tested installed Companion 1.0.0.14 and confirmed that authorisation persisted and the application reconnected automatically after exit and restart. This completes Windows qualification for persistent authorisation and reconnection. The reported test covers that restart scenario.