Deliver controlled Windows implementation testing and acceptance handover
This commit is contained in:
parent
be88c1d068
commit
87c94f124a
@ -0,0 +1,86 @@
|
||||
# Companion, Context and Intent — Atlas daytime handover
|
||||
|
||||
## Delivered
|
||||
|
||||
The shared branch was clean and synchronised at `a2e891c917c5ac29613e9d99a660a0cf071590b6` before changes. No alternate branch was created.
|
||||
|
||||
**Companion:** existing Windows Forms framework retained. Version **1.0.0.12** adds a branded header, manuscript/book card, next-step guidance, chapter rows with analysis/retry states, shorter tray menu, restrained light/dark surfaces, scaling-aware row layout and full-title tooltips. Settings/support details are secondary. Windows preference changes are event driven, with an accessible light fallback; no new theme setting or polling was added. Progress/status labels avoid repeated assignments, and UI collections are isolated from background mutations. Analysis completion is explicitly separate from review/import. Existing singleton, activation, authentication, association and IPC mechanisms remain.
|
||||
|
||||
**Context:** the current scene stays central. Overview now includes saved people/emotional state, thread developments, location/floor-plan details and up to five other dated book scenes within three days. Existing calendar/timeline service supplies dates. People, Relationships, Place and Story tabs retain their underlying services. Floor identity requires a saved scene/occupancy mapping; the first available floor is not presented as the current scene's floor. Missing metadata is explicit. Responsive styles support narrow/portrait windows and PWA themes.
|
||||
|
||||
**Intent:** new Evidence tab supports explicit AI comparison of saved canonical scene prose with saved purpose, outcome, checklist, chapter goal, emotional goal, must-include and reader-takeaway notes. It reuses `IStoryIntelligenceClient`, its existing provider/configuration/model and request limiter; no new credentials/provider service are required. It is an advisory planning comparison, separate from canonical entity extraction/materialisation. No raw Scene Intelligence JSON is parsed in review GETs.
|
||||
|
||||
The assessment validates the returned objective set and exact prose quotations. Unsupported achieved/partial/contradicted claims become “cannot assess”. Results and author keep/dismiss/defer/revisit decisions persist separately. Prose/plan hashes invalidate stale results; unchanged inputs reuse the saved result. Provider errors/cancellation preserve previous evidence and decisions. Requests have a three-minute cancellation bound; detached scene panels refuse late responses. Explicit author objective completion/editing continues through the existing scene editor. Neither AI nor evidence decisions rewrite objectives or manuscript text.
|
||||
|
||||
**Integration:** existing independent scene selection, pinned snapshots, follow/pause/return, book/session isolation and parent-theme inheritance remain. Browser regressions cover stale responses and disconnection. Help explains the actual workflow and native qualification limits.
|
||||
|
||||
## Commits and source
|
||||
|
||||
- `d909960`: managed Companion visual/state improvements, version12.
|
||||
- `b732b21`: Context previews, persisted Intent evidence and tests.
|
||||
- `e34c9a5`: isolated presentation snapshots, response validation and actual evidence Razor coverage.
|
||||
- `be88c1d`: require explicit floor mapping; final application source `be88c1d068a4c384c5db348238ac78704b6f73e9`.
|
||||
- Final source/qualification commits are listed by `git log` on the shared branch; the four Windows handover files pin the final application-source SHA. Documentation-only descendants do not alter application binaries.
|
||||
|
||||
## Qualification
|
||||
|
||||
- Full solution build, including **net10.0-windows** managed agent: zero warnings/errors.
|
||||
- Full application executable harness: **412 PASS** at the integration milestone. Later isolated evidence-format/presentation changes were checked with final builds and focused tests.
|
||||
- Native portable harness: **214 checks passed**, including presentation isolation, fresh/stale/expired health, theme fallback, document/queue/cancellation behaviour. Windows named-pipe ACLs and actual Word/UI behaviour remain unverified on Atlas.
|
||||
- Intent service tests: exact/missing/fabricated evidence, prose/plan invalidation, unchanged-input cache, persistence, provider failure, ownership, cancellation and entitlement.
|
||||
- Actual Context/Intent Razor and real tab scripts: **400/760/1440px**, modern light/dark and warm light/dark, missing metadata and edit links. Actual evidence Razor tests cover saved/stale results and disable decisions for stale evidence.
|
||||
- Browser request tests: no automatic AI upload, explicit submission/load, cancellation, detached-scene isolation and permission feedback. Existing Office.js fragment-race/Writer regressions, native manual/follow/disconnect tests and embedded theme inheritance passed.
|
||||
- Development rollback SQL fixtures: canonical import remains duplicate-safe; Intent persistence, unchanged-input idempotency, author-decision preservation and cross-account denial passed. Application-principal permission check passed.
|
||||
|
||||
Provider replies/identities are synthetic in automated tests. No live AI charge, real manuscript upload or Windows visual success is claimed.
|
||||
|
||||
## Database, configuration and deployment
|
||||
|
||||
Forward-only migration **235_WritingIntentAssessment.sql** adds per-author/per-scene/hash assessment snapshots and a permission-checking stored procedure. Existing story/planning/source data is untouched. Verified COPY_ONLY/CHECKSUM backup:
|
||||
|
||||
`/var/opt/mssql/backups/PlotDirector_Development-writing-desk-20261106T102730.bak`
|
||||
|
||||
The migration was rehearsed with rollback fixtures, backed up, applied to **Development only**, then tested again. No new configuration, credentials or scheduled jobs. Existing Story Intelligence entitlement/provider configuration is required for AI assessment; reading saved results does not make a provider call. Source must exist in `SceneManuscriptSources`; unsaved Word edits and summaries are not used as a substitute.
|
||||
|
||||
Validated web/server work is deployed to Development after the idle import/Story Intelligence gate. Deployment preserves appsettings, environment, uploads, keys and logs; release/archive/hash and HTTP evidence accompany this report. Production unchanged. Application rollback leaves migration235 in place, compatible with prior binaries.
|
||||
|
||||
## Limits requiring clear acceptance
|
||||
|
||||
- Windows desktop appearance, high DPI, focus/accessibility, real-user theme events, agent recovery under Word load and native performance require evening qualification.
|
||||
- PlotDirector app-specific desktop theme synchronisation is deferred; version12 follows Windows light/dark.
|
||||
- Tray chapter completion labels describe the current observation/session. The server remains authoritative for saved reviews/imports; the tray does not infer a persisted import status from an analysis result.
|
||||
- Intent has no automatic background reassessment or manuscript sync. It assesses bounded saved scenes (120,000 characters, at most32 objectives and16,000 plan characters). It supplies advisory evidence, not a numerical fulfilment score. Character/foreshadowing/plot obligations beyond these explicit planning fields remain visible through existing tabs rather than silently becoming new objective records.
|
||||
- Unchanged-result protection uses persisted hashes plus bounded in-process striped locking. Multi-server provider-submission leasing is not introduced; a horizontally scaled rollout needs that qualification.
|
||||
- Objective editing/completion uses the established editor; evidence defer/dismiss is separate and does not assert the objective itself was completed or deferred.
|
||||
- Existing-chapter import reconciliation remains conflict-only. Imported cursor mapping requires the captured live session and unchanged observed revision. Same-length dirty-edit reliability still needs Word qualification.
|
||||
|
||||
## Windows package and execution order
|
||||
|
||||
**Setup sources and `Vsto/WordAdapter.cs` remain unchanged from Windows-qualified `97f5d99`.** VSTO assembly-version metadata advances to12. Atlas did not change the laptop, registry, Office, Visual Studio or installed payload. Setup remains intentionally pinned to version10/source6cdb49c; Windows Codex must deliberately update and qualify that existing unified package, preserving its baseline and upgrade safety.
|
||||
|
||||
Use [WindowsHandover/README.md](WindowsHandover/README.md), then **01 implementation → 02 unattended automated testing → 03 scheduled human acceptance**. The prompts prohibit Computer Use, unexpected installer prompts and treating a private HKCU/AppData view as proof of normal-user installation. No silent end-to-end Setup mode is invented. The updated application is ready for controlled Windows build/qualification, not public installer distribution.
|
||||
|
||||
## Final deployment evidence
|
||||
|
||||
```text
|
||||
PASS Development application-principal check: day-app-permissions.sql
|
||||
PASS Development application-principal check: day-restart-gate.sql
|
||||
active
|
||||
PlotLine.dll publish/deployed SHA256 matches 562ac8a3675531a95bae897c98552cf9e68560f810fc5b3e60c26729c4c691a7
|
||||
PlotDirector.Companion.Protocol.dll publish/deployed SHA256 matches 4c31ab3b04de386bcbb1ccdb1e438793482c6cdab91d002831c60f2975ea63d7
|
||||
Development release /srv/apps/plotdirector-dev/releases/writing-desks-be88c1d-20261106104655
|
||||
Previous application backup /srv/apps/plotdirector-dev/current-before-writing-desks-be88c1d-20261106104655
|
||||
```
|
||||
|
||||
```text
|
||||
200 GET http://127.0.0.1:5050/; final http://127.0.0.1:5050/; 33941 bytes
|
||||
200 GET https://dev.plotdirector.com/; final https://dev.plotdirector.com/; 33941 bytes
|
||||
200 GET https://dev.plotdirector.com/help/word-companion/install; final https://dev.plotdirector.com/help/word-companion/install; 12545 bytes
|
||||
200 GET https://dev.plotdirector.com/js/intent-assessment.js; final https://dev.plotdirector.com/js/intent-assessment.js; 2598 bytes
|
||||
200 GET https://dev.plotdirector.com/Writing/Intent/Assessment?sceneId=22; final https://dev.plotdirector.com/Account/Login?ReturnUrl=%2FWriting%2FIntent%2FAssessment%3FsceneId%3D22; 7415 bytes
|
||||
401 GET https://dev.plotdirector.com/api/native-companion/books
|
||||
```
|
||||
|
||||
Protected Intent access redirected to sign-in; this is authentication-boundary evidence, not a live authorised AI/provider test. No warning/error entries followed the Development restarts. Source archive/application backup remain available above. Full build and final Release publish succeeded. Installer/Word-adapter preservation was checked against97f5d99 with an empty diff.
|
||||
|
||||
Final user actions: start Windows prompt01, then run prompt02 unattended; reserve checklist03 and all installation/trust/real-Word checks for the scheduled evening window.
|
||||
@ -0,0 +1,66 @@
|
||||
# Ready-to-paste Windows Codex implementation prompt
|
||||
|
||||
Continue the existing PlotDirector Companion on branch **`codex/word-companion-native-phase1-20261104`**. Expected Atlas application handover commit: **`be88c1d068a4c384c5db348238ac78704b6f73e9`**. Native application version: **1.0.0.12**. Documentation-only descendants may follow that application commit; verify ancestry and inspect subsequent source changes before proceeding. Record the exact fetched HEAD and build that clean revision. Confirm `git diff <expected-application-SHA> HEAD -- PlotDirector.NativeCompanion PlotLine PlotLine.Tests` is empty for documentation-only descendants; inspect any nonempty source difference explicitly.
|
||||
|
||||
## Boundaries
|
||||
|
||||
Atlas has implemented the Windows Forms control-centre redesign, Windows light/dark presentation policy, chapter activity labels, Context previews and persisted Intent evidence. Do not redesign that UI, replace WinForms, create another tray process/web server/auth mechanism, or duplicate Atlas application logic. Correct only proven Windows-specific defects. Preserve the minimal VSTO adapter, authenticated/versioned IPC, per-document identities, canonical import pipeline and author data.
|
||||
|
||||
Do not use Computer Use, mouse automation, desktop control or UI-driving tools. Do not launch Word, Visual Studio, installers or approval dialogs during unattended implementation. Do not terminate Word/Visual Studio or alter workloads, extensions, PATH, certificates/trust stores or machine settings. Native visual acceptance belongs to a separately scheduled human session.
|
||||
|
||||
## 1. Synchronise safely
|
||||
|
||||
1. Locate the existing Windows PlotDirector checkout; inspect `git status --short --branch`, `git remote -v`, and `git log -5 --oneline` before edits. Preserve local work. Stop branch integration if histories diverge; never reset, rebase, force-push, auto-stash or create another branch.
|
||||
2. Require the shared branch above. Determine its configured tracking remote with `git config --get branch.codex/word-companion-native-phase1-20261104.remote`. Fetch that remote, inspect ahead/behind counts and fast-forward only.
|
||||
3. Require `git merge-base --is-ancestor be88c1d068a4c384c5db348238ac78704b6f73e9 HEAD` success. Read `Docs/WordCompanion/WindowsHandover/README.md`, the daytime report, and the overnight investigation/verification notes. Inspect source changes since the last qualified Windows installation.
|
||||
4. Preserve the known-good installer and qualification report under `PlotDirector.NativeCompanion/WindowsValidation/Setup/`. The known-good installed baseline is **1.0.0.10**, payload source `6cdb49c08a74852d5089be8a40c07309543954d1`, MSI ProductVersion **1.0.10**, qualified Windows handover `97f5d99`. Its recorded EXE SHA256 is `9526E3781EB2EF9936132786E1E2242633349933A553E93E7A7D0B038160A7FF`. Verify the actual laptop state; do not assume it still matches.
|
||||
|
||||
## 2. Build managed and VSTO components without installing
|
||||
|
||||
Prerequisites: existing .NET 10 SDK and x64 Windows Desktop runtime, .NET Framework4.8/VSTO runtime, Office-equipped MSBuild discovered by vswhere, SDK mage, and the existing valid CurrentUser code-signing certificate/private key. Missing prerequisites are blockers for that phase, not permission to launch installers or repairs.
|
||||
|
||||
From the checkout root, use the existing entry point:
|
||||
|
||||
```powershell
|
||||
.\PlotDirector.NativeCompanion\WindowsValidation\Update-WordCompanion.ps1 -CertificateThumbprint '<existing developer certificate thumbprint>'
|
||||
```
|
||||
|
||||
The script fetches/fast-forwards, builds `PlotLine.slnx`, runs the established native regressions, builds `Vsto/PlotDirector.WordAddIn.csproj` with signed manifests, publishes `Agent/PlotDirector.Companion.Agent.csproj` for **net10.0-windows / win-x64**, and verifies a complete developer package. It must not install anything. It deliberately avoids Office Clean/F5 registration (`PrepareForRunDependsOn=CopyFilesToOutputDirectory`); preserve this. If signing would trigger an interactive private-key approval, stop before that phase and report the requirement.
|
||||
|
||||
Expected developer output: the Windows Downloads known folder, `PlotDirectorWordCompanion\1.0.0.12-<first8-build-SHA>`, containing signed `PlotDirector.WordAddIn.vsto`, `PlotDirector.WordAddIn.dll.manifest`, VSTO runtime files, `Agent\PlotDirector.Companion.Agent.exe` and its managed dependencies, plus hash inventory `package.json`. Use the actual output printed by the script; Downloads may be redirected. Do not present `.vsto` as the complete installer.
|
||||
|
||||
Review the printed legacy `Install-WordCompanion.ps1` suggestion but **do not execute it for this assignment**. The deliverable remains the unified EXE/MSI for both components.
|
||||
|
||||
## 3. Focused Windows compatibility work
|
||||
|
||||
- Managed UI: `Agent/TrayApplication.cs`, `Agent/CompanionPresentation.cs`. Check compilation, Windows theme registry/event handling, accessibility, DPI/resizing and owner-drawn chapter rows. Change Atlas UI only for a reproduced native defect, with regression evidence.
|
||||
- VSTO: `Vsto/WordAdapter.cs` is functionally unchanged from Windows baseline; only assembly version metadata advances. Do not add HTTP, AI, background COM or expensive document reads. No VSTO redesign is expected.
|
||||
- Tray/IPC: existing current-user pipes, singleton activation, grant lifecycle, book metadata and chapter batching remain the architecture. No new IPC contracts were introduced in this daytime UI sprint.
|
||||
- Web/server already deployed to Development: Context reference previews and Intent evidence, including SQL235. Do not apply SQL or deploy server code from Windows. Intent compares saved `SceneManuscriptSources`, not current unsaved Word prose. It does not automatically complete objectives.
|
||||
|
||||
## 4. Prepare the existing unified installer — Windows-owned work
|
||||
|
||||
Atlas intentionally did not change `WindowsValidation/Setup` from `97f5d99`. **`Setup/Build-Setup.ps1` currently refuses any payload other than exact version10/source6cdb49c.** That is an intentional qualification guard, not a build error to bypass casually. Native version12 is not yet packaged or installed.
|
||||
|
||||
After managed/package checks, update the existing builder and `Setup/Setup.cs` coherently for the qualified version12 payload. Preserve the baseline artifact separately. Review all hard-coded application/file/bootstrapper versions, package-source pin, MSI three-part ProductVersion (version12 relationship is `1.0.12`), ProductCode/upgrade rules, component identity, manifest paths/signatures, uninstall metadata and output defaults. Preserve UpgradeCode and safe per-user behaviour; choose and test the correct ProductCode strategy rather than guessing. Never relabel old bytes as version12 or reuse the old payload pin.
|
||||
|
||||
Use the existing command shape, after the builder has been deliberately updated and reviewed:
|
||||
|
||||
```powershell
|
||||
.\PlotDirector.NativeCompanion\WindowsValidation\Setup\Build-Setup.ps1 `
|
||||
-PackagePath '<verified version12 complete developer package>' `
|
||||
-OutputDirectory '<new empty output directory>' `
|
||||
-CertificateThumbprint '<existing developer certificate thumbprint>'
|
||||
```
|
||||
|
||||
Expected output: **PlotDirectorCompanionSetup.exe** with embedded signed **PlotDirectorCompanion.msi/CAB**, covering VSTO and tray. Preserve the same-user normal-Windows bootstrapper escape from packaged environments, native Windows Installer context verification, exact-product VSTA backup/uninstall handling, limited-privilege MSI summary, shortcuts and user-state exclusions. Do not introduce a new installer mechanism.
|
||||
|
||||
`Setup.exe --install` is **not unattended**: current source still has completion/error/trust UI. Do not run it during unattended work. Do not bypass trust/UAC. Installation/upgrade testing needs the controlled procedure in prompt02 and a scheduled approval window.
|
||||
|
||||
Preserve `%LOCALAPPDATA%\PlotDirector\Companion` state, existing document book associations and application data. Tokens are memory-only: browser sign-in again after tray restart is expected, not an upgrade regression. Never open/save user documents to test packaging.
|
||||
|
||||
## 5. Deliver and stop before interactive acceptance
|
||||
|
||||
Run prompt02's feasible automated checks. Commit only validated Windows-specific corrections and packaging work to the same branch. Fetch before pushing; reconcile concurrent updates without history rewriting or discarding work. Leave the checkout clean. Report exact commit, app/MSI versions, package locations/hashes, signatures, prerequisites, identity/context, automated results, and which install/Word/visual checks remain unproved.
|
||||
|
||||
If the real user environment is inaccessible, continue builds/package validation; defer installation alone. Do not claim Word load, visual polish or upgrade success from registration, compilation or a private sandbox.
|
||||
@ -0,0 +1,77 @@
|
||||
# Ready-to-paste Windows Codex automated qualification prompt
|
||||
|
||||
Qualify the actual source from prompt01 on **`codex/word-companion-native-phase1-20261104`**, Atlas application baseline **`be88c1d068a4c384c5db348238ac78704b6f73e9`**, native version **1.0.0.12**. Record any later validated Windows fix commit. Read prompt01 and the existing `WindowsValidation/Setup/Qualification-2026-11-05.md` first.
|
||||
|
||||
## Fundamental unattended rule
|
||||
|
||||
**No Computer Use, mouse automation, desktop control or interactive UI-driving tools.** Do not launch Word, steal focus, close documents, terminate applications, reboot, open approval prompts or run an installer during normal unattended tests. The user must remain able to work. No Visual Studio Installer/Repair/Update, workload changes, PATH or trust-store edits. Build/signing approval is also an interactive boundary.
|
||||
|
||||
## A. Identify the real environment before claiming installation
|
||||
|
||||
Record with PowerShell, keeping personal details in local evidence rather than public logs:
|
||||
|
||||
```powershell
|
||||
whoami /user
|
||||
[System.Security.Principal.WindowsIdentity]::GetCurrent().Name
|
||||
[Diagnostics.Process]::GetCurrentProcess().SessionId
|
||||
$env:USERPROFILE
|
||||
[Environment]::GetFolderPath('LocalApplicationData')
|
||||
Get-Process WINWORD -ErrorAction SilentlyContinue | Select-Object Id,SessionId,Path
|
||||
```
|
||||
|
||||
Determine whether the executing process is packaged/private (the existing Setup uses native `GetCurrentPackageFullName`). Compare effective identity, SID, session, profile paths and process ancestry with the actual signed-in author's session using supported OS queries. Do not assume `$env:LOCALAPPDATA`, HKCU or tool-launched processes represent normal Windows.
|
||||
|
||||
Use Windows Installer's supported **MsiEnumProductsEx**/product-info APIs with the actual user SID and installation context. The qualified baseline is per-user unmanaged context **2**, product `{98F46939-764D-407F-BD1F-1D88315D010A}`. Enumerate upgrade-family products after packaging changes as well. Do not use `Win32_Product` (it can trigger repairs). Private HKCU data alone proves nothing. If the normal user installation/profile is inaccessible, mark installation inspection blocked and continue B/C.
|
||||
|
||||
Expected normal baseline paths (resolve for the actual user, never silently substitute Codex's private AppData): `%LOCALAPPDATA%\Programs\PlotDirector Companion` with `Agent`, `%LOCALAPPDATA%\PlotDirector\Companion` for state, and `%LOCALAPPDATA%\PlotDirector\InstallerBackup` for exact-product backups. Record current registry/uninstall/manifest state read-only before any scheduled upgrade.
|
||||
|
||||
## B. Repeatable builds and portable regressions
|
||||
|
||||
Use the existing Update script from prompt01 to prepare a signed complete developer package, without installation. It locates existing build tools. Never use Office Clean or F5 registration.
|
||||
|
||||
Additional non-interactive commands from repository root:
|
||||
|
||||
```powershell
|
||||
dotnet build PlotLine.slnx -c Release --disable-build-servers -m:1 /p:UseSharedCompilation=false
|
||||
dotnet run --no-build -c Release --project PlotDirector.NativeCompanion/Tests/PlotDirector.Companion.Tests.csproj
|
||||
dotnet run --no-build -c Release --project PlotLine.Tests/PlotLine.Tests.csproj -- --native-companion
|
||||
dotnet run --no-build -c Release --project PlotLine.Tests/PlotLine.Tests.csproj -- --native-companion-http
|
||||
dotnet run --no-build -c Release --project PlotLine.Tests/PlotLine.Tests.csproj -- --native-workflow
|
||||
dotnet run --no-build -c Release --project PlotLine.Tests/PlotLine.Tests.csproj -- --native-tray
|
||||
dotnet run --no-build -c Release --project PlotLine.Tests/PlotLine.Tests.csproj -- --native-import
|
||||
dotnet run --no-build -c Release --project PlotLine.Tests/PlotLine.Tests.csproj -- --intent-assessment
|
||||
```
|
||||
|
||||
Run serially and stop a failed dependent phase. The tests are synthetic, not live Word/AI qualification. Check handshake/recovery, per-document isolation, bounded/coalesced queues, cancellation, stale responses, authentication expiry, book association and analysis states. Presentation tests cover fresh/expired/stale connection labels, Windows-theme precedence/fallback and analysis-versus-import wording. If testing real Windows theme preference read-only, inspect `HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize\AppsUseLightTheme` in the **correct user context**; do not change the user's theme automatically.
|
||||
|
||||
## C. Package verification without execution
|
||||
|
||||
Dot-source `WindowsValidation/DeveloperPackage.ps1` and run the existing `Test-DeveloperPackage '<actual package path>'`. Verify `package.json` source SHA, **1.0.0.12**, inventory hashes, referenced files, architecture and framework dependencies. Verify **both** VSTO manifest signatures with the SDK mage resolved by the existing scripts. Inspect `Get-AuthenticodeSignature` on the MSI/bootstrapper; report local developer trust separately from public signing. Check manifest identities, publisher Nick Beckley, file versions and agent runtimeconfig/deps JSON. No VSTO trust installation as a verification shortcut.
|
||||
|
||||
Build the unified installer only after prompt01's deliberate version12 packaging update. Inspect MSI read-only using WindowsInstaller COM/native APIs: Property, File, Component, Registry, Shortcut, Upgrade, install/uninstall sequence, embedded Media/CAB and summary information. Require:
|
||||
|
||||
- Both tray and VSTO payloads, with hashes matching the verified package.
|
||||
- Version12 application/bootstrapper/file versions and coherent three-part MSI version/upgrade boundaries; existing UpgradeCode retained and ProductCode strategy documented.
|
||||
- Per-user installation, no machine-wide ALLUSERS change; correct limited-privilege summary, install root and stable component identities.
|
||||
- Word add-in identity `PlotDirector.WordAddIn`, installed signed manifest with `|vstolocal`, LoadBehavior3 and the existing DLL resolver mechanism.
|
||||
- Start menu and Startup shortcuts target the installed tray, not build output; Add/Remove Programs metadata and unified uninstall cover both components.
|
||||
- User-state directories, document metadata, manuscripts, auth data and logs excluded from destructive MSI removal.
|
||||
- Bootstrapper still escapes the packaged/private environment safely; backup handling targets only this exact product. No other Office add-ins, caches, applications or trust settings touched.
|
||||
|
||||
Write hashes/versions/inventory results to a local qualification report. Do not run the installed tray merely to inspect dependencies: that may activate its visible window or interrupt an existing singleton. Portable tests exercise activation contracts on isolated test pipes; actual installed activation belongs to manual acceptance.
|
||||
|
||||
## D. Installation boundary — schedule explicitly
|
||||
|
||||
Current unified Setup has no guaranteed fully silent end-to-end mode. `--install` skips one confirmation but **still permits completion/error/trust dialogs**. MSI silent execution alone omits bootstrapper/VSTO normal-user orchestration and is not equivalent qualification. Do not invent `/quiet` switches or run raw MSI to bypass the established flow.
|
||||
|
||||
If interactive trust/UAC is required, stop **installation only** before opening anything. Report the exact approval, signing/trust reason and required window. Preserve all build/test results and wait for an explicitly scheduled installation window. Never repeatedly ask for clicks during working hours or leave a modal prompt waiting unattended. Do not bypass Windows protections.
|
||||
|
||||
At the authorised window: require Word already closed by the user; do not close it for them. Run the unified EXE through normal user Windows/File Explorer as documented. Capture bootstrapper/MSI/VSTO outcomes and backups, then inspect the actual user installation via native Installer APIs and installed file hashes. Result0 or HKCU LoadBehavior3 is **not** proof Word loaded the add-in.
|
||||
|
||||
Upgrade and uninstall/rollback are separately scheduled destructive test phases: preserve the prior verified EXE/package, user-state backup and registration exports. Do not uninstall a working author's installation merely to finish a test. If upgrade fails, retain logs/exports and diagnose the exact failure; do not clear ClickOnce/VSTA caches globally, remove unrelated registry keys, or install private sandbox copies. Recover through the previous verified unified installer in the same normal-user context only with explicit scheduling.
|
||||
|
||||
## E. Report results honestly
|
||||
|
||||
Separate: **Passed automated / Failed automated / Blocked by environment / Requires interactive Windows qualification / Requires human acceptance**.
|
||||
|
||||
Include exact Git source, versions/hashes, effective versus actual user context, tool versions, paths, relevant Event Log/installer failures, retained backups and recovery instructions. Avoid secrets/manuscript text in logs. Registry/package validation proves expected registration, not Word load or visual responsiveness. Do not launch Word to complete unattended checks. Hand remaining items to checklist03.
|
||||
@ -0,0 +1,44 @@
|
||||
# Human acceptance — scheduled Windows session
|
||||
|
||||
Use this after Windows Codex finishes prompts01/02. Ask for its actual installer path, version, SHA256 and automated report. No unattended desktop automation is required.
|
||||
|
||||
**Use an author-owned test book and a COPY of a selected Discovery chapter. Do not test imports, uninstall, conflict recovery or upgrades against your only manuscript copy or a populated Production book. Use Development.**
|
||||
|
||||
## Install or upgrade
|
||||
|
||||
- [ ] Codex identifies the new **PlotDirectorCompanionSetup.exe**, expected app **1.0.0.12** (or a documented newer Windows fix version), and verifies its hash. A `.vsto` file alone is not the installer.
|
||||
- [ ] Save your work and close Word yourself at an agreed installation time. Keep the known-good version10 installer and recovery information.
|
||||
- [ ] Run Setup through your normal Windows account/File Explorer, not a Codex-private profile. Review any trust/UAC request; stop if publisher or file differs from the agreed build. Developer signing may need normal trust approval.
|
||||
- [ ] Upgrade completes with both Companion and Word add-in, correct Start menu icon and Apps entry. Existing settings/book associations survive. Signing in again is expected because tokens are not stored between tray restarts.
|
||||
|
||||
## Word and Companion
|
||||
|
||||
- [ ] Start Word normally yourself. PlotDirector's small ribbon appears, startup feels normal, and Open Companion opens the correct installed application.
|
||||
- [ ] Open a test document. Connection status agrees with reality; no text changes occur automatically.
|
||||
- [ ] The Companion feels recognisably PlotDirector: clear manuscript/book area, readable chapter rows, calm colours and a short tray menu.
|
||||
- [ ] Try Windows light/dark, resize the window, and move it between monitors with different scaling. No clipped rows, overlapping text or unusable controls. PlotDirector-specific app-theme synchronisation is not implemented yet.
|
||||
- [ ] Connect via browser approval; choose the correct book. Check the active document and working document when switching between three open books.
|
||||
- [ ] Find Heading1 chapters, select a few, start analysis, check meaningful progress, cancel, then explicitly retry failed chapters. “Analysed” must not say “imported”.
|
||||
- [ ] Review opens the correct book's saved suggestions. Disconnected, missing-book and empty-document states explain the next step. Technical details stay under troubleshooting.
|
||||
|
||||
## Context | Word | Intent
|
||||
|
||||
- [ ] Open Context and Intent from Companion in separate browser/PWA windows. Both work on one monitor too.
|
||||
- [ ] Confirm book/chapter/scene and saved date/location/people/threads. Missing data is clearly missing; nothing is invented.
|
||||
- [ ] Follow Word only where a reliable saved association exists. Pause and manually choose another scene; Word must not pull it back. Return to Word resumes deliberately. Disconnect or switch books without stale content taking over.
|
||||
- [ ] Try narrow/portrait windows and light/dark/warm PWA themes. No horizontal overflow, flicker or repeated jumps.
|
||||
- [ ] In Intent, edit an intention through the existing scene editor. On Evidence, load saved results or explicitly assess saved prose. This may incur AI costs. Check quotations and qualifications; keep/dismiss/defer suggestions without silently changing objective completion.
|
||||
- [ ] Change saved prose or plan, then load evidence: it should say out of date. Unsaved Word edits are **not** automatically captured or assessed.
|
||||
|
||||
## Real chapter — isolated Development test only
|
||||
|
||||
- [ ] Reconnect with optional encrypted import capture approved; explicitly submit the copied Discovery chapter. Review genuine AI suggestions; edit, approve some, reject others and save.
|
||||
- [ ] Preview shows the intended test book, chapter/scene order and excluded scenes. Confirm once. Check exact saved prose and approved summaries.
|
||||
- [ ] Retry the same operation: no duplicates. A changed existing import must show a conflict, not overwrite existing story data. Do not experiment with reconciliation on a primary book.
|
||||
- [ ] Word prose remains unchanged throughout. Typing, scrolling, saving and closing stay responsive while Companion works.
|
||||
|
||||
## Restart and recovery
|
||||
|
||||
- [ ] Close/reopen Word normally. Restart Companion yourself; sign in again if requested. Confirm remembered document associations and site setting.
|
||||
- [ ] Quit/disconnect Companion: Word continues working. Reconnect without showing results from another document.
|
||||
- [ ] Report any failure with step, version, time and a screenshot if helpful. Do not clear Office caches or delete registry keys. Let Codex inspect logs and arrange a recovery window before further installation changes.
|
||||
17
Docs/WordCompanion/WindowsHandover/README.md
Normal file
17
Docs/WordCompanion/WindowsHandover/README.md
Normal file
@ -0,0 +1,17 @@
|
||||
# Controlled Windows handover
|
||||
|
||||
Execute in order:
|
||||
|
||||
1. **[01 — Windows implementation prompt](01-Windows-Implementation-Prompt.md):** paste into Windows Codex. Synchronise, build the Atlas-managed UI, correct only native compatibility defects, and prepare the **existing unified installer** for version12. No installation or Word launch yet.
|
||||
2. **[02 — Automated testing prompt](02-Windows-Automated-Testing-Prompt.md):** run unattended builds, protocol/state/package checks and read-only real-user installation inspection. **No Computer Use or desktop interaction.** Defer installation alone if normal-user context or approvals are unavailable.
|
||||
3. **[03 — Human acceptance checklist](03-Manual-Acceptance-Checklist.md):** use in a scheduled evening window, after saving/closing Word yourself. Installation trust and actual Word/visual acceptance belong here.
|
||||
|
||||
Expected Atlas application source: **`be88c1d068a4c384c5db348238ac78704b6f73e9`** on **`codex/word-companion-native-phase1-20261104`**. Handover documentation commits may descend from this fixed application commit; verify ancestry and inspect any later application changes. Record the actual clean build SHA in package.json and the Windows report.
|
||||
|
||||
Application source version **1.0.0.12**. Previously Windows-qualified installed payload **1.0.0.10**, source6cdb49c, installer handover97f5d99. **Atlas preserved Setup unchanged; its exact version10/source pin must be deliberately updated and upgrade-qualified by Windows Codex before a version12 installer can be built.** Version12 is not installed or Windows-qualified by Atlas. There is no claim that the current pinned builder already packages version12.
|
||||
|
||||
Prerequisites: existing Windows checkout, .NET10 SDK/Desktop runtime, Framework4.8/VSTO runtime, Office-equipped MSBuild, SDK mage, developer signing certificate and private key, normal-user installation access for the scheduled install phase. Missing prerequisites do not authorise Visual Studio/Office repairs or trust-store changes.
|
||||
|
||||
The existing Update script prepares a complete signed developer package only. The final installable remains the unified EXE/MSI containing **both** VSTO and tray. Its `--install` is not silent. Do not follow a legacy direct-VSTO install suggestion or replace the unified installer.
|
||||
|
||||
Development has SQL235 and the server features. Windows does not apply database migrations or deploy server code. Account tokens remain memory-only; reconnect after tray restart is expected. Intent evidence uses saved imported prose and saved plans, not unsaved Word edits. The Companion follows Windows light/dark; full PWA-theme synchronisation remains deferred. See the daytime implementation report for precise tests and limitations.
|
||||
Loading…
x
Reference in New Issue
Block a user