Record Development UI refinement acceptance and canonical SQL test batches

This commit is contained in:
Nick Beckley 2026-11-26 21:03:52 +00:00
parent 24d478c838
commit add3aa7c96
20 changed files with 246 additions and 2 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

View File

@ -0,0 +1,33 @@
{
"status": "passed",
"results": [
{
"mode": "browser",
"actualInstalled": false,
"sameWindowAndBackState": true,
"globalSortPagination": true,
"clearFiltersBothStates": true,
"animalPrimaryAndAlias": true,
"ribbonDirectCommands": true,
"exportOnlyTwo": true,
"archiveCancelled": true,
"aiQuoteCancelled": true,
"contextSeparateWindow": true
},
{
"mode": "pwa",
"actualInstalled": true,
"sameWindowAndBackState": true,
"globalSortPagination": true,
"clearFiltersBothStates": true,
"animalPrimaryAndAlias": true,
"ribbonDirectCommands": true,
"exportOnlyTwo": true,
"archiveCancelled": true,
"aiQuoteCancelled": true,
"contextSeparateWindow": true
}
],
"providerRequestsInitiated": 0,
"productionAccess": false
}

View File

@ -0,0 +1 @@
{"status": "passed", "droppedOnlyTaskQualificationClones": ["PlotDirector_Qualification_CharacterNamesAI_20261126T204413", "PlotDirector_Qualification_CharacterNamesAI_20261126T204513", "PlotDirector_Qualification_CharacterNamesAI_20261126T205010", "PlotDirector_Qualification_CharacterNamesAI_20261126T205646", "PlotDirector_Qualification_CharacterNamesAI_20261126T205757"], "backupsRetained": true, "developmentReset": false}

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View File

@ -0,0 +1 @@
{"runs":[{"all_original_fingerprints_equal":true,"database":"PlotDirector_Qualification_CharacterNamesAI_20261126T205646","executed":1,"integrity":{"constraint_violations":0,"integrity":true},"original_rows":261720,"original_tables":209,"resulting_schema_sha256":"dc6afafb8c25fd63d98a97d016402ddda7474fdfa296a18722b3ddc2569ecb91","starting_schema_sha256":"c1c781dc2c6983eab826038bf1068ffd4894a02cf8a6edc6e6560d5523957fdb"},{"all_original_fingerprints_equal":true,"database":"PlotDirector_Qualification_CharacterNamesAI_20261126T205757","executed":1,"integrity":{"constraint_violations":0,"integrity":true},"original_rows":261720,"original_tables":209,"resulting_schema_sha256":"dc6afafb8c25fd63d98a97d016402ddda7474fdfa296a18722b3ddc2569ecb91","starting_schema_sha256":"c1c781dc2c6983eab826038bf1068ffd4894a02cf8a6edc6e6560d5523957fdb"}],"source_commit":"24d478c838056e8de77f8f8910590f7789f41ff0","status":"passed"}

View File

@ -0,0 +1,8 @@
{
"status": "passed",
"canonicalAccountDeletion": true,
"fixtureProjectsAndCharactersRemoved": true,
"credentialFileDeleted": true,
"providerRequests": 0,
"creditReservations": 0
}

View File

@ -0,0 +1,13 @@
{
"status": "passed",
"files": {
"PlotLine.dll": "854bb4fb52009d628ae78e8c38cdd152599971e9cbf7606d77d5b95d7a78d6b5",
"wwwroot/js/names-workspace.js": "e4232be267d3410efd0294fbb62c6a8436a764b357bf42d37e5522f36e60ab73",
"wwwroot/js/character-attributes.js": "f114f38b5aadba517511e0f2e7c786ef684109e3b004df72e3f1872efed71a30",
"wwwroot/js/character-workspace.js": "58ac97af4f6816e281d389e1cf086d3c0581d7d2af7d390cdde8fdabc3275f72",
"wwwroot/js/character-enrichment-detail.js": "59240dc9c12df4605e4f6dfcf22270c556f341315cb412caeade3fffd37c4e17",
"wwwroot/css/character-attributes.css": "d7577639613422301c13621346ab045f0405b15481010d09e457097cc7d107c7"
},
"service": "active",
"publicHealth": "ok"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

View File

@ -0,0 +1 @@
{"all_original_fingerprints_equal": true, "database": "PlotDirector_Qualification_CharacterNamesAI_20261126T204413", "forward_only_query_plan_stability": true, "resulting_schema_sha256": "dc6afafb8c25fd63d98a97d016402ddda7474fdfa296a18722b3ddc2569ecb91", "starting_schema_sha256": "c1c781dc2c6983eab826038bf1068ffd4894a02cf8a6edc6e6560d5523957fdb", "canonicalMigrationBatchesRestoredAfterFixture": true}

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 KiB

View File

@ -0,0 +1 @@
{"status": "passed", "schema": "dc6afafb8c25fd63d98a97d016402ddda7474fdfa296a18722b3ddc2569ecb91", "fixtureBatchMatchesWorker": true}

View File

@ -0,0 +1,121 @@
{
"source_commit": "24d478c838056e8de77f8f8910590f7789f41ff0",
"build": "passed",
"full_regression_passes": 887,
"browser_and_installed_pwa": "passed",
"all_seven_themes": "passed",
"icon_minimum_contrast": 4.760210289890142,
"casts": [
10,
100,
500
],
"desktop_widths": [
1280,
1920,
2560,
3840
],
"provider_expenditure": 0,
"logs": [
{
"name": "pd-ui-names-browser.log",
"sha256": "0d3906867612f301af3724467da8b0a62c121cd55d8cd862fef2e7c3e5a8c6f5",
"pass_lines": [
"PASS Names compact results, deferred canonical details, animal/alias associations, navigation, state, themes, wide/narrow layouts { search: 8, details: 6 }"
]
},
{
"name": "pd-ui-names-pwa.log",
"sha256": "0d3906867612f301af3724467da8b0a62c121cd55d8cd862fef2e7c3e5a8c6f5",
"pass_lines": [
"PASS Names compact results, deferred canonical details, animal/alias associations, navigation, state, themes, wide/narrow layouts { search: 8, details: 6 }"
]
},
{
"name": "pd-ui-context.log",
"sha256": "b052303e0468ee69a7fa442f0076df65426dec9e671d3286f7b91fdef7b9c544",
"pass_lines": [
"PASS shared Context Names: complete catalogue criteria, deferred animal/alias details, copy, independent panes, focus stability, narrow/wide/split layouts and tab state",
"PASS shared Context Names: complete catalogue criteria, deferred animal/alias details, copy, independent panes, focus stability, narrow/wide/split layouts and tab state"
]
},
{
"name": "pd-ui-characters.log",
"sha256": "ede124fe5c112bf6687354d94e2ca8d007d2648fad7387ed04da2932c2ef7fe7",
"pass_lines": [
"PASS rendered directory: biography/card dimensions, bidirectional drag, bulk, individual prior-value Undo, individual/multi context, keyboard, filters/counts/selection scope, sticky/collapse, themes and responsive widths [",
"PASS rendered directory: biography/card dimensions, bidirectional drag, bulk, individual prior-value Undo, individual/multi context, keyboard, filters/counts/selection scope, sticky/collapse, themes and responsive widths ["
]
},
{
"name": "pd-ui-icons.log",
"sha256": "9ff620f99645237f3d3c59d9c73ba0e1ed851f001da6ac8f39a469fa746fa332",
"pass_lines": [
"PASS shared importance/sex symbols, canonical order, legacy/custom labels, menu filled SVG and all seven theme icon contrasts [",
"PASS shared importance/sex symbols, canonical order, legacy/custom labels, menu filled SVG and all seven theme icon contrasts ["
]
},
{
"name": "pd-ui-ribbon-ai.log",
"sha256": "81312d57528e357b6e521dd516a8ed9c92e8fc271f1976f97fc7563f049aa7aa",
"pass_lines": [
"PASS AI cost confirmation, locked-tier discovery/upgrade link, cancellation, one explicit submission, allowance and admin theme presentation",
"PASS AI cost confirmation, locked-tier discovery/upgrade link, cancellation, one explicit submission, allowance and admin theme presentation"
]
},
{
"name": "pd-ui-ribbon-workspace.log",
"sha256": "13e398b97da43e3f9c649cdf14775aff8a3c47866a896e941ba516390a418ea6",
"pass_lines": [
"PASS main Character browser: compact header, five lazy tabs, dossier/aliases/gallery, bounded explorers and pages, Family branches, Story and selected point, diagram/record selection, modal widths/inline error/Escape/unsaved protection, explicit archive consequences, refresh, cache, back/forward, character links, legacy hash, keyboard, desktop/laptop/tablet/mobile, touch pan/pinch, grouped/filterable records, exact History return, current-character ribbon targets and read-only; connection counts stable across tabs."
]
},
{
"name": "pd-ui-ribbon.log",
"sha256": "d016825a8f1e814392c4491a15ca464790a065cff723eeb3ae6b851adf948aa7",
"pass_lines": [
"PASS Character Details ribbon across all five tabs, direct merge/AI/archive, retained archive confirmation, export-only Output, read-only permissions, all themes, responsive widths and browser",
"PASS Character Details ribbon across all five tabs, direct merge/AI/archive, retained archive confirmation, export-only Output, read-only permissions, all themes, responsive widths and installed PWA"
]
},
{
"name": "pd-ui-sorting-database.log",
"sha256": "82bb5aeff8d5dc83a7a372c5d9f473b63f200c2a41835b268c9cfcb414bfb798",
"pass_lines": [
"PASS Names refinements database: Suggested retains exact-match, usage-weight and display-name ranking",
"PASS Names refinements database: A\u2013Z and Z\u2013A cover the complete filtered set across pages",
"PASS Names refinements database: name direction reverses global extremes rather than sorting one page",
"PASS Names refinements database: pagination size does not change the complete ordered sequence",
"PASS Names refinements database: common-desc uses selected catalogue commonness across page boundaries",
"PASS Names refinements database: unrecorded usage is last, not falsely classified as rare",
"PASS Names refinements database: ties are deterministic for common-desc",
"PASS Names refinements database: common-asc uses selected catalogue commonness across page boundaries",
"PASS Names refinements database: unrecorded usage is last, not falsely classified as rare",
"PASS Names refinements database: ties are deterministic for common-asc",
"PASS Names refinements database: sorting does not widen project authorisation",
"PASS Names refinements database: textual search results, scope and completeness remain unchanged"
]
},
{
"name": "build.log",
"sha256": "c51c1ddc008390ef55b7b9d0b57ff1d3c4496ca709ac3c97f39b822d4d774951",
"pass_lines": []
},
{
"name": "regression.log",
"sha256": "ce92c2204fadf13039e8e5318d3bb225d3ed6e15a45d9aba5f6c180e3f7023fc",
"pass_count": 887
}
],
"final_test_batch_regression": {
"status": "passed",
"sha256": "65f3cbb82af52ffac4bd8df08e4c904a9761d90293b9dbb60c2ecf7e34b39cb6",
"textualLookupMs": {
"before": 2033.2987,
"after": 2066.5601,
"matches": 13
},
"canonicalSchemaFingerprintMatches": true
}
}

View File

@ -0,0 +1,64 @@
# Names, character icons and Character Details ribbon refinements
Development-only delivery, 26 November 2026. Production was not accessed or deployed.
## Changes
- Main Names View/Edit Character links use the same application window. Returning restores criteria, filters, sort, pagination, selection and actual document/Context-container scroll. Context links retain separate-window behaviour and pane state.
- Clear Filters remains visible outside advanced controls, clears search/usage/catalogue criteria, resets page 1 and retains project, book, page size and sort. Saved book-profile configuration is not changed; normal book defaults still apply.
- Shared Names controls offer Suggested, A–Z, Z–A, most common and least common. Suggested retains exact-match priority followed by catalogue usage weight and name. Commonness uses existing locale/era catalogue weights, with unrecorded weights last. Deterministic name/identifier ties apply before pagination. Prefix matching is unchanged and explained in the search placeholder.
- Shared attribute order is importance, life status, sex, Character Type, Quick Add. Major uses a filled gold star, Supporting a half-filled blue star, Minor an outline neutral star; unknown retains its question mark. Canonical Male/Female use Mars/Venus; Other/custom and legacy sex values use the combined symbol without changing their labels or persistence. Unknown remains distinct. Sidebar, cards, filters and menus share definitions and SVG metadata. [Icon standard](../Codex/CharacterAttributes.md).
- All five Character Details tabs share direct Edit Character, Merge Character, Reanalyse Biography and Archive Character commands. The Output group contains Export, with only Export character and Markdown. Existing navigation, permission gates, merge target, archive confirmation, export routes and AI credit/entitlement confirmation remain intact. Busy/ready labels preserve the sparkle SVG.
Character cards, full biographies, dimensions, full-width layouts, sticky sidebar, ordering, drag/drop, bulk assignment, heterogeneous Undo, species, recorded name matching, textual search, AI execution and live-notification architecture are preserved.
## Database justification and safety
Forward-only migration **334_NamesWorkspaceSorting.sql** updates only `dbo.GivenName_Search`, adding an optional validated sort parameter and ordering before OFFSET. The existing service paginates in SQL, so client-side sorting would sort only one page; loading every catalogue row would defeat existing pagination. No catalogue, character, subscription or manuscript rows are updated. Existing numbered migrations are unchanged. Application access remains Dapper/stored procedures.
Two independent restores of a verified Development backup passed the source-bound release worker, complete immutable ledger, one executed migration and integrity/constraint checks. Fingerprints remained identical for **209 original tables / 261,720 rows**. [Qualification](Evidence/UiRefinements-20261126/database-qualification.json).
The database test runner now strips separator CR/LF before executing SQL batches, matching the migration worker and avoiding a spurious stored-module whitespace fingerprint difference. This is test setup only; published application and migration content are unchanged.
## Verification
- Clean solution build passed. Full executable harness: **887 PASS**, zero failures.
- Focused real-database coverage: Suggested compared to migration 333; complete-set A–Z/Z–A and both commonness directions across pages; page-size independence; deterministic ties; null weights; invalid sort and unauthorised scope; unchanged textual-search results/scope/completeness.
- Actual Chromium and installed Chromium PWA acceptance passed: same-window View/Edit and Back state (including 450px scroll), clear with collapsed/expanded controls, independent Context panes, separate Context navigation, icon order/fills/custom values, native drag in both directions, bulk/Undo, individual/multiple context menus, filters, sticky/collapse and complete variable-height biographies. Cast sizes: **10, 100, 500**. No additional subscriptions or connections introduced.
- All seven themes rendered. New icon contrast minimum **4.76:1** in measured themes. Widths include **1280, 1920, 2560, 3840**, plus 768 and 390. Ribbon tests cover all five tabs, readonly permissions, archive confirmation/cancel, export-only menu, navigation and viewport overflow. Mocked AI tests cover locked-tier discovery, allowance/cost confirmation, cancellation and one explicitly confirmed submission.
- Textual lookup returned the same **13 matches**, measured **1,841 ms before / 1,464 ms after**. This is a single qualification comparison with cache variability, not a general latency claim. A repeat after the test-batch correction measured 2,033 / 2,067 ms (about 1.6% variation), with the same 13 matches and scope. No textual-search implementation changed. Rendered directory fixture loads for 10/100/500 characters were 227/330/842 ms in normal Chromium and 266/422/1,062 ms in installed PWA; these are local fixture timings.
[Structured test results and raw-log digests](Evidence/UiRefinements-20261126/test-summary.json). Browser fixtures use compiled production Razor/scripts with isolated HTTP data; authenticated Development smoke evidence is recorded separately below. Mock providers establish enforcement, not real-model output quality. No provider expenditure is required for this UI task.
## Screenshots
- [Revised ribbon in installed PWA](Evidence/UiRefinements-20261126/ribbon-installed-pwa.png).
- [Shared attribute symbols in installed PWA](Evidence/UiRefinements-20261126/shared-icons-installed-pwa.png).
- [Wide Names workspace](Evidence/UiRefinements-20261126/names-wide-installed-pwa.png).
- [Narrow Context Names](Evidence/UiRefinements-20261126/context-narrow-installed-pwa.png).
## Source and release
| Commit | Change |
| --- | --- |
| `4cba388d` | Names navigation/clear/server sorting; shared attribute order/symbols |
| `f975eac4` | Direct Character Details commands; Output/Export group |
| `cf28db10` | Document scroll restoration; stable native drag acceptance |
| `24d478c838056e8de77f8f8910590f7789f41ff0` | Final application source; direct ribbon and full regression acceptance |
Established branch: `codex/word-companion-native-phase1-20261104`. Source push verified against the established origin with `git ls-remote`. Final evidence and the SQL test-batch setup correction are committed separately from the unchanged published runtime.
## Development activation and authenticated acceptance
Signed release `development-character-names-ai-24d478c83805-20261126T205921` activated at **21:00:50 UTC**, receipt **`20261126T210021Z-391e8b894ad0`**. The fixed helper verified idle state and a COPY_ONLY/CHECKSUM backup, applied migration 334, activated atomically and checked health/history. Running identity is **Development / PlotDirector_Development / `24d478c838056e8de77f8f8910590f7789f41ff0`**. Installed DLL and changed assets match the signed publication. Service is active; public health is OK; no warning-level service entries followed activation.
[Activation receipt](Evidence/UiRefinements-20261126/activation-receipt.json) · [Installed checksums](Evidence/UiRefinements-20261126/installed-checksums.json) · [Authenticated smoke](Evidence/UiRefinements-20261126/authenticated-smoke.json).
Normal Chromium and an actual CDP-installed standalone Chromium PWA exercised authenticated Development pages with an isolated author/project/book and synthetic George/Cat, Hamish/Dog with George alias, and Rose. Main View/Edit navigation stayed in the same window and restored state on Back; Context links retained `_blank`. Clear preserved book/page size/sort in both expanded/collapsed states; paginated sorting and both animal associations rendered. The four ribbon commands were directly accessible; Merge opened the existing page; Export contained only its two exports; Archive was cancelled through its existing confirmation; Reanalyse displayed its existing credit confirmation and was cancelled. No AI request or credit reservation occurred. Existing denied-tier and confirmed-request behaviour is covered by the server harness and mocked-browser regression.
- [Authenticated installed-PWA ribbon](Evidence/UiRefinements-20261126/authenticated-pwa-ribbon.png).
- [Authenticated wide Names workspace](Evidence/UiRefinements-20261126/authenticated-pwa-names.png).
The disposable account and its projects/books/characters were deleted through the normal account workflow, with only its own legacy override/audit/onboarding prerequisites removed first. Its private credential file was deleted. Five session-free task qualification databases were dropped; verified backups retained. Existing author records and live subscription configurations were not changed. Unrelated investigation files remain unmodified.
No outstanding browser or installed-PWA acceptance remains for this scoped change. AI execution quality was deliberately not tested with paid providers; AI processing and prompts were not changed. Operating-system window chrome appearance is not captured by Playwright page screenshots; standalone display mode was explicitly asserted during acceptance.

View File

@ -76,7 +76,7 @@ internal static class NameVerificationDatabaseTests
var measurements=new Dictionary<string,double>();async Task Measure(string label,Func<Task> work){await work();var times=new List<double>();for(var i=0;i<7;i++){var clock=Stopwatch.StartNew();await work();times.Add(clock.Elapsed.TotalMilliseconds);}times.Sort();measurements[label]=Math.Round(times[3],2);}
await Measure("initialResults",async()=>{await catalogue.SearchAsync(user,new(){ProjectID=project,PageSize=25});});await Measure("catalogueSearch",async()=>{await catalogue.SearchAsync(user,new(){ProjectID=project,Search="Ge",PageSize=25});});await Measure("selectedMetadata",async()=>{await catalogue.RecogniseAsync("GEORGE",null,null);});await Measure("characterAssociations",async()=>{await catalogue.ListUsedDecorationsAsync(user,project,null,"GEORGE","Project");});await Measure("localCandidateSearch",async()=>{await manuscripts.Search(user,project,"Rose");});await Measure("verificationCacheRead",async()=>{await service.Read(user,project,"Rose");});
var sqlRoot=Path.GetFullPath(Path.Combine(AppContext.BaseDirectory,"../../../../PlotLine/Sql"));
async Task Apply(string file){foreach(var batch in System.Text.RegularExpressions.Regex.Split(await File.ReadAllTextAsync(Path.Combine(sqlRoot,file)),@"^GO\s*$",System.Text.RegularExpressions.RegexOptions.Multiline|System.Text.RegularExpressions.RegexOptions.IgnoreCase)){if(!string.IsNullOrWhiteSpace(batch))await db.ExecuteAsync(batch);}}
async Task Apply(string file){foreach(var batch in System.Text.RegularExpressions.Regex.Split(await File.ReadAllTextAsync(Path.Combine(sqlRoot,file)),@"^GO\s*$",System.Text.RegularExpressions.RegexOptions.Multiline|System.Text.RegularExpressions.RegexOptions.IgnoreCase)){if(!string.IsNullOrWhiteSpace(batch))await db.ExecuteAsync(batch.TrimStart('\r','\n'));}}
try{await Apply("299_ContextNamesUsageScope.sql");await Measure("catalogueSearchBefore299",async()=>{await db.QueryAsync<NameSearchResult>("dbo.GivenName_Search",new{UserID=user,ProjectID=project,Search="Ge",PageSize=25},commandType:CommandType.StoredProcedure);});await Measure("initialResultsBefore299",async()=>{await db.QueryAsync<NameSearchResult>("dbo.GivenName_Search",new{UserID=user,ProjectID=project,PageSize=25},commandType:CommandType.StoredProcedure);});}finally{await Apply("334_NamesWorkspaceSorting.sql");}
Console.WriteLine("PERFORMANCE synthetic qualification, 500 characters / 5009 paragraphs, median milliseconds "+JsonSerializer.Serialize(measurements));
await db.ExecuteAsync("UPDATE dbo.Characters SET IsArchived=1 WHERE ProjectID=@ProjectID AND CharacterName NOT IN(N'George',N'Hamish')",new{ProjectID=project});

View File

@ -16,7 +16,7 @@ internal static class NamesRefinementDatabaseTests
await using var db=new SqlConnection(cs);await db.OpenAsync();if(await db.ExecuteScalarAsync<string>("SELECT DB_NAME()")!=settings.Database)throw new Exception("Database mismatch");
var scope=await db.QueryFirstAsync<Scope>("SELECT TOP(1) a.ProjectID,a.UserID FROM dbo.ProjectUserAccess a JOIN dbo.Projects p ON p.ProjectID=a.ProjectID WHERE a.IsActive=1 AND a.AccessRole=N'Owner' AND p.IsArchived=0 ORDER BY a.ProjectID");
var factory=new Factory(cs);var catalogue=new NameIntelligenceRepository(factory);var text=new NameManuscriptRepository(factory);var sqlRoot=Path.GetFullPath(Path.Combine(AppContext.BaseDirectory,"../../../../PlotLine/Sql"));
async Task Apply(string file){foreach(var batch in Regex.Split(await File.ReadAllTextAsync(Path.Combine(sqlRoot,file)),@"^GO\s*$",RegexOptions.Multiline|RegexOptions.IgnoreCase))if(!string.IsNullOrWhiteSpace(batch))await db.ExecuteAsync(batch);}
async Task Apply(string file){foreach(var batch in Regex.Split(await File.ReadAllTextAsync(Path.Combine(sqlRoot,file)),@"^GO\s*$",RegexOptions.Multiline|RegexOptions.IgnoreCase))if(!string.IsNullOrWhiteSpace(batch))await db.ExecuteAsync(batch.TrimStart('\r','\n'));}
void Check(bool value,string message){if(!value)throw new Exception(message);Console.WriteLine("PASS Names refinements database: "+message);}
async Task<List<NameSearchResult>> All(string sort,int size=25){var list=new List<NameSearchResult>();for(var page=1;page<=100;page++){var rows=await catalogue.SearchAsync(scope.UserID,new(){ProjectID=scope.ProjectID,Search="R",SortOrder=sort,Page=page,PageSize=size});list.AddRange(rows);if(rows.Count==0||list.Count>=rows[0].TotalRows)return list;}throw new Exception("Unbounded test catalogue");}
var clock=Stopwatch.StartNew();var beforeText=await text.Search(scope.UserID,scope.ProjectID,"Rose");var beforeMs=clock.Elapsed.TotalMilliseconds;