Document qualified Writer Phase 2 workflows and Development acceptance

This commit is contained in:
Nick Beckley 2026-11-18 12:55:30 +00:00
parent 56680f16fa
commit f228d4068f
84 changed files with 667 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 KiB

View File

@ -0,0 +1,557 @@
{
"schemaVersion": 1,
"applicationCommit": "56680f16faff3304809fd2e067677d5f7d3ff383",
"branch": "codex/word-companion-native-phase1-20261104",
"baselineApplication": "d7e8a9c",
"baselineReport": "8347f34",
"environment": "Development",
"release": "56680f1-20261118T124810Z",
"dllSha256": "bfc0029f3f5b1f5b5e282f94b19282b9a68c5f2fd478d948b5b90966c85d488e",
"build": {
"warnings": 0,
"errors": 0
},
"regressionChecksPassed": 623,
"sql": {
"migration": 280,
"additive": true,
"focusRegression": "passed",
"schemaVerified": true,
"backup": "writer-phase2-20261118T121841Z.bak",
"checksumBackupVerified": true
},
"browser": {
"authenticatedDevelopment": "passed",
"standaloneDetectionSimulated": true,
"fixtureScopes": 4,
"workspaces": 5,
"viewports": [
[
1440,
1000
],
[
1920,
1000
],
[
1366,
1000
],
[
800,
1000
]
],
"existingIntegratedReviewSuite": "passed",
"existingReaderSuite": "passed",
"existingLayoutSuite": "passed",
"sharedPanelLifecycle": "passed",
"screenshotsInspected": true,
"installedOsPwaTested": false,
"physicalWindowsWordTested": false
},
"preservation": {
"originalAggregateCountHashChecksUnchanged": 11,
"fixtureAcceptedManuscriptHashUnchanged": true,
"fixturePlanCountBefore": 1,
"fixturePlanCountAfter": 1,
"remainingFixtureAccounts": 0,
"remainingFixtureInvestigations": 0,
"remainingFixtureEvents": 0,
"remainingFixtureGuidance": 0,
"remainingFixtureReviewObservations": 0,
"temporaryCredentialsRemoved": true,
"fixtureHostStopped": true,
"diagnosticModelChanged": false,
"productionChanged": false
},
"screenshots": [
{
"file": "After/Explore-1366-collapsed.png",
"width": 1366,
"height": 1000,
"sha256": "b030adf13ae32449146c211b1ac574c5cafff22716c1e8d3fef864bea555aaa6"
},
{
"file": "After/Explore-1366-panels.png",
"width": 1366,
"height": 1000,
"sha256": "c9b3c3808c69785f735ac7e5e5e402aaab18d642be8ceb13e02b6ebd169a9795"
},
{
"file": "After/Explore-1920-collapsed.png",
"width": 1920,
"height": 1000,
"sha256": "81ea867c4855164c8be03d83c83d4eae9f78bc09bfd5bc3528eb5e038cca66f9"
},
{
"file": "After/Explore-1920-panels.png",
"width": 1920,
"height": 1000,
"sha256": "4a94b59519c236a3472a8fc72b033b20993ba1c5a3720b942dbefa93b119312d"
},
{
"file": "After/Explore-800-collapsed.png",
"width": 800,
"height": 1000,
"sha256": "09cd1ca7c574422f01ace6bf1690b703c059e061ce328351f907381abfe4ff04"
},
{
"file": "After/Explore-800-panels.png",
"width": 800,
"height": 1000,
"sha256": "ab33a98d777543386da323b4d2883f1550efa2c855a220ef1595d68794c0f98b"
},
{
"file": "After/Explore-both-panels.png",
"width": 1440,
"height": 1000,
"sha256": "c2133e5bfa4bc8e4e0c8fda1a130d309a03d2f0c51f95f6a97e185df601c0ee9"
},
{
"file": "After/Focus-next-chapter.png",
"width": 1440,
"height": 1000,
"sha256": "57bcec0fc34567bb898f0e3709c52c4cf85b8cf90adac5611db01f67650095ec"
},
{
"file": "After/Minimal-Explore.png",
"width": 1440,
"height": 1000,
"sha256": "7fcbeeaf3eb8a36cfb5689e466fadfa495a5a59b3c3064444f1d92bccadc368f"
},
{
"file": "After/Minimal-Plan.png",
"width": 1440,
"height": 1000,
"sha256": "629fff4dc2e7ec353722a2d32ab906acffff90ef941ec48470ad4d3e4fb7a31e"
},
{
"file": "After/Minimal-Reflect.png",
"width": 1440,
"height": 1000,
"sha256": "2b1e8d9cb6d398059c088d00fbffded19387be7545b077909a3b5e808e6427cd"
},
{
"file": "After/Minimal-Review.png",
"width": 1440,
"height": 1000,
"sha256": "3de6aaf56f8c2557697e292372c56178bcedc13edb14e13cfdff54d3030ab80c"
},
{
"file": "After/Minimal-Write.png",
"width": 1440,
"height": 1000,
"sha256": "aa78734f8acce9745d6e67fbcd53d5e7c5b8fa736093aca6241dd2c42d687609"
},
{
"file": "After/No-book-Explore.png",
"width": 1440,
"height": 1000,
"sha256": "74b38494b5773d1a4662837c8736f02294334f79d37e70bd83f7f705197cf0d7"
},
{
"file": "After/No-book-Plan.png",
"width": 1440,
"height": 1000,
"sha256": "290488103d1f70733b77f197c25398ec50a51d54bcb21891ecc912461378f19c"
},
{
"file": "After/No-book-Reflect.png",
"width": 1440,
"height": 1000,
"sha256": "68ae2e4ea4175ff3374816a0e2948104624cfc4ddaef0919e62514614fbcf27d"
},
{
"file": "After/No-book-Review.png",
"width": 1440,
"height": 1000,
"sha256": "c6e77cbbdd1e99763e21da7b1af2987fb1081e625476047a8dc3fd05b6702218"
},
{
"file": "After/No-book-Write.png",
"width": 1440,
"height": 1000,
"sha256": "60757f50ab5d433ac18ec3dd2f869aebdb3c9a7fab1d443ee2ee8125464241d4"
},
{
"file": "After/Plan-1366-collapsed.png",
"width": 1366,
"height": 1000,
"sha256": "78abb8948753020d771247c95a1fcf5bd5271524a2d9a6996245dfea8d078789"
},
{
"file": "After/Plan-1366-panels.png",
"width": 1366,
"height": 1000,
"sha256": "11551950ec53936e3a79413ec15a249673e648275a2f0067355c63f21ded545d"
},
{
"file": "After/Plan-1920-collapsed.png",
"width": 1920,
"height": 1000,
"sha256": "61afad7f88e31751a3989e6caa1df0b3d67740ae4796d650888f4e201dfc6fbd"
},
{
"file": "After/Plan-1920-panels.png",
"width": 1920,
"height": 1000,
"sha256": "000ab4145319fc915cf5eecba450aaed85bb0750a2874eac788ab4f8936d8811"
},
{
"file": "After/Plan-800-collapsed.png",
"width": 800,
"height": 1000,
"sha256": "9a1934ec65e42c83e698a3a987e791b9ef18bbaada75ae1a857e1253c8d3124e"
},
{
"file": "After/Plan-800-panels.png",
"width": 800,
"height": 1000,
"sha256": "f5454f65d41071efb807513bdd8640522e2f9227d3cc25628438fb91c6a600f8"
},
{
"file": "After/Populated-Explore.png",
"width": 1440,
"height": 1000,
"sha256": "0a6ec1e390ce54012c6321b54f98da46256aae6b179b211e0a2562e9ff9a99e4"
},
{
"file": "After/Populated-Plan.png",
"width": 1440,
"height": 1000,
"sha256": "d8e189168125695b9de79421341a01f4b101275817c1645962d55a8015cb0703"
},
{
"file": "After/Populated-Reflect.png",
"width": 1440,
"height": 1000,
"sha256": "90c84f942b2919b19edbe0d85985ee3fbf82a30ddd8468ff26036c9485193d3a"
},
{
"file": "After/Populated-Review.png",
"width": 1440,
"height": 1000,
"sha256": "a86e09f8ff5559ea707003d343c2d158baa2800ef86eec04d63f202ade69ca50"
},
{
"file": "After/Populated-Write.png",
"width": 1440,
"height": 1000,
"sha256": "30ccdf7db017309d9a8920e4147c0e3a4443f6286f9204070f7023ac90d3ee00"
},
{
"file": "After/Reading-mode.png",
"width": 1440,
"height": 1000,
"sha256": "5c057f9766de9d5c2bc74ffbecdffa9ebb33d8359c95ef0223377343f9eb12c3"
},
{
"file": "After/Reflect-1366-collapsed.png",
"width": 1366,
"height": 1000,
"sha256": "8c0d7c250a7cad9d28576c4352f736ca728b76ce10727d0a9827f54ccdddf63e"
},
{
"file": "After/Reflect-1366-panels.png",
"width": 1366,
"height": 1000,
"sha256": "1f1ac52bd9c4421fe4c9d31d15da04be346eca0509c1d88da4262176e1083c5e"
},
{
"file": "After/Reflect-1920-collapsed.png",
"width": 1920,
"height": 1000,
"sha256": "66131198a08a2cd994a0e6a8e3b881629029fd7fbf727b0725bb495e74a4c918"
},
{
"file": "After/Reflect-1920-panels.png",
"width": 1920,
"height": 1000,
"sha256": "d788749f834cf9f5883dc246f57c648fbc196ec325bee314e46e833b107ad059"
},
{
"file": "After/Reflect-800-collapsed.png",
"width": 800,
"height": 1000,
"sha256": "a19787536f904a3fc79929f05afe7c7763ab778ef70af6e9a2db2e029f163576"
},
{
"file": "After/Reflect-800-panels.png",
"width": 800,
"height": 1000,
"sha256": "4b19a83dea90f632fd47095fa2300a039f884d056dcb5ec78417e671fd1168b0"
},
{
"file": "After/Reflect-day.png",
"width": 1440,
"height": 1000,
"sha256": "4a474f05b484d7dbc1995ae25173529f82870571f838c783b3d66ee27fa68e43"
},
{
"file": "After/Review-1366-collapsed.png",
"width": 1366,
"height": 1000,
"sha256": "fcacfa58f27129322d82062659e4541ca71d751e23ecd9f67ae12f6cee3ba384"
},
{
"file": "After/Review-1366-panels.png",
"width": 1366,
"height": 1000,
"sha256": "27f6fed02468b6ef1fe4883946e057b5260c6f5adeb3eddfc79fc19f10e2fc89"
},
{
"file": "After/Review-1920-collapsed.png",
"width": 1920,
"height": 1000,
"sha256": "48e9cd64e6cf3faa64ad9c1780c784affe48999d2abb60e7b2c3f88ba8722a66"
},
{
"file": "After/Review-1920-panels.png",
"width": 1920,
"height": 1000,
"sha256": "e3583ca65c476d06e35fc7d0c6f5b9d475623648bd21a23c85104697f90d57d0"
},
{
"file": "After/Review-800-collapsed.png",
"width": 800,
"height": 1000,
"sha256": "44850566b222cff36944562060a2ec61e8a6e58c91765a25824a55ddb9790fbb"
},
{
"file": "After/Review-800-panels.png",
"width": 800,
"height": 1000,
"sha256": "cf804800338575c06d6c92d6c386612922c6624ebd164206798621c2f66c61df"
},
{
"file": "After/Review-context.png",
"width": 1440,
"height": 1000,
"sha256": "8a60a350e32468a8b4f26c53681b262f97eef127a715655920e7c5c943cbfe33"
},
{
"file": "After/Structured-Explore.png",
"width": 1440,
"height": 1000,
"sha256": "755c73fb712101da322cfd23f22fff80cbb1da3b4cf42b01fe49f161fb6a1b15"
},
{
"file": "After/Structured-Plan.png",
"width": 1440,
"height": 1000,
"sha256": "70316c9c8ffecee060c469830f4e26e3e899acc83c8929302ccc40ed3c21bbf7"
},
{
"file": "After/Structured-Reflect.png",
"width": 1440,
"height": 1000,
"sha256": "6c5aacdb238b6e3e21c6d793e77529e927e5f6c349b7a1771cae22cd8363904a"
},
{
"file": "After/Structured-Review.png",
"width": 1440,
"height": 1000,
"sha256": "d0787b869b6e7113b31ae418d9a479cf7e03e752f12616837c4ded0b0e02f585"
},
{
"file": "After/Structured-Write.png",
"width": 1440,
"height": 1000,
"sha256": "13eab252ff531aea18378176dd4495e8eb9732e1f8b30624cf116a508ea5c361"
},
{
"file": "After/Working-Explore.png",
"width": 1440,
"height": 1000,
"sha256": "3370ff8e9837353504cb3f85d93f8a27ea2172368081416978cd5b8b3e9045dc"
},
{
"file": "After/Working-Plan.png",
"width": 1440,
"height": 1000,
"sha256": "b7bcf1d137257172378c7f06ca8007ec5035ea46074251ce19b18aff6b7446b4"
},
{
"file": "After/Working-Reflect.png",
"width": 1440,
"height": 1000,
"sha256": "17ffc5099c97b967e8079128cf281afd008f879eafa34a06d4c2c6339bb5f6ef"
},
{
"file": "After/Working-Review.png",
"width": 1440,
"height": 1000,
"sha256": "a6a115f0bfcb812b6dcc558580eca3acb7778e73337a3e95e3c63f952232f8ea"
},
{
"file": "After/Working-Write.png",
"width": 1440,
"height": 1000,
"sha256": "895c722dc367ac01d4e8bf10a98db3a2ab6f9d71b9f628990fe5e464a5f588a1"
},
{
"file": "After/Write-1366-collapsed.png",
"width": 1366,
"height": 1000,
"sha256": "dac902b2c6bfbe4b16b84ac9ee1a638fc4087b187060451e3776c3fcc7dc6e9d"
},
{
"file": "After/Write-1366-panels.png",
"width": 1366,
"height": 1000,
"sha256": "b90d79c8947d8f7b809a9c4b5833e06a2e4b74700afcef6c74a288e4cff4d9ac"
},
{
"file": "After/Write-1920-collapsed.png",
"width": 1920,
"height": 1000,
"sha256": "f6ae6bd25e14ca1070c7a8dd5354aa29496f609d7cebd2fbe4d65cc89b79c2e9"
},
{
"file": "After/Write-1920-panels.png",
"width": 1920,
"height": 1000,
"sha256": "67ad78bd1b4190e6df2942682c89849b8b51b341a774616a318f6c8b64694000"
},
{
"file": "After/Write-800-collapsed.png",
"width": 800,
"height": 1000,
"sha256": "1dca0567dc3b33f2d830b89dba341b21d4525f40d758ecb7bbb3cd2069621c51"
},
{
"file": "After/Write-800-panels.png",
"width": 800,
"height": 1000,
"sha256": "3613b9471b0cb3e76933c903e3238eacfb7c64aa3b2cde748f521ceda0b11c70"
},
{
"file": "After/Write-established.png",
"width": 1440,
"height": 1000,
"sha256": "c6aab1acd6def38432ffafba2feaa52c03ad365a5ebe98b27424e8999506983e"
},
{
"file": "Before/Minimal-Explore.png",
"width": 1440,
"height": 1000,
"sha256": "a764a6e5123ae12f064d85c80e899b268b004a11357777cdcffbf2c2e42a60f8"
},
{
"file": "Before/Minimal-Plan.png",
"width": 1440,
"height": 1000,
"sha256": "f6b512e5033bbaaacc1aa1561985d4450795cf66bd1210dd00d02a0a93169707"
},
{
"file": "Before/Minimal-Reflect.png",
"width": 1440,
"height": 1000,
"sha256": "765501fe7f2b725c0d65d66512309b89894ba98b649075a4f60a73b41c21390f"
},
{
"file": "Before/Minimal-Review.png",
"width": 1440,
"height": 1000,
"sha256": "77d85900adb77b35a8cab5b8567cab151586afbbf6059af6d18af8da177c3431"
},
{
"file": "Before/Minimal-Write.png",
"width": 1440,
"height": 1000,
"sha256": "9d04bf5ddfec64f6bb13edd3c6c86186072d8e8ef3deb733305626ed5a801a42"
},
{
"file": "Before/No-book-Explore.png",
"width": 1440,
"height": 1000,
"sha256": "366fd03d73c9538fb02e6878d3f9e7e54afc27a40885bbe76ca98ce6abb1edee"
},
{
"file": "Before/No-book-Plan.png",
"width": 1440,
"height": 1000,
"sha256": "290488103d1f70733b77f197c25398ec50a51d54bcb21891ecc912461378f19c"
},
{
"file": "Before/No-book-Reflect.png",
"width": 1440,
"height": 1000,
"sha256": "68ae2e4ea4175ff3374816a0e2948104624cfc4ddaef0919e62514614fbcf27d"
},
{
"file": "Before/No-book-Review.png",
"width": 1440,
"height": 1000,
"sha256": "c6e77cbbdd1e99763e21da7b1af2987fb1081e625476047a8dc3fd05b6702218"
},
{
"file": "Before/No-book-Write.png",
"width": 1440,
"height": 1000,
"sha256": "60757f50ab5d433ac18ec3dd2f869aebdb3c9a7fab1d443ee2ee8125464241d4"
},
{
"file": "Before/Populated-Explore.png",
"width": 1440,
"height": 1000,
"sha256": "30846c560e06ee020ab89d21a4c4666d17c5a7137e83b1926d01254aec5db04b"
},
{
"file": "Before/Populated-Plan.png",
"width": 1440,
"height": 1000,
"sha256": "408d53a0e6bd126a891909fa8a7737ca97243a555f3cc07db22ceb3fd380a3cf"
},
{
"file": "Before/Populated-Reflect.png",
"width": 1440,
"height": 1000,
"sha256": "de5adbfc9d71a973d032da8b2edd90ef050e5de502d5898ac2c3a89220bc83f9"
},
{
"file": "Before/Populated-Review.png",
"width": 1440,
"height": 1000,
"sha256": "bc99f345c5748bde5bf4ead52942873ef5a7555737739a4af70b54a50db3f3d3"
},
{
"file": "Before/Populated-Write.png",
"width": 1440,
"height": 1000,
"sha256": "b8d5aee84505fceccc1545e6234dc9c74374e5adea64cfa9fd9449c0e289df8a"
},
{
"file": "Before/Structured-Explore.png",
"width": 1440,
"height": 1000,
"sha256": "757d67d6de9c523167a6f0042630314b4ad6afffadf433af7cd715005acfb806"
},
{
"file": "Before/Structured-Plan.png",
"width": 1440,
"height": 1000,
"sha256": "074f63835ae7bc1605bf8a3da4a949bee46f6db2b2c8a6e74a4f420e33711603"
},
{
"file": "Before/Structured-Reflect.png",
"width": 1440,
"height": 1000,
"sha256": "d74063080d965acbad9ba7987ffea2a7c55fe281ce576d87d10d4d1da69de447"
},
{
"file": "Before/Structured-Review.png",
"width": 1440,
"height": 1000,
"sha256": "d7b1c8aa19391ed269717ec5e5e10617ce0d062090c7ab12fbe94fd7bc897052"
},
{
"file": "Before/Structured-Write.png",
"width": 1440,
"height": 1000,
"sha256": "110a59089420520d60cd830bcb32296022262849cae9b3912e2790874a824dd1"
}
]
}

View File

@ -0,0 +1,108 @@
# Writer Workspace Redesign — Phase 2
## Scope and baseline
Shared branch `codex/word-companion-native-phase1-20261104`, fetched/reconciled from application `d7e8a9c` and report `8347f34`. Phase 1 shared layout and the accepted Phase 1.5 panel system remain authoritative. The unrelated canonical-manuscript architecture assessment was preserved. No Production, native binary installation, diagnostic model or production-questionnaire change is included.
## Five working environments
| Workspace | Before | After / primary activity |
|---|---|---|
| Write | Activity/chapter/scene controls together, unclear relationship with recording | Inline three-step focus workflow; established activity/place/intention with Continue and Change focus; canonical intentions followed by optional recording |
| Explore | Investigation link plus unequal reference/link columns | Equal-weight capability discovery and the real questionnaire opening; private saved investigations remain alongside it |
| Plan | Schedule creation dominated the landing page | Next intended work without dates, actual ongoing recording where available, and genuine scheduled activities; schedule setup is secondary |
| Review | Canonical manuscript plus combined intentions/observations companion | Same Reader; independently collapsible chapter/verified scene intentions beside the manuscript at wide working widths, with observations in the existing right reference surface |
| Reflect | Progress cards and a link to Writing Journey | Existing Writing Journey calendar directly in the main working area, date/session inspection and optional progress details |
Explore uses the available centre width to form two approximately equal columns and stacks when the available space is insufficient. Plan and Reflect deliberately have one full-width working surface rather than an empty reference column. Write and Review retain the accepted resizable Word/reference companion. The independent shared Investigation and Help panels remain available to all five, and their Open/Collapse/Pin/Close state is unchanged.
## Current Focus
`WriterController.Focus` returns the same `_WriterFocusForm` used for an initial focus. It loads authorised book choices on demand. Steps select the existing Drafting/Revising/Editing/Researching/Proofreading values, a chapter/scene or book scope, then an optional personal intention. Step transitions retain the DOM values and do not reload the document. The scene selector filters against the selected chapter; no records are automatically created. Server-side scope and association checks remain authoritative.
An antiforgery-protected AJAX save updates the summary and canonical authoring references without replacing the session toolbar. Duplicate submissions are blocked; failures retain all choices and state that a save was not confirmed. Changing focus respects existing unsaved-authoring navigation guards. Continue URLs and authoring inspection URLs are generated server-side. A saved focus does not start, finish, move or reclassify a writing session.
The personal focus intention is not a chapter goal or scene note. Additive migration `280_WriterFocusIntention.sql` adds nullable `Intention` to the existing private `WriterWorkingObjectives` row and extends its existing stored procedure. No parallel focus table/model is introduced. The new field is limited to 2,000 characters by MVC validation. Existing activity definitions, rows, ownership and book/chapter/scene validation remain intact. An older web build can run with the additive schema; saving through an older build cannot author the new intention and may clear it, so retain a current build when continued intention editing is needed.
## Adaptive discovery and Guided Investigation
The Phase 3D.2A catalogue, dependencies, readiness and coverage exports were inspected as a design baseline. Runtime actions are limited to existing verified routes, not all audited graph relationships. Characters, chapters/scenes, Plot Lines & Threads, Floor Plans and existing bounded Writer suggestions are used; no planned Floor Plan occupant-placement operation is advertised as implemented.
Deterministic order:
1. Available active-investigation suggestions, excluding Done/Skipped, deduplicated by capability and limited to two.
2. Recorded chapter/focus/schedule/reminder context from the existing suggestion provider.
3. A chapter starting point when no chapters are recorded, and foundational character/plot tools.
4. Optional Floor Plan discovery.
At most four tiles are visible across active and ordinary suggestions. Stable keys and deterministic ranking break ties. A recorded-data gap is described as a gap in PlotDirector, not proof that the author has not planned elsewhere. No subjective readiness or manuscript diagnosis is inferred from counts.
Later defers a tile for seven days; Not now sets it aside; Reconsider restores those choices. These use the established author/project/book-scoped browser-preference convention, are device-specific and never alter investigation progress or remove ribbon navigation. Available investigation tools reuse the companion's compact authorised summary and its canonical native POST forms, retaining same-window activation, selected finding identity, authorisation and duplicate protection. There is no second destination resolver or diagnostic engine.
`WriterInvestigationsController.Opening` returns the shared `_Opening` partial also used by the dedicated investigation view. It uses the real currently published author catalogue and existing gate/book access checks. Begin uses the existing Start action and transitions to the existing questionnaire. Listing/starting does not silently activate or replace saved guidance. My Investigations retains its authorised Continue and original-results paths.
## Plan: work management without another task system
The undated next activity is the same private focus as Write, edited through the same wizard. This avoids introducing a second personal task backlog merely to support one next piece of work. A recording in progress comes from the existing bounded state query and is labelled separately from intended work. Upcoming reviewed activities and existing schedule tasks retain their actual dates, kinds and statuses. No task is inferred from a manuscript concern or review observation.
Completed/skipped/outstanding schedule summaries and existing plan/completion screens remain under Schedule and completed work. Existing schedule setup, review/commit, preview and availability editing remain authoritative. No automatic schedule is created by visiting Plan or saving focus. This phase deliberately does not introduce an arbitrary personal backlog or new deferred-task semantics; existing schedule states and discovery deferral remain distinct.
## Review and manuscript integrity
Review, Reading and Focus Reading still use `_Reader`, `_Paragraphs`, `ManuscriptReaderService` and the existing synchronisation/fingerprint paths. No accepted paragraph or source-mapping changes are made. At sufficiently wide **working** widths, the main surface places chapter intentions alongside centred manuscript prose; at smaller widths the collapsible intention section precedes the reader. Collapsing it returns the main surface to a single column. The existing observation/reference companion can be hidden independently using the ribbon.
The existing `WriterReviewService` supplies chapter goals, authored notes and scene context; it continues to derive scenes only from current accepted paragraph assignments and falls back to chapter context otherwise. The same AJAX panel supplies both context and observations; its intention section is moved to the reading-side slot rather than rendered or persisted twice. Observations, author intentions, accepted manuscript and saved assessments remain labelled separately. Save/edit/resolve/revisit, stale drafts, passage anchors, Audio Review and acknowledged Word handoff are retained.
Reading reduces editorial surfaces; Focus Reading retains its existing inert surrounding interface, chapter navigation and exit. Book-specific browser preferences update existing Review return links with a previously selected chapter/Reading mode, only when that chapter remains in the currently authorised chapter choices. Explicit chapter links are untouched. No competing history stack is introduced.
## Reflect and provenance
Reflect uses `_JourneyCalendar`, `WriterWorkRepository.Calendar/History` and existing accepted activity data. Reflect's month/day links stay in Reflect; the retained Journey route continues using the same partial. The calendar spans the main work area, and recent sessions/date inspection remain available. Technical recording detail is expandable rather than a prominent wall of receipt/telemetry information. Manual session initiation, automatic accepted changes and elapsed-versus-observed time are distinguished. Missing historical tracking and quiet days are not treated as a judgement or proof of inactivity.
## Empty states, accessibility and performance
A project without a book gets a clear book-selection starting point. An empty/minimal book can establish book-wide focus or add structure, discover foundational tools, identify undated next work, learn the supported Word synchronisation path, and return from an empty Journey to writing/recording. No story records, manuscript baselines or schedules are generated by these states.
Native labelled controls, fieldset legends, status/error messages, keyboard step controls and busy-state protection are retained. Main work uses document scrolling; only established contextual panels use bounded internal scrolling. Shared ribbon measurement, panel reflow, theme tokens, PWA Back and unsaved-change safeguards remain in place. Heavy questionnaire history is not loaded for discovery; the compact companion summary is reused. Focus references reject stale asynchronous loads. Full manuscripts are loaded only through the existing Review reader, not for discovery summaries.
## Qualification, deployment and preservation
Baseline and final serial solution builds succeed with zero warnings/errors. The executable regression harness passes **623 checks**. Focused SQL tests use rollback-only disposable fixtures and cover intention persistence, one-row focus updates, no automatic session creation, unsupported activities, foreign author/book/chapter/scene rejection, archived targets and permanent-book cleanup.
Authenticated Development acceptance uses four isolated scopes: project without a book, minimal chapter/no manuscript, chapters/scenes without a writing plan, and an accepted manuscript with explicitly recorded sessions, saved investigations, reviewed schedule activities and author observations. The test exercises all five pages, forward/back wizard values, one save for duplicate submissions, no session side effects, focus persistence, undated Plan work, discovery dismissal/defer/reconsider, real questionnaire entry, saved recommendation navigation, active discovery limits, Review scene context/observation saving, Reading/Focus/next chapter, Review return target, actual schedule review/commit/edit without creating a second plan, and Reflect month/day navigation. It also captures all five pages at 1920, 1366 and 800px with expanded contextual panels and collapsed ribbon/panel states.
Existing integrated Review browser/simulated-PWA tests pass: anchored CRUD, stale multi-window drafts, network/navigation guards, Word handoff/acknowledgement, Audio Review DOM/target/note preservation and book isolation. Existing Reader tests pass across three widths, four themes and browser/PWA, including private headers and account isolation. Shared-panel lifecycle tests pass all nine state combinations and independent pin/close restoration. The retained layout suite passes Write/Review divider and internal reflow, centred reading, sticky chrome, compatibility aliases and native safe Back; Explore/Plan/Reflect now assert their deliberately column-free layouts instead of an obsolete universal reference-pane assumption.
Rendered screenshots were inspected. Inspection led to removing the inherited legacy wizard grid, retaining a single session-recording surface, deduplicating/bounding discovery and improving context collapse/reflow. The layout test's initial Review width assertion selected the new notes inset rather than the manuscript toolbar; targeting the actual primary toolbar preserves the original growth threshold. Measured toolbar width grows from 657px to 1,018px when the reference companion closes. A hidden overflow ribbon command in a return-target test was tested through its actual generated href rather than pretending it was visible. No diagnostic or manuscript test was relaxed.
Application commits run from `63fb2d5` to final **`56680f16faff3304809fd2e067677d5f7d3ff383`**, pushed to the shared branch. Development release: `56680f1-20261118T124810Z`. Published and deployed DLL SHA-256 match: `bfc0029f3f5b1f5b5e282f94b19282b9a68c5f2fd478d948b5b90966c85d488e`. Assembly informational version contains the final commit. Service is active; local GET and TLS-validated public GET return 200. Raw logs and priority-error entries show no failure/critical entries after the final deployment. The existing local HTTP HTTPS-port-discovery warning behind the TLS proxy is not a failed public TLS request.
Before each install, verified Development queries found no queued/running import, synthesis, enrichment, pipeline or Story Intelligence work. Fresh publication, release archive and physical pre-install backup followed the established process, preserving configuration, data-protection keys, uploads and logs. Migration 280 followed a unique copy-only checksum backup (`writer-phase2-20261118T121841Z.bak`) and successful `RESTORE VERIFYONLY`. The first verification attempt with the application login lacked the necessary permission; verification was repeated successfully using the existing container administrator before migration. No Development database restore/reset was performed.
After the final authenticated run, the disposable accepted manuscript SHA-256 is unchanged and its plan count remains exactly one after creation, review/commit and subsequent plan edit. Guarded fixture cleanup removed the disposable accounts/projects/books and related data. All **11 original table counts and aggregate SHA-256 values match** the pre-fixture snapshot: Projects, Books, Chapters, Scenes, BookParagraphManuscripts, WriterInvestigations, WriterInvestigationEvents, WriterWorkingObjectives, WriterReviewObservations, WriterWorkSessions and WriterInvestigationCatalogues. This is a precise preservation claim for those tables, not every table in the database. Remaining fixture accounts, investigations, events, guidance and review observations are zero. Private test credentials were removed and the task-created browser fixture host stopped. No real author's project, manuscript or subscription was used as a fixture.
Contextual Help for Write, Explore, Plan, Review and Reflect was updated in the existing Markdown infrastructure. The final report/test/evidence commit is subsequent to the deployed application and requires no application redeployment.
## Screenshot evidence
[Machine-readable qualification and screenshot manifest](Evidence/Workspace-Phase2/Qualification.json). The manifest includes dimensions and SHA-256 for 20 before and 61 final after captures. Baseline and ordinary paired captures use 1440 × 1000; responsive captures are labelled with their width. Screenshots contain only isolated disposable content.
| Workspace | Before | Final populated work | Final empty/no-manuscript work |
|---|---|---|---|
| Write | [Before](Evidence/Workspace-Phase2/Before/Populated-Write.png) | [Established focus](Evidence/Workspace-Phase2/After/Write-established.png) | [First focus](Evidence/Workspace-Phase2/After/Structured-Write.png) |
| Explore | [Before](Evidence/Workspace-Phase2/Before/Populated-Explore.png) | [Discovery and concern](Evidence/Workspace-Phase2/After/Working-Explore.png) | [Starting tools](Evidence/Workspace-Phase2/After/Structured-Explore.png) |
| Plan | [Before](Evidence/Workspace-Phase2/Before/Populated-Plan.png) | [Priorities and schedule](Evidence/Workspace-Phase2/After/Working-Plan.png) | [Undated starting point](Evidence/Workspace-Phase2/After/Structured-Plan.png) |
| Review | [Before](Evidence/Workspace-Phase2/Before/Populated-Review.png) | [Scene context and observations](Evidence/Workspace-Phase2/After/Review-context.png) | [No accepted manuscript](Evidence/Workspace-Phase2/After/Structured-Review.png) |
| Reflect | [Before](Evidence/Workspace-Phase2/Before/Populated-Reflect.png) | [Actual recorded activity](Evidence/Workspace-Phase2/After/Working-Reflect.png) | [Journey starting point](Evidence/Workspace-Phase2/After/Structured-Reflect.png) |
Additional evidence: [no book](Evidence/Workspace-Phase2/After/No-book-Write.png), [both contextual panels with Review](Evidence/Workspace-Phase2/After/Review-1920-panels.png), [narrow Explore](Evidence/Workspace-Phase2/After/Explore-800-panels.png), [Reading](Evidence/Workspace-Phase2/After/Reading-mode.png), [Focus Reading after chapter navigation](Evidence/Workspace-Phase2/After/Focus-next-chapter.png). All five also have expanded/collapsed captures at 1920, 1366 and 800px in the same directory.
## Navigation map
The canonical five `/Writer/Write`, `/Explore`, `/Plan`, `/Review`, `/Reflect` destinations remain. Existing Writer Home, legacy queue/book routes, Reader compatibility alias and PWA Back continue unchanged. Reflect's calendar navigation stays within Reflect; `/Writer/Journey` remains a compatible calendar presentation. Plan setup/preview/plan editing remain their existing secondary routes. Explore's first step transitions to the existing questionnaire after Begin. No new global navigation stack is introduced.
## Limits and stopping point
Discovery is intentionally bounded and deterministic; it does not implement the full Feature Dependency Graph or Progressive Readiness planner. Device-specific discovery/Review preferences do not synchronise across devices. Plan has no new arbitrary personal backlog; it reuses the current focus and established scheduled work. Reliable scene context depends on accepted assignments. The browser tests simulate standalone detection; an installed OS PWA and physical Windows/Word environment are not available. Native/audio transport remains covered by established simulations and unchanged integration paths.
Stop for review after Development qualification. No additional Writer phase is authorised by this delivery.

View File

@ -9,11 +9,11 @@ for(const [label,book,project] of [['Populated',w.book,w.project],['Minimal',w.o
if(before){console.log('PASS baseline authenticated four-fixture captures');return;}
await p.goto(route('Write'));const exportSessions=async()=>await(await p.request.get(base+`/Writer/Work/Export?bookId=${w.book}`)).json();const sessionsBefore=await exportSessions();const form=p.locator('[data-focus-wizard]');if(!await form.isVisible())await p.locator('[data-change-focus]').click();await form.locator('[name=Activity]').selectOption('Revising');await form.locator('[data-focus-next]').click();await form.locator('[name=ChapterID]').selectOption(String(w.chapter));await form.locator('[name=SceneID]').selectOption(String(w.scene));await form.locator('[data-focus-next]').click();await form.locator('[name=Intention]').fill('Clarify the turning point');await form.locator('[data-focus-back]').click();assert.equal(await form.locator('[name=ChapterID]').inputValue(),String(w.chapter));await form.locator('[data-focus-next]').click();assert.equal(await form.locator('[name=Intention]').inputValue(),'Clarify the turning point');let saves=0;p.on('request',r=>{if(r.method()==='POST'&&new URL(r.url()).pathname==='/Writer/SaveObjective')saves++;});await form.evaluate(n=>{n.requestSubmit();n.requestSubmit();});await p.locator('[data-focus-summary]').filter({hasText:'Clarify the turning point'}).waitFor();assert.equal(saves,1);assert.deepEqual(await exportSessions(),sessionsBefore,'focus must not create sessions');await shot('Write-established');await p.goto(route('Plan'));assert((await p.locator('.writer3-main').textContent()).includes('Clarify the turning point'));await p.goto(route('Write'));assert((await p.locator('[data-focus-summary]').textContent()).includes('Clarify the turning point'));await p.locator('[data-change-focus]').click();await form.locator('[data-focus-next]').click();await form.locator('[name=ChapterID]').selectOption('');await form.locator('[data-focus-next]').click();await form.locator('[data-save-focus]').click();await p.locator('[data-focus-summary]').filter({hasText:'Across the book'}).waitFor();assert.deepEqual(await exportSessions(),sessionsBefore);
await p.goto(route('Plan',w.otherBook));await p.locator('[data-change-focus]').click();const next=p.locator('[data-focus-wizard]');await next.locator('[name=Activity]').selectOption('Researching');await next.locator('[data-focus-next]').click();await next.locator('[data-focus-next]').click();await next.locator('[name=Intention]').fill('Consider the next scene without a schedule');await next.locator('[data-save-focus]').click();await p.locator('[data-focus-summary]').filter({hasText:'Consider the next scene without a schedule'}).waitFor();assert(p.url().includes('/Writer/Plan'));
await p.goto(route('Explore'));await p.locator('[data-discovery-tiles] [data-tile]:visible').first().waitFor();const tile=p.locator('[data-discovery-tiles] [data-tile]:visible').first(),id=await tile.getAttribute('data-tile');await tile.locator('[data-dismiss]').click();assert(await p.locator(`[data-tile="${id}"]`).isHidden());await p.reload();assert(await p.locator(`[data-tile="${id}"]`).isHidden());await p.locator('[data-reconsider]').click();assert(await p.locator(`[data-tile="${id}"]`).isVisible());await p.locator(`[data-tile="${id}"] [data-defer]`).click();assert(await p.locator(`[data-tile="${id}"]`).isHidden());await p.locator('[data-reconsider]').click();await p.locator('[data-investigation-opening] input[name=concern]').first().check();await p.locator('[data-investigation-opening] button[type=submit]').click();await p.waitForURL(/Investigate\?bookId=.*id=/);assert(await p.locator('[data-investigation-answer]').isVisible());await p.goto(route('Explore'));await p.locator('[data-my-investigations] article').first().waitFor();const completed=p.locator('[data-my-investigations] article').filter({hasText:'Original results'}).first();await completed.getByRole('button',{name:'Continue',exact:true}).click();await p.locator('.investigation form[data-guidance-navigation]').first().locator('button').click();await p.locator('[data-investigation-companion] #guidance-finding').waitFor();assert.equal(context.pages().length,1);await p.locator('[data-guidance-pin]').click();await p.goto(route('Explore'));await p.locator('[data-discovery-active] form').first().waitFor();await p.evaluate(()=>PlotLineHelpDrawer.open('writer3.explore'));await p.locator('.help-drawer-article').waitFor();await shot('Explore-both-panels');
await p.goto(route('Explore'));await p.locator('[data-discovery-tiles] [data-tile]:visible').first().waitFor();const tile=p.locator('[data-discovery-tiles] [data-tile]:visible').first(),id=await tile.getAttribute('data-tile');await tile.locator('[data-dismiss]').click();assert(await p.locator(`[data-tile="${id}"]`).isHidden());await p.reload();assert(await p.locator(`[data-tile="${id}"]`).isHidden());await p.locator('[data-reconsider]').click();assert(await p.locator(`[data-tile="${id}"]`).isVisible());await p.locator(`[data-tile="${id}"] [data-defer]`).click();assert(await p.locator(`[data-tile="${id}"]`).isHidden());await p.locator('[data-reconsider]').click();await p.locator('[data-investigation-opening] input[name=concern]').first().check();await p.locator('[data-investigation-opening] button[type=submit]').click();await p.waitForURL(/Investigate\?bookId=.*id=/);assert(await p.locator('[data-investigation-answer]').isVisible());await p.goto(route('Explore'));await p.locator('[data-my-investigations] article').first().waitFor();const completed=p.locator('[data-my-investigations] article').filter({hasText:'Original results'}).first();await completed.getByRole('button',{name:'Continue',exact:true}).click();await p.locator('.investigation form[data-guidance-navigation]').first().locator('button').click();await p.locator('[data-investigation-companion] #guidance-finding').waitFor();assert.equal(context.pages().length,1);await p.locator('[data-guidance-pin]').click();await p.goto(route('Explore'));await p.locator('[data-discovery-active] form').first().waitFor();assert((await p.locator('[data-discovery] [data-tile]:visible').count())<=4);assert((await p.locator('[data-discovery-active] [data-tile]:visible').count())<=2);await p.evaluate(()=>PlotLineHelpDrawer.open('writer3.explore'));await p.locator('.help-drawer-article').waitFor();await shot('Explore-both-panels');
await p.goto(route('Review')+'&chapterId='+w.chapter);await p.locator('[data-review-intentions-slot] [data-review-intentions]').waitFor();assert(await p.locator('.reader-page').isVisible());const paragraph=p.locator('[data-paragraph-id][data-scene-id]').filter({hasText:'recorded first paragraph'}).first();await paragraph.click();await p.locator('[data-review-record]').click();await p.locator('[data-review-form] [name=Observation]').fill('The transition could show a clearer consequence.');await p.locator('[data-review-form] [name=Decision]').fill('Consider this transition when revising in Word.');await p.locator('[data-review-save]').click();await p.locator('[data-review-message]').filter({hasText:'Observation saved.'}).waitFor();await p.locator('[data-review-intentions-slot]').getByText('Disposable review scene',{exact:true}).waitFor();await shot('Review-context');await p.locator('#reader-focus').click();await p.locator('.reader-controls a[rel=next]').click();assert.equal(await p.locator('.manuscript-reader').getAttribute('data-focus'),'true');await shot('Focus-next-chapter');await p.locator('#reader-focus').click();await p.goto(route('Plan'));const reviewReturn=await p.locator('a[href*="/Writer/Review?"]').first().getAttribute('href');await p.goto(new URL(reviewReturn,base).href);assert.equal(await p.locator('.manuscript-reader').getAttribute('data-chapter-id'),String(w.chapter2));await p.goto(route('Review')+'&reading=true&chapterId='+w.chapter);assert.equal(await p.locator('.manuscript-reader').getAttribute('data-reading'),'true');await shot('Reading-mode');
// An explicit session is a separate action, never a side effect of choosing focus.
await p.goto(route('Write'));const token=await p.locator('input[name=__RequestVerificationToken]').first().inputValue();const session=require('crypto').randomUUID();assert.equal((await p.request.post(base+'/Writer/Work/Start',{form:{bookId:w.book,kind:'Planning',requestId:session,__RequestVerificationToken:token}})).status(),200);assert.equal((await p.request.post(base+'/Writer/Work/End',{form:{bookId:w.book,sessionId:session,note:'Considered the next writing step',__RequestVerificationToken:token}})).status(),200);
if(w.planId){await p.goto(`${base}/Writer/PlanActivities?writingPlanId=${w.planId}`);}else{await p.goto(`${base}/Writer/ScheduleSetup?projectId=${w.project}&bookId=${w.book}`);await p.locator('[name=PlanName]').fill('Disposable Phase 2 writing plan');const today=new Date(),end=new Date(Date.now()+28*86400000);await p.locator('[name=StartDate]').fill(today.toISOString().slice(0,10));await p.locator('[name=DeadlineDate]').fill(end.toISOString().slice(0,10));for(const box of await p.locator('input[type=checkbox][name$=".IsAvailable"]').all())await box.check();await p.getByRole('button',{name:'Review activities',exact:true}).click();await p.waitForURL(/PlanActivities|SchedulePreview/);}if(p.url().includes('PlanActivities')){await p.locator('input[type=checkbox][name=Confirm]').check();await p.getByRole('button',{name:'Commit reviewed schedule'}).click();await p.waitForURL(/SchedulePreview/);}const planId=new URL(p.url()).searchParams.get('writingPlanId');assert(planId);await p.goto(route('Plan'));assert((await p.locator('.writer3-main').textContent()).includes('Scheduled writing activities'));await p.goto(`${base}/Writer/EditWritingPlan?writingPlanId=${planId}`);assert(await p.locator('[name=PlanName]').isVisible());await p.goto(route('Reflect'));await p.locator('.writer-month-grid').waitFor();const month=await p.locator('.writer-section-heading h2').first().textContent();await p.getByRole('link',{name:'Previous month',exact:true}).click();assert(p.url().includes('/Writer/Reflect'));assert.notEqual(await p.locator('.writer-section-heading h2').first().textContent(),month);await p.locator('.writer-month-grid a').first().click();assert(p.url().includes('day='));await shot('Reflect-day');
if(w.planId){await p.goto(`${base}/Writer/PlanActivities?writingPlanId=${w.planId}`);}else{await p.goto(`${base}/Writer/ScheduleSetup?projectId=${w.project}&bookId=${w.book}`);await p.locator('[name=PlanName]').fill('Disposable Phase 2 writing plan');const today=new Date(),end=new Date(Date.now()+28*86400000);await p.locator('[name=StartDate]').fill(today.toISOString().slice(0,10));await p.locator('[name=DeadlineDate]').fill(end.toISOString().slice(0,10));for(const box of await p.locator('input[type=checkbox][name$=".IsAvailable"]').all())await box.check();await p.getByRole('button',{name:'Review activities',exact:true}).click();await p.waitForURL(/PlanActivities|SchedulePreview/);}if(p.url().includes('PlanActivities')){await p.locator('input[type=checkbox][name=Confirm]').check();await p.getByRole('button',{name:'Commit reviewed schedule'}).click();await p.waitForURL(/SchedulePreview/);}const planId=new URL(p.url()).searchParams.get('writingPlanId');assert(planId);await p.goto(route('Plan'));assert((await p.locator('.writer3-main').textContent()).includes('Scheduled writing activities'));await p.goto(`${base}/Writer/EditWritingPlan?writingPlanId=${planId}`);assert(await p.locator('[name=PlanName]').isVisible());await p.locator('[name=PlanName]').fill('Disposable Phase 2 adjusted plan');const saveRibbon=p.locator('[data-ribbon-collapse]');if(await saveRibbon.getAttribute('aria-expanded')==='false')await saveRibbon.click();await p.getByRole('button',{name:'Save Plan',exact:true}).click();await p.waitForURL(/WritingPlans/);assert((await p.locator('body').textContent()).includes('Disposable Phase 2 adjusted plan'));await p.goto(route('Reflect'));await p.locator('.writer-month-grid').waitFor();const month=await p.locator('.writer-section-heading h2').first().textContent();await p.getByRole('link',{name:'Previous month',exact:true}).click();assert(p.url().includes('/Writer/Reflect'));assert.notEqual(await p.locator('.writer-section-heading h2').first().textContent(),month);await p.locator('.writer-month-grid a').first().click();assert(p.url().includes('day='));await shot('Reflect-day');
for(const d of ['Write','Explore','Plan','Review','Reflect']){await p.goto(route(d));await p.waitForTimeout(150);await shot('Working-'+d);}
for(const width of [1920,1366,800])for(const d of ['Write','Explore','Plan','Review','Reflect']){await p.setViewportSize({width,height:1000});await p.goto(route(d));await p.waitForFunction(()=>window.PlotDirectorGuidanceSummary?.active===true);const ribbon=p.locator('[data-ribbon-collapse]');if(await ribbon.getAttribute('aria-expanded')==='false')await ribbon.click();if(await p.locator('[data-guidance-open]').isVisible())await p.locator('[data-guidance-open]').click();await p.evaluate(()=>PlotLineHelpDrawer.open('writer3.layout'));await p.locator('.help-drawer-article').waitFor();assert(await p.evaluate(()=>document.documentElement.scrollWidth<=innerWidth+2),d+' '+width);await shot(d+'-'+width+'-panels');const collapse=p.locator('[data-ribbon-collapse]');await collapse.click();assert(await p.evaluate(()=>document.documentElement.scrollWidth<=innerWidth+2));if(await p.locator('[data-guidance-collapse]').isVisible())await p.locator('[data-guidance-collapse]').click();await p.locator('[data-help-collapse]').count().then(async n=>{if(n)await p.locator('[data-help-collapse]').click();});await shot(d+'-'+width+'-collapsed');}
assert.deepEqual(errors,[]);console.log('PASS Phase 2 authenticated four fixtures, AJAX focus and no sessions, discovery preferences, canonical questionnaire, saved guidance, Review/Reading/Focus scene context, Reflect month/day, three widths and panel/ribbon states');await context.close();}finally{await browser.close();}})().catch(e=>{console.error(e.stack);process.exitCode=1});