diff --git a/PlotDirector.NativeCompanion/WindowsValidation/Setup/Qualification-2026-11-06.md b/PlotDirector.NativeCompanion/WindowsValidation/Setup/Qualification-2026-11-06.md new file mode 100644 index 00000000..cac7064c --- /dev/null +++ b/PlotDirector.NativeCompanion/WindowsValidation/Setup/Qualification-2026-11-06.md @@ -0,0 +1,148 @@ +# Version12 unattended Windows qualification — 6 November 2026 + +**Packaged and automated checks passed; not installed or manually accepted.** +The existing version **1.0.0.10** installation and recovery installer are unchanged. + +## Source and deliverables + +- Branch: `codex/word-companion-native-phase1-20261104`; no branch/worktree created. +- Safely fetched/fast-forwarded from `97f5d99` to Atlas's latest pushed + `bda826b2075bdde5f7276b57b93d2ae94bd8562f` before implementation. +- Expected Atlas native baseline `be88c1d068a4c384c5db348238ac78704b6f73e9` is an + ancestor. Native source at fetched HEAD is identical to that baseline. Later + backup/restore application changes were inspected for scope and not modified. +- Exact clean application/installer build SHA: + **`e0e2cda53cd7b474b3f697abf4186e3166a62af1`**. +- Subsequent changes correct/extend read-only verification and record evidence; + application and built installer sources/bytes were not changed or rebuilt. +- `C:\Temp\WindowsHandover` was absent. The complete checked-in README, prompts01/02, + daytime report, overnight handover/verification and manual checklist03 were read + from the fetched `Docs` paths instead. + +Complete installer: + +`C:\Users\Nick\Downloads\PlotDirectorCompanion-1.0.0.12-e0e2cda5\PlotDirectorCompanionSetup.exe` + +Signed MSI is alongside it as `PlotDirectorCompanion.msi`; EXE embeds that exact MSI +and CAB, with **18 files** covering VSTO, the tray application and package inventory. +Developer payload: + +`C:\Users\Nick\Downloads\PlotDirectorWordCompanion\1.0.0.12-e0e2cda5` + +| Artifact | SHA-256 | +|---|---| +| Complete setup EXE | `33B08ED8D0266D1BC97E19738D0EE7187AC15A1809000493DD92C2C5BA9E6142` | +| MSI | `2F101D4AA736134F548FFB592D3FB8D054D67A52B14FDF00535859AE1798DD20` | +| VSTO DLL | `272A24A6615E6CB688F7B635B45A062723630F530E6E8A05E358F8EBBF800B23` | +| VSTO deployment manifest | `C77C6BF586C3782EA625A28CBB199B07C695E2174BFE420A693AD18167A7F5C7` | +| VSTO application manifest | `52E247BAABE3BB7CCB4FDB2C506454C6F05EBE0E994C2688BC5C0D4289E6D2FC` | +| Tray EXE | `E113CB9E45F17837DC02E8D208055CFA9576ABBCD816F13C45C3342A95F164A0` | +| Tray managed DLL | `96336C8A7EEBFC154AEFFB6A941B2D9250FD8B3386900D5597D016807760CA31` | +| package.json | `DDA06409B1A43899E6238687FDC5D788116CB425F6A223C7F800B2B0F84CD6DD` | + +VSTO, tray EXE/DLL and bootstrapper are **1.0.0.12**; MSI is **1.0.12**. Client and +Protocol class libraries retain their declared SDK-default **1.0.0.0** assembly/file +version; exact contents are pinned by signed manifest digests and package inventory. + +## Passed automated + +One serial `Update-WordCompanion.ps1 -NoSync` run built the final clean revision: + +| Build/check | Result | +|---|---| +| `dotnet build PlotLine.slnx -c Release --disable-build-servers -m:1 /p:UseSharedCompilation=false` | PASS; zero warnings/errors | +| Native foundation executable harness | PASS | +| `--native-companion` | PASS | +| `--native-companion-http` | PASS; synthetic identities/provider | +| `--native-workflow` | PASS | +| `--native-tray` | PASS | +| `--native-import` | PASS | +| `--intent-assessment` | PASS | +| Office MSBuild signed VSTO Build/VisualStudioForApplicationsBuild | PASS; no Clean/F5 registration | +| `net10.0-windows / win-x64` agent publish | PASS | +| Unified MSI/CAB and signed bootstrapper build | PASS | +| Read-only MSI/CAB/EXE inspection | PASS, **96 assertions** | +| Exact manifest digests, versions/architecture and context-guard fixtures | PASS, **39 assertions** | + +All builds and seven regression suites ran once. The package was built once and +remained unchanged. Initial read-only verification attempts exposed two harness +assumptions: late-bound COM FieldCount access and expecting SDK class-library +versions to equal the app version. Those verification assumptions were corrected; +only the affected read-only verification was rerun. No application correction or +repeated application build/regression run was necessary. No unresolved automated +failure or missing build prerequisite remains. + +The MSI/CAB checks verify every installed payload hash, original version10 component +GUID compatibility, version bounds, sequences, per-user registry, shortcuts, +embedded MSI/CAB, asInvoker execution level and user-state exclusions. The native +context guard accepts a current-user version10 upgrade and refuses machine context, +another user's SID and a newer release without mutation. No installed tray was +launched to test singleton behaviour; portable regressions use synthetic contracts. + +Both VSTO signatures pass SDK mage validation; publisher is **Nick Beckley**. Office's +development-manifest target had substituted AssemblyName as publisher; the build now +sets the release publisher, recomputes the SHA-256 application-manifest reference and +re-signs with the existing certificate, preserving the product identity. + +## Upgrade/package decisions + +- Qualified version10 ProductCode `{98F46939-764D-407F-BD1F-1D88315D010A}` retained as + the baseline; version12 uses **`{0B1E8E22-FCF5-4D9C-99A1-5D0F4BD3210C}`**. +- UpgradeCode stays **`{641A087B-9779-458C-B290-BCBBAD49319A}`**. Versions below MSI + 1.0.12 are selected for a transactional major upgrade; newer versions are detect- + only and blocked. Same-version12 uses repair/recaching. This is static upgrade + authoring qualification, **not a performed live upgrade/uninstall/rollback**. +- Target remains current-user LocalAppData Programs, with no ALLUSERS property, + limited-privilege summary10, current-user Start-menu/Startup shortcuts, exact Word + `PlotDirector.WordAddIn` registration, `|vstolocal` and LoadBehavior3. +- Native MSI context/SID verification now runs before and after scheduled install. + The existing packaged-context escape and exact-product VSTA backups/uninstaller + remain. There is no new installer mechanism or silent end-to-end claim. +- State, auth data/logs, documents and document associations are not MSI payload or + removal targets. WordAdapter and the registered-DLL hash resolver are unchanged. + +## Environment and preserved installation + +Existing tools: .NET SDK **10.0.403**, Windows Desktop runtime **10.0.14**, MSBuild +**18.11.1.51303**, mage **4.8.3928.0**, VSTO runtime **10.0.60910.0**, installed Word +file version **16.0.20527.20112** (file inspection only, never launched). + +Existing certificate **4F3EE0D52D2C60214FB1F81DF6E479820A16487F** expires 4 December +2026 and has a private key with no UI protection policy. Signing was non-interactive. +EXE/MSI Authenticode reports an **untrusted local developer root**, not public release +trust. No certificate store or trust setting was modified. + +Effective and normal-user probes were unpackaged, matched the signed-in author's +SID/session and Explorer owner, and used native MsiEnumProductsEx/product-info APIs. +Actual SID/profile/ancestry remain in local evidence rather than this Git report. +The installed family is still version **1.0.10**, context **2**, with the same **17 +file hashes**, Word registration and LoadBehavior3 before/after. Version12 has no +installed product. The Windows dark preference was read, never changed. + +The original version10 EXE remains at `C:\Users\Nick\Downloads\PlotDirectorCompanionSetup.exe` +with SHA-256 `9526E3781EB2EF9936132786E1E2242633349933A553E93E7A7D0B038160A7FF`. +Its cached MSI hash remains `350B2E633EA8C32A0192F929F68E66CA0853D8BE29671EBE0BB5F32A6E3E4FBD`. +Copies and the unchanged baseline report are retained under +`C:\Temp\PlotDirectorQualification-1.0.0.12\baseline-1.0.0.10`. + +The pre-existing legacy solution edit was backed up, temporarily normalised for the +clean-revision build, and restored byte-for-byte in finally. It remains the only +uncommitted user change; it was not stashed, discarded or included in our commits. + +## Deferred acceptance and evidence + +No Computer Use, GUI/desktop control, Word/IDE launch, installer execution, tray +activation, application termination, approval dialog, theme change, database action, +backup/restore implementation or server deployment occurred. + +Schedule checklist03: close Word yourself; run the agreed unified EXE in normal +Windows; review developer trust/UAC if requested; then verify native MSI context, +installed hashes, Word ribbon/restart, tray icon/activation/IPC, sign-in/association, +three documents, cancellation/recovery, visual/theme/DPI/accessibility and real +author workflows. Upgrade/uninstall/rollback require their own authorised window. +No actual Word load, visual polish or responsiveness is claimed for version12. + +Local evidence: `C:\Temp\PlotDirectorQualification-1.0.0.12`, plus package.json, +setup-evidence.json and read-only extracted verification data beside the new setup. +The native command output was observed during the gated serial run; the PowerShell +transcript retains orchestration rather than a complete native stdout capture. diff --git a/PlotDirector.NativeCompanion/WindowsValidation/Setup/Test-DeveloperPayload.ps1 b/PlotDirector.NativeCompanion/WindowsValidation/Setup/Test-DeveloperPayload.ps1 new file mode 100644 index 00000000..9ac0c5e1 --- /dev/null +++ b/PlotDirector.NativeCompanion/WindowsValidation/Setup/Test-DeveloperPayload.ps1 @@ -0,0 +1,51 @@ +[CmdletBinding()] +param([Parameter(Mandatory)][string]$PackagePath,[Parameter(Mandatory)][string]$ReportPath) +$ErrorActionPreference='Stop' +$inventory=Get-Content -Raw (Join-Path $PackagePath 'package.json') | ConvertFrom-Json +$release=Get-Content -Raw (Join-Path $PSScriptRoot 'Release.json') | ConvertFrom-Json +$checks=[Collections.Generic.List[string]]::new() +function Assert-Payload([bool]$condition,[string]$description){if(!$condition){throw "Payload qualification failed: $description"};$checks.Add($description)} +Assert-Payload ($inventory.version -eq $release.version -and $inventory.publisher -eq 'Nick Beckley') 'Payload version and release publisher match' +foreach($name in @('PlotDirector.WordAddIn.vsto','PlotDirector.WordAddIn.dll.manifest')){ + [xml]$xml=Get-Content -Raw (Join-Path $PackagePath $name) + $identity=$xml.SelectSingleNode('/*/*[local-name()="assemblyIdentity"]') + Assert-Payload ($identity.version -eq $release.version -and $identity.processorArchitecture -eq 'msil') "$name identity is version12 AnyCPU" + foreach($node in $xml.SelectNodes('//*[local-name()="X509Certificate"]')){ + $certificate=[Security.Cryptography.X509Certificates.X509Certificate2]::new([Convert]::FromBase64String($node.InnerText)) + try{Assert-Payload ($certificate.Thumbprint -eq $inventory.certificateThumbprint) "$name embeds the existing developer certificate"}finally{$certificate.Dispose()} + } + foreach($dependency in $xml.SelectNodes('//*[local-name()="dependentAssembly" and @dependencyType="install" and @codebase] | //*[local-name()="file" and @name]')){ + $relative=if($dependency.HasAttribute('codebase')){$dependency.GetAttribute('codebase')}else{$dependency.GetAttribute('name')} + $path=Join-Path $PackagePath ([uri]::UnescapeDataString($relative)) + Assert-Payload ((Test-Path $path -PathType Leaf) -and (Get-Item $path).Length -eq [long]$dependency.GetAttribute('size')) "$name reference resolves with exact size: $relative" + $algorithm=$dependency.SelectSingleNode('.//*[local-name()="DigestMethod"]').GetAttribute('Algorithm') + $expected=$dependency.SelectSingleNode('.//*[local-name()="DigestValue"]').InnerText + Assert-Payload ($algorithm -eq 'http://www.w3.org/2000/09/xmldsig#sha256' -and [Convert]::ToBase64String([Security.Cryptography.SHA256]::HashData([IO.File]::ReadAllBytes($path))) -eq $expected) "$name SHA256 reference matches: $relative" + } +} +[xml]$deployment=Get-Content -Raw (Join-Path $PackagePath 'PlotDirector.WordAddIn.vsto') +Assert-Payload ($deployment.SelectSingleNode('/*/*[local-name()="description"]').GetAttribute('publisher','urn:schemas-microsoft-com:asm.v2') -eq 'Nick Beckley') 'Signed VSTO deployment publisher is Nick Beckley' +foreach($relative in @('PlotDirector.WordAddIn.dll','Agent\PlotDirector.Companion.Agent.exe','Agent\PlotDirector.Companion.Agent.dll')){ + Assert-Payload ([Diagnostics.FileVersionInfo]::GetVersionInfo((Join-Path $PackagePath $relative)).FileVersion -eq $release.version) "Application file version is 1.0.0.12: $relative" +} +# These SDK class libraries deliberately retain their default stable assembly +# version. Their exact build bytes are pinned by package.json and the signed +# application manifest, rather than relabelling their ABI to the app version. +foreach($relative in @('PlotDirector.Companion.Client.dll','PlotDirector.Companion.Protocol.dll','Agent\PlotDirector.Companion.Protocol.dll')){ + Assert-Payload ([Diagnostics.FileVersionInfo]::GetVersionInfo((Join-Path $PackagePath $relative)).FileVersion -eq '1.0.0.0') "Supporting library retains its declared stable version: $relative" +} +$agent=[IO.File]::ReadAllBytes((Join-Path $PackagePath 'Agent\PlotDirector.Companion.Agent.exe')) +$pe=[BitConverter]::ToInt32($agent,0x3c) +Assert-Payload ([BitConverter]::ToUInt16($agent,$pe+4) -eq 0x8664) 'Published tray apphost is native Windows x64' +Add-Type -Path (Join-Path $PSScriptRoot 'InstallerInventory.cs') +$sid=[Security.Principal.WindowsIdentity]::GetCurrent().User.Value +$fixture=[CompanionInstalledProduct]::new();$fixture.ProductCode=$release.baselineProductCode;$fixture.Context=2;$fixture.UserSid=$sid;$fixture.Version='1.0.10' +[CompanionInstallerInventory]::RequireCurrentUser(@($fixture),'1.0.12');$checks.Add('Native context guard accepts the existing current-user version10 upgrade') +foreach($test in @('machine','foreign-user','newer-version')){ + $fixture.Context=2;$fixture.UserSid=$sid;$fixture.Version='1.0.10' + switch($test){'machine'{$fixture.Context=4};'foreign-user'{$fixture.UserSid='S-1-5-18'};'newer-version'{$fixture.Version='1.0.13'}} + $refused=$false;try{[CompanionInstallerInventory]::RequireCurrentUser(@($fixture),'1.0.12')}catch{$refused=$true} + Assert-Payload $refused "Native context guard refuses $test without mutation" +} +@{sourceCommit=$inventory.commit;version=$inventory.version;passed=$checks} | ConvertTo-Json -Depth 5 | Set-Content -LiteralPath $ReportPath -Encoding UTF8 +Write-Output "PASS developer payload: $($checks.Count) assertions, including exact manifest digests and non-mutating installer context fixtures." diff --git a/PlotDirector.NativeCompanion/WindowsValidation/Setup/Test-SetupPackage.ps1 b/PlotDirector.NativeCompanion/WindowsValidation/Setup/Test-SetupPackage.ps1 index 981cca2b..9d5c5ddf 100644 --- a/PlotDirector.NativeCompanion/WindowsValidation/Setup/Test-SetupPackage.ps1 +++ b/PlotDirector.NativeCompanion/WindowsValidation/Setup/Test-SetupPackage.ps1 @@ -17,7 +17,7 @@ function Get-Com($object,[string]$name,[object[]]$arguments){$values=@(foreach($ function Read-Table($database,[string]$table){ if($table -notmatch '^[A-Za-z]+$'){throw 'Unexpected table name'} $view=Invoke-Com $database 'OpenView' @('SELECT * FROM `'+$table+'`');$null=Invoke-Com $view 'Execute' @() - $columns=Get-Com $view 'ColumnInfo' @(0);$count=$columns.FieldCount;$rows=@() + $columns=Get-Com $view 'ColumnInfo' @(0);$count=Get-Com $columns 'FieldCount' @();$rows=@() while($null -ne ($record=Invoke-Com $view 'Fetch' @())){ $row=[ordered]@{};for($i=1;$i -le $count;$i++){$row[(Get-Com $columns 'StringData' @($i))]=Get-Com $record 'StringData' @($i)} $rows+=,[pscustomobject]$row