diff --git a/Docs/Deployment/CharacterNamesAi-20261126.md b/Docs/Deployment/CharacterNamesAi-20261126.md new file mode 100644 index 00000000..0d751f33 --- /dev/null +++ b/Docs/Deployment/CharacterNamesAi-20261126.md @@ -0,0 +1,122 @@ +# Character Types, Names and discretionary AI — Development delivery + +Target: **Development only**. Production was not accessed or deployed. The implementation follows the requested phase order, retaining canonical characters, full biographies, variable card dimensions and the full-width Characters workspace. + +## Implementation + +1. **Character Type and species** — canonical codes `person`, `animal`, `supernatural`, `artificial`, `other`, `unclassified`. Existing rows receive Unclassified, without inference or AI. Optional, unrestricted species text remains recorded when Type changes. Editor/Details and the existing shared definitions, filtering/counts, icons, both drag directions, bulk assignment, context menu, version-guarded heterogeneous Undo and live invalidations share the canonical assignment mechanism. [Attribute standard](../Codex/CharacterAttributes.md). +2. **Names workspace** — page-scoped full width with compact results and sticky selected details; original catalogue metadata, filters, ordering and pagination remain. Ordinary usage is an exact normalised recorded primary-name/alias association across the series, including all character types and multiple associations. Textual occurrences load only on request. Details include portraits/initials, Type/species/importance, canonical View/Edit and Copy. State survives navigation. [Workspace implementation](../Codex/NamesWorkspace.md). +3. **Context Names** — existing Names tab reuses the main components/services. Each pane/window retains its own state, including split layouts and narrow Back to Results. Focus movement does not reset the reference tool. Existing notifications refresh associations without another SignalR connection or Held-position changes. +4. **Central discretionary AI** — separate server-side entitlement and allowance checks; durable atomic monthly reservations, idempotent delivery, execution leases, retry/request/token/duration bounds, expiry and failed-result refunds. The provider ledger preserves available actual token/cache telemetry; unavailable monetary costs remain unknown. Admin AI controls operation/tier policies, expiring account overrides and usage inspection through existing audit/authentication. Account subscription shows remaining credits; deliberate execution uses shared cost confirmation. Biography regeneration and the reachable intention-assessment endpoint use the same gate. [Architecture, operation inventory and policies](../Codex/DiscretionaryAi.md). +5. **Explicit name verification** — local whole-word/phrase candidate search over saved series content, bounded excerpts/batches, deduplication with original navigation references, signed cost/scope confirmation, qualified likely/ordinary/ambiguous assessments, completeness/date/scope, durable results and conservative revision invalidation. Zero matches require entitlement but make no provider request or credit reservation. Cached results remain readable after downgrade. Interrupted results retain useful findings and offer an explicit bounded, freshly confirmed retry. Verification never changes characters, aliases or manuscript text. [Limits, caching and evidence](../Codex/NameVerification.md). + +## Existing AI inventory + +| Class | Operations | Treatment | +| --- | --- | --- | +| Initial import | Text import, scene/chapter/profile analysis, import sex hints, initial enrichment/synthesis and failed-import recovery | Existing import entitlement and queue remain; no discretionary credits | +| Essential automatic / ambiguous | Structural Word reconciliation | Preserved as existing essential automation; product classification remains an explicit future decision | +| Discretionary author initiated | Biography regeneration; reachable explicit intention assessment; selected-name verification | Central entitlement, reservation and execution budgets | +| Administration | Existing diagnostics and shared illustration-library image processing | Existing AdminOnly access; not an author AI entitlement | + +No retired Intent workspace was restored. Manual editing, ordinary Names search, Context and stored generated data remain available according to existing non-AI permissions. + +## Migrations and data safety + +Ten forward-only migrations, **324–333**, cover Character Type/species, recorded-name lookup, central policies/ledger, biography and intent enforcement, saved manuscript candidates, verification results, account-deletion integration Development-only test defaults and catalogue plan stability. Previously live migrations are unchanged. Dapper/stored procedures are used; no Entity Framework or competing character/notification stores. + +Two fresh restores of a verified Development backup are qualified through the source-bound manifest database worker. Each upgrade must preserve all original business-column fingerprints and pass integrity checks before activation. Final results and the activation receipt are in the evidence directory. Existing manuscript characters and commercial subscription records are not test fixtures. + +## Verification and performance + +The clean source solution build and executable regression harness passed, with **883 PASS lines** (these are harness assertions/messages, not a conventional test-runner case count). Focused real-database tests exercise authorisation/isolation, field preservation, concurrency, bulk/Undo, no-ops, 20 concurrent reservations against five credits, duplicate delivery, expiry, refunds, renewal, overrides, cache/revision handling and account cleanup. Provider tests use mocked HTTP with the real provider client and ledger; no external AI spending is needed. + +Normal Chromium and actual installed Chromium PWA acceptance cover 10/100/500-character casts, both drag directions, Type/bulk/Undo, context menus, sticky/collapsed sidebar, complete biographies, wide/narrow layouts, shared Names search/details, independent Context panes, Hold/focus stability, confirmation/denial, cache and interrupted recovery. All seven themes are rendered. Width checks include 1280, 1920, 2560 and 3840 pixels plus laptop/tablet/touch widths. Representative screenshots are linked below; compiled fixtures use synthetic data and mocked verification findings. + +Latest warm median isolated-fixture measurements after migration 333 (500 characters, 1,000 scene associations, 5,009 saved paragraphs): + +| Operation | Previous ms | New ms | +| --- | ---: | ---: | +| Initial catalogue results | 2,301.71 | 286.33 | +| Prefix catalogue search | 180.30 | 91.78 | +| Selected metadata | — | 0.92 | +| Character associations | — | 0.73 | +| Local candidate search | — | 805.60 | +| Saved verification retrieval | — | 5.56 | + +These are qualification measurements, not production latency promises. The catalogue avoids per-result occurrence retrieval and per-character queries; AI accounting does not run on ordinary searches. Actual-model semantic quality is not established by mocked-provider acceptance. + +## Source commits + +| Phase | Commit | +| --- | --- | +| Character Type/species | `0c8a0cfb` | +| Names workspace | `065e70c2` | +| Context reuse | `742b99c2` | +| Central AI infrastructure | `56c24950` | +| Bounded verification | `7ddfe907` | +| Initial integration/defaults | `096b2c78a5687ffaba3dfe825b89c6fc6c251e7b` | +| Forward-only search plan correction | `481b3fcd` | +| Same-series Context reference state | `f04d7eea` | +| Editor concurrency precision | `d91dd0dd` | +| Active Draft Desk precision fixture; final application source | `ee417f4680a89719756dbbbfcb75c37c1429f64f` | + +Branch: `codex/word-companion-native-phase1-20261104`, established origin. The application source push was verified against `git ls-remote`. Final delivery evidence is committed separately. A browser test now waits for the native dialog's asynchronous close event before asserting removal; application behaviour is unchanged. + +## Configurable commercial decisions + +Development-only provisional settings enable the three defined operations and allocate **100 monthly credits** to Writing Room, Story Forge and Author Studio. Draft Desk is denied. Biography costs **10** credits; Names verification and intention assessment cost **1** each. Migration 332 seeds only fresh, unused Development/qualification policies and preserves configured/admin-modified installations. Existing subscription prices and import rules are unchanged. + +The product owner still needs to determine: eligible higher tiers; monthly credits per tier; operation costs; maximum scope/requests/tokens/output/duration; enablement; and any future change to the explicit UTC calendar-month renewal convention. These settings are administered without deployment. No credit purchases, rollover or final commercial pricing were introduced. + +## Final smoke correction + +Authenticated Development acceptance caught an intermittent Names catalogue timeout after the initial activation. Migration 333 keeps the final statement's plan specific to the current prefix/default/locale/usage parameters. No historical migration was edited. New real-database regression alternates those filters with a two-character cast, alongside the existing 500-character test. The focused run passed all seven variants within the ten-second guard; its warm medians were 286 ms initial results and 92 ms prefix search, compared with 2,302 ms and 180 ms for historical SQL. Final fresh-restores qualify this additive correction separately from the original nine-migration upgrade. + +Context Names state is keyed by series and pane, preserving the reference search when switching books within a series. Normal Chromium and installed-PWA tests explicitly remount the pane under another book and verify the retained search/selection. + + +Authenticated manual-edit acceptance also exposed a Dapper parameter rounding issue in the newly added editor version guard. The repository now sends the version explicitly as `DbType.DateTime2`, preserving the column's seven fractional digits. The dedicated real-repository fixture runs with an active Draft Desk entitlement and verifies successful ordinary editing, rejection of stale versions and preservation of a newer concurrent biography. The normal solution build/full harness passed again. This final correction changes no SQL; the signed code-only release reuses the qualified schema and immutable ledger. + +## Final Development activation and authenticated acceptance + +Final application commit: **`ee417f4680a89719756dbbbfcb75c37c1429f64f`**. Release: `development-character-names-ai-ee417f4680a8-20261126T170230`. Activation receipt: `20261126T170421Z-3c4780c77369`. The final code-only activation executed zero migrations after verifying the complete immutable ledger and schema `c1c781dc2c6983eab826038bf1068ffd4894a02cf8a6edc6e6560d5523957fdb`. + +The fixed Development helper verified a fresh backup, checked idle processing, activated atomically and passed application/database health checks. Running DLL and public Names/Context/AI static-asset hashes match the signed manifest. The health endpoint identifies the final commit, Development and `PlotDirector_Development`. The established remote branch was pushed and independently checked with `git ls-remote`. + +Authenticated normal Chromium and actual installed Chromium PWA checks passed against disposable author/project/book/character fixtures. They verify both Type drag directions, bulk/heterogeneous Undo, right-click menus, widths 1280/1920/2560/3840, collapse/space recovery, full biographies, animal primary/alias associations, Copy, zero-match/no-credit verification, main/Context wide/narrow presentation, allowance display and server-side denial after a fixture-only downgrade. Previously saved verification remained readable after downgrade. + +Final browser **and** installed-PWA checks additionally passed canonical View/Edit navigation, a successful manual editor save on Draft Desk, retained species and full biography, Names state restoration after character navigation, and actual cross-window association refresh after another window changed/restored species. The existing presence connection was Connected; no new Names-specific connection was created. + +All disposable authors, projects, books, characters and verification results were removed through the normal account workflow, with scoped removal of only fixture override/audit/onboarding rows omitted by the legacy deletion procedure. Independent counts confirm zero remaining fixture records. Test provider requests and credit reservations were both **zero**. Private credential/clone-connection files and all task qualification clones were removed; verified backups and sanitised evidence are retained. Unrelated investigation documents were preserved. + +The original nine-migration upgrade passed two fresh restores (203 original tables, 261,691 original rows); migration 333 passed two further fresh restores (209 tables, 261,698 rows). Every run preserved original business-column fingerprints and passed integrity checks with zero violations. The final timestamp correction changes application parameter typing only and reuses that SQL qualification. + +## Representative screenshots and evidence + +| Capture | Evidence | +| --- | --- | +| Character Type, installed-PWA context menu; original variable cards/biographies | [PWA Type menu](Evidence/CharacterNamesAi-20261126/character-type-pwa-menu.png) | +| Full-width Names with George/Cat primary and Hamish/Dog alias, 2560 px | [Wide PWA Names](Evidence/CharacterNamesAi-20261126/names-pwa-2560.png) | +| Names after a real cross-window update, final application | [Live Names](Evidence/CharacterNamesAi-20261126/names-pwa-live-1920.png) | +| Theme example | [Modern dark](Evidence/CharacterNamesAi-20261126/names-pwa-modern-dark.png) | +| Context Names, wide and narrow | [Wide](Evidence/CharacterNamesAi-20261126/context-pwa-wide.png), [narrow](Evidence/CharacterNamesAi-20261126/context-pwa-narrow.png) | +| Lowest-tier restriction | [AI restriction](Evidence/CharacterNamesAi-20261126/ai-entitlement-pwa.png) | +| Higher-tier allowance before fixture downgrade | [Allowance](Evidence/CharacterNamesAi-20261126/ai-allowance-pwa.png) | +| Real zero-match verification, no AI/credits | [Zero-match result](Evidence/CharacterNamesAi-20261126/verification-zero-pwa.png) | +| Completed contextual findings, compiled Razor with explicitly mocked provider results | [Synthetic completed verification](Evidence/CharacterNamesAi-20261126/verification-completed-mocked-pwa.png) | +| Administration, compiled synthetic fixture | [AI administration](Evidence/CharacterNamesAi-20261126/admin-ai-policy.png) | +| Character Details after final successful editor save | [Recorded Type/species](Evidence/CharacterNamesAi-20261126/character-details-pwa.png) | + +[Final activation receipt](Evidence/CharacterNamesAi-20261126/activation-final.json), [running identity/checksums](Evidence/CharacterNamesAi-20261126/running-verification.json), [original upgrade qualification](Evidence/CharacterNamesAi-20261126/database-qualification-initial.json), [query correction qualification](Evidence/CharacterNamesAi-20261126/database-qualification-query.json), [authenticated PWA editor/live-update checks](Evidence/CharacterNamesAi-20261126/authenticated-navigation-pwa.json), [fixture cleanup](Evidence/CharacterNamesAi-20261126/fixture-cleanup.json). + +## Limits and remaining decisions + +- Routine provider tests are mocked; actual-model semantic quality requires author assessment. No chargeable provider request was made for acceptance. +- Verification covers saved snapshot/scene-source content, with conservative freshness checks and explicit incomplete/lower-bound reporting for missing sources or configured limits. It never claims unbounded comprehensive verification. +- Structural Word reconciliation remains classified provisionally as essential automatic processing, outside discretionary credits; its entitlement classification remains a product decision. Existing import rules are unchanged. +- Existing legacy account-deletion omissions for subscription overrides/audit/onboarding are outside this change; only isolated fixture rows were cleaned operationally. New AI records participate in canonical deletion. +- Installed-PWA acceptance used actual Chromium on Linux, with desktop/laptop/tablet-width checks. Empty-book Context captures may show the existing unavailable/shared-focus notice; the Names reference tool and live association updates remain usable independently. +- The commercial configuration decisions listed above remain open. Development test allowances/costs are not final commercial pricing. + +Production was not accessed or deployed. diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/activation-final.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/activation-final.json new file mode 100644 index 00000000..d5e327d9 --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/activation-final.json @@ -0,0 +1 @@ +{"availability":{"confirmed_inactive_to_health_ready_seconds":6.918666732992278,"definition":"Monotonic intervals include stop/start commands; observed public outage measured separately on Atlas.","service_stop_to_start_seconds":3.616946335998364,"stop_request_to_health_ready_seconds":7.084157192992279,"stop_request_to_start_command_complete_seconds":3.782440162001876},"checks":{"activation":true,"application":{"database":"PlotDirector_Development","environment":"Development","healthy":true,"sourceCommit":"ee417f4680a89719756dbbbfcb75c37c1429f64f","version":"1.0.0"},"binary_identity":true,"database":{"complete_history":true,"healthy":true,"history":{"baselined":317,"executed":15,"expected":332,"latest_successful_release":{"activated_utc":"2026-11-26T16:50:36.5743171Z","activation_kind":"Deploy","application_version":"1.0.0","deployment_identifier":"20261126T165010Z-e8fedca941d9","manifest_sha256":"565f421f5b4199f20b2fcaa5f8d3c820f4d03fb7ab6623d556ccbf77fbbe4794","package_sha256":"1d1d04d7c8c67e81f55441c47bceb02511f275f0de5dcbafb50ed1e574193293","recorded":true,"release_identifier":"development-character-names-ai-f04d7eea6ed5-20261126T164945","source_commit":"f04d7eea6ed5a0bca3b30a4325d5cfcd7ac4ae88"},"recorded":332,"successful_release_count":9},"history_verification_seconds":0.1399256},"http_login":true,"http_root":true},"completed_utc":"2026-11-26T17:04:51.880+00:00","database_backup":{"options":["COPY_ONLY","CHECKSUM","VERIFYONLY"],"path":"/sql/mssql/backup/PlotDirector_Development-predeploy-20261126T170421Z-3c4780c77369.bak","verified":true},"deployment_id":"20261126T170421Z-3c4780c77369","failures":[],"format":1,"migration_history":{"complete":true,"database_bytes":2097152000,"history":{"baselined":317,"executed":15,"expected":332,"latest_successful_release":{"activated_utc":"2026-11-26T16:50:36.5743171Z","activation_kind":"Deploy","application_version":"1.0.0","deployment_identifier":"20261126T165010Z-e8fedca941d9","manifest_sha256":"565f421f5b4199f20b2fcaa5f8d3c820f4d03fb7ab6623d556ccbf77fbbe4794","package_sha256":"1d1d04d7c8c67e81f55441c47bceb02511f275f0de5dcbafb50ed1e574193293","recorded":true,"release_identifier":"development-character-names-ai-f04d7eea6ed5-20261126T164945","source_commit":"f04d7eea6ed5a0bca3b30a4325d5cfcd7ac4ae88"},"recorded":332,"successful_release_count":9},"history_verification_seconds":0.2556359,"schema":"c1c781dc2c6983eab826038bf1068ffd4894a02cf8a6edc6e6560d5523957fdb"},"migrations":{"baselined":0,"committed":[],"committed_list_truncated":false,"executed":0,"schema":"c1c781dc2c6983eab826038bf1068ffd4894a02cf8a6edc6e6560d5523957fdb"},"operation":"activate","origin":"web1","phases":[{"completed_utc":"2026-11-26T17:04:22.778+00:00","exclusive_seconds":1.261901,"name":"package_validation","outcome":"passed","parent":null,"seconds":1.261901,"started_utc":"2026-11-26T17:04:21.516+00:00"},{"completed_utc":"2026-11-26T17:04:28.725+00:00","exclusive_seconds":5.947187,"name":"package_validation","outcome":"passed","parent":null,"seconds":5.947187,"started_utc":"2026-11-26T17:04:22.778+00:00"},{"completed_utc":"2026-11-26T17:04:30.614+00:00","exclusive_seconds":0.691445,"name":"database_state_verification","outcome":"passed","parent":null,"seconds":0.947081,"started_utc":"2026-11-26T17:04:29.667+00:00"},{"clock":"SQL worker Stopwatch; measured duration, UTC endpoints unavailable","completed_utc":null,"exclusive_seconds":0.255636,"name":"migration_history_verification","outcome":"passed","parent":"database_state_verification","seconds":0.255636,"started_utc":null},{"completed_utc":"2026-11-26T17:04:44.454+00:00","exclusive_seconds":13.817148,"name":"database_backup","outcome":"passed","parent":null,"seconds":13.817148,"started_utc":"2026-11-26T17:04:30.637+00:00"},{"completed_utc":"2026-11-26T17:04:44.658+00:00","exclusive_seconds":0.165393,"name":"service_stop","outcome":"passed","parent":null,"seconds":0.165393,"started_utc":"2026-11-26T17:04:44.492+00:00"},{"completed_utc":"2026-11-26T17:04:45.920+00:00","exclusive_seconds":1.235095,"name":"migration_execution","outcome":"passed","parent":null,"seconds":1.235095,"started_utc":"2026-11-26T17:04:44.685+00:00"},{"completed_utc":"2026-11-26T17:04:48.241+00:00","exclusive_seconds":2.320011,"name":"release_installation","outcome":"passed","parent":null,"seconds":2.320011,"started_utc":"2026-11-26T17:04:45.921+00:00"},{"completed_utc":"2026-11-26T17:04:48.252+00:00","exclusive_seconds":0.001835,"name":"release_activation","outcome":"passed","parent":null,"seconds":0.001835,"started_utc":"2026-11-26T17:04:48.250+00:00"},{"completed_utc":"2026-11-26T17:04:48.275+00:00","exclusive_seconds":0.022889,"name":"service_start","outcome":"passed","parent":null,"seconds":0.022889,"started_utc":"2026-11-26T17:04:48.252+00:00"},{"completed_utc":"2026-11-26T17:04:51.576+00:00","exclusive_seconds":0.514132,"name":"postactivation_verification","outcome":"passed","parent":"application_health_readiness","seconds":0.654058,"started_utc":"2026-11-26T17:04:50.922+00:00"},{"clock":"SQL worker Stopwatch; measured duration, UTC endpoints unavailable","completed_utc":null,"exclusive_seconds":0.139926,"name":"migration_history_verification","outcome":"passed","parent":"postactivation_verification","seconds":0.139926,"started_utc":null},{"completed_utc":"2026-11-26T17:04:51.576+00:00","exclusive_seconds":2.647602,"name":"application_health_readiness","outcome":"passed","parent":null,"seconds":3.30166,"started_utc":"2026-11-26T17:04:48.275+00:00"},{"completed_utc":"2026-11-26T17:04:51.650+00:00","exclusive_seconds":0.064365,"name":"postactivation_verification","outcome":"passed","parent":null,"seconds":0.064365,"started_utc":"2026-11-26T17:04:51.586+00:00"},{"completed_utc":"2026-11-26T17:04:51.880+00:00","exclusive_seconds":0.016759,"name":"receipt_generation","outcome":"passed","parent":null,"seconds":0.016759,"started_utc":"2026-11-26T17:04:51.863+00:00"}],"previous_release":{"deployment":"20261126T165010Z-e8fedca941d9","package_sha256":"1d1d04d7c8c67e81f55441c47bceb02511f275f0de5dcbafb50ed1e574193293","release":"development-character-names-ai-f04d7eea6ed5-20261126T164945","source_commit":"f04d7eea6ed5a0bca3b30a4325d5cfcd7ac4ae88","version":"1.0.0"},"protected_evidence_reference":"/opt/plotdirector-dev/deployment-evidence/20261126T170421Z-3c4780c77369.jsonl","recovery":"No automatic database restore or application rollback. Review protected attempt evidence on failure.","release":{"application_sha256":"644e5922705dfbc99eb1660aa068af4acae55b6abb4b7bf3fcc9bfd258756af8","dll_sha256":"146c762e901f0c66f506897d0336a1c58deea0151498359026746f1b71ccfee1","id":"development-character-names-ai-ee417f4680a8-20261126T170230","manifest_sha256":"df17aee3cd3b15b6d98fa86f10837fb2734a8f809f301607cd44b3667d30f8f6","package_sha256":"2f6deb6671afb947eb180c849eb0f0577579b392916da98762cad831dfe834a8","source_commit":"ee417f4680a89719756dbbbfcb75c37c1429f64f","version":"1.0.0"},"release_history":{"activated_utc":"2026-11-26T17:04:51.6045217Z","activation_kind":"Deploy","application_version":"1.0.0","deployment_identifier":"20261126T170421Z-3c4780c77369","manifest_sha256":"df17aee3cd3b15b6d98fa86f10837fb2734a8f809f301607cd44b3667d30f8f6","package_sha256":"2f6deb6671afb947eb180c849eb0f0577579b392916da98762cad831dfe834a8","recorded":true,"release_identifier":"development-character-names-ai-ee417f4680a8-20261126T170230","source_commit":"ee417f4680a89719756dbbbfcb75c37c1429f64f"},"started_utc":"2026-11-26T17:04:21.430+00:00","status":"activated","timing":{"clock":"monotonic; UTC timestamps for correlation only","measured_top_level_seconds":29.101324,"total_seconds":30.449664,"unattributed_seconds":1.34834},"transport":{"compression_ratio":1.0,"method":"none","original_bytes":555018240,"original_sha256":"2f6deb6671afb947eb180c849eb0f0577579b392916da98762cad831dfe834a8","transferred_bytes":555018240,"transferred_sha256":"2f6deb6671afb947eb180c849eb0f0577579b392916da98762cad831dfe834a8"},"unperformed_phases":["release_preparation","production_validation","remote_activation","receipt_retrieval","scope_verification","build","packaging_signing","compression","transfer","decompression","public_acceptance"],"warnings":["upload-metrics-unavailable; sender receipt may provide transfer measurements"]} diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/activation-initial.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/activation-initial.json new file mode 100644 index 00000000..2eed3531 --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/activation-initial.json @@ -0,0 +1 @@ +{"availability":{"confirmed_inactive_to_health_ready_seconds":8.876113378006266,"definition":"Monotonic intervals include stop/start commands; observed public outage measured separately on Atlas.","service_stop_to_start_seconds":5.309301150002284,"stop_request_to_health_ready_seconds":9.09611171099823,"stop_request_to_start_command_complete_seconds":5.529302729002666},"checks":{"activation":true,"application":{"database":"PlotDirector_Development","environment":"Development","healthy":true,"sourceCommit":"096b2c78a5687ffaba3dfe825b89c6fc6c251e7b","version":"1.0.0"},"binary_identity":true,"database":{"complete_history":true,"healthy":true,"history":{"baselined":317,"executed":14,"expected":331,"latest_successful_release":{"activated_utc":"2026-11-26T13:36:16.6001056Z","activation_kind":"Deploy","application_version":"1.0.0","deployment_identifier":"20261126T133550Z-d4f8798f044b","manifest_sha256":"8d70d8a007bbdb2ac5efcf683bbcb21a4008d779bd002a4d2419cc6f03de27eb","package_sha256":"e0c20dab1949c0cb27998950953f773e34984c77263f341e0695212acb3abf36","recorded":true,"release_identifier":"development-character-width-2de1b3d0ccd0-20261126T133507","source_commit":"2de1b3d0ccd0b58f59d4976fb23aad3da4c55ea7"},"recorded":331,"successful_release_count":7},"history_verification_seconds":0.131146},"http_login":true,"http_root":true},"completed_utc":"2026-11-26T16:29:01.809+00:00","database_backup":{"options":["COPY_ONLY","CHECKSUM","VERIFYONLY"],"path":"/sql/mssql/backup/PlotDirector_Development-predeploy-20261126T162826Z-b29e1e1fa737.bak","verified":true},"deployment_id":"20261126T162826Z-b29e1e1fa737","failures":[],"format":1,"migration_history":{"complete":false,"database_bytes":2097152000,"history":{"baselined":317,"executed":5,"expected":331,"latest_successful_release":{"activated_utc":"2026-11-26T13:36:16.6001056Z","activation_kind":"Deploy","application_version":"1.0.0","deployment_identifier":"20261126T133550Z-d4f8798f044b","manifest_sha256":"8d70d8a007bbdb2ac5efcf683bbcb21a4008d779bd002a4d2419cc6f03de27eb","package_sha256":"e0c20dab1949c0cb27998950953f773e34984c77263f341e0695212acb3abf36","recorded":true,"release_identifier":"development-character-width-2de1b3d0ccd0-20261126T133507","source_commit":"2de1b3d0ccd0b58f59d4976fb23aad3da4c55ea7"},"recorded":322,"successful_release_count":7},"history_verification_seconds":0.2956245,"schema":"e2c2475bd10b8139e1d91c6ea4da417acdad6f595b88cc350823ba939984f153"},"migrations":{"baselined":0,"committed":["324_CharacterTypes","325_NamesRecordedUsage","326_DiscretionaryAiAllowances","327_CharacterAiEnforcement","328_IntentAssessmentAiEnforcement","329_NameManuscriptCandidates","330_NameVerificationResults","331_AccountDeletionAiCleanup","332_DevelopmentAiPolicyDefaults"],"committed_list_truncated":false,"executed":9,"schema":"d805cc332004c2f33dba58ee251335d6008431a5c0e579466a0345282e17de2b"},"operation":"activate","origin":"web1","phases":[{"completed_utc":"2026-11-26T16:28:29.029+00:00","exclusive_seconds":2.836024,"name":"package_validation","outcome":"passed","parent":null,"seconds":2.836024,"started_utc":"2026-11-26T16:28:26.193+00:00"},{"completed_utc":"2026-11-26T16:28:35.322+00:00","exclusive_seconds":6.292726,"name":"package_validation","outcome":"passed","parent":null,"seconds":6.292726,"started_utc":"2026-11-26T16:28:29.029+00:00"},{"completed_utc":"2026-11-26T16:28:37.055+00:00","exclusive_seconds":0.72993,"name":"database_state_verification","outcome":"passed","parent":null,"seconds":1.025554,"started_utc":"2026-11-26T16:28:36.029+00:00"},{"clock":"SQL worker Stopwatch; measured duration, UTC endpoints unavailable","completed_utc":null,"exclusive_seconds":0.295625,"name":"migration_history_verification","outcome":"passed","parent":"database_state_verification","seconds":0.295625,"started_utc":null},{"completed_utc":"2026-11-26T16:28:52.438+00:00","exclusive_seconds":15.362612,"name":"database_backup","outcome":"passed","parent":null,"seconds":15.362612,"started_utc":"2026-11-26T16:28:37.076+00:00"},{"completed_utc":"2026-11-26T16:28:52.697+00:00","exclusive_seconds":0.219898,"name":"service_stop","outcome":"passed","parent":null,"seconds":0.219898,"started_utc":"2026-11-26T16:28:52.477+00:00"},{"completed_utc":"2026-11-26T16:28:54.843+00:00","exclusive_seconds":2.117811,"name":"migration_execution","outcome":"passed","parent":null,"seconds":2.117811,"started_utc":"2026-11-26T16:28:52.725+00:00"},{"completed_utc":"2026-11-26T16:28:57.901+00:00","exclusive_seconds":3.050105,"name":"release_installation","outcome":"passed","parent":null,"seconds":3.050105,"started_utc":"2026-11-26T16:28:54.851+00:00"},{"completed_utc":"2026-11-26T16:28:57.970+00:00","exclusive_seconds":0.006354,"name":"release_activation","outcome":"passed","parent":null,"seconds":0.006354,"started_utc":"2026-11-26T16:28:57.964+00:00"},{"completed_utc":"2026-11-26T16:28:58.006+00:00","exclusive_seconds":0.035726,"name":"service_start","outcome":"passed","parent":null,"seconds":0.035726,"started_utc":"2026-11-26T16:28:57.970+00:00"},{"completed_utc":"2026-11-26T16:29:01.573+00:00","exclusive_seconds":0.538095,"name":"postactivation_verification","outcome":"passed","parent":"application_health_readiness","seconds":0.669241,"started_utc":"2026-11-26T16:29:00.903+00:00"},{"clock":"SQL worker Stopwatch; measured duration, UTC endpoints unavailable","completed_utc":null,"exclusive_seconds":0.131146,"name":"migration_history_verification","outcome":"passed","parent":"postactivation_verification","seconds":0.131146,"started_utc":null},{"completed_utc":"2026-11-26T16:29:01.573+00:00","exclusive_seconds":2.897511,"name":"application_health_readiness","outcome":"passed","parent":null,"seconds":3.566753,"started_utc":"2026-11-26T16:28:58.006+00:00"},{"completed_utc":"2026-11-26T16:29:01.632+00:00","exclusive_seconds":0.050009,"name":"postactivation_verification","outcome":"passed","parent":null,"seconds":0.050009,"started_utc":"2026-11-26T16:29:01.582+00:00"},{"completed_utc":"2026-11-26T16:29:01.809+00:00","exclusive_seconds":0.0176,"name":"receipt_generation","outcome":"passed","parent":null,"seconds":0.0176,"started_utc":"2026-11-26T16:29:01.791+00:00"}],"previous_release":{"deployment":"20261126T133550Z-d4f8798f044b","package_sha256":"e0c20dab1949c0cb27998950953f773e34984c77263f341e0695212acb3abf36","release":"development-character-width-2de1b3d0ccd0-20261126T133507","source_commit":"2de1b3d0ccd0b58f59d4976fb23aad3da4c55ea7","version":"1.0.0"},"protected_evidence_reference":"/opt/plotdirector-dev/deployment-evidence/20261126T162826Z-b29e1e1fa737.jsonl","recovery":"No automatic database restore or application rollback. Review protected attempt evidence on failure.","release":{"application_sha256":"2a913cfef229ae89b00b9e8ca11406f9b15fc80ae5383cd861e12981dd809821","dll_sha256":"696abfc4e2c0f4330c8f6b06fbe07146c9be2aef0a92886ef7fe2df0f435a55e","id":"development-character-names-ai-096b2c78a568-20261126T162734","manifest_sha256":"3442d3b3dc231d51689f67847bbae2b75f7aa77b68d2cbb735655d980204ecb3","package_sha256":"95aa7b7e34c67804c0e5f45ffd3d93d153b08cba6dd08f19109ace33c3ce0d2a","source_commit":"096b2c78a5687ffaba3dfe825b89c6fc6c251e7b","version":"1.0.0"},"release_history":{"activated_utc":"2026-11-26T16:29:01.6038705Z","activation_kind":"Deploy","application_version":"1.0.0","deployment_identifier":"20261126T162826Z-b29e1e1fa737","manifest_sha256":"3442d3b3dc231d51689f67847bbae2b75f7aa77b68d2cbb735655d980204ecb3","package_sha256":"95aa7b7e34c67804c0e5f45ffd3d93d153b08cba6dd08f19109ace33c3ce0d2a","recorded":true,"release_identifier":"development-character-names-ai-096b2c78a568-20261126T162734","source_commit":"096b2c78a5687ffaba3dfe825b89c6fc6c251e7b"},"started_utc":"2026-11-26T16:28:26.112+00:00","status":"activated","timing":{"clock":"monotonic; UTC timestamps for correlation only","measured_top_level_seconds":34.581172,"total_seconds":35.69694,"unattributed_seconds":1.115768},"transport":{"compression_ratio":1.0,"method":"none","original_bytes":554926080,"original_sha256":"95aa7b7e34c67804c0e5f45ffd3d93d153b08cba6dd08f19109ace33c3ce0d2a","transferred_bytes":554926080,"transferred_sha256":"95aa7b7e34c67804c0e5f45ffd3d93d153b08cba6dd08f19109ace33c3ce0d2a"},"unperformed_phases":["release_preparation","production_validation","remote_activation","receipt_retrieval","scope_verification","build","packaging_signing","compression","transfer","decompression","public_acceptance"],"warnings":["upload-metrics-unavailable; sender receipt may provide transfer measurements"]} diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/activation-query.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/activation-query.json new file mode 100644 index 00000000..3c5df811 --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/activation-query.json @@ -0,0 +1 @@ +{"availability":{"confirmed_inactive_to_health_ready_seconds":7.682074566022493,"definition":"Monotonic intervals include stop/start commands; observed public outage measured separately on Atlas.","service_stop_to_start_seconds":4.264979999017669,"stop_request_to_health_ready_seconds":7.951745108992327,"stop_request_to_start_command_complete_seconds":4.534654098999454},"checks":{"activation":true,"application":{"database":"PlotDirector_Development","environment":"Development","healthy":true,"sourceCommit":"f04d7eea6ed5a0bca3b30a4325d5cfcd7ac4ae88","version":"1.0.0"},"binary_identity":true,"database":{"complete_history":true,"healthy":true,"history":{"baselined":317,"executed":15,"expected":332,"latest_successful_release":{"activated_utc":"2026-11-26T16:29:01.6038705Z","activation_kind":"Deploy","application_version":"1.0.0","deployment_identifier":"20261126T162826Z-b29e1e1fa737","manifest_sha256":"3442d3b3dc231d51689f67847bbae2b75f7aa77b68d2cbb735655d980204ecb3","package_sha256":"95aa7b7e34c67804c0e5f45ffd3d93d153b08cba6dd08f19109ace33c3ce0d2a","recorded":true,"release_identifier":"development-character-names-ai-096b2c78a568-20261126T162734","source_commit":"096b2c78a5687ffaba3dfe825b89c6fc6c251e7b"},"recorded":332,"successful_release_count":8},"history_verification_seconds":0.1574541},"http_login":true,"http_root":true},"completed_utc":"2026-11-26T16:50:36.733+00:00","database_backup":{"options":["COPY_ONLY","CHECKSUM","VERIFYONLY"],"path":"/sql/mssql/backup/PlotDirector_Development-predeploy-20261126T165010Z-e8fedca941d9.bak","verified":true},"deployment_id":"20261126T165010Z-e8fedca941d9","failures":[],"format":1,"migration_history":{"complete":false,"database_bytes":2097152000,"history":{"baselined":317,"executed":14,"expected":332,"latest_successful_release":{"activated_utc":"2026-11-26T16:29:01.6038705Z","activation_kind":"Deploy","application_version":"1.0.0","deployment_identifier":"20261126T162826Z-b29e1e1fa737","manifest_sha256":"3442d3b3dc231d51689f67847bbae2b75f7aa77b68d2cbb735655d980204ecb3","package_sha256":"95aa7b7e34c67804c0e5f45ffd3d93d153b08cba6dd08f19109ace33c3ce0d2a","recorded":true,"release_identifier":"development-character-names-ai-096b2c78a568-20261126T162734","source_commit":"096b2c78a5687ffaba3dfe825b89c6fc6c251e7b"},"recorded":331,"successful_release_count":8},"history_verification_seconds":0.293777,"schema":"d805cc332004c2f33dba58ee251335d6008431a5c0e579466a0345282e17de2b"},"migrations":{"baselined":0,"committed":["333_NameSearchPlanStability"],"committed_list_truncated":false,"executed":1,"schema":"c1c781dc2c6983eab826038bf1068ffd4894a02cf8a6edc6e6560d5523957fdb"},"operation":"activate","origin":"web1","phases":[{"completed_utc":"2026-11-26T16:50:12.491+00:00","exclusive_seconds":2.261368,"name":"package_validation","outcome":"passed","parent":null,"seconds":2.261368,"started_utc":"2026-11-26T16:50:10.229+00:00"},{"completed_utc":"2026-11-26T16:50:17.388+00:00","exclusive_seconds":4.897051,"name":"package_validation","outcome":"passed","parent":null,"seconds":4.897051,"started_utc":"2026-11-26T16:50:12.491+00:00"},{"completed_utc":"2026-11-26T16:50:19.058+00:00","exclusive_seconds":0.68072,"name":"database_state_verification","outcome":"passed","parent":null,"seconds":0.974497,"started_utc":"2026-11-26T16:50:18.083+00:00"},{"clock":"SQL worker Stopwatch; measured duration, UTC endpoints unavailable","completed_utc":null,"exclusive_seconds":0.293777,"name":"migration_history_verification","outcome":"passed","parent":"database_state_verification","seconds":0.293777,"started_utc":null},{"completed_utc":"2026-11-26T16:50:28.557+00:00","exclusive_seconds":9.483522,"name":"database_backup","outcome":"passed","parent":null,"seconds":9.483522,"started_utc":"2026-11-26T16:50:19.074+00:00"},{"completed_utc":"2026-11-26T16:50:28.864+00:00","exclusive_seconds":0.269594,"name":"service_stop","outcome":"passed","parent":null,"seconds":0.269594,"started_utc":"2026-11-26T16:50:28.594+00:00"},{"completed_utc":"2026-11-26T16:50:30.171+00:00","exclusive_seconds":1.281363,"name":"migration_execution","outcome":"passed","parent":null,"seconds":1.281363,"started_utc":"2026-11-26T16:50:28.889+00:00"},{"completed_utc":"2026-11-26T16:50:33.093+00:00","exclusive_seconds":2.911436,"name":"release_installation","outcome":"passed","parent":null,"seconds":2.911436,"started_utc":"2026-11-26T16:50:30.181+00:00"},{"completed_utc":"2026-11-26T16:50:33.104+00:00","exclusive_seconds":0.001648,"name":"release_activation","outcome":"passed","parent":null,"seconds":0.001648,"started_utc":"2026-11-26T16:50:33.103+00:00"},{"completed_utc":"2026-11-26T16:50:33.129+00:00","exclusive_seconds":0.024118,"name":"service_start","outcome":"passed","parent":null,"seconds":0.024118,"started_utc":"2026-11-26T16:50:33.104+00:00"},{"completed_utc":"2026-11-26T16:50:36.546+00:00","exclusive_seconds":0.557826,"name":"postactivation_verification","outcome":"passed","parent":"application_health_readiness","seconds":0.71528,"started_utc":"2026-11-26T16:50:35.830+00:00"},{"clock":"SQL worker Stopwatch; measured duration, UTC endpoints unavailable","completed_utc":null,"exclusive_seconds":0.157454,"name":"migration_history_verification","outcome":"passed","parent":"postactivation_verification","seconds":0.157454,"started_utc":null},{"completed_utc":"2026-11-26T16:50:36.546+00:00","exclusive_seconds":2.701768,"name":"application_health_readiness","outcome":"passed","parent":null,"seconds":3.417049,"started_utc":"2026-11-26T16:50:33.129+00:00"},{"completed_utc":"2026-11-26T16:50:36.602+00:00","exclusive_seconds":0.046607,"name":"postactivation_verification","outcome":"passed","parent":null,"seconds":0.046607,"started_utc":"2026-11-26T16:50:36.555+00:00"},{"completed_utc":"2026-11-26T16:50:36.733+00:00","exclusive_seconds":0.016915,"name":"receipt_generation","outcome":"passed","parent":null,"seconds":0.016915,"started_utc":"2026-11-26T16:50:36.716+00:00"}],"previous_release":{"deployment":"20261126T162826Z-b29e1e1fa737","package_sha256":"95aa7b7e34c67804c0e5f45ffd3d93d153b08cba6dd08f19109ace33c3ce0d2a","release":"development-character-names-ai-096b2c78a568-20261126T162734","source_commit":"096b2c78a5687ffaba3dfe825b89c6fc6c251e7b","version":"1.0.0"},"protected_evidence_reference":"/opt/plotdirector-dev/deployment-evidence/20261126T165010Z-e8fedca941d9.jsonl","recovery":"No automatic database restore or application rollback. Review protected attempt evidence on failure.","release":{"application_sha256":"d3d3a2b3fa19487cedfd7cb8f3ca75817bb18ed0785ee144dc23a1a596925373","dll_sha256":"8c2a35ffc2bd5315dbce86a61bbad5774535fb3947916f0fb5247de4bd3cf565","id":"development-character-names-ai-f04d7eea6ed5-20261126T164945","manifest_sha256":"565f421f5b4199f20b2fcaa5f8d3c820f4d03fb7ab6623d556ccbf77fbbe4794","package_sha256":"1d1d04d7c8c67e81f55441c47bceb02511f275f0de5dcbafb50ed1e574193293","source_commit":"f04d7eea6ed5a0bca3b30a4325d5cfcd7ac4ae88","version":"1.0.0"},"release_history":{"activated_utc":"2026-11-26T16:50:36.5743171Z","activation_kind":"Deploy","application_version":"1.0.0","deployment_identifier":"20261126T165010Z-e8fedca941d9","manifest_sha256":"565f421f5b4199f20b2fcaa5f8d3c820f4d03fb7ab6623d556ccbf77fbbe4794","package_sha256":"1d1d04d7c8c67e81f55441c47bceb02511f275f0de5dcbafb50ed1e574193293","recorded":true,"release_identifier":"development-character-names-ai-f04d7eea6ed5-20261126T164945","source_commit":"f04d7eea6ed5a0bca3b30a4325d5cfcd7ac4ae88"},"started_utc":"2026-11-26T16:50:10.154+00:00","status":"activated","timing":{"clock":"monotonic; UTC timestamps for correlation only","measured_top_level_seconds":25.585168,"total_seconds":26.579339,"unattributed_seconds":0.994171},"transport":{"compression_ratio":1.0,"method":"none","original_bytes":554946560,"original_sha256":"1d1d04d7c8c67e81f55441c47bceb02511f275f0de5dcbafb50ed1e574193293","transferred_bytes":554946560,"transferred_sha256":"1d1d04d7c8c67e81f55441c47bceb02511f275f0de5dcbafb50ed1e574193293"},"unperformed_phases":["release_preparation","production_validation","remote_activation","receipt_retrieval","scope_verification","build","packaging_signing","compression","transfer","decompression","public_acceptance"],"warnings":["upload-metrics-unavailable; sender receipt may provide transfer measurements"]} diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/admin-ai-policy.png b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/admin-ai-policy.png new file mode 100644 index 00000000..d4c6a11f Binary files /dev/null and b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/admin-ai-policy.png differ diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/ai-allowance-pwa.png b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/ai-allowance-pwa.png new file mode 100644 index 00000000..d808fbd2 Binary files /dev/null and b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/ai-allowance-pwa.png differ diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/ai-entitlement-pwa.png b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/ai-entitlement-pwa.png new file mode 100644 index 00000000..f43f8e7f Binary files /dev/null and b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/ai-entitlement-pwa.png differ diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/authenticated-main-smoke.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/authenticated-main-smoke.json new file mode 100644 index 00000000..a35fdcca --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/authenticated-main-smoke.json @@ -0,0 +1,60 @@ +{ + "status": "passed", + "results": [ + { + "mode": "browser", + "viewport": 1280, + "width": 919, + "columns": 3 + }, + { + "mode": "browser", + "viewport": 1920, + "width": 1559, + "columns": 6 + }, + { + "mode": "browser", + "viewport": 2560, + "width": 2199, + "columns": 9 + }, + { + "mode": "browser", + "viewport": 3840, + "width": 3479, + "columns": 14 + }, + { + "mode": "pwa", + "viewport": 1280, + "width": 919, + "columns": 3 + }, + { + "mode": "pwa", + "viewport": 1920, + "width": 1559, + "columns": 6 + }, + { + "mode": "pwa", + "viewport": 2560, + "width": 2199, + "columns": 9 + }, + { + "mode": "pwa", + "viewport": 3840, + "width": 3479, + "columns": 14 + } + ], + "fullBiographiesPreserved": true, + "typeDragBothDirectionsBulkUndoMenu": true, + "animalPrimaryAndAlias": true, + "zeroMatchVerificationWithoutAi": true, + "sharedContext": true, + "actualInstalledPwa": true, + "productionAccess": false +} \ No newline at end of file diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/authenticated-navigation-browser.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/authenticated-navigation-browser.json new file mode 100644 index 00000000..3255e021 --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/authenticated-navigation-browser.json @@ -0,0 +1,10 @@ +{ + "status": "passed", + "canonicalViewAndEdit": true, + "manualEditingAfterDowngrade": true, + "speciesAndBiographyPreserved": true, + "namesStateRestored": true, + "liveAssociationUpdateFromOtherWindow": true, + "presence": "Connected", + "actualInstalledPwa": false +} \ No newline at end of file diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/authenticated-navigation-pwa.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/authenticated-navigation-pwa.json new file mode 100644 index 00000000..1736b052 --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/authenticated-navigation-pwa.json @@ -0,0 +1,10 @@ +{ + "status": "passed", + "canonicalViewAndEdit": true, + "manualEditingAfterDowngrade": true, + "speciesAndBiographyPreserved": true, + "namesStateRestored": true, + "liveAssociationUpdateFromOtherWindow": true, + "presence": "Connected", + "actualInstalledPwa": true +} \ No newline at end of file diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/character-details-pwa.png b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/character-details-pwa.png new file mode 100644 index 00000000..d4a7d685 Binary files /dev/null and b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/character-details-pwa.png differ diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/character-type-pwa-menu.png b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/character-type-pwa-menu.png new file mode 100644 index 00000000..7b80307c Binary files /dev/null and b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/character-type-pwa-menu.png differ diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/context-pwa-narrow.png b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/context-pwa-narrow.png new file mode 100644 index 00000000..edc40384 Binary files /dev/null and b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/context-pwa-narrow.png differ diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/context-pwa-wide.png b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/context-pwa-wide.png new file mode 100644 index 00000000..f1288063 Binary files /dev/null and b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/context-pwa-wide.png differ diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/database-qualification-initial.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/database-qualification-initial.json new file mode 100644 index 00000000..e3c96062 --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/database-qualification-initial.json @@ -0,0 +1 @@ +{"runs":[{"all_original_fingerprints_equal":true,"database":"PlotDirector_Qualification_CharacterNamesAI_20261126T162258","executed":9,"integrity":{"constraint_violations":0,"integrity":true},"original_rows":261691,"original_tables":203,"resulting_schema_sha256":"d805cc332004c2f33dba58ee251335d6008431a5c0e579466a0345282e17de2b","starting_schema_sha256":"e2c2475bd10b8139e1d91c6ea4da417acdad6f595b88cc350823ba939984f153"},{"all_original_fingerprints_equal":true,"database":"PlotDirector_Qualification_CharacterNamesAI_20261126T162508","executed":9,"integrity":{"constraint_violations":0,"integrity":true},"original_rows":261691,"original_tables":203,"resulting_schema_sha256":"d805cc332004c2f33dba58ee251335d6008431a5c0e579466a0345282e17de2b","starting_schema_sha256":"e2c2475bd10b8139e1d91c6ea4da417acdad6f595b88cc350823ba939984f153"}],"source_commit":"096b2c78a5687ffaba3dfe825b89c6fc6c251e7b","status":"passed"} diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/database-qualification-query.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/database-qualification-query.json new file mode 100644 index 00000000..cb1024a8 --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/database-qualification-query.json @@ -0,0 +1 @@ +{"runs":[{"all_original_fingerprints_equal":true,"database":"PlotDirector_Qualification_CharacterNamesAI_20261126T164717","executed":1,"integrity":{"constraint_violations":0,"integrity":true},"original_rows":261698,"original_tables":209,"resulting_schema_sha256":"c1c781dc2c6983eab826038bf1068ffd4894a02cf8a6edc6e6560d5523957fdb","starting_schema_sha256":"d805cc332004c2f33dba58ee251335d6008431a5c0e579466a0345282e17de2b"},{"all_original_fingerprints_equal":true,"database":"PlotDirector_Qualification_CharacterNamesAI_20261126T164825","executed":1,"integrity":{"constraint_violations":0,"integrity":true},"original_rows":261698,"original_tables":209,"resulting_schema_sha256":"c1c781dc2c6983eab826038bf1068ffd4894a02cf8a6edc6e6560d5523957fdb","starting_schema_sha256":"d805cc332004c2f33dba58ee251335d6008431a5c0e579466a0345282e17de2b"}],"source_commit":"f04d7eea6ed5a0bca3b30a4325d5cfcd7ac4ae88","status":"passed"} diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/database-qualification.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/database-qualification.json new file mode 100644 index 00000000..e3c96062 --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/database-qualification.json @@ -0,0 +1 @@ +{"runs":[{"all_original_fingerprints_equal":true,"database":"PlotDirector_Qualification_CharacterNamesAI_20261126T162258","executed":9,"integrity":{"constraint_violations":0,"integrity":true},"original_rows":261691,"original_tables":203,"resulting_schema_sha256":"d805cc332004c2f33dba58ee251335d6008431a5c0e579466a0345282e17de2b","starting_schema_sha256":"e2c2475bd10b8139e1d91c6ea4da417acdad6f595b88cc350823ba939984f153"},{"all_original_fingerprints_equal":true,"database":"PlotDirector_Qualification_CharacterNamesAI_20261126T162508","executed":9,"integrity":{"constraint_violations":0,"integrity":true},"original_rows":261691,"original_tables":203,"resulting_schema_sha256":"d805cc332004c2f33dba58ee251335d6008431a5c0e579466a0345282e17de2b","starting_schema_sha256":"e2c2475bd10b8139e1d91c6ea4da417acdad6f595b88cc350823ba939984f153"}],"source_commit":"096b2c78a5687ffaba3dfe825b89c6fc6c251e7b","status":"passed"} diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/fixture-cleanup.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/fixture-cleanup.json new file mode 100644 index 00000000..5de29a16 --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/fixture-cleanup.json @@ -0,0 +1,8 @@ +{ + "status": "passed", + "fixtureProjectBookCharactersResultsAndAuthorRemaining": 0, + "testProviderRequests": 0, + "testCreditReservations": 0, + "privateCredentialFileDeleted": true, + "productionAccess": false +} \ No newline at end of file diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/names-browser-2560.png b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/names-browser-2560.png new file mode 100644 index 00000000..0192de55 Binary files /dev/null and b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/names-browser-2560.png differ diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/names-pwa-2560.png b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/names-pwa-2560.png new file mode 100644 index 00000000..95163f7f Binary files /dev/null and b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/names-pwa-2560.png differ diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/names-pwa-live-1920.png b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/names-pwa-live-1920.png new file mode 100644 index 00000000..cc051a0b Binary files /dev/null and b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/names-pwa-live-1920.png differ diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/names-pwa-modern-dark.png b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/names-pwa-modern-dark.png new file mode 100644 index 00000000..c87d4afc Binary files /dev/null and b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/names-pwa-modern-dark.png differ diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/probe-query.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/probe-query.json new file mode 100644 index 00000000..e3115ccf --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/probe-query.json @@ -0,0 +1 @@ +{"all_original_fingerprints_equal":true,"database":"PlotDirector_Qualification_CharacterNamesAI_20261126T164617","forward_only_query_plan_stability":true,"resulting_schema_sha256":"c1c781dc2c6983eab826038bf1068ffd4894a02cf8a6edc6e6560d5523957fdb","starting_schema_sha256":"d805cc332004c2f33dba58ee251335d6008431a5c0e579466a0345282e17de2b"} diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/probe.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/probe.json new file mode 100644 index 00000000..d9ebe290 --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/probe.json @@ -0,0 +1 @@ +{"all_original_fingerprints_equal":true,"database":"PlotDirector_Qualification_CharacterNamesAI_20261126T162147","development_defaults_and_replay_passed":true,"resulting_schema_sha256":"d805cc332004c2f33dba58ee251335d6008431a5c0e579466a0345282e17de2b","starting_schema_sha256":"e2c2475bd10b8139e1d91c6ea4da417acdad6f595b88cc350823ba939984f153"} diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/qualification-cleanup-final.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/qualification-cleanup-final.json new file mode 100644 index 00000000..431e6fcd --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/qualification-cleanup-final.json @@ -0,0 +1,6 @@ +{ + "lastPrecisionCloneDropped": "PlotDirector_Qualification_CharacterNamesAI_20261126T165736", + "remainingTaskQualificationDatabases": 0, + "originalVerifiedBackupsRetained": true, + "developmentDatabaseDropped": false +} \ No newline at end of file diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/running-verification.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/running-verification.json new file mode 100644 index 00000000..ccae3516 --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/running-verification.json @@ -0,0 +1,19 @@ +{ + "status": "passed", + "health": { + "healthy": true, + "version": "1.0.0", + "sourceCommit": "ee417f4680a89719756dbbbfcb75c37c1429f64f", + "database": "PlotDirector_Development", + "environment": "Development" + }, + "applicationDllMatchesSignedManifest": true, + "publicStaticAssets": { + "js/names-workspace.js": "signed manifest match", + "css/names-workspace.css": "signed manifest match", + "js/ai-actions.js": "signed manifest match", + "js/context-workspace.js": "signed manifest match", + "js/context-names.js": "signed manifest match" + }, + "productionAccess": false +} \ No newline at end of file diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/screenshots.json b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/screenshots.json new file mode 100644 index 00000000..80434361 --- /dev/null +++ b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/screenshots.json @@ -0,0 +1,58 @@ +{ + "verification-completed-mocked-pwa.png": [ + 1920, + 1080 + ], + "names-pwa-modern-dark.png": [ + 2560, + 1080 + ], + "verification-zero-pwa.png": [ + 2560, + 1080 + ], + "ai-entitlement-pwa.png": [ + 1920, + 1080 + ], + "verification-context-narrow-mocked-pwa.png": [ + 390, + 1080 + ], + "names-pwa-live-1920.png": [ + 1920, + 1080 + ], + "context-pwa-narrow.png": [ + 390, + 900 + ], + "character-type-pwa-menu.png": [ + 1920, + 1080 + ], + "names-browser-2560.png": [ + 2560, + 1080 + ], + "context-pwa-wide.png": [ + 2560, + 1080 + ], + "admin-ai-policy.png": [ + 1920, + 1080 + ], + "character-details-pwa.png": [ + 1920, + 1080 + ], + "names-pwa-2560.png": [ + 2560, + 1080 + ], + "ai-allowance-pwa.png": [ + 1920, + 1080 + ] +} \ No newline at end of file diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/verification-completed-mocked-pwa.png b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/verification-completed-mocked-pwa.png new file mode 100644 index 00000000..9299a77d Binary files /dev/null and b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/verification-completed-mocked-pwa.png differ diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/verification-context-narrow-mocked-pwa.png b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/verification-context-narrow-mocked-pwa.png new file mode 100644 index 00000000..debbd025 Binary files /dev/null and b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/verification-context-narrow-mocked-pwa.png differ diff --git a/Docs/Deployment/Evidence/CharacterNamesAi-20261126/verification-zero-pwa.png b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/verification-zero-pwa.png new file mode 100644 index 00000000..a354a2ea Binary files /dev/null and b/Docs/Deployment/Evidence/CharacterNamesAi-20261126/verification-zero-pwa.png differ diff --git a/PlotLine.Tests/Browser/context-names.cjs b/PlotLine.Tests/Browser/context-names.cjs index 69e3fd1e..96a710e4 100644 --- a/PlotLine.Tests/Browser/context-names.cjs +++ b/PlotLine.Tests/Browser/context-names.cjs @@ -14,5 +14,10 @@ const {chromium}=require('playwright'),assert=require('node:assert/strict'),fs=r await page.evaluate(()=>document.querySelector('[data-context-workspace]').contextController.setPosition({projectId:7,bookId:12,chapterId:11,sceneId:23}));await page.waitForTimeout(200);assert.equal(queries.length,before);assert.equal(await first.locator('[name=Search]').inputValue(),'George');assert.equal(await first.locator('[data-name-details-fragment] h2').innerText(),'George 1'); fs.mkdirSync('/tmp/pd-names-workspace',{recursive:true});for(const width of [2560,1366,768,390]){await page.setViewportSize({width,height:1080});for(const layout of ['single','columns','rows']){await page.locator('[data-context-layout]').selectOption(layout);assert(await page.evaluate(()=>document.documentElement.scrollWidth<=innerWidth+2),`${width}/${layout}`);}if(width===2560||width===390)await page.screenshot({path:`/tmp/pd-names-workspace/context-${installed?'pwa':'browser'}-${width}.png`});} await page.setViewportSize({width:1920,height:1080});await page.locator('[data-context-layout]').selectOption('single');await first.locator('[data-context-tab]').selectOption('overview');await first.locator('[data-context-tab]').selectOption('names');await first.locator('[data-name-select]').first().waitFor();assert.equal(await first.locator('[name=Search]').inputValue(),'George');assert.deepEqual(errors,[]); + // Remount one pane for another book in the same series: reference state must survive. + await page.evaluate(()=>{const source=document.querySelector('[data-context-names]');const node=document.createElement('div');node.id='cross-book-names';node.innerHTML=source.outerHTML;document.body.append(node);window.PlotDirectorContextLifecycles.names.mount(node,{paneId:'cross-book-check'});}); + const cross=page.locator('#cross-book-names');await cross.locator('[name=Search]').fill('George');await cross.locator('button[type=submit]').click();await cross.locator('[data-name-select]').first().click();await cross.locator('[data-name-details-fragment]').waitFor(); + await page.evaluate(()=>{const old=document.querySelector('#cross-book-names');window.PlotDirectorContextLifecycles.names.dispose(old);const node=document.createElement('div');node.id=old.id;node.innerHTML=old.innerHTML;node.querySelector('[data-context-names]').dataset.book='13';node.querySelector('[name=Search]').value='';node.querySelector('[data-names-details]').replaceChildren();old.replaceWith(node);window.PlotDirectorContextLifecycles.names.mount(node,{paneId:'cross-book-check'});}); + assert.equal(await cross.locator('[name=Search]').inputValue(),'George','same-series book changes preserve pane search');await cross.locator('[data-name-details-fragment]').waitFor();assert.equal(await cross.locator('[data-name-details-fragment] h2').innerText(),'George 1');await page.evaluate(()=>{const node=document.querySelector('#cross-book-names');window.PlotDirectorContextLifecycles.names.dispose(node);node.remove();}); console.log('PASS shared Context Names: complete catalogue criteria, deferred animal/alias details, copy, independent panes, focus stability, narrow/wide/split layouts and tab state'); }finally{if(installed){await cdp.send('PWA.uninstall',{manifestId}).catch(()=>{});await persistent.close();fs.rmSync(profile,{recursive:true,force:true});}else await browser.close();}})().catch(error=>{console.error(error);process.exitCode=1;});