6.9 KiB
Character Overview analysis cleanup — 23 November 2026
Confirmed root cause and ownership
Biography and generated analysis are separate stored values: Characters.DefaultDescription and CharacterEnrichmentEvidence.Value with FieldName=Summary. CharacterEnrichmentCharacterStatus_Get reads retained evidence from the latest successful enrichment run; CharacterWorkspace.Header loads that status independently of the canonical character. The previous Overview rendered both narratives unconditionally and repeated generated birth date, age, height and eye colour underneath.
Development character 6060 has two exactly equal 599-character narratives. A read-only broader check found 33 exact duplicates among 41 active characters with successful retained summary evidence. This is not merely two bindings to one field: enrichment completion retains its summary as evidence and fills DefaultDescription only when biography is blank. Initial character creation during import can also initialise a biography from the candidate description; linking an existing character does not replace its description. Subsequent analysis may differ from an older seeded biography or from an author's edited biography. Those distinct values can represent useful additional information, so they are retained without text-similarity heuristics.
The live CharacterEnrichmentRun_Complete definition was verified to preserve every non-empty existing biography. The canonical Character Editor binds only DefaultDescription for the narrative and saves via Character_Save; it does not bind generated analysis or write enrichment evidence. Reanalysis uses the persisted enrichment queue/service and completion procedure. Structured Profile values remain canonical character fields; enrichment's structured evidence remains provenance and its existing conservative blank-field promotion policy is unchanged.
Small presentation correction
CharacterDetailViewModel.OverviewAnalysisSummary returns the original recorded summary only when it is non-empty and differs from the biography after Unicode whitespace normalisation. Comparison retains case and punctuation differences. Stored source text is neither changed nor normalised for display. Overlapping but distinct analysis remains intact, with no sentence stripping or invented insights.
The Overview renders Story Intelligence Analysis only for that distinct summary and removes its four repeated structured attributes. Profile, Biography/edit route, At a glance, Known names, Recent recorded changes, navigation, tabs, gallery and ribbon actions remain intact. The existing two-column layout naturally closes around the omitted card; no CSS redesign or filler panel was added. Retained analysis evidence and the existing authorised status reader remain unchanged, including duplicate summaries; identical content remains visible in Biography. There is no separate new narrative store or migration.
Verification
- Solution build succeeds with zero warnings/errors.
- Full executable regression harness: 816 PASS checks.
- Focused model tests: exact/Unicode whitespace equivalent values, distinct overlapping text, biography-only, analysis-only, neither, meaningful case differences and unchanged source values.
PlotLine.Tests/Sql/CharacterOverviewProvenance.sqlpasses against Development: actual canonical biography save leaves analysis evidence unchanged; actual enrichment completion preserves author text before and after an edit; blank-biography seeding is confirmed. Synthetic records and completion payloads only, no AI requests, all writes rolled back.- New compiled-Razor browser suite covers all narrative combinations, Barbara's actual read-only Development snapshot, structured Profile values once, retained panels/edit link, and widths 1450/900/390.
- New real authenticated browser suite covers the same combinations in disposable Development records, including a copy of Barbara's values, canonical biography editing with analysis unchanged, all five tabs and retained reanalysis action. It makes no AI request.
- Existing full Character workspace browser suite and enrichment completion/replay browser checks pass.
Barbara's actual page could not be authenticated using the disposable browser account, which has no access to her project. Her real stored values were therefore inspected read-only and rendered through the actual compiled Razor fixture; public authenticated acceptance uses authorised disposable records. No access to her project was added, and no real character was edited or reanalysed.
Development operations and delivery
Database identity was verified as PlotDirector_Development; a unique copy-only/checksum backup was created and verified before fixture work. No schema migration is needed.
To provide deployment headroom, four archives/backups created by the immediately preceding tasks were checksum-copied from /srv/apps/plotdirector-dev to /home/nick/.local/share/plotdirector-development-archives/. Their original paths remain symlinks. These are the shared-focus-ribbon-b10db72-20261123T214057Z and shared-focus-context-location-ea0199a-20261123T220253Z release archives and their matching current-before directories. The live physical current directory was not moved. This reversible relocation freed approximately 2.1 GB on /srv while retaining the rollback copies.
- Implementation
f3c3683bc24674914b5d52499efa9b8e743615a5pushed toorigin/codex/word-companion-native-phase1-20261104. - Development installed UTC
2026-11-23T22:35:11.138512+00:00. - Release archive
/srv/apps/plotdirector-dev/releases/character-overview-f3c3683b-20261123T223506Z; rollback backup/srv/apps/plotdirector-dev/current-before-character-overview-f3c3683b-20261123T223506Z. - Active-work restart gate passed.
plotdirector-devactive; local and public HTTPS GET returned 200 with normal TLS verification. No warning/error journal entries during restart verification. - Assembly metadata contains the implementation SHA. Published/deployed DLL and checked assets match SHA-256. DLL:
0659e7aa4988516e3955ba33b120330cb039cdd154c2413a059fd6cab5195e27. - Real authenticated browser suite passed again against public Development, including all narrative combinations, structured Profile once, canonical biography editing with analysis preserved, tabs and responsive widths.
- Barbara's actual stored biography and retained summary remain exactly equal to the pre-change read-only snapshot after deployment.
- Disposable project/book/characters archived; both owned browser hosts stopped. No existing biography rewritten, no analysis regenerated, no schema migration applied.
- Approximately 1.8 GB free remains on
/srvafter deployment. Relocated older archives remain available at their original paths through links. - Production untouched; the two pre-existing untracked investigation files are preserved.
This final evidence is saved in a separate documentation commit; Development runs the implementation SHA above.