From 6cdb49c08a74852d5089be8a40c07309543954d1 Mon Sep 17 00:00:00 2001 From: Nick Beckley Date: Thu, 5 Nov 2026 21:44:18 +0000 Subject: [PATCH] Record tray Companion qualification and verified Development release --- .../2026-11-05-tray-companion.md | 22 + .../2026-11-05-tray/agent-publish.txt | 7 + .../Evidence/2026-11-05-tray/application.txt | 410 ++++++++++++++++++ .../2026-11-05-tray/backup-location.txt | 2 + .../2026-11-05-tray/backup-verification.txt | 1 + .../Evidence/2026-11-05-tray/browser.txt | 2 + .../Evidence/2026-11-05-tray/database.txt | 11 + .../Evidence/2026-11-05-tray/deployment.txt | 12 + .../2026-11-05-tray/http-websocket-razor.txt | 1 + .../2026-11-05-tray/legacy-browser.txt | 5 + .../2026-11-05-tray/managed-build.txt | 18 + .../Evidence/2026-11-05-tray/native.txt | 208 +++++++++ .../Evidence/2026-11-05-tray/powershell.txt | 8 + .../Evidence/2026-11-05-tray/public-smoke.txt | 6 + .../2026-11-05-tray/server-publish.txt | 5 + .../Evidence/2026-11-05-tray/server.txt | 1 + .../2026-11-05-tray/service-warnings.txt | 1 + .../Evidence/2026-11-05-tray/vsto-syntax.txt | 6 + .../2026-11-05-tray/windows-target-build.txt | 8 + 19 files changed, 734 insertions(+) create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/agent-publish.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/application.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/backup-location.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/backup-verification.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/browser.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/database.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/deployment.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/http-websocket-razor.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/legacy-browser.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/managed-build.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/native.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/powershell.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/public-smoke.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/server-publish.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/server.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/service-warnings.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/vsto-syntax.txt create mode 100644 Docs/WordCompanion/Evidence/2026-11-05-tray/windows-target-build.txt diff --git a/Docs/WordCompanion/2026-11-05-tray-companion.md b/Docs/WordCompanion/2026-11-05-tray-companion.md index 4bbcf671..c1b88abe 100644 --- a/Docs/WordCompanion/2026-11-05-tray-companion.md +++ b/Docs/WordCompanion/2026-11-05-tray-companion.md @@ -76,3 +76,25 @@ Exact evidence is under `Evidence/2026-11-05-tray/`; deployment outcome is appen The recovery's word-count algorithm is retained: an **approximate whitespace-based main-story snapshot count**, shown as such. It is not Word's exact statistics (footnotes, punctuation/hyphenation and other stories may differ). Edits mark the count stale; explicit detection refreshes it. No full-document Word statistics call is added to block the UI. Remaining native qualification includes tray singleton activation/Exit, actual Word launch and shadow-copy resolution, ribbon callbacks, signed manifests/per-user installation/rollback, read-only metadata, DPI/resizing/focus, three-document behavior, actual narrative AI-to-PWA review and measured 155k/190k/250k typing/scroll/save/close responsiveness. The single [Windows checklist](../../PlotDirector.NativeCompanion/WindowsValidation/Tray-Companion.md) includes these and the existing measurement harness. No Windows laptop, installed add-in, Visual Studio configuration or Production system was modified from Atlas. + +## Recorded verification and Development release + +| Check | Recorded result | +|---|---| +| Managed solution | Build passed with 0 warnings / 0 errors | +| Executable application regression harness | **409 PASS** checks; final scoped review/navigation/form changes additionally rechecked with focused tests | +| Portable native foundation / tray core | **206 PASS** checks, including Heading 1/front matter/ranges, exact document commands, consent, unchanged-content upload suppression, presence coalescing, serial multi-document AI, cancellation and replacement leases | +| Authenticated HTTP / WebSocket / Razor | PASS real Kestrel routes and browser-approved pairing, antiforgery, bearer/security stamp, book/subscription validation, canonical AI mapping, durable content reuse, scoped presence/revocation, native hub notification, compiled review Razor, approval-form binding, stale-tab conflict and encoded edits; synthetic provider / no author database | +| Focused server state / permissions | PASS presence expiry/replay/grant isolation, exact navigation delivery, canonical-book membership, personal review access and optimistic approval decisions | +| Browser | PASS actual workspace/badge scripts for exact session, follow/manual pause, stale/unavailable states, safe text, coalesced SignalR refresh; existing Context/Intent delayed-response and Writer regressions retained | +| Database | Migration 231 applied to **Development only** after a COPY_ONLY checksum backup and successful `RESTORE VERIFYONLY`. Rolled-back synthetic SQL regression passed duplicate-content protection, decision version and author isolation; no fixture rows retained | +| Windows-target build / publish | `net10.0-windows` compilation passed, 0 warnings / 0 errors; win-x64 framework-dependent agent publish passed on Atlas. This validates build artifacts, not Windows execution | +| Package scripts / VSTO | Seven PowerShell scripts parse; portable package/hash-tamper and non-Windows fail-closed checks pass. VSTO source syntax passes; Office compile/sign/install/runtime remains Windows-only | + +One intermediate Linux raw-pipe compatibility probe produced a transient broken-pipe failure; its rerun and final complete recovery suites passed. No confirmed cause is asserted, and Windows ACL/pipe timing remains part of qualification. An initial build also required rerunning with isolated build servers after an internal CLR failure; no native execution acceptance is inferred from the eventual build passes. + +Development server source **fb74786** is deployed at `/srv/apps/plotdirector-dev/releases/native-tray-fb74786-20261105213743`, with a matching timestamped `current-before` application backup. Subsequent changes are native-agent coordination and qualification evidence; the server payload remains the same. The idle-work gate and migration procedure hash were verified before restart. Published/deployed application and protocol SHA-256 values match (see deployment evidence). Service is active with no recent warning/error journal entries. Local and normal TLS-validated public GET returned 200; protected native connection/presence returned 401 without credentials; new PWA assets returned 200. Live author browser authentication and Word interaction were not impersonated from Atlas. No new paid provider call was needed; the existing canonical provider integration is exercised through a synthetic provider in the real HTTP path. + +No Production deployment or laptop installation occurred. Migration 231 is a prerequisite for deploying this server build elsewhere; it must not be silently applied to Production. The latest source is on the same shared branch, and the existing update script prepares version **1.0.0.10**. The install remains a separate explicit command. Native acceptance awaits the linked Windows procedure. + +Source milestones on the shared branch: `07cd67a` (minimal adapter/tray), `b4b58af` (durable AI review/presence), `18688fe` (live coordination and handover), `fb74786` (final deployed server and compiled PWA form/navigation checks), and `c42ed3f` (final agent multi-document AI serialization). Final qualification evidence follows these commits without changing the server payload. diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/agent-publish.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/agent-publish.txt new file mode 100644 index 00000000..6d5ad150 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/agent-publish.txt @@ -0,0 +1,7 @@ + Determining projects to restore... + All projects are up-to-date for restore. + PlotDirector.Companion.Protocol -> /srv/repos/PlotDirector/PlotDirector.NativeCompanion/Protocol/bin/Release/netstandard2.0/PlotDirector.Companion.Protocol.dll + PlotDirector.Companion.Agent -> /srv/repos/PlotDirector/PlotDirector.NativeCompanion/Agent/bin/Release/net10.0-windows/win-x64/PlotDirector.Companion.Agent.dll + PlotDirector.Companion.Agent -> /srv/repos/plotdirector-native-tray-artifacts/agent-c42ed3f-win-x64/ + +PASS win-x64 PE apphost and Windows Desktop framework declaration. Not executed on Linux. diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/application.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/application.txt new file mode 100644 index 00000000..e09c0dff --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/application.txt @@ -0,0 +1,410 @@ +PASS Native tray presence and PWA review remain scoped, expiring and non-destructive +PASS Native saved workspace and established import eligibility remain scoped and read-only +PASS Native companion authentication, canonical AI mapping and isolated chapter retry +PASS Solver never discards a corroborated concern or exhausts navigation before verification +PASS Solver result evidence covers all reachable diagnoses without changing Stage 1 semantics +PASS Solver result copy follows actual answers, intention, variants and revision +PASS Solver workspace CTAs resolve authorised project/character context and real routes +PASS Stage 1 preserves all 60 strict conversations, corroboration, intent, reachability and adoption +PASS Stage 1 evidence gates, required follow-ups, bounded multi-select and neutral choices are enforced +PASS Neutral endpoints require explicit valid terminal declarations +PASS Neutral reassurance follows selected concerns without evidence and survives revision +PASS Scene navigation does not invent purpose evidence; genuine D05 witnesses survive +PASS D50 requires actual series evidence and preserves D50/D51 witnesses +PASS Curated V2 preserves 60 literal paths and enforces eight explicit Development review exceptions +PASS Curated V2 exhausts real-engine states and preserves revision/multi-select behaviour +PASS Curated V2 passes normal validation and invalid publication stays guarded +PASS Payoff covers all 52 diagnoses with seven archetypes and semantic uncertainty ordering without graph changes +PASS Development review observes every acceptance prefix without changing signals, results or graph; access and durable capture stay isolated +PASS All permanent writing problems have distinct editorial content, intent, metadata, links and real images +PASS Clean solver completion preserves private evidence and permanent indexable URLs +PASS Writing Solver anonymous state is protected, expires and rejects stale versions +PASS Writing Solver scoring, multi-select, revision, fallback and graph routes +PASS Writing Solver import rejects invalid graphs and editorial identities +PASS Project export and restore access gates enforce author and ownership boundaries +PASS Retired checklist bookmarks redirect without report access +PASS Ribbon operation identity and semantic icons stay consistent +PASS Maps Story projects canonical hierarchy, sequence, journeys and evidence without changing geography +Maps Story scale: 500 scenes, 30 characters, 5,000 appearances in 15ms. +PASS Maps Story scales to 500 scenes and 5,000 appearances +PASS Maps Story enforces access and uses bounded repository batches +PASS Maps appearance validates colours, normalized raster images and portable backups +PASS Maps reference assets enforce access +PASS Maps validate rough geometry, relationships, Location intent and access boundaries +PASS Subscription entitlement evaluates trials, paid access, overrides and real plan limits +PASS Subscription overrides control access and dashboard presentation without trial contradictions +PASS Subscription enforcement is concurrent, audited and admin-authorised +PASS Plot Health stays scene-based with 12,000 contributions +PASS Plot Health preserves Discovery planning and boundary contradictions +PASS Plot Health separates stored status and meaningful-progress clocks +PASS Plot Health explains question, payoff, closure and boundary evidence +PASS Plot Health evaluates explicit targets and scoped line rollups +PASS Plot Health respects scenario coverage and ordered chapter identities +PASS Plot Lines Focus and Weave preserve gaps and shared-scene identity +PASS Plot Lines thread, enrichment and Timeline inspector contracts hold +PASS Plot Lines composition remains bounded with a large generated weave +PASS Exception review uses evidence, identity, consequence and directional conflicts +PASS Exception assessment preserves author decisions and scene history +PASS Character card widths reflect displayed text without changing character data +PASS Relationships workspace large cast, temporal states and canonical edits +PASS Scene relationship proposals preserve direction and validate acceptance +PASS Location and asset merges require confirmation and distinct records +PASS Location persisted analysis preserves contextual bedrooms and setting provenance +PASS Location consequence outranks capped recurrence +PASS Location scene significance is attributed only to actual settings +PASS Location significance preserves hierarchy and independent uncertainty +PASS Character profile age uses canonical reference chronology +PASS Character detail and date-only save retain canonical DOB +PASS Story Point presence, previous appearances and age cross book boundaries +PASS Story Point knowledge stops at selected narrative position +PASS Story Point relationships and independent asset state are historical +PASS Story Point threads and continuity warnings respect future evidence +PASS Story Point ownership, AJAX and bounded batch loading require no AI +PASS Story Point narrative tie breakers match canonical order +PASS Malformed confidence 0. is repaired to 0.0 +PASS Markdown fences are stripped +PASS Unescaped backslash in evidence is repaired +PASS Truncated JSON is rejected +PASS Repaired JSON deserialises into SceneIntelligenceScene +PASS Chapter Structure confidence 0. repairs and deserialises +PASS Chapter Structure confidence 0. 8 repairs and deserialises +PASS Chapter Structure confidence 7 .5 repairs when unambiguous +PASS JSON repair leaves decimal-looking prose unchanged +PASS Chapter Structure semantic validation still rejects out-of-range repaired confidence +PASS Structural scene detection parser failure uses friendly diagnostics and retry +PASS Chapter Structure boundary normaliser repairs gaps and overlaps +PASS Chapter Structure boundary normaliser preserves valid coverage +PASS Chapter Structure boundary normaliser handles terminal ghost paragraph +PASS Chapter Structure boundary normaliser discards multiple terminal ghost paragraphs +PASS Chapter Structure boundary normaliser replays full book terminal empty failure +PASS Chapter Structure boundary normaliser keeps meaningful end overflow repair +PASS Chapter Structure boundary normaliser preserves genuine inverted ranges for validation +PASS Structural Word mapping uses paragraph map as authoritative text +PASS Structural Word mapping includes filtered Word paragraphs in source coverage +PASS Structural Word mapping fails precisely when map metadata is incomplete +PASS Structural Word mapping keeps trailing empty normalisation mapped +PASS Shared parser reports raw chapter output on unrecoverable JSON +PASS Character filtering rejects generic groups +PASS Character filtering preserves titled names +PASS Location filtering rejects merged phrases +PASS Location filtering preserves story locations +PASS Location canonical keys merge trivial variants +PASS Location contextual names use POV and structural setting +PASS Location canonical keys merge punctuation and safe plurals +PASS Location candidate consolidation handles generic review variants +PASS Location candidate identity is parent-aware for generic sub-locations +PASS Locations page uses hierarchical sort order +PASS Location review UX supports large candidate sets +PASS Story Intelligence auto resolves exact known locations before review +PASS Story Intelligence location review uses single identity decision +PASS Asset filtering rejects generic objects +PASS Asset filtering preserves story assets +PASS Asset canonical keys merge trivial variants +PASS Asset canonical keys merge contextual vehicle variants +PASS Asset canonical keys keep unrelated owned cars distinct +PASS Asset candidate keys attach unique unowned variants +PASS Asset filtering rejects relationship facts +PASS Asset contextual names resolve POV ownership +PASS Asset structural phrases trim neighbouring nouns +PASS Asset significance is generic and not fixture-specific +PASS Story Intelligence asset review applies current identity rules +PASS Relationship review requires pair evidence and distinguishes social types +PASS Relationship signals map to broad lookup types +PASS Relationship signals infer friendship without romance +PASS Relationship events preserve chronological story order +PASS Relationship progression keeps chronological state +PASS Relationship observations do not create event spam +PASS Relationship review orders by first story appearance +PASS Relationship evidence priority preserves explicit semantics +PASS Relationship evidence handles retained hostile and incidental examples +PASS Knowledge signals map to existing knowledge states +PASS Knowledge recipient resolves narrator through POV +PASS Knowledge identity reveal preserves subjective timing +PASS Knowledge duplicate statements share canonical keys +PASS Knowledge suspicion and certainty remain distinct +PASS Illustration prompt builder separates spec and prompt +PASS Illustration prompt builder uses realistic image direction +PASS Illustration specification validation catches missing typed fields +PASS Illustration category validation rejects unknown values +PASS Illustration status transitions protect approval flow +PASS Illustration status transitions support archive flow +PASS Illustration metadata flags fallback location labels +PASS Illustration location matching rejects vehicle living room reuse +PASS Illustration automatic generation policy blocks vague fallbacks +PASS Story Memory import image generation defaults are safe +PASS Illustration storage codes are normalised safely +PASS Illustration starter batch has required category counts +PASS Illustration starter generation plan skips successful items +PASS Story Intelligence visualisation archive is preserved +PASS Story Intelligence visualisation runtime is removed +PASS Story Intelligence does not retry exhausted billing quota +PASS Illustration bulk retry result reports counts +PASS Illustration bulk retry skips blocking duplicate stable codes +PASS Illustration provider reports missing image model +PASS Illustration provider omits GPT image response format +PASS Illustration matching rejects adult masculine unknown art for Beth +PASS Illustration matching treats Mrs title as hard feminine evidence +PASS Illustration matching infers mother and aunt as mature feminine +PASS Illustration matching rejects duplicate named portrait allocation +PASS Illustration semantic types prevent bathroom office and ambulance car mismatches +PASS Illustration demand archetypes stay broad and use active template +PASS Story Intelligence evidence extraction prevents observed attribute leakage +PASS Story Intelligence scene call uses strict structured output +PASS Story Intelligence scene schema constrains confidence numbers +PASS Story Intelligence scene schema constrains evidence strings +PASS Story Intelligence temporal resolves chapter anchor and afternoon +PASS Story Intelligence temporal rolls over after midnight +PASS Story Intelligence temporal resolves following morning +PASS Story Intelligence temporal resolves exact day offsets +PASS Story Intelligence temporal resolves following weekday +PASS Story Intelligence temporal resolves evening clock time +PASS Story Intelligence temporal rejects unanchored clock time +PASS Story Intelligence temporal preserves yearless calendar date clues +PASS Story Intelligence temporal resolves yearless calendar dates from context +PASS Story Intelligence temporal inherits previous morning when extraction is empty +PASS Story Intelligence temporal inherits previous evening when extraction is empty +PASS Story Intelligence temporal inherits previous night when extraction is empty +PASS Story Intelligence temporal inherits after midnight advancement +PASS Story Intelligence temporal inherits chapter anchor when extraction is empty +PASS Story Intelligence temporal stays unknown without context or extraction +PASS Story Intelligence temporal explicit date overrides previous context +PASS Story Intelligence temporal preserves vague few days +PASS Core import applies structural chronology to canonical scenes +PASS Story Intelligence temporal importer preserves manual chronology +PASS Story Intelligence temporal materialisation saves canonical chronology +PASS Story Intelligence temporal malformed values are discarded +PASS Story Calendar useful months and sparse navigation +PASS Story Calendar places dated scenes on Monday-first month grid +PASS Story Calendar separates unplaced scenes without guessing +PASS Story Calendar book filter and all books scope work +PASS Story Calendar month navigation uses story dates across years +PASS Story Calendar month dropdown follows displayed month +PASS Story Calendar handles no dated scenes +PASS Story Calendar day details endpoint returns partial +PASS Story Calendar day details endpoint respects book filter +PASS Story Calendar day details endpoint handles empty story date +PASS Story Calendar day details endpoint rejects invalid project +PASS Story Calendar index returns surface partial for AJAX +PASS Story Calendar day selection uses progressive AJAX hooks +PASS Story Intelligence structured metric values validate and import +PASS Story Intelligence structured schema covers complete response model +PASS Story Intelligence structured schema remains fixture agnostic +PASS Illustration assignment repair enforces explicit evidence groups and strict subtypes +PASS Lean import removes replay links while retaining progress +PASS Story Intelligence progress does not prematurely report safe close +PASS Structural import creates scenes before Word sync +PASS Structural import creates first scene without placeholder +PASS Structural import persists paragraph mapping and source text +PASS Structural import persists canonical scene source text +PASS Structural import adds summaries without extra scene AI calls +PASS Core import scan stage defers scenes and characters +PASS Core import basic location detector is conservative +PASS Core import basic location detector consolidates and skips existing matches +PASS Core import basic location detector supports pending parent candidates +PASS Core import character discovery protects accepted locations +PASS Core import gates characters behind basic location review +PASS Core import hides exact existing character names from review +PASS Core import hides exact existing character aliases from review +PASS Core import keeps suspected unknown aliases in review +PASS Core import keeps ambiguous existing character matches in review +PASS Core import keeps new characters in review +PASS Core import auto resolved character evidence is preserved +PASS Core import character evidence is candidate specific +PASS Core import deterministically maps known characters +PASS Core import wizard orders scenes before characters +PASS Core import remaps characters after review +PASS Scan review separates known matches from unresolved names +PASS Story Intelligence uses persisted scene source after restart +PASS Story Intelligence canonical mode bypasses duplicate boundary analysis +PASS Story Intelligence progress uses canonical scene summaries +PASS Story Intelligence downstream imports prefer canonical SceneIDs +PASS Story Intelligence scene prompt no longer asks for duplicate factual summary +PASS Story Intelligence review uses canonical structural summaries and counts +PASS Story Intelligence review centre completion is category scoped +PASS Word sync requires save acknowledgement +PASS Word sync retry resumes existing structure +PASS Story Intelligence enriches existing structural scenes +PASS Core import scene titles ride existing structural AI call +PASS Core import scene title preference is review scoped +PASS Core import scene title preference moved to Detect Scenes +PASS Core import Review Chapters is compact and chapter only +PASS Core import Detect Scenes is compact and owns title option +PASS Book context is canonical import metadata +PASS Names defaults from selected book context +PASS Story Intelligence starts from core import complete +PASS Generated scene titles persist with provenance +PASS Scene title display keeps scene numbers visible +PASS Manuscript text statistics handles pure prose +PASS Manuscript text statistics handles pure dialogue +PASS Manuscript text statistics splits narrative before dialogue +PASS Manuscript text statistics splits dialogue before narrative +PASS Manuscript text statistics handles multiple dialogue passages +PASS Manuscript text statistics supports smart quotes +PASS Manuscript text statistics supports straight quotes +PASS Manuscript text statistics carries multi-paragraph dialogue +PASS Manuscript text statistics returns to prose after continued dialogue +PASS Manuscript text statistics ignores empty paragraphs +PASS Manuscript text statistics reconciles scene totals +PASS Manuscript text statistics aggregates chapter scenes +PASS Manuscript text statistics recalculates existing scene sources +PASS Manuscript text statistics does not invoke AI +PASS Phase 21T repairs durable character understanding +PASS Phase 21U extracts mandatory character appearance fixtures +PASS Character sex hints are conservative and reviewable +PASS Character discovery does not truncate scan review candidates +PASS Character discovery rejects sentence-start words +PASS Character discovery rejects fragments and location names +PASS Manuscript scan preview keeps only auto-selected character candidates +PASS Word Companion scan completion uses chunked transport +PASS Word Companion scan chunks assemble full novel payloads +PASS Word Companion scan chunks reject partial and conflicting payloads +PASS Onboarding wizard keeps character pages inside one main step +PASS Scan review aliases feed Story Intelligence known character context +PASS Name Intelligence package contract is present +PASS Name Intelligence reference data is copied on publish +PASS Name Intelligence repository uses stored procedures +PASS Name Intelligence review warning is wired +PASS Name Intelligence library defaults to all locales +PASS Story Intelligence new-format context uses canonical characters +PASS Story Intelligence character defaults link proposed existing matches +PASS Story Intelligence character defaults ignore generic references +PASS Story Intelligence character defaults keep descriptive identities +PASS Story Intelligence character review uses single identity decision +PASS Story Intelligence auto resolves exact known identities before review +PASS Story Intelligence character matching keeps ambiguous known names visible +PASS Story Intelligence descriptive references consolidate articles +PASS Story Intelligence review omits character metrics dashboard +PASS Story Intelligence resumed chapters use canonical labels +PASS Story Intelligence character review posts selected existing match +PASS Story Intelligence character default changes preserve persisted results +PASS Structural POV rides existing chapter analysis +PASS Structural POV persists through import resolution +PASS Chapter POV derives from canonical scenes +PASS Permanent Analyse My Book starts from saved book +PASS Story Intelligence canonical context carries provenance +PASS Scene prompt protects canonical scene context +PASS Structural setting rides existing chapter analysis +PASS Explicit narrator labels detect deterministic POV +PASS AI POV JSON parses into structural models +PASS Post character review resolves persisted structural POV +PASS Normal scene and chapter saves persist POV +PASS Character merge is a reusable stored procedure workflow +PASS Story Intelligence character review suppresses resolved narrator POV +PASS Story Intelligence character review reuses structured appearance aliases +PASS Entity preferred names are peer aliases +PASS Story Intelligence review evidence includes chapter scene labels +PASS Story Intelligence import enables project metric defaults before save +PASS Project metrics add defaults backfills scene values +PASS Story Intelligence scene prompt uses configured metrics +PASS Story Intelligence scene prompt uses scene characters terminology +PASS Story Intelligence downstream imports support canonical scene results +PASS Story Intelligence runner supplies metrics and Plot Lines +PASS Story Intelligence metric persistence uses configured keys +PASS Story Intelligence stabilisation gate materialises strict and legacy metrics +PASS Story Intelligence modern materialisation owns finalisation boundary +PASS Story Intelligence narrative materialisation reads strict scene results +PASS Story Intelligence stabilisation routes normal users to book +PASS Story Intelligence narrative candidates require review +PASS Story Intelligence discovers Plot Lines without preconfiguration +PASS Story Intelligence matches existing Plot Lines without duplicates +PASS Narrative research prototype fixture builds hierarchy +PASS Narrative sibling hotel fixture generalises hierarchy +PASS Narrative trivial one-scene question is suppressed +PASS Narrative short significant thread survives +PASS Narrative semantic evolution consolidates by continuity +PASS Narrative existing thread matching is supported +PASS Narrative candidate merge and parent fields are persisted +PASS Narrative prompt uses one scene call with compact schema +PASS Narrative production code remains fixture agnostic +PASS Whole-book Plot Intelligence prompt carries full manuscript context +PASS Whole-book Plot Intelligence schema requires timeline event types +PASS Whole-book Plot Intelligence author seed inputs persist safely +PASS Whole-book Plot Intelligence structured author seed match survives +PASS Whole-book Plot Intelligence unmatched seeds become review candidates +PASS Whole-book Plot Intelligence uses dedicated output token headroom +PASS Story Intelligence narrative review displays author seed provenance +PASS Story Intelligence narrative review avoids raw author-facing IDs +PASS Story Intelligence author seed decisions are preserved +PASS Whole-book Plot Intelligence production code remains fixture agnostic +PASS Story Intelligence narrative review creates canonical records via existing procs +PASS Story Intelligence narrative stage follows knowledge +PASS Word Companion replays live current scene to writing panes +PASS Scan review post supports full-book form submissions +PASS StoryPosition rejects incomplete or invalid runtime scene positions +PASS StoryPosition builds canonical runtime scene navigation +PASS StoryPosition derives canonical scene context identity +PASS Writing Context route uses canonical story context service +PASS Writing Context client follows canonical story position events +PASS Writing Context preserves selected tab and avoids event loops +PASS Writing Intent route uses canonical story context and planning data +PASS Writing Intent client uses shared writing follow helper +PASS Obsolete global Word navigation is removed while writing windows remain live +PASS Appearance preferences and ribbon destinations +PASS Toolbar preferences, authorisation and contextual routes +PASS Application navigation resolves authorised project and book context +PASS Writing pair shares canonical follow infrastructure +PASS Writing workspace presence scopes browser windows +PASS Writing workspace client uses session window identity and stable names +PASS Writing workspace launcher uses progressive screen placement +PASS Writing workspace pages register roles without changing follow behavior +PASS Word marker client acknowledgements require authenticated ownership +PASS Word Companion exposes writing workspace launch actions +PASS Word Companion writing screens receive resolved context identifiers +PASS Word Companion canonical markers drive runtime follow +PASS Word Companion runtime follows multiple imported scene anchors +PASS Word Companion existing project book linking remains available +PASS Word Companion document identity survives reconnect +PASS Word Companion multiscreen launch and follow remain reachable +PASS Word Companion modes remain distinct +PASS Writing pages do not require Story Intelligence +PASS Word Companion host script has valid tab mapping +PASS Writing screens show diagnostic empty states +PASS Word Companion three-screen flow logs connection identifiers +PASS Admin Story Intelligence reset returns to diagnostics with messages +PASS Project hard delete clears Story Intelligence dependencies in transaction +PASS Permanent project delete keeps archive and name safety gates +PASS Word manuscript cleanup classifies PlotDirector markers by tag only +PASS Word manuscript cleanup preserves content controls content +PASS Word manuscript cleanup UI separates unlink from clean unlink +PASS Word manuscript unlink keeps Story Intelligence data untouched +PASS Word manuscript cleanup remains relinkable and idempotent +PASS Story Intelligence Review Centre route replaces linear review resume +PASS Story Intelligence obsolete create scene workflow is removed +PASS Story Intelligence Review Centre counts only needs-attention categories +PASS Story Intelligence Review Centre uses independent tile grid +PASS Story Intelligence Review Centre opens with character gate +PASS Story Intelligence review modules are independent after character gate +PASS Story Intelligence review module completion is durable and independent +PASS Story Intelligence review module pages omit wizard chrome +PASS Story Intelligence downstream review uses completed scene analysis +PASS Story Intelligence review posts do not use success interstitials +PASS Story Intelligence legacy review completion routes are deleted +PASS Story Intelligence review forms share busy submit guard +PASS Story Intelligence heavy review modules offer bounded rendering +PASS Story Intelligence Review Centre adds no AI calls +PASS Story Intelligence Review Centre uses bounded summary query +PASS Story Intelligence character review queues enrichment beside plot synthesis +PASS Story Intelligence character enrichment uses persisted SignalR progress +PASS Story Intelligence character enrichment preserves author fields +PASS Story Intelligence character enrichment batches by prompt size +PASS Story Intelligence character enrichment promotes structured facts +PASS Character detail can queue single-character enrichment +PASS Single-character enrichment is persisted and duplicate safe +PASS Character detail enrichment status uses scoped SignalR +PASS Story Intelligence detailed review GETs use selected module paths +PASS Story Intelligence completed Character review remains inspectable +PASS Story Intelligence Review Centre completed modules use canonical destinations +PASS Story Intelligence detailed reviews read persisted candidate pages +PASS Story Intelligence module completion lifecycle uses persisted candidates +PASS Story Intelligence Job 6 uses bounded concurrent chapter execution +PASS Story Intelligence global progress uses whole run scene totals +PASS Story Intelligence recovered provider failures stay operational +PASS Story Intelligence recovered JSON repair stays operational +PASS Story Intelligence terminal failures remain user visible +PASS Story Intelligence global banner remains visible through finalising gaps +PASS Story Intelligence global banner rejects stale live snapshots +PASS Story Intelligence live global progress publishes authoritative scene aggregates +PASS Story Intelligence global progress survives initial SignalR start races +PASS Story Intelligence scene analysis completion barrier releases review +PASS Story Intelligence active progress only appears in global strip +PASS Story Intelligence book actions do not open review centre while running diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/backup-location.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/backup-location.txt new file mode 100644 index 00000000..e99e8268 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/backup-location.txt @@ -0,0 +1,2 @@ +/var/opt/mssql/backups/PlotDirector_Development-native-tray-20261105T211809.bak +COPY_ONLY, CHECKSUM, VERIFYONLY passed. No restore performed. diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/backup-verification.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/backup-verification.txt new file mode 100644 index 00000000..4771e3e5 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/backup-verification.txt @@ -0,0 +1 @@ +The backup set on file 1 is valid. diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/browser.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/browser.txt new file mode 100644 index 00000000..c321f946 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/browser.txt @@ -0,0 +1,2 @@ +PASS native PWA exact-session following, pinned scope, manual pause, disconnection and Word-unavailable states +PASS native presence badge never infers connection from associations and clears stale links safely diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/database.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/database.txt new file mode 100644 index 00000000..d3a05837 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/database.txt @@ -0,0 +1,11 @@ +Verified database: PlotDirector_Development +SQL file: 231_NativeChapterReview.sql +SQL file completed: 231_NativeChapterReview.sql +SQL file: tray-review-db-test.sql +9222b80a-0908-4a90-a6c3-17b0c59cdc07 | 2147483646 | 2147483646 | 0255267a-3eb4-4db0-bc6e-d663c2456d98 | 10 | 20 | synthetic-native-review-regression | {"State":"complete","Scenes":[]} | NULL | 1 | 11/05/2026 21:20:42 +9222b80a-0908-4a90-a6c3-17b0c59cdc07 | 2147483646 | 2147483646 | 0255267a-3eb4-4db0-bc6e-d663c2456d98 | 10 | 20 | synthetic-native-review-regression | {"State":"complete","Scenes":[]} | NULL | 1 | 11/05/2026 21:20:42 +1 +0 +0 +PASS synthetic Development review persistence, content idempotency, optimistic decisions and user scope; fixture rolled back +SQL file completed: tray-review-db-test.sql diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/deployment.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/deployment.txt new file mode 100644 index 00000000..25da39b1 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/deployment.txt @@ -0,0 +1,12 @@ +Verified database: PlotDirector_Development +SQL file: plotdirector-phase2-restart-authorised-gate.sql +Development deployment gate: idle +SQL file completed: plotdirector-phase2-restart-authorised-gate.sql +SQL file: tray-readiness.sql +Native review procedure SHA256 | 3B319F959A65E0202DADB69A380C14A07F44BE2EE9726481BAF44982FDAC6653 +SQL file completed: tray-readiness.sql +active +Development server release: /srv/apps/plotdirector-dev/releases/native-tray-fb74786-20261105213743 +Previous application backup: /srv/apps/plotdirector-dev/current-before-native-tray-fb74786-20261105213743 +PlotLine.dll publish/deployed SHA256 matches: b36ee5525a65d98bca7ff79ed50379ac8dbd92f7a601e440d5215f1a33653f94 +PlotDirector.Companion.Protocol.dll publish/deployed SHA256 matches: 14ea03757e3d3c1abcecf0b67d6053cc5f64da47835255987bd99d9be71eb463 diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/http-websocket-razor.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/http-websocket-razor.txt new file mode 100644 index 00000000..841acd67 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/http-websocket-razor.txt @@ -0,0 +1 @@ +PASS actual HTTP native pairing, antiforgery, bearer/stamp, book/subscription access, canonical AI/idempotency, persistent review and live WebSocket invalidation (synthetic provider, no database) diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/legacy-browser.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/legacy-browser.txt new file mode 100644 index 00000000..31269016 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/legacy-browser.txt @@ -0,0 +1,5 @@ +PASS context actual browser delayed responses, abort, current-scene return, old failure and chapter identity +PASS intent actual browser delayed responses, abort, current-scene return, old failure and chapter identity +PASS pinned context retains scoped saved content without SignalR/latest Word/window registration +PASS pinned intent retains scoped saved content without SignalR/latest Word/window registration +PASS fresh Writer launcher opens both missing role windows without undeclared currentRole diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/managed-build.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/managed-build.txt new file mode 100644 index 00000000..e5636372 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/managed-build.txt @@ -0,0 +1,18 @@ + Determining projects to restore... + Restored /srv/repos/PlotDirector/PlotDirector.NativeCompanion/Protocol/PlotDirector.Companion.Protocol.csproj (in 443 ms). + Restored /srv/repos/PlotDirector/PlotDirector.NativeCompanion/Agent/PlotDirector.Companion.Agent.csproj (in 431 ms). + 5 of 7 projects are up-to-date for restore. + PlotDirector.Companion.Protocol -> /srv/repos/PlotDirector/PlotDirector.NativeCompanion/Protocol/bin/Debug/netstandard2.0/PlotDirector.Companion.Protocol.dll + PlotLine -> /srv/repos/PlotDirector/PlotLine/bin/Debug/net10.0/PlotLine.dll + PlotLine.Tests -> /srv/repos/PlotDirector/PlotLine.Tests/bin/Debug/net10.0/PlotLine.Tests.dll + PlotDirector.Companion.Agent -> /srv/repos/PlotDirector/PlotDirector.NativeCompanion/Agent/bin/Debug/net10.0/PlotDirector.Companion.Agent.dll + PlotDirector.Companion.Agent -> /srv/repos/PlotDirector/PlotDirector.NativeCompanion/Agent/bin/Debug/net10.0-windows/PlotDirector.Companion.Agent.dll + PlotDirector.Companion.Client -> /srv/repos/PlotDirector/PlotDirector.NativeCompanion/Client/bin/Debug/netstandard2.0/PlotDirector.Companion.Client.dll + PlotDirector.Companion.Tests -> /srv/repos/PlotDirector/PlotDirector.NativeCompanion/Tests/bin/Debug/net10.0/PlotDirector.Companion.Tests.dll + WritingSolver -> /srv/repos/PlotDirector/Tools/WritingSolver/bin/Debug/net10.0/WritingSolver.dll + +Build succeeded. + 0 Warning(s) + 0 Error(s) + +Time Elapsed 00:00:54.00 diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/native.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/native.txt new file mode 100644 index 00000000..346b05a6 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/native.txt @@ -0,0 +1,208 @@ +PASS selection scheduler coalesces bursts +PASS Word operation timing recorded +PASS only latest selection executes on owner +PASS obsolete Word work cancelled +PASS bounded Word queue accepts capacity slot 0 +PASS bounded Word queue accepts capacity slot 1 +PASS bounded Word queue accepts capacity slot 2 +PASS bounded Word queue accepts capacity slot 3 +PASS bounded Word queue accepts capacity slot 4 +PASS bounded Word queue accepts capacity slot 5 +PASS bounded Word queue accepts capacity slot 6 +PASS bounded Word queue accepts capacity slot 7 +PASS bounded Word queue accepts capacity slot 8 +PASS bounded Word queue accepts capacity slot 9 +PASS bounded Word queue accepts capacity slot 10 +PASS bounded Word queue accepts capacity slot 11 +PASS bounded Word queue accepts capacity slot 12 +PASS bounded Word queue accepts capacity slot 13 +PASS bounded Word queue accepts capacity slot 14 +PASS bounded Word queue accepts capacity slot 15 +PASS bounded Word queue accepts capacity slot 16 +PASS bounded Word queue accepts capacity slot 17 +PASS bounded Word queue accepts capacity slot 18 +PASS bounded Word queue accepts capacity slot 19 +PASS bounded Word queue accepts capacity slot 20 +PASS bounded Word queue accepts capacity slot 21 +PASS bounded Word queue accepts capacity slot 22 +PASS bounded Word queue accepts capacity slot 23 +PASS bounded Word queue accepts capacity slot 24 +PASS bounded Word queue accepts capacity slot 25 +PASS bounded Word queue accepts capacity slot 26 +PASS bounded Word queue accepts capacity slot 27 +PASS bounded Word queue accepts capacity slot 28 +PASS bounded Word queue accepts capacity slot 29 +PASS bounded Word queue accepts capacity slot 30 +PASS bounded Word queue accepts capacity slot 31 +PASS bounded Word queue accepts capacity slot 32 +PASS bounded Word queue accepts capacity slot 33 +PASS bounded Word queue accepts capacity slot 34 +PASS bounded Word queue accepts capacity slot 35 +PASS bounded Word queue accepts capacity slot 36 +PASS bounded Word queue accepts capacity slot 37 +PASS bounded Word queue accepts capacity slot 38 +PASS bounded Word queue accepts capacity slot 39 +PASS bounded Word queue accepts capacity slot 40 +PASS bounded Word queue accepts capacity slot 41 +PASS bounded Word queue accepts capacity slot 42 +PASS bounded Word queue accepts capacity slot 43 +PASS bounded Word queue accepts capacity slot 44 +PASS bounded Word queue accepts capacity slot 45 +PASS bounded Word queue accepts capacity slot 46 +PASS bounded Word queue accepts capacity slot 47 +PASS bounded Word queue accepts capacity slot 48 +PASS bounded Word queue accepts capacity slot 49 +PASS bounded Word queue accepts capacity slot 50 +PASS bounded Word queue accepts capacity slot 51 +PASS bounded Word queue accepts capacity slot 52 +PASS bounded Word queue accepts capacity slot 53 +PASS bounded Word queue accepts capacity slot 54 +PASS bounded Word queue accepts capacity slot 55 +PASS bounded Word queue accepts capacity slot 56 +PASS bounded Word queue accepts capacity slot 57 +PASS bounded Word queue accepts capacity slot 58 +PASS bounded Word queue accepts capacity slot 59 +PASS bounded Word queue accepts capacity slot 60 +PASS bounded Word queue accepts capacity slot 61 +PASS bounded Word queue accepts capacity slot 62 +PASS bounded Word queue accepts capacity slot 63 +PASS Word queue rejects overflow without waiting +PASS Word scheduler rejects wrong thread +PASS author activity suspends low priority work +PASS IPC coalesces selection storm to latest value +PASS coalesced position is latest +PASS IPC snapshot queue backpressure bounded +PASS IPC selection session slots bounded +PASS missing required protocol capabilities refused +PASS three books have independent live sessions +PASS commit structural snapshot Discovery +PASS positional scene resolution independent of repeated text Discovery +PASS commit structural snapshot Reckoning +PASS positional scene resolution independent of repeated text Reckoning +PASS commit structural snapshot Redemption +PASS positional scene resolution independent of repeated text Redemption +PASS rapid three-document switching preserves active identity +PASS cancelled snapshot cannot commit +PASS partial snapshot cannot masquerade as complete +PASS oversized extraction fragment refused +PASS stale revision refused +PASS peer cannot address another instance lease +PASS duplicate/out-of-order sequence refused +PASS closing one document retires only its state +PASS old disconnect cannot retire replacement lease +PASS disconnect releases all owned sessions and snapshots +PASS one Word process cannot route into another process document +PASS terminating one Word process preserves another instance +PASS new observation revision invalidates in-flight old extraction +PASS malformed null document cannot crash agent session processing +PASS oversized frame rejected before allocation +PASS versioned frame round-trip retains identity +PASS offline work persisted without manuscript prose +PASS On Save mode cannot be triggered by automatic quiet period +PASS offline work survives agent restart +PASS new scene revision supersedes queued older work +PASS stale offline revision cannot replace newer work +PASS old acknowledgement cannot remove newer work +PASS matching idempotency acknowledgement retires work +PASS durable queue rejects capacity overflow +PASS real pipe rejects incompatible handshake +PASS same-version optional capabilities remain compatible +PASS agent advertises optional structural review capability +PASS real named-pipe handshake reconciles three documents +PASS agent receives actual asynchronous positional/lifecycle traffic +PASS real pipe returns document analysis results +PASS agent shutdown retires peer sessions +PASS idle keepalive detects agent loss without a Word event +PASS agent restart reconnects and reconciles without UI waits +PASS analysis can be repeated after actual pipe host restart +PASS real pipe document close is isolated +PASS link shutdown cancels background worker promptly +PASS untrusted agent owner callback rejects connection before handshake +PASS unresponsive agent handshake times out off producer thread +PASS blank document has an explicit empty analysis +PASS normal snapshot counts across split fragments without retaining review candidates +PASS plain chapter labels and separators become review suggestions +PASS ambiguous text and heading levels explain uncertainty instead of approving import +PASS analysis reuses existing PlotDirector marker interpretation +PASS fragment splits do not inflate word or paragraph counts +PASS 250000-word many-paragraph manuscript analysed incrementally +Agent synthetic 250000-word analysis: 104ms (not Word extraction/UI timing). +PASS review suggestion storage is bounded with explicit truncation +PASS analysis results are paginated +PASS review page fits bounded IPC frame +PASS analysis result contract round-trips over framing +PASS document-specific analysis returns structured results and progress +PASS document-specific analysis returns structured results and progress +PASS document-specific analysis returns structured results and progress +PASS another document's snapshot cannot retrieve results +PASS analysis acknowledges bounded partial progress before cancellation +PASS cancelled analysis cannot complete +PASS analysis waiting for Word scheduler is cancellable +PASS pending analysis cancellation does not require extraction +PASS review rejects results from a different document +PASS late results cannot replace cancellation +PASS new analysis rejects obsolete revision and snapshot +PASS review completes only matching analysis +PASS selection replies cannot regress completed review progress +PASS late page zero cannot replace requested later page +PASS agent restart releases document analysis state +PASS native connection rejects unsafe site root +PASS native connection rejects unsafe site root +PASS native connection rejects unsafe site root +PASS native connection rejects unsafe site root +PASS native connection rejects unsafe site root +PASS incompatible agent handshake enters recovery instead of killing the client worker +PASS browser-approved sign-in loads only authorised book choices +PASS sign-in and local work never upload chapter prose +PASS AI chapter capture starts only after an explicit command +PASS bounded chapter capture reports progress without submitting early +PASS duplicate submit uses one HTTP call and preserves exact chapter mapping +PASS worst-case bounded AI page fits IPC framing +PASS AI result contract round-trips on actual frame codec +PASS unchanged chapter uses agent content fingerprint without another prose upload +PASS late cancellation cannot retire a replacement AI chapter +PASS another document cannot retrieve an AI result +PASS cancelled network chapter cannot reappear in review +PASS authorisation failure is isolated and actionable +PASS malformed AI fields fail safely instead of leaving a chapter spinning +PASS upload consent pins document snapshot and authentication context +PASS account/site change refuses old consent before any chapter HTTP upload +PASS sign-out forgets credential and book list +PASS local chapters supply explicit nonoverlapping AI extraction ranges +PASS duplicate live session identity cannot cross Word instances +PASS book association round-trips stable identity and server in one metadata value +PASS remembered book restores by authorised identifier after a title change +PASS saved association cannot cross server or bypass accessible-book permissions +PASS invalid identity and non-root saved site are rejected +PASS expired verification never presents cached sign-in/book as live +PASS IPC outage overrides previously successful server state +PASS book switch rejects late saved data +PASS late successful response cannot revive a cancelled client preview +PASS one parent chapter is retained across local and AI pages +PASS cross-page preview selection is bounded without silently dropping selected rows +PASS multiple document saved contexts remain isolated +PASS older workspace binding cannot fetch or overwrite a replacement +PASS cancelled import preview cannot reappear after delayed completion +PASS unfinished snapshot reports count unavailable rather than zero +PASS ordinary structural snapshots report a count without explicit analysis +PASS selection reuses completed count without another extraction +PASS new structural snapshot refreshes saved scene at stationary cursor without a selection event +PASS document revision invalidates completed snapshot word count +PASS server loss clears a previously verified online indicator +PASS explicit connection check detects recovery +PASS authentication expiry rotates scope and removes verified authentication +PASS expired credentials cannot display an old authenticated workspace +PASS Open Companion activates existing agent without another UI process +PASS tray detection command addresses exact document session and follows cancellation +PASS tray chapter list uses Heading 1 not paragraph-name heuristics and remains document-isolated +PASS tray preserves original leading front-matter exclusions before Heading 1 chapters +PASS tray book association is explicit and isolated +PASS tray refuses unauthorised books before Word metadata command +PASS stationary scene does not repeatedly post presence between heartbeats +PASS changed scene posts lightweight presence before the periodic heartbeat +PASS explicit tray selection starts chapter-only extraction queue +PASS multiple document AI batches serialize against existing per-author provider limits +PASS tray cancellation stops queued chapters without affecting another document +PASS late disconnect cannot remove a replacement tray lease +PASS pipe disconnect removes exact Word instance sessions and pending control work +Native foundation: 206 checks passed. Linux named-pipe API uses Unix domain sockets; Windows ACL/COM/Word responsiveness NOT verified. diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/powershell.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/powershell.txt new file mode 100644 index 00000000..eaf5a2ac --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/powershell.txt @@ -0,0 +1,8 @@ +PASS parse Build-Developer.ps1 +PASS parse DeveloperPackage.ps1 +PASS parse Generate-Fixtures.ps1 +PASS parse Install-WordCompanion.ps1 +PASS parse Measure-Processes.ps1 +PASS parse Test-DeveloperPackage.ps1 +PASS parse Update-WordCompanion.ps1 +PASS portable package validation, tamper refusal and non-Windows fail-closed guards. Fixture signatures are placeholders; no Office trust/Windows installation validation claimed. diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/public-smoke.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/public-smoke.txt new file mode 100644 index 00000000..5b528e17 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/public-smoke.txt @@ -0,0 +1,6 @@ +GET http://127.0.0.1:5050/: 200 expected 200 +GET https://dev.plotdirector.com/: 200 expected 200 +GET https://dev.plotdirector.com/api/native-companion/connection: 401 expected 401 +POST https://dev.plotdirector.com/api/native-companion/instances/11111111-1111-1111-1111-111111111111/documents/22222222-2222-2222-2222-222222222222/presence: 401 expected 401 +GET https://dev.plotdirector.com/js/native-companion-workspace.js: 200 expected 200 +GET https://dev.plotdirector.com/js/native-companion-status.js: 200 expected 200 diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/server-publish.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/server-publish.txt new file mode 100644 index 00000000..54f46938 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/server-publish.txt @@ -0,0 +1,5 @@ + Determining projects to restore... + All projects are up-to-date for restore. + PlotDirector.Companion.Protocol -> /srv/repos/PlotDirector/PlotDirector.NativeCompanion/Protocol/bin/Release/netstandard2.0/PlotDirector.Companion.Protocol.dll + PlotLine -> /srv/repos/PlotDirector/PlotLine/bin/Release/net10.0/PlotLine.dll + PlotLine -> /srv/repos/plotdirector-native-tray-artifacts/publish-fb74786-20261105213622/ diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/server.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/server.txt new file mode 100644 index 00000000..0b7a7002 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/server.txt @@ -0,0 +1 @@ +PASS native tray presence, expiry, scope and persistent PWA review decisions diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/service-warnings.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/service-warnings.txt new file mode 100644 index 00000000..6ba17d74 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/service-warnings.txt @@ -0,0 +1 @@ +-- No entries -- diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/vsto-syntax.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/vsto-syntax.txt new file mode 100644 index 00000000..f6c19d6e --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/vsto-syntax.txt @@ -0,0 +1,6 @@ +Syntax only PASS ThisAddIn.cs +Syntax only PASS AgentProcess.cs +Syntax only PASS WordAdapter.cs +Syntax only PASS NativeRibbon.cs +Syntax only PASS ThisAddIn.Designer.cs +Syntax only PASS AssemblyInfo.cs diff --git a/Docs/WordCompanion/Evidence/2026-11-05-tray/windows-target-build.txt b/Docs/WordCompanion/Evidence/2026-11-05-tray/windows-target-build.txt new file mode 100644 index 00000000..14157a30 --- /dev/null +++ b/Docs/WordCompanion/Evidence/2026-11-05-tray/windows-target-build.txt @@ -0,0 +1,8 @@ + PlotDirector.Companion.Protocol -> /srv/repos/PlotDirector/PlotDirector.NativeCompanion/Protocol/bin/Debug/netstandard2.0/PlotDirector.Companion.Protocol.dll + PlotDirector.Companion.Agent -> /srv/repos/PlotDirector/PlotDirector.NativeCompanion/Agent/bin/Debug/net10.0-windows/PlotDirector.Companion.Agent.dll + +Build succeeded. + 0 Warning(s) + 0 Error(s) + +Time Elapsed 00:00:04.16