create-pmos 0.276.0 → 0.278.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/package.json +1 -1
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/briefing-premium-board-test.js +1 -1
  7. package/workspace/briefing-premium-calendar-3-test.js +18 -6
  8. package/workspace/briefing-premium-initiative-test.js +1 -1
  9. package/workspace/briefing-premium-insights-test.js +2 -2
  10. package/workspace/briefing-premium-test.js +3 -2
  11. package/workspace/briefing-premium-work-test.js +6 -4
  12. package/workspace/c3-briefing-test.js +2 -2
  13. package/workspace/c3-capture-test.js +3 -3
  14. package/workspace/c3-core-docs-test.js +1 -1
  15. package/workspace/c3-driver-test.js +6 -6
  16. package/workspace/c3-foundation-test.js +4 -4
  17. package/workspace/c3-ini-harness.js +2 -2
  18. package/workspace/c3-initiatives-test.js +1 -1
  19. package/workspace/c3-light-load-test.js +2 -2
  20. package/workspace/c3-one-home-test.js +2 -2
  21. package/workspace/c3-phone-test.js +12 -12
  22. package/workspace/c3-quiet-test.js +5 -5
  23. package/workspace/c3-report-design-real-test.js +2 -2
  24. package/workspace/c3-report-design-test.js +4 -4
  25. package/workspace/c3-report-setup-test.js +7 -7
  26. package/workspace/c3-report-structure-real-test.js +2 -2
  27. package/workspace/c3-report-structure-test.js +2 -2
  28. package/workspace/c3-reports-test.js +2 -2
  29. package/workspace/c3-scan-test.js +7 -7
  30. package/workspace/c3-sessions-panel-test.js +2 -2
  31. package/workspace/c3-settings-test.js +7 -7
  32. package/workspace/c3-updates-test.js +1 -1
  33. package/workspace/c3-work-test.js +2 -2
  34. package/workspace/extension/README.md +1 -1
  35. package/workspace/extension/panel.js +3 -3
  36. package/workspace/extension/popup.js +4 -4
  37. package/workspace/fixtures/my-work-premium-facts.js +4 -4
  38. package/workspace/guide/briefing-premium.md +13 -2
  39. package/workspace/lib/my-work-premium.js +38 -8
  40. package/workspace/package-lock.json +2 -2
  41. package/workspace/package.json +1 -1
  42. package/workspace/premium-work-depth-test.js +375 -0
  43. package/workspace/public/pm/c3-audience-link.js +2 -2
  44. package/workspace/public/pm/c3-capture.js +2 -2
  45. package/workspace/public/pm/c3-focus.js +1 -1
  46. package/workspace/public/pm/premium-board.js +2 -2
  47. package/workspace/public/pm/premium-insights.js +1 -1
  48. package/workspace/public/pm/premium-report-read.js +1 -1
  49. package/workspace/public/pm/premium-shell.js +3 -3
  50. package/workspace/public/pm/premium-work.js +386 -37
  51. package/workspace/public/pm/premium.css +45 -0
  52. package/workspace/public/premium-board.html +1 -1
  53. package/workspace/public/premium-initiative.html +1 -1
  54. package/workspace/public/premium-insights.html +1 -1
  55. package/workspace/public/premium-work.html +1 -1
  56. package/workspace/public/premium.html +11 -2
  57. package/workspace/server.js +12 -4
  58. package/workspace/test-lists/premium-work-depth.json +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.276.0",
3
+ "version": "0.278.0",
4
4
  "description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@d4e3e35
1
+ kernel-source: pmos@c0a2372
2
2
  assembled: 2026-10-18
3
3
  mode: vendor
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Eval calibration log"
4
4
  description: "Append-only record of every PM override of an evaluator verdict."
5
- generated: {by: process:create-pmos, at: "2026-10-18T17:05:55Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-18T18:12:46Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Health budgets"
4
4
  description: "Closed registry of health-budget anchors (D59), edited only by the PM."
5
- generated: {by: process:create-pmos, at: "2026-10-18T17:05:55Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-18T18:12:46Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Discoveries and friction log"
4
4
  description: "Append-only record of what runs discovered and where the process rubbed."
5
- generated: {by: process:create-pmos, at: "2026-10-18T17:05:55Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-18T18:12:46Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -63,7 +63,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
63
63
  /* B1 */
64
64
  const rail = await p.evaluate(() => ({ names: [...document.querySelectorAll('.rail .pl')].map((b) => b.textContent.trim()), cur: document.querySelector('.rail [aria-current="page"]').textContent.trim(), pi: getComputedStyle(document.querySelector('.rail')).getPropertyValue('--pi').trim(), title: document.title, name: document.querySelector('#crBoard').textContent, sw: document.querySelector('#crSw').hidden }));
65
65
  ok('B1 the rail names four places, Board is current, the board is named and has no switcher for one board', rail.names.join() === 'Briefing,My work,Board,Insights' && rail.cur === 'Board' && rail.pi === '2' && rail.name === 'pmos' && rail.sw, JSON.stringify(rail));
66
- { const tc = await p.evaluate(() => { const a = document.querySelector('#toConsole'); if (!a) return null; const r = a.getBoundingClientRect(); return { href: a.getAttribute('href'), label: a.getAttribute('aria-label'), w: Math.round(r.width), h: Math.round(r.height), tab: a.tabIndex }; }); ok('B1 the header links to the console (premium-console-link)', tc && tc.href === '/c3.html' && tc.label === 'Open the console' && tc.w >= 44 && tc.h >= 44 && tc.tab === 0, JSON.stringify(tc)); }
66
+ { const tc = await p.evaluate(() => { const a = document.querySelector('#toConsole'); if (!a) return null; const r = a.getBoundingClientRect(); return { href: a.getAttribute('href'), label: a.getAttribute('aria-label'), w: Math.round(r.width), h: Math.round(r.height), tab: a.tabIndex }; }); ok('B1 the header links to the console (premium-console-link)', tc && tc.href === '/console.html' && tc.label === 'Open the console' && tc.w >= 44 && tc.h >= 44 && tc.tab === 0, JSON.stringify(tc)); }
67
67
  ok('B1 the page is served at /premium-board and /premium-board.html', (await fetch(BASE + '/premium-board')).status === 200 && (await fetch(BASE + '/premium-board.html')).status === 200);
68
68
  for (const [go, re] of [['brief', /\/premium\.html$/], ['work', /\/premium-work\.html$/]]) {
69
69
  const r2 = await open(); await r2.page.locator(`.rail [data-go="${go}"]`).click();
@@ -91,9 +91,8 @@ const RECORDER = () => {
91
91
  const open = async ({ w = 1280, h = 900, theme = 'light', notes = [], newError = null, recordError = null, focus = FOCUS, replay = REPLAY, topics = [], audio = false, url = '/premium.html', openDialog = true, stub = true } = {}) => {
92
92
  const ctx = await browser.newContext({ viewport: { width: w, height: h } });
93
93
  const page = await ctx.newPage();
94
- const S = { errors: [], reqs: [], notes: notes.map((n) => ({ ...n })), newPosts: [], recPosts: [], pausePosts: [], stopPosts: [], topicPosts: [], matPosts: [], focusGets: 0, dialogs: [], pauseSeen: [], newError, recordError };
94
+ const S = { errors: [], reqs: [], notes: notes.map((n) => ({ ...n })), newPosts: [], recPosts: [], pausePosts: [], stopPosts: [], topicPosts: [], matPosts: [], focusGets: 0, dialogs: [], newError, recordError };
95
95
  page.on('pageerror', (e) => S.errors.push(String((e && e.message) || e)));
96
- ctx.on('request', (r) => { if (r.method() === 'POST' && /\/api\/notes\/pause$/.test(r.url())) S.pauseSeen.push(JSON.parse(r.postData() || '{}')); });
97
96
  page.on('dialog', (d) => { S.dialogs.push(d.type()); if (S.leave) d.accept(); else d.dismiss(); });
98
97
  page.on('request', (r) => { if (r.url().startsWith(BASE)) S.reqs.push(r.method() + ' ' + new URL(r.url()).pathname); });
99
98
  const noteBy = (id) => S.notes.find((n) => n.id === id);
@@ -124,6 +123,13 @@ const RECORDER = () => {
124
123
  await page.route(/\/api\/meeting-focus(\?|$)/, (r) => { S.focusGets++; const a = typeof focus === 'function' ? focus() : focus; return json(r, a, a.ok === false ? 404 : 200); });
125
124
  await page.route('**/api/calendar-links', (r) => json(r, { ok: true }));
126
125
  if (stub) await page.addInitScript(RECORDER);
126
+ await page.addInitScript(() => {
127
+ const f = window.fetch;
128
+ window.fetch = function (u, o) {
129
+ try { if (/\/api\/notes\/pause$/.test(String(u)) && o && o.method === 'POST') { const l = JSON.parse(localStorage.getItem('__pauseIssued') || '[]'); l.push({ body: JSON.parse(o.body || '{}'), keepalive: !!o.keepalive }); localStorage.setItem('__pauseIssued', JSON.stringify(l)); } } catch { /* the note is only for the test */ }
130
+ return f.apply(this, arguments);
131
+ };
132
+ });
127
133
  if (audio) S.replay = { ...REPLAY, audio: { url: '/api/notes/recording?id=n1', ms: 4000 }, length_ms: 4000, lines: [{ i: 0, t: 500, who: 'Dara', text: 'Welcome' }, { i: 1, t: 2500, who: 'Priya', text: 'Plan' }], keys: [{ k: 'decision', text: 'Plan', t: 2500, state: 'draft' }], runs: [{ topic: 'capacity', n: 1, from_ms: 0, to_ms: 2000 }, { topic: 'risks', n: 2, from_ms: 2000, to_ms: 4000 }], shots: [] };
128
134
  await page.goto(BASE + url + (url.includes('?') ? '&' : '?') + 'theme=' + theme);
129
135
  if (url === '/premium.html' && openDialog) {
@@ -208,10 +214,16 @@ const RECORDER = () => {
208
214
  await Lv.page.goto(BASE + '/premium-work.html').catch(() => {});
209
215
  ok('R4 leaving the Briefing while it records makes the browser ask first, and staying pauses nothing', Lv.dialogs.includes('beforeunload') && Lv.pausePosts.length === 0 && /premium\.html/.test(Lv.page.url()), Lv.dialogs.join() + ' ' + Lv.page.url());
210
216
  Lv.leave = true;
211
- // After the stay above, Chromium on CI reports the next navigation as ERR_ABORTED while it still leaves the page: wait for the page itself.
212
- await Lv.page.goto(BASE + '/premium-work.html').catch(() => {});
213
- await Lv.page.waitForURL(/premium-work\.html/, { timeout: 10000 }).catch(() => {});
214
- ok('R4 leaving anyway sends the pause for that note (a request that leaves with the page)', await until(() => Lv.pauseSeen.length >= 1) && Lv.pauseSeen[0].id === 'n1', JSON.stringify(Lv.pauseSeen));
217
+ /* After the stay above, the navigation that follows can be cancelled outright: the stay's own cancel may still be settling, so the new goto is dropped, no second prompt is
218
+ * raised and the page never leaves (seen in about 1 run in 4). Ask again until the page has left, as the PM would press the link again. */
219
+ for (let tries = 0; tries < 5 && !/premium-work\.html/.test(Lv.page.url()); tries++) {
220
+ await Lv.page.goto(BASE + '/premium-work.html').catch(() => {});
221
+ await Lv.page.waitForURL(/premium-work\.html/, { timeout: 4000 }).catch(() => {});
222
+ }
223
+ /* A keepalive request sent from `pagehide` outlives the page, so Playwright's request event and page.route can lose it as the page goes: the race is in the observer, not the page.
224
+ * The page's own record is exact: the init script wraps fetch and notes each pause the page issues in localStorage, which the next page of the same origin reads. */
225
+ const issued = await until(() => Lv.page.evaluate(() => { try { const l = JSON.parse(localStorage.getItem('__pauseIssued') || '[]'); return l.length ? l : null; } catch { return null; } }));
226
+ ok('R4 leaving anyway sends the pause for that note (a request that leaves with the page)', !!issued && issued[0].body.id === 'n1' && issued[0].keepalive === true, JSON.stringify(issued));
215
227
  if (!Lv.pausePosts.length) { const n = Lv.notes.find((x) => x.id === 'n1'); n.state = 'paused'; n.resume_until = new Date(Date.now() + 3600000).toISOString(); } // the stand-in could not answer a request sent as the page left
216
228
  await Lv.page.reload();
217
229
  ok('R3 the next page shows the chip as Paused, with Open and Stop and no Resume', await until(async () => /Paused Live review/.test((await chip(Lv.page)) || '')) && await Lv.page.evaluate(() => !!document.querySelector('#recChip [data-r="open"]') && !!document.querySelector('#recChip [data-r="stop"]') && !document.querySelector('#recChip [data-r="resume"]')));
@@ -69,7 +69,7 @@ const HEALTH = { ok: true, path: 'planning/prd/self-serve-v2-prd.md', health: {
69
69
  /* I1 place */
70
70
  const rail = await p.evaluate(() => ({ names: [...document.querySelectorAll('.rail .pl')].map((b) => b.textContent.trim()), cur: document.querySelector('.rail [aria-current="page"]').textContent.trim() }));
71
71
  ok('I1 the rail names the four places and marks Board', rail.names.join() === 'Briefing,My work,Board,Insights' && rail.cur === 'Board');
72
- { const tc = await p.evaluate(() => { const a = document.querySelector('#toConsole'); if (!a) return null; const r = a.getBoundingClientRect(); return { href: a.getAttribute('href'), label: a.getAttribute('aria-label'), w: Math.round(r.width), h: Math.round(r.height), tab: a.tabIndex }; }); ok('I1 the header links to the console (premium-console-link)', tc && tc.href === '/c3.html' && tc.label === 'Open the console' && tc.w >= 44 && tc.h >= 44 && tc.tab === 0, JSON.stringify(tc)); }
72
+ { const tc = await p.evaluate(() => { const a = document.querySelector('#toConsole'); if (!a) return null; const r = a.getBoundingClientRect(); return { href: a.getAttribute('href'), label: a.getAttribute('aria-label'), w: Math.round(r.width), h: Math.round(r.height), tab: a.tabIndex }; }); ok('I1 the header links to the console (premium-console-link)', tc && tc.href === '/console.html' && tc.label === 'Open the console' && tc.w >= 44 && tc.h >= 44 && tc.tab === 0, JSON.stringify(tc)); }
73
73
  ok('I1 the crumb names the board and the initiative, with a switcher for each and the sparkle', await p.evaluate(() => document.querySelector('#crBoard').textContent === 'Onboarding' && document.querySelector('#crIni').textContent === 'Self-serve onboarding v2' && !!document.querySelector('#crSw') && !!document.querySelector('#crSw2') && document.querySelector('#crAsk').getAttribute('aria-label') === 'Ask about this initiative'));
74
74
  await p.route('**/premium-board.html*', (r) => r.fulfill({ contentType: 'text/html', body: '<title>b</title>' }));
75
75
  await p.route('**/premium-initiative.html?id=partner*', (r) => r.fulfill({ contentType: 'text/html', body: '<title>i</title>' }));
@@ -63,7 +63,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
63
63
  /* I1 */
64
64
  const rail = await p.evaluate(() => ({ names: [...document.querySelectorAll('.rail .pl')].map((b) => b.textContent.trim()), cur: document.querySelector('.rail [aria-current="page"]').textContent.trim(), pi: getComputedStyle(document.querySelector('.rail')).getPropertyValue('--pi').trim(), title: document.title, name: document.querySelector('#crBoard').textContent, sw: document.querySelector('#crSw').hidden }));
65
65
  ok('I1 the rail names four places, Insights is current, the board is named and has no switcher for one board', rail.names.join() === 'Briefing,My work,Board,Insights' && rail.cur === 'Insights' && rail.pi === '3' && rail.name === 'pmos' && rail.sw, JSON.stringify(rail));
66
- { const tc = await p.evaluate(() => { const a = document.querySelector('#toConsole'); if (!a) return null; const r = a.getBoundingClientRect(); return { href: a.getAttribute('href'), label: a.getAttribute('aria-label'), w: Math.round(r.width), h: Math.round(r.height), tab: a.tabIndex }; }); ok('I1 the header links to the console (premium-console-link)', tc && tc.href === '/c3.html' && tc.label === 'Open the console' && tc.w >= 44 && tc.h >= 44 && tc.tab === 0, JSON.stringify(tc)); }
66
+ { const tc = await p.evaluate(() => { const a = document.querySelector('#toConsole'); if (!a) return null; const r = a.getBoundingClientRect(); return { href: a.getAttribute('href'), label: a.getAttribute('aria-label'), w: Math.round(r.width), h: Math.round(r.height), tab: a.tabIndex }; }); ok('I1 the header links to the console (premium-console-link)', tc && tc.href === '/console.html' && tc.label === 'Open the console' && tc.w >= 44 && tc.h >= 44 && tc.tab === 0, JSON.stringify(tc)); }
67
67
  ok('I1 the page is served at /premium-insights and /premium-insights.html', (await fetch(BASE + '/premium-insights')).status === 200 && (await fetch(BASE + '/premium-insights.html')).status === 200);
68
68
  for (const [go, re] of [['brief', /\/premium\.html$/], ['work', /\/premium-work\.html$/], ['init', /\/premium-board\.html$/]]) {
69
69
  const r2 = await open(); await r2.page.locator(`.rail [data-go="${go}"]`).click();
@@ -126,7 +126,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
126
126
  const rp = await p.evaluate(() => ({ rows: [...document.querySelectorAll('#repDocs .dmr')].map((r) => r.querySelector('.dmn b').textContent + ' / ' + r.querySelector('.s').textContent), note: document.querySelector('#repBody .mhint').textContent, cap: document.querySelector('#repCap').textContent }));
127
127
  ok('I8 the Reports card lists the report files: cadence, slot, draft or issued', rp.rows.join() === 'biweekly · 14 Oct / Draft,monthly · 30 Sep / Issued 1 Oct' && /Nothing is sent from here/.test(rp.note) && rp.cap === '2', JSON.stringify(rp));
128
128
  { const R = await open(); await R.page.locator('#repDocs .dmo').first().click(); ok('I8 a report opens in the page\'s reader, not the console (premium-report-read R1)', await until(() => R.page.evaluate(() => document.querySelector('#dlg').classList.contains('rdrd') && document.querySelector('#dlg').classList.contains('on')), 5000) && /premium-insights\.html/.test(R.page.url()), R.page.url());
129
- await R.page.click('#dClose'); await R.page.click('#repOpen'); ok('I8 the Reports tab link still opens the console to edit or issue', await until(() => /\/c3\.html\?tab=rep/.test(R.page.url()), 5000), R.page.url()); await R.ctx.close(); }
129
+ await R.page.click('#dClose'); await R.page.click('#repOpen'); ok('I8 the Reports tab link still opens the console to edit or issue', await until(() => /\/console\.html\?tab=rep/.test(R.page.url()), 5000), R.page.url()); await R.ctx.close(); }
130
130
  /* I9 labels */
131
131
  ok('I9 no demo label, and the foot says what is left out', !(await p.evaluate(() => /demo/i.test(document.querySelector('main.stage').textContent))) && /Left out: run-based charts/.test(await txt('#foot')) && /Real data/.test(await txt('#snap')));
132
132
  ok('I9 the page makes no write request on its own', A.posts.length === 0, A.posts.join());
@@ -75,8 +75,9 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
75
75
  ok('R1 the rail names four places and Briefing is current', rail.names.join() === 'Briefing,My work,Board,Insights' && rail.cur === 'Briefing', JSON.stringify(rail));
76
76
  ok('R1 each place has a target: Briefing and My work are premium pages, Board and Insights open the console tab', rail.go.join() === 'brief,work,init,rep');
77
77
  const def = await fetch(BASE + '/').then((r) => r.text());
78
- ok('R1 the console stays the default page', /id="c3-root"/.test(def) && !/class="rail/.test(def));
79
- { const tc = await p.evaluate(() => { const a = document.querySelector('#toConsole'); if (!a) return null; const r = a.getBoundingClientRect(); return { href: a.getAttribute('href'), label: a.getAttribute('aria-label'), w: Math.round(r.width), h: Math.round(r.height), tab: a.tabIndex }; }); ok('R1 the header links to the console (premium-console-link)', tc && tc.href === '/c3.html' && tc.label === 'Open the console' && tc.w >= 44 && tc.h >= 44 && tc.tab === 0, JSON.stringify(tc)); }
78
+ ok('R1 the premium Briefing is the default page', /class="rail/.test(def) && !/id="c3-root"/.test(def));
79
+ { const con = await fetch(BASE + '/console.html').then((r) => r.text()); ok('R1 the console is served at /console.html', /id="c3-root"/.test(con)); const old = await fetch(BASE + '/c3.html', { redirect: 'manual' }); const oldQ = await fetch(BASE + '/c3.html?tab=rep', { redirect: 'manual' }); ok('R1 /c3.html goes to the premium Briefing, and with a query to the console with the same query', old.status === 302 && old.headers.get('location') === '/premium.html' && oldQ.status === 302 && oldQ.headers.get('location') === '/console.html?tab=rep', old.headers.get('location') + ' | ' + oldQ.headers.get('location')); }
80
+ { const tc = await p.evaluate(() => { const a = document.querySelector('#toConsole'); if (!a) return null; const r = a.getBoundingClientRect(); return { href: a.getAttribute('href'), label: a.getAttribute('aria-label'), w: Math.round(r.width), h: Math.round(r.height), tab: a.tabIndex }; }); ok('R1 the header links to the console (premium-console-link)', tc && tc.href === '/console.html' && tc.label === 'Open the console' && tc.w >= 44 && tc.h >= 44 && tc.tab === 0, JSON.stringify(tc)); }
80
81
 
81
82
  /* premium-search-bell: the Search button, the bell and Ctrl K, from the shared shell */
82
83
  {
@@ -65,7 +65,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
65
65
  /* M1 */
66
66
  const rail = await p.evaluate(() => ({ names: [...document.querySelectorAll('.rail .pl')].map((b) => b.textContent.trim()), cur: document.querySelector('.rail [aria-current="page"]').textContent.trim(), go: [...document.querySelectorAll('.rail [data-go]')].map((b) => b.dataset.go), pi: getComputedStyle(document.querySelector('.rail')).getPropertyValue('--pi').trim(), title: document.title }));
67
67
  ok('M1 the rail names four places, My work is current and the indicator sits on it', rail.names.join() === 'Briefing,My work,Board,Insights' && rail.cur === 'My work' && rail.go.join() === 'brief,work,init,rep' && rail.pi === '1', JSON.stringify(rail));
68
- { const tc = await p.evaluate(() => { const a = document.querySelector('#toConsole'); if (!a) return null; const r = a.getBoundingClientRect(); return { href: a.getAttribute('href'), label: a.getAttribute('aria-label'), w: Math.round(r.width), h: Math.round(r.height), tab: a.tabIndex }; }); ok('M1 the header links to the console (premium-console-link)', tc && tc.href === '/c3.html' && tc.label === 'Open the console' && tc.w >= 44 && tc.h >= 44 && tc.tab === 0, JSON.stringify(tc)); }
68
+ { const tc = await p.evaluate(() => { const a = document.querySelector('#toConsole'); if (!a) return null; const r = a.getBoundingClientRect(); return { href: a.getAttribute('href'), label: a.getAttribute('aria-label'), w: Math.round(r.width), h: Math.round(r.height), tab: a.tabIndex }; }); ok('M1 the header links to the console (premium-console-link)', tc && tc.href === '/console.html' && tc.label === 'Open the console' && tc.w >= 44 && tc.h >= 44 && tc.tab === 0, JSON.stringify(tc)); }
69
69
  const res = await fetch(BASE + '/premium-work').then((r) => r.status);
70
70
  ok('M1 the page is served at /premium-work and /premium-work.html', res === 200 && (await fetch(BASE + '/premium-work.html')).status === 200);
71
71
  {
@@ -98,7 +98,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
98
98
  /* M5 */
99
99
  const ag = await p.evaluate(() => ({ tiles: [...document.querySelectorAll('#pipe .pst')].map((x) => x.textContent.replace(/\s+/g, ' ').trim()), hot: document.querySelectorAll('#pipe .pst.hot').length, rows: [...document.querySelectorAll('#agl .ws')].map((x) => x.textContent), cap: document.querySelector('#agCap').textContent, hold: document.querySelector('#agHold').textContent, buttons: [...document.querySelectorAll('button')].map((b) => b.textContent).join('|') }));
100
100
  ok('M5 three counts from the agent field and the rows that are running or ready', ag.tiles.join() === '1Running,1Failed,1To review' && ag.hot === 1 && ag.rows.length === 3 && /draft ready to review/.test(ag.rows[0]) && /the run failed/.test(ag.rows.join()) && ag.cap === 'one to review', JSON.stringify(ag));
101
- ok('M5 Give to agent, Approve, Revise and Retry are not on the page, and the page says why', !/\b(Give to agent|Approve|Revise|Retry)\b/i.test(ag.buttons) && /not built yet/.test(ag.hold));
101
+ ok('M5 the With agents card offers no press of its own, and says nothing is posted before a confirm', !/\b(Give to agent|Approve|Revise|Retry)\b/i.test(ag.buttons) && /Nothing is posted until you confirm it/.test(ag.hold));
102
102
 
103
103
  /* M6 */
104
104
  const wt = await p.evaluate(() => ({ cap: document.querySelector('#waitCap').textContent, rows: [...document.querySelectorAll('#waitBody .wtit')].map((x) => x.textContent), subs: [...document.querySelectorAll('#waitBody .ws')].map((x) => x.textContent), nudge: /Nudge/.test(document.querySelector('#waitCard').textContent) }));
@@ -139,10 +139,10 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
139
139
  ok('M8 Undo posts Reopen for that item', await until(() => A.posts.some((x) => x.path === '/api/pm-items/reopen' && x.body.id === 'item-bbbbbbbbbbb2')));
140
140
  await openKey('work:item-aaaaaaaaaaa1');
141
141
  const dlg = await p.evaluate(() => ({ title: document.querySelector('#dTitle').textContent, btn: [...document.querySelectorAll('#card button')].map((b) => b.textContent.trim()), mod: document.querySelector('#dlg').getAttribute('aria-modal'), ask: !!document.querySelector('#askGo'), wDis: document.querySelector('#wBtn').disabled }));
142
- ok('M8 a dialog offers Done, Not yet, Move to, Waiting and Drop, and the agent box; Keep only where the review list holds the item', dlg.title === 'Decide how partial refunds are handled' && dlg.btn.join() === 'Done,Later today,Tomorrow,Next week,Do today,Later,Wait for them,Drop it' && dlg.mod === 'true' && dlg.ask && dlg.wDis, JSON.stringify(dlg));
142
+ ok('M8 a dialog offers the agent, Done, Not yet, Move to, the tool row, Waiting and Drop, and the agent box; Keep only where the review list holds the item', dlg.title === 'Decide how partial refunds are handled' && dlg.btn.join() === 'Let the agent draft this,Done,Later today,Tomorrow,Next week,Do today,Edit,Who does each step,Not before…,Someday,Wait for them,Drop it' && dlg.mod === 'true' && dlg.ask && dlg.wDis, JSON.stringify(dlg));
143
143
  await p.locator('#card [data-p="notyet"][data-when="tomorrow"]').click();
144
144
  ok('M8 Not yet posts the item and the day, and closes the dialog', await until(() => A.posts.some((x) => x.path === '/api/pm-items/notyet' && x.body.id === 'item-aaaaaaaaaaa1' && x.body.when === 'tomorrow' && Object.keys(x.body).sort().join() === 'id,when')) && await until(() => p.evaluate(() => !document.querySelector('#dlg').classList.contains('on'))));
145
- for (const [sel, route, check] of [['[data-p="flag"]', '/api/pm-items/flag', (b) => b.flagged === true], ['[data-p="park"]', '/api/pm-items/park', (b) => Object.keys(b).join() === 'id'], ['[data-p="done"]', '/api/pm-items/done', (b) => Object.keys(b).join() === 'id'], ['[data-p="remove"]', '/api/pm-items/remove', (b) => Object.keys(b).join() === 'id']]) {
145
+ for (const [sel, route, check] of [['[data-p="flag"]', '/api/pm-items/flag', (b) => b.flagged === true], ['[data-p="xt"][data-k="someday"]', '/api/pm-items/someday', (b) => Object.keys(b).join() === 'id'], ['[data-p="done"]', '/api/pm-items/done', (b) => Object.keys(b).join() === 'id'], ['[data-p="remove"]', '/api/pm-items/remove', (b) => Object.keys(b).join() === 'id']]) {
146
146
  await openKey('work:item-aaaaaaaaaaa2'); const n = A.posts.length;
147
147
  await p.locator('#card ' + sel).click();
148
148
  ok(`M8 ${route.split('/').pop()} posts exactly what the Work page's route takes`, await until(() => A.posts.length > n && lastPost().path === route && lastPost().body.id === 'item-aaaaaaaaaaa2' && check(lastPost().body)), JSON.stringify(lastPost()));
@@ -265,6 +265,8 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
265
265
  await m.evaluate((t) => { document.documentElement.dataset.theme = t; document.querySelector('.pl[data-p="work"]').click(); }, th);
266
266
  await until(() => m.evaluate(() => document.querySelectorAll('#plateBody .wrow').length > 0)); await sleep(900);
267
267
  const R = await open({ w, h, theme: th }); await sleep(500);
268
+ /* a theme change starts a .3 s box-shadow transition; on a slow runner it can still be running, so let every animation finish before reading styles */
269
+ for (const pg of [m, R.page]) await pg.evaluate(() => Promise.all(document.getAnimations().filter((a) => a.effect && a.effect.getComputedTiming().iterations !== Infinity).map((a) => a.finished.catch(() => null)))).catch(() => null);
268
270
  const a = await grab(m, PAIRS), c = await grab(R.page, PAIRS), diffs = [];
269
271
  for (const [n] of PAIRS) {
270
272
  if (!a[n] || !c[n]) { diffs.push(n + ' missing'); continue; }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
  /* c3-briefing-test.js — the console3 Briefing page (initiative console3-briefing-parity; planning/prd/console3-briefing-parity-prd.md R1 to R6).
4
- * Loads /c3.html?demo=1 (demo mode answers every /api call, so nothing reaches the server) and holds:
4
+ * Loads /console.html?demo=1 (demo mode answers every /api call, so nothing reaches the server) and holds:
5
5
  * R1 two columns: stance + deck + Needs you on the left; Today + Portfolio pulse on the right
6
6
  * R2 Review, Handled, What I could stop and Data you can lean on are not on the Briefing
7
7
  * R3 the greeting and the lens line follow the clock; there is no day-part switch (initiative c3-daypart-auto-only)
@@ -50,7 +50,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
50
50
  const page = await ctx.newPage();
51
51
  const errors = [];
52
52
  page.on('pageerror', (e) => errors.push(String((e && e.message) || e)));
53
- await page.goto(BASE + '/c3.html?demo=1');
53
+ await page.goto(BASE + '/console.html?demo=1');
54
54
  const up = await until(() => page.evaluate(() => !!document.querySelector('[data-c3-demo="1"]') && document.querySelectorAll('#c3-root .deck .fc').length > 0), 45000, 250);
55
55
  return { ctx, page, errors, up };
56
56
  };
@@ -2,7 +2,7 @@
2
2
  'use strict';
3
3
  /* c3-capture-test.js — the PMOS Chrome extension's popup page, end to end against the REAL backend (initiative report-design-studio; mockup 42-reportdeck.js
4
4
  * hashes #design-chrome and #design-chrome-page). A real server on a scratch repository, a real Chromium, and a small parent page that PLAYS THE EXTENSION
5
- * POPUP: it frames ${BASE}/c3.html?capture=1&pop=1&… exactly as extension/popup.js does and answers the page's postMessage { pmosCapture: 'request' } with a
5
+ * POPUP: it frames ${BASE}/console.html?capture=1&pop=1&… exactly as extension/popup.js does and answers the page's postMessage { pmosCapture: 'request' } with a
6
6
  * small PDF or two pictures. (The parent is served from the same origin by the test, so the page's origin check, which takes chrome-extension:// or its own
7
7
  * origin, lets it in. Chrome itself, the real extension and Google are not part of this suite.)
8
8
  *
@@ -47,7 +47,7 @@ const hostHtml = (q) => `<!doctype html><meta charset="utf-8"><title>fake extens
47
47
  const q = new URLSearchParams(location.search); const mode = q.get('mode') || 'pictures'; const ph = q.get('ph') || location.origin; const kind = q.get('kind') || 'page';
48
48
  window.log = [];
49
49
  const f = document.getElementById('f');
50
- f.src = ph + '/c3.html?capture=1&pop=1&pkind=' + kind + '&ptitle=' + encodeURIComponent(kind === 'deck' ? 'Biweekly update, 26 Mar' : 'IDPF roadmap') + '&purl=' + encodeURIComponent(kind === 'deck' ? ${JSON.stringify(SLIDES)} : ${JSON.stringify(WIKI)}) + (kind === 'page' ? '&pscreens=3' : '');
50
+ f.src = ph + '/console.html?capture=1&pop=1&pkind=' + kind + '&ptitle=' + encodeURIComponent(kind === 'deck' ? 'Biweekly update, 26 Mar' : 'IDPF roadmap') + '&purl=' + encodeURIComponent(kind === 'deck' ? ${JSON.stringify(SLIDES)} : ${JSON.stringify(WIKI)}) + (kind === 'page' ? '&pscreens=3' : '');
51
51
  window.sendData = (m) => f.contentWindow.postMessage(m, ph);
52
52
  addEventListener('message', (e) => {
53
53
  if (e.source !== f.contentWindow || e.origin !== ph) return;
@@ -141,7 +141,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
141
141
 
142
142
  /* a studio of B opened in another tab by the link the popup's Open the studio uses */
143
143
  const S = await ctx.newPage(); watch(S);
144
- await S.goto(BASE + '/c3.html?studio=' + idB);
144
+ await S.goto(BASE + '/console.html?studio=' + idB);
145
145
  ok('?studio=<id> opens that report\'s design studio', !!(await until(() => S.$('[data-rd-studio="' + idB + '"]'), 20000)));
146
146
 
147
147
  /* ── pictures ── */
@@ -143,7 +143,7 @@ const { harness } = require('./c3-ini-harness');
143
143
 
144
144
  /* ── the Briefing row opens the Docs view ── */
145
145
  await page.route('**/api/needs*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, needs: [{ run_id: 'core-docs:drafts:board:idpf', kind: 'core-doc-drafts', provider: 'core-docs', derived: true, scope: 'board:idpf', question: '1 IDPF draft to review', initiative_id: null }] }) }));
146
- await page.goto(H.BASE + '/c3.html?demo=1&tab=brief', { waitUntil: 'load' });
146
+ await page.goto(H.BASE + '/console.html?demo=1&tab=brief', { waitUntil: 'load' });
147
147
  await until(() => st(() => !!document.querySelector('[data-drv-need="core-doc-drafts"]')));
148
148
  ok('N1 the Briefing shows the core-doc-drafts row', await st(() => /1 IDPF draft to review/.test(document.querySelector('[data-drv-need="core-doc-drafts"]').textContent)));
149
149
  await page.click('[data-drv-need="core-doc-drafts"] .tt');
@@ -2,7 +2,7 @@
2
2
  'use strict';
3
3
  /* c3-driver-test.js — the Initiative Driver on console3 (initiative initiative-driver; PRD section 5 and done-criterion 9).
4
4
  * LIVE mode: a real server and a scratch repository whose driver.jsonl this suite seeds (c3-driver-fixture.js; PMOS_DRIVER=off, so no
5
- * run starts and every line the page shows is one the fixture wrote). A real Chromium drives /c3.html.
5
+ * run starts and every line the page shows is one the fixture wrote). A real Chromium drives /console.html.
6
6
  *
7
7
  * strip Initiative · Overview shows the Agent strip: the count, Pause, "1 run today", the status, the last action, the
8
8
  * blocker line, one row per open proposal; a row opens to its text and sources (a URL source is a link)
@@ -50,7 +50,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
50
50
  const posts = []; page.on('request', (r) => { if (r.method() === 'POST' && r.url().includes('/api/driver/')) posts.push({ path: new URL(r.url()).pathname, body: JSON.parse(r.postData() || '{}') }); });
51
51
  const st = (f, a) => page.evaluate(f, a);
52
52
  const sel = (s) => until(() => page.$(s));
53
- const INI = `/c3.html?tab=init&init=ini:${ws}:drv-ui:overview`;
53
+ const INI = `/console.html?tab=init&init=ini:${ws}:drv-ui:overview`;
54
54
 
55
55
  /* ── strip ── */
56
56
  await page.goto(BASE + INI, { waitUntil: 'load' });
@@ -104,7 +104,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
104
104
  ok('P2 Resume lifts it', !D.isPaused(state(), fx.tI));
105
105
 
106
106
  /* ── setting ── */
107
- await page.goto(BASE + `/c3.html?tab=init&init=board:${ws}:summary`, { waitUntil: 'load' });
107
+ await page.goto(BASE + `/console.html?tab=init&init=board:${ws}:summary`, { waitUntil: 'load' });
108
108
  await (await sel('[data-ini=board-settings]')).click();
109
109
  await sel('[data-drv="setting"] [data-drv-mode]');
110
110
  ok('T1 Board settings shows the Agent setting at Approve, with the one-line explanations', await st(() => { const s = document.querySelector('[data-drv="setting"]'); return s.querySelector('[data-drv-mode=approve]').getAttribute('aria-pressed') === 'true' && /The agent drafts and asks you/.test(s.textContent) && /The agent does nothing on this board/.test(s.textContent); }));
@@ -115,7 +115,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
115
115
  await page.goto(BASE + INI, { waitUntil: 'load' });
116
116
  await sel('[data-drv="shadow"]');
117
117
  ok('T3 in Shadow the strip says so and offers no Keep', !(await page.$('[data-drv-act=keep]')) && /Shadow mode/.test(await st(() => document.querySelector('[data-drv="shadow"]').textContent)));
118
- await page.goto(BASE + `/c3.html?tab=init&init=board:${ws}:summary`, { waitUntil: 'load' });
118
+ await page.goto(BASE + `/console.html?tab=init&init=board:${ws}:summary`, { waitUntil: 'load' });
119
119
  await (await sel('[data-ini=board-settings]')).click();
120
120
  await sel('[data-drv-mode=approve]');
121
121
  await page.click('[data-drv-mode=approve]');
@@ -123,7 +123,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
123
123
  ok('T4 pressing Approve puts it back', D.modeOf(state(), ws) === 'approve');
124
124
 
125
125
  /* ── work ── */
126
- await page.goto(BASE + '/c3.html?tab=work', { waitUntil: 'load' });
126
+ await page.goto(BASE + '/console.html?tab=work', { waitUntil: 'load' });
127
127
  await sel('[data-pm-lenses]');
128
128
  await page.click('[data-pm-lenses] [data-lens=waiting]');
129
129
  const line = await sel(`[data-drv-line="${fx.item.id}"]`);
@@ -146,7 +146,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
146
146
  ok('W6 Drop in the line drops the proposal and the line goes', !!(await until(async () => !(await page.$(`[data-drv-line="${fx.itemDue.id}"]`)))));
147
147
 
148
148
  /* ── briefing ── */
149
- await page.goto(BASE + '/c3.html?tab=brief', { waitUntil: 'load' });
149
+ await page.goto(BASE + '/console.html?tab=brief', { waitUntil: 'load' });
150
150
  await sel('[data-drv-need]');
151
151
  const needs = await st(() => [...document.querySelectorAll('[data-drv-need]')].map((r) => r.dataset.drvNeed + ':' + r.textContent.replace(/\s+/g, ' ')));
152
152
  ok('B1 Needs you shows the agent\'s rows: the drafts left on the initiative, and the initiative waiting on you', needs.some((t) => /^driver-drafts:Agent has 1 draft on Partner API onboarding/.test(t)) && needs.some((t) => /^driver-blocked:.*Partner API onboarding is waiting on you/.test(t)), needs.join(' | '));
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
  /* c3-foundation-test.js — the console3 shell foundation (initiative console3-foundation; planning/prd/console3-foundation-prd.md R1 to R7).
4
- * Loads /c3.html?demo=1 (demo mode answers every /api call, so nothing reaches the server) and holds:
4
+ * Loads /console.html?demo=1 (demo mode answers every /api call, so nothing reaches the server) and holds:
5
5
  * R1 the page is white: no day-part wash on the page, no radial on the Briefing; data-daypart stays
6
6
  * R2 one ambient canvas (.c3amb) sits behind the grid; reduced motion draws one still frame; dark theme draws; no canvas, no error
7
7
  * R3 the build-fix rules: a primary button label is the page background colour; .sect > .sh2 is a flex row outside .brief
@@ -52,7 +52,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
52
52
  const errors = [];
53
53
  page.on('pageerror', (e) => errors.push(String((e && e.message) || e)));
54
54
  if (init) await page.addInitScript(init);
55
- await page.goto(BASE + (url || '/c3.html?demo=1'));
55
+ await page.goto(BASE + (url || '/console.html?demo=1'));
56
56
  const up = await until(() => page.evaluate(() => !!document.querySelector('[data-c3-demo="1"]') && document.querySelectorAll('#c3-root .deck .fc').length > 0), 45000, 250);
57
57
  return { ctx, page, errors, up };
58
58
  };
@@ -144,12 +144,12 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
144
144
  ok('0 no page error (reduced motion)', R.errors.length === 0, R.errors.join(' | '));
145
145
  await R.ctx.close();
146
146
 
147
- const D = await open({}, '/c3.html?demo=1&theme=dark');
147
+ const D = await open({}, '/console.html?demo=1&theme=dark');
148
148
  ok('R2 dark theme: the canvas draws', D.up && await until(async () => (await maxAlpha(D.page)) > 0, 6000));
149
149
  ok('0 no page error (dark)', D.errors.length === 0, D.errors.join(' | '));
150
150
  await D.ctx.close();
151
151
 
152
- const N = await open({}, '/c3.html?demo=1', () => { HTMLCanvasElement.prototype.getContext = function () { return null; }; });
152
+ const N = await open({}, '/console.html?demo=1', () => { HTMLCanvasElement.prototype.getContext = function () { return null; }; });
153
153
  ok('R2 where canvas is unavailable the page still draws and raises no error', N.up && N.errors.length === 0 && await N.page.evaluate(() => document.querySelectorAll('canvas.c3amb').length === 0), N.errors.join(' | '));
154
154
  await N.ctx.close();
155
155
 
@@ -4,7 +4,7 @@
4
4
  * assert with. Not a suite: it asserts nothing itself.
5
5
  *
6
6
  * const H = await harness('name', { width }) -> { page, ok, until, st, open(loc), toast(), sheet(), clickText(sel, text), shot(name), finish() }
7
- * open('board:idpf:board') goes to /c3.html?demo=1&tab=init&init=<loc> and waits for the page to draw.
7
+ * open('board:idpf:board') goes to /console.html?demo=1&tab=init&init=<loc> and waits for the page to draw.
8
8
  * finish() asserts that no page error was thrown, closes everything and exits 1 when any assertion failed.
9
9
  * A suite whose machine has no Chromium (or no playwright-core) prints that it was skipped and exits 0, as the other browser suites do. */
10
10
  'use strict';
@@ -48,7 +48,7 @@ async function harness(name, opts = {}) {
48
48
  page.on('pageerror', (e) => errors.push(String((e && e.message) || e)));
49
49
  const st = (f, a) => page.evaluate(f, a);
50
50
  const open = async (loc, extra) => {
51
- await page.goto(BASE + '/c3.html?demo=1&tab=init' + (loc ? '&init=' + encodeURIComponent(loc) : '') + (extra || ''), { waitUntil: 'load' });
51
+ await page.goto(BASE + '/console.html?demo=1&tab=init' + (loc ? '&init=' + encodeURIComponent(loc) : '') + (extra || ''), { waitUntil: 'load' });
52
52
  await until(() => st(() => { const p = document.querySelector('[data-ini="page"]'); return !!p && !p.querySelector('[data-ini="status"]') && p.children.length > 1; }));
53
53
  await sleep(150);
54
54
  };
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- /* PMOS workspace — the console3 Initiatives page (/c3.html, mockup v5; PRD planning/prd/console3-initiatives-parity-prd.md), its shell:
2
+ /* PMOS workspace — the console3 Initiatives page (/console.html, mockup v5; PRD planning/prd/console3-initiatives-parity-prd.md), its shell:
3
3
  * Portfolio, a board's frame and setup, the board settings, New board, New initiative, an initiative's header, stepper and workflow
4
4
  * editor. DEMO mode (?demo=1): c3-demo-boards.js answers every /api/boards read and write from its in-memory fixture, so the server only
5
5
  * serves the page. Nothing here writes a repository.
@@ -41,7 +41,7 @@ process.on('unhandledRejection', (e) => { console.error(e); fail++; finish(); })
41
41
  if (u.pathname.startsWith('/api/') && r.method() === 'GET') gets.push({ path: u.pathname, q: u.search, at: Date.now() });
42
42
  if (r.resourceType() === 'script') scripts.add(u.pathname.split('/').pop());
43
43
  });
44
- await page.goto(BASE + '/');
44
+ await page.goto(BASE + '/console.html');
45
45
  ok('the Briefing draws', !!(await until(() => page.evaluate(() => !!document.querySelector('[data-c3pg="pulse"]') && !!document.querySelector('[data-c3pg="deck-host"]')))));
46
46
  await sleep(8000); // the deferred badge reads and the dock's first read
47
47
  const t0 = gets.length ? gets[0].at : Date.now();
@@ -100,7 +100,7 @@ process.on('unhandledRejection', (e) => { console.error(e); fail++; finish(); })
100
100
  const pctx = await browser.newContext({ viewport: { width: 1000, height: 800 } });
101
101
  const pp = await pctx.newPage(); const perr = [];
102
102
  pp.on('pageerror', (e) => perr.push(String((e && e.message) || e)));
103
- await pp.goto(BASE + '/');
103
+ await pp.goto(BASE + '/console.html');
104
104
  await until(() => pp.evaluate(() => !!document.querySelector('[data-c3pg="pulse"]')));
105
105
  await pp.setViewportSize({ width: 400, height: 800 });
106
106
  ok('Phone: narrowing the desktop console mounts the companion', !!(await until(() => pp.evaluate(() => !!document.querySelector('[data-c3ph]')))));
@@ -3,7 +3,7 @@
3
3
  /* c3-one-home-test.js — the one-home rule as a check (console3 feedback plan, section 2; initiative browser-suites-green).
4
4
  *
5
5
  * Rule: an item is actionable in exactly one place, its home. Anywhere else it may appear only as a count, a date marker or
6
- * a reference that opens the home. This suite loads the console3 page with the demo fixture (/c3.html?demo=1), opens every
6
+ * a reference that opens the home. This suite loads the console3 page with the demo fixture (/console.html?demo=1), opens every
7
7
  * tab, and collects each item that carries an action control (a button, or an element with data-a) inside that tab's pane.
8
8
  * An item is named by its title text, so the same item drawn by two different renderers still matches. It fails when one
9
9
  * item has an action control on more than one tab.
@@ -80,7 +80,7 @@ function collect(tab) {
80
80
  page.on('pageerror', (e) => errors.push(String(e && e.message || e)));
81
81
  page.on('dialog', (d) => d.dismiss().catch(() => {}));
82
82
 
83
- await page.goto(BASE + '/c3.html?demo=1');
83
+ await page.goto(BASE + '/console.html?demo=1');
84
84
  const up = await page.waitForSelector('[data-c3-demo="1"] [data-c3-tab="brief"]', { timeout: 30000 }).catch(() => null);
85
85
  ok('the console3 page comes up in demo mode', !!up);
86
86
  if (!up) return finish(1);
@@ -2,7 +2,7 @@
2
2
  'use strict';
3
3
  /* c3-phone-test.js — the phone companion (initiative c3-phone-companion; PRD done-criteria 1 to 6 and 8): c3-phone.js, its sheets c3-phone-detail.js and its demo notes c3-demo-phone.js;
4
4
  * c3-boot.js and c3-phone-boot.js, which load the companion alone at phone width.
5
- * A real server and a real Chromium drive /c3.html in demo mode (clock frozen at Thu 8 Oct 2026 08:12; ?at=HH:MM moves the companion's clock).
5
+ * A real server and a real Chromium drive /console.html in demo mode (clock frozen at Thu 8 Oct 2026 08:12; ?at=HH:MM moves the companion's clock).
6
6
  *
7
7
  * phone at 400 wide the companion shows and the desktop grid does not; only the companion's modules load
8
8
  * moments 08:12 morning; 10:10 before Checkout sync; 10:45 in the meeting with the Record offer
@@ -71,7 +71,7 @@ const writes = (p) => (window.__c3demoWrites || []).filter((w) => w.path === p |
71
71
 
72
72
  /* ── phone, morning ── */
73
73
  const pctx = await ctxOf(400);
74
- let page = await open(pctx, '/c3.html?demo=1');
74
+ let page = await open(pctx, '/console.html?demo=1');
75
75
  ok('phone: the companion shows at 400 wide', await page.evaluate(shown, '[data-c3ph]'));
76
76
  ok('phone: the desktop grid is hidden', !(await page.evaluate(shown, '.c3grid')));
77
77
  ok('phone: only the companion loads, not the desktop console', await page.evaluate(() => { const js = performance.getEntriesByType('resource').map((r) => r.name); return js.some((u) => /c3-phone-boot\.js/.test(u)) && !js.some((u) => /c3-shell\.js|calendar-views\.js|c3-initiatives\.js/.test(u)); }));
@@ -167,10 +167,10 @@ const writes = (p) => (window.__c3demoWrites || []).filter((w) => w.path === p |
167
167
  await page.close();
168
168
 
169
169
  /* ── moments by the clock ── */
170
- page = await open(pctx, '/c3.html?demo=1&at=10:10');
170
+ page = await open(pctx, '/console.html?demo=1&at=10:10');
171
171
  ok('moments: 10:10 is before Checkout sync', (await moment(page)) === 'before' && /Checkout sync/.test(await page.textContent('[data-c3ph-moment]')), await moment(page));
172
172
  await page.close();
173
- page = await open(pctx, '/c3.html?demo=1&at=10:45');
173
+ page = await open(pctx, '/console.html?demo=1&at=10:45');
174
174
  ok('moments: 10:45 is in the meeting', (await moment(page)) === 'meeting', await moment(page));
175
175
  ok('moments: the meeting card offers to record it', await page.evaluate(() => !!document.querySelector('[data-c3ph-moment] [data-c3ph-rec-meeting]') && !!document.querySelector('[data-c3ph-moment] [data-c3ph-norec]')));
176
176
  ok('moments: button icons in the moment card stay small', await page.evaluate(() => [...document.querySelectorAll('[data-c3ph-moment] .pmc-btn svg')].every((s) => s.getBoundingClientRect().width <= 20)));
@@ -226,33 +226,33 @@ const writes = (p) => (window.__c3demoWrites || []).filter((w) => w.path === p |
226
226
  await page.close();
227
227
 
228
228
  /* ── just ended: the debrief from the recording's notes, as on the desktop ── */
229
- page = await open(pctx, '/c3.html?demo=1&at=11:25');
229
+ page = await open(pctx, '/console.html?demo=1&at=11:25');
230
230
  ok('debrief: 11:25 is just after Checkout sync', (await moment(page)) === 'after', await moment(page));
231
231
  ok('debrief: the card shows the decisions and actions from the recording', await waitFor(page, () => { const c = document.querySelector('[data-c3ph-moment="after"]'); return c && c.dataset.c3phDebriefState === 'ready' && !!c.querySelector('[data-c3ph-debrief="decisions"]') && !!c.querySelector('[data-c3ph-debrief="actions"]') && /31 Oct/.test(c.textContent); }, null, 8000));
232
232
  await page.close();
233
233
  /* ── the day's parts (version 7): one icon for the part of the day; working hours, the evening recap, the end of the day ── */
234
- page = await open(pctx, '/c3.html?demo=1&at=15:30');
234
+ page = await open(pctx, '/console.html?demo=1&at=15:30');
235
235
  ok('day: the header shows one icon, for the current part of the day only', await page.evaluate(() => document.querySelectorAll('[data-c3ph-part]').length === 1 && document.querySelector('[data-c3ph-part]').dataset.c3phPart === 'work' && document.querySelector('[data-c3ph-part]').getAttribute('aria-label') === 'Working hours'));
236
236
  ok('day: working hours show what the agent finished for you', await waitFor(page, () => !!document.querySelector('[data-c3ph-moment] [data-c3ph-fin="t-0000000000a1"]'), null, 8000));
237
237
  await page.click('[data-c3ph-fin-open="t-0000000000a1"]');
238
238
  ok('day: Read it opens the draft, and approving it waits for the desk', await waitFor(page, () => { const d = document.querySelector('[data-c3ph-draft="t-0000000000a1"]'); return !!d && /31 Oct/.test(d.textContent) && /on your computer/.test(d.textContent); }, null, 5000));
239
239
  ok('day: the draft reads as a document, not raw markdown (headings, bold, a list)', await page.evaluate(() => { const m = document.querySelector('[data-c3ph-draft="t-0000000000a1"] .ds-md'); return !!m && !!m.querySelector('h1') && !!m.querySelector('h2') && !!m.querySelector('strong') && m.querySelectorAll('li').length === 2 && !/(^|\s)(#|\*\*)/.test(m.textContent); }));
240
240
  await page.close();
241
- page = await open(pctx, '/c3.html?demo=1&at=17:40');
241
+ page = await open(pctx, '/console.html?demo=1&at=17:40');
242
242
  ok('day: 17:40 is the evening recap, with the evening icon', (await moment(page)) === 'recap' && await page.evaluate(() => document.querySelector('[data-c3ph-part]')?.dataset.c3phPart === 'evening'), await moment(page));
243
243
  ok('day: the recap counts the day and lists what moved and what is still open', await waitFor(page, () => { const c = document.querySelector('[data-c3ph-moment="recap"]'); return !!c && c.querySelectorAll('[data-c3ph-stat]').length === 4 && /Checkout v2 ships on 31 Oct/.test(c.querySelector('[data-c3ph-moved]')?.textContent || '') && !!c.querySelector('[data-c3ph-open]'); }, null, 8000));
244
244
  ok('day: the evening does not push the waiting card', await page.evaluate(() => !document.querySelector('[data-c3ph-waiting]')));
245
245
  await page.close();
246
- page = await open(pctx, '/c3.html?demo=1&at=21:30');
246
+ page = await open(pctx, '/console.html?demo=1&at=21:30');
247
247
  ok('day: 21:30 is the end of the day with tomorrow at a glance', await waitFor(page, () => { const c = document.querySelector('[data-c3ph-moment="night"]'); return !!c && /Fri 9 Oct/.test(c.textContent) && c.querySelectorAll('[data-c3ph-tomorrow-row]').length === 2 && !!c.querySelector('[data-c3ph-carried]'); }, null, 8000)
248
248
  && await page.evaluate(() => document.querySelector('[data-c3ph-part]')?.dataset.c3phPart === 'night'));
249
249
  await page.click('[data-c3ph-tomorrow-row="f2"]');
250
250
  ok('day: a meeting of tomorrow opens its brief', await waitFor(page, () => !!document.querySelector('[data-c3ph-meeting="f2"]'), null, 5000));
251
251
  await page.close();
252
- page = await open(pctx, '/c3.html?demo=1&at=17:10');
252
+ page = await open(pctx, '/console.html?demo=1&at=17:10');
253
253
  ok('debrief: a meeting with no recording asks you to tell PMOS', await waitFor(page, () => { const c = document.querySelector('[data-c3ph-moment="after"]'); return c && c.dataset.c3phDebriefState === 'none' && !!c.querySelector('[data-c3ph-tellafter]'); }, null, 8000));
254
254
  await page.close();
255
- page = await open(pctx, '/c3.html?demo=1&at=10:45');
255
+ page = await open(pctx, '/console.html?demo=1&at=10:45');
256
256
 
257
257
  /* ── the meeting companion and back ── */
258
258
  ok('nodesk: the companion offers no Full console', await page.evaluate(() => !document.querySelector('[data-c3ph-desk]') && !/Full console/.test(document.querySelector('[data-c3ph]').textContent)));
@@ -273,13 +273,13 @@ const writes = (p) => (window.__c3demoWrites || []).filter((w) => w.path === p |
273
273
 
274
274
  /* ── 620 wide: console3's phone styling starts at 640, so the companion must too (no squeezed desktop between) ── */
275
275
  const mctx = await ctxOf(620);
276
- page = await open(mctx, '/c3.html?demo=1');
276
+ page = await open(mctx, '/console.html?demo=1');
277
277
  ok('phone: the companion shows at 620 wide', await page.evaluate(shown, '[data-c3ph]'));
278
278
  await mctx.close();
279
279
 
280
280
  /* ── desktop ── */
281
281
  const dctx = await ctxOf(1280);
282
- page = await open(dctx, '/c3.html?demo=1', () => !!document.querySelector('nav.c3tabs [role="tab"]'));
282
+ page = await open(dctx, '/console.html?demo=1', () => !!document.querySelector('nav.c3tabs [role="tab"]'));
283
283
  ok('desktop: no companion at 1280 wide', await page.evaluate(() => !document.querySelector('[data-c3ph]') && !document.querySelector('.c3.c3-phone-on')));
284
284
  ok('desktop: the grid shows', await page.evaluate(shown, '.c3grid'));
285
285
  await dctx.close();
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
  /* c3-quiet-test.js — the quieter console3 pages (initiative c3-quiet-pages; PRD done-criteria 1 to 4 and 6).
4
- * A real server and a real Chromium drive /c3.html: live mode for the header and a board, demo mode for Calendar and Reports.
4
+ * A real server and a real Chromium drive /console.html: live mode for the header and a board, demo mode for Calendar and Reports.
5
5
  *
6
6
  * board at 1280 wide no page title, freshness line or sunrise text shows; the breadcrumb, the board tabs and Board settings
7
7
  * share one row, and the content starts right under it; Dashboard is not shown
@@ -57,7 +57,7 @@ const shown = (s) => { const n = document.querySelector(s); return !!n && getCom
57
57
  };
58
58
 
59
59
  /* ── board and header, live mode, 1280 ── */
60
- let page = await open(1280, '/c3.html?tab=init');
60
+ let page = await open(1280, '/console.html?tab=init');
61
61
  const opened = await waitFor(page, () => !!document.querySelector('[data-ini-open-board]'));
62
62
  ok('B0 the portfolio lists a board to open', opened);
63
63
  if (opened) {
@@ -114,7 +114,7 @@ const shown = (s) => { const n = document.querySelector(s); return !!n && getCom
114
114
  await page.context().close();
115
115
 
116
116
  /* ── Calendar, demo mode ── */
117
- page = await open(1280, '/c3.html?demo=1&tab=cal');
117
+ page = await open(1280, '/console.html?demo=1&tab=cal');
118
118
  const lay = await waitFor(page, () => !!document.querySelector('[data-c3pg="cal-layers"]'));
119
119
  ok('C1 Calendar has one Layers button', lay);
120
120
  if (lay) {
@@ -128,13 +128,13 @@ const shown = (s) => { const n = document.querySelector(s); return !!n && getCom
128
128
  await page.context().close();
129
129
 
130
130
  /* ── Reports, demo mode ── */
131
- page = await open(1280, '/c3.html?demo=1&tab=rep');
131
+ page = await open(1280, '/console.html?demo=1&tab=rep');
132
132
  await waitFor(page, () => !!document.querySelector('[data-rp3]'));
133
133
  ok('R1 Reports draws no deck', await page.evaluate(() => [...document.querySelectorAll('[data-rp3-deck]')].every((n) => getComputedStyle(n).display === 'none')));
134
134
  await page.context().close();
135
135
 
136
136
  /* ── phone: unchanged ── */
137
- page = await open(400, '/c3.html?tab=init');
137
+ page = await open(400, '/console.html?tab=init');
138
138
  await page.waitForTimeout(400);
139
139
  const ph = await page.evaluate((shownSrc) => { const vis = new Function('s', 'return (' + shownSrc + ')(s)'); return { title: vis('.c3top h1'), dot: !!document.querySelector('[data-c3pg="fresh-dot"]') }; }, shown.toString());
140
140
  ok('P1 at 400 wide the page keeps today\'s layout: the title shows and no dot is drawn', ph.title && !ph.dot, JSON.stringify(ph));
@@ -2,7 +2,7 @@
2
2
  'use strict';
3
3
  /* c3-report-design-real-test.js — the report design studio and the deck of a cycle against the REAL backend (initiative report-design-studio).
4
4
  * Not demo mode: a real server on a scratch repository, with a stub `claude` that plays the report-design job (as report-design-server.test.js
5
- * does), and a real Chromium on /c3.html. It proves the page and the server agree on the API contract end to end.
5
+ * does), and a real Chromium on /console.html. It proves the page and the server agree on the API contract end to end.
6
6
  *
7
7
  * setup a recurring work-sourced report set up through the API (its first cycle drafted)
8
8
  * studio Design how it looks on the set-up row; describe; upload a small .pptx; the first turn lands D1 in the strip and the preview
@@ -116,7 +116,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
116
116
  /* a click inside a frame lands only once the frame has loaded and been wired: click again until the answer shows */
117
117
  const clickUntil = async (sel, fx, fy, want) => { for (let i = 0; i < 6; i++) { await clickAt(sel, fx, fy); if (await until(() => page.$(want), 1500)) return true; } return false; };
118
118
  const closeAll = async () => { for (let i = 0; i < 3 && await page.$('.sheet'); i++) { await page.keyboard.press('Escape'); await sleep(250); } };
119
- const goReports = async () => { await page.goto(BASE + '/c3.html?tab=rep'); await page.waitForSelector('[data-rp3]'); await page.click('[data-rp3-tab="reports"]'); await page.waitForSelector('[data-rs-reg="' + id + '"]', { timeout: 15000 }); };
119
+ const goReports = async () => { await page.goto(BASE + '/console.html?tab=rep'); await page.waitForSelector('[data-rp3]'); await page.click('[data-rp3-tab="reports"]'); await page.waitForSelector('[data-rs-reg="' + id + '"]', { timeout: 15000 }); };
120
120
 
121
121
  /* ── studio ── */
122
122
  await goReports();