create-pmos 0.368.0 → 0.370.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.368.0",
3
+ "version": "0.370.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": {
@@ -32,6 +32,35 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.370.0",
37
+ "at": "2026-10-21T02:31:23.574Z",
38
+ "f": 2,
39
+ "prs": [
40
+ {
41
+ "n": 975,
42
+ "t": "Sources is one list: sources by where they are read, then derived content (briefing-source-flow, slice 4)",
43
+ "s": "One list in the shape of the approved mockup, following Wawan's split (2026-10-21) into main sources (raw) and derived content."
44
+ },
45
+ {
46
+ "n": 977,
47
+ "t": "The Chat button draws cleanly on the Chat page",
48
+ "s": "The Chat button draws cleanly on the Chat page"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "v": "0.369.0",
54
+ "at": "2026-10-21T02:18:50.229Z",
55
+ "f": 2,
56
+ "prs": [
57
+ {
58
+ "n": 974,
59
+ "t": "Insights' first screen shows the list, not the empty card (calmer first screen 2/5)",
60
+ "s": "Insights' first screen shows the list, not the empty card (calmer first screen 2/5)"
61
+ }
62
+ ]
63
+ },
35
64
  {
36
65
  "v": "0.368.0",
37
66
  "at": "2026-10-21T02:13:10.598Z",
@@ -292,30 +321,6 @@
292
321
  "s": "One rounded input (\"Ask PMOS to set up a report\") with a + on the left (opens the same New menu: Dashboard or Report) and a round send button inside it on the right."
293
322
  }
294
323
  ]
295
- },
296
- {
297
- "v": "0.350.0",
298
- "at": "2026-10-20T06:51:36.341Z",
299
- "f": 2,
300
- "prs": [
301
- {
302
- "n": 949,
303
- "t": "The My work item dialog as labelled fields and one Done bar",
304
- "s": "Each choice is one labelled field with its value from the record and a chevron, like a simple ordering app."
305
- }
306
- ]
307
- },
308
- {
309
- "v": "0.349.0",
310
- "at": "2026-10-20T06:33:28.050Z",
311
- "f": 2,
312
- "prs": [
313
- {
314
- "n": 947,
315
- "t": "Simpler premium Decision dialog (evidence rows, one Why field, Later + Record bar)",
316
- "s": "It follows the approved simple-UI mockup (#3)."
317
- }
318
- ]
319
324
  }
320
325
  ]
321
326
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@54f1dbfd
1
+ kernel-source: pmos@d1e738d4
2
2
  assembled: 2026-10-21
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-21T02:13:06Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-21T02:31:21Z"}
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-21T02:13:06Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-21T02:31:21Z"}
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-21T02:13:06Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-21T02:31:21Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -128,11 +128,11 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
128
128
  await R.ctx.close();
129
129
  }
130
130
  /* I8 reports */
131
- await p.click('#listSeg [data-f="rep"]'); await sleep(100);
131
+ await (async (pg, sel) => { if (await pg.locator('#listSeg').isHidden()) await pg.click('#listF'); await pg.click(sel); })(p, '#listSeg [data-f="rep"]'); await sleep(100);
132
132
  const rp = await p.evaluate(() => ({ rows: [...document.querySelectorAll('#listRows [data-rep]')].map((r) => r.querySelector('.dmn b').textContent + ' / ' + r.querySelector('.s').textContent), note: document.querySelector('#cRep .mhint').textContent, cap: document.querySelector('#repCap').textContent, setups: document.querySelectorAll('#listRows [data-setup]').length, dash: document.querySelectorAll('#listRows [data-d]').length }));
133
133
  ok('I8 the Reports filter lists the set-up reports, then the report files: cadence, slot, draft or issued', rp.rows.join() === 'biweekly · 14 Oct / Draft,monthly · 30 Sep / Issued 1 Oct' && rp.setups === 1 && rp.dash === 0 && /Nothing is sent from here/.test(rp.note) && rp.cap === '7', JSON.stringify(rp));
134
- await p.click('#listSeg [data-f="all"]');
135
- { const R = await open(); await R.page.click('#listSeg [data-f="rep"]'); await R.page.locator('#listRows [data-rep]').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());
134
+ await (async (pg, sel) => { if (await pg.locator('#listSeg').isHidden()) await pg.click('#listF'); await pg.click(sel); })(p, '#listSeg [data-f="all"]');
135
+ { const R = await open(); await (async (pg, sel) => { if (await pg.locator('#listSeg').isHidden()) await pg.click('#listF'); await pg.click(sel); })(R.page, '#listSeg [data-f="rep"]'); await R.page.locator('#listRows [data-rep]').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());
136
136
  ok('I8 a draft report has Issue in the reader, so nothing sends you to the console to issue it', await until(() => R.page.evaluate(() => !!document.querySelector('#oMain [data-rr="issue"]')), 8000) && await R.page.evaluate(() => !document.querySelector('#repOpen') && !document.querySelector('#oMain a[href*="console.html"]')));
137
137
  await R.ctx.close(); }
138
138
  /* I9 labels */
@@ -142,6 +142,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
142
142
  {
143
143
  const R = await open({ model: mk({ outcomes: [] }) });
144
144
  ok('I10 with no KR metric the page says there is no insight yet, draws nothing, and the list still holds the report files', await R.page.evaluate(() => /No KR metric is recorded/.test(document.querySelector('#brief').textContent) && /No KR metric is recorded for this workspace/.test(document.querySelector('#dashBody').textContent) && document.querySelectorAll('#listRows [data-rep]').length === 2 && document.querySelectorAll('#dashBody .mch').length === 0 && /There is no insight yet/.test(document.querySelector('#brief').textContent) && document.querySelectorAll('#insAct button').length === 0));
145
+ ok('I10 with nothing to chart the top card is hidden (All measures stays a row of the list), and the hero\'s explanation waits behind an ⓘ (premium-calmer-first-screen)', await R.page.evaluate(() => document.querySelector('#cDash').hidden && document.querySelector('#insWhy').hidden && !!document.querySelector('#insEye .infob[aria-controls="insWhy"]') && !/Shown above/.test(document.querySelector('#repBody').textContent)));
145
146
  await R.ctx.close();
146
147
  const R2 = await open({ model: mk({ reportsOk: false, reports: [], missing: ['reports'] }) });
147
148
  ok('I10 reports that could not be read are said to be unread, not empty', await R2.page.evaluate(() => /report files could not be read/.test(document.querySelector('#repBody').textContent) && /not read: reports/.test(document.querySelector('#snap').textContent)));
@@ -166,9 +167,9 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
166
167
  const dlgOn = () => until(() => q.evaluate(() => document.querySelector('#dlg').classList.contains('on')));
167
168
  const shut = async () => { for (let i = 0; i < 2 && await q.evaluate(() => document.querySelector('#dlg').classList.contains('on')); i++) { await q.keyboard.press('Escape'); await sleep(150); } await until(() => q.evaluate(() => !document.querySelector('#dlg').classList.contains('on'))); }; // a full-screen dialog leaves full screen on the first Escape
168
169
  await q.click('#repBody [data-d="pd-1"]'); await sleep(200);
169
- const sv = await q.evaluate(() => ({ tiles: [...document.querySelectorAll('#dashBody .mch .mlab')].map((e) => e.firstChild.textContent), gone: [...document.querySelectorAll('#dashBody .dplist .nempty')].map((e) => e.textContent.replace(/\s+/g, ' ')), bar: document.querySelector('#dashBar').textContent }));
170
- ok('R1 a saved dashboard draws its charts in its order and says which chart is gone, in its place', sv.tiles.join() === 'Partner activation,Time to first call' && sv.gone.length === 1 && /krm-gone.*No KR metric record is called krm-gone/.test(sv.gone[0]) && /Monday partner review.*Pin.*Back to All measures.*Edit/.test(sv.bar), JSON.stringify(sv));
171
- await q.click('#pdEdit'); await dlgOn();
170
+ const sv = await q.evaluate(() => ({ tiles: [...document.querySelectorAll('#dashBody .mch .mlab')].map((e) => e.firstChild.textContent), gone: [...document.querySelectorAll('#dashBody .dplist .nempty')].map((e) => e.textContent.replace(/\s+/g, ' ')), bar: document.querySelector('#dashBar').textContent, purpose: document.querySelector('#dashPurpose').textContent }));
171
+ ok('R1 a saved dashboard draws its charts in its order and says which chart is gone, in its place', sv.tiles.join() === 'Partner activation,Time to first call' && sv.gone.length === 1 && /krm-gone.*No KR metric record is called krm-gone/.test(sv.gone[0]) && /Monday partner review/.test(sv.purpose) && /Pin.*Back to All measures.*Edit/.test(sv.bar), JSON.stringify(sv));
172
+ await (async (pg, sel) => { if (await pg.locator('#dashBar').isHidden()) await pg.click('#dashMore'); await pg.click(sel); })(q, '#pdEdit'); await dlgOn();
172
173
  const chipv = (k) => q.evaluate((x) => (document.querySelector(`#oMain [data-st="chip|${x}"] b`) || {}).textContent || '', k);
173
174
  await q.click('#oMain [data-st="chip|charts"]');
174
175
  const ed = await q.evaluate(() => ({ eye: document.querySelector('#dEye').textContent, rows: [...document.querySelectorAll('#stTr .sul li > span:first-child')].map((b) => b.childNodes[0].textContent) }));
@@ -183,7 +184,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
183
184
  ok('R7 the server\'s refusal is shown in words and the dialog stays open', /already a dashboard on this board/.test(await qt('#stMsg')) && await q.evaluate(() => document.querySelector('#dlg').classList.contains('on') && !document.querySelector('#oMain [data-st="save"]').disabled));
184
185
  answer = (u, b) => ({ ok: true, dashboard: { id: b.id || 'pd-9' }, dashboards: [], setup: {}, drafted: { slot: '2026-10-23', path: 'planning/reports/release-readiness/2026-10-23.md' } });
185
186
  await shut();
186
- await q.click('#pdBack'); await q.locator('#dashBody .lk[data-open="ins:krm-up"]').click(); await dlgOn(); await q.click('#oMain [data-pdsw="pd-1"]'); await sleep(300);
187
+ await (async (pg, sel) => { if (await pg.locator('#dashBar').isHidden()) await pg.click('#dashMore'); await pg.click(sel); })(q, '#pdBack'); await q.locator('#dashBody .lk[data-open="ins:krm-up"]').click(); await dlgOn(); await q.click('#oMain [data-pdsw="pd-1"]'); await sleep(300);
187
188
  ok('R3 the chart dialog\'s switch saves that dashboard with the chart added', last()[0] === '/api/premium-dashboards/save' && JSON.stringify(last()[1].charts) === JSON.stringify(['krm-act', 'krm-ttfc', 'krm-gone', 'krm-up']) && /Added to Weekly partner review/.test(await qt('#pdSwM')), JSON.stringify(last()));
188
189
  await shut();
189
190
  const groups = await q.evaluate(() => [...document.querySelectorAll('#repBody .ngrp > .label')].map((e) => e.textContent));
@@ -227,10 +228,11 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
227
228
  await q.route('**/api/premium-dashboards/pin', (r) => { const b = JSON.parse(r.request().postData() || '{}'); sent.push(b); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, pinned: b.id }) }); });
228
229
  const top = await q.evaluate(() => ({ h: document.querySelector('#hDash').textContent, tag: document.querySelector('#dashTag').textContent, tiles: document.querySelectorAll('#dashBody .mch').length, pin: document.querySelector('#pdPin').textContent }));
229
230
  ok('L4 the saved main dashboard is the pinned one and shows at the top, with Unpin', top.h === 'Weekly partner review' && top.tag === 'Pinned' && top.tiles === 2 && top.pin === 'Unpin', JSON.stringify(top));
231
+ ok('L4 the top card\'s presses wait under a shut ⋯, its purpose behind ⓘ, and the list\'s filter is one chip (premium-calmer-first-screen)', await q.evaluate(() => document.querySelector('#dashBar').hidden && !document.querySelector('#dashMore').hidden && document.querySelector('#dashMore').getAttribute('aria-expanded') === 'false' && document.querySelector('#dashAbout').hidden && /\S/.test(document.querySelector('#dashPurpose').textContent) && document.querySelector('#listSeg').hidden && /^All\d+$/.test(document.querySelector('#listF').textContent.trim())));
230
232
  R.setModel(mk({ pinned: 'all' })); await q.click('#repBody [data-pin="all"]'); await sleep(300);
231
233
  ok('L4 after Pin, the pinned dashboard is the top card', await until(() => q.evaluate(() => document.querySelector('#hDash').textContent === 'All measures' && document.querySelector('#dashTag').textContent === 'Pinned')));
232
234
  ok('L4 the pin on a row posts that dashboard to the pin route, and nothing else', sent.length === 1 && sent[0].id === 'all' && sent[0].ws === 'w1' && sent[0].board === 'w1' && R.posts.every((x) => x === 'POST /api/premium-dashboards/pin'), JSON.stringify([sent, R.posts]));
233
- R.setModel(mk({ pinned: null })); await q.click('#pdPin'); await sleep(300);
235
+ R.setModel(mk({ pinned: null })); await (async (pg, sel) => { if (await pg.locator('#dashBar').isHidden()) await pg.click('#dashMore'); await pg.click(sel); })(q, '#pdPin'); await sleep(300);
234
236
  ok('L4 Unpin posts no dashboard, and with nothing pinned the top card shows All measures as not pinned, with Pin', sent[sent.length - 1].id === null && await until(() => q.evaluate(() => document.querySelector('#hDash').textContent === 'All measures' && document.querySelector('#dashTag').textContent === 'Not pinned' && document.querySelector('#pdPin').textContent === 'Pin')), JSON.stringify(sent));
235
237
  await q.click('#listNew');
236
238
  const mn = await q.evaluate(() => ({ open: !document.querySelector('#listMenu').hidden, items: [...document.querySelectorAll('#listMenu button')].map((b) => b.textContent).join(), exp: document.querySelector('#listNew').getAttribute('aria-expanded') }));
@@ -176,6 +176,8 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
176
176
  ok('X1 the rail\'s Chat is a round button of at least 44 px', bt && bt.w >= 44 && bt.h >= 44, JSON.stringify(bt));
177
177
  await xp.click('.rail [data-go="chat"]'); await until(() => xp.evaluate(() => /premium-chat\.html/.test(location.pathname) && document.querySelector('#dlg').classList.contains('on')), 10000);
178
178
  ok('X1b Chat goes to the Chat page and carries the Briefing as the conversation it opens', /about=src%3Athis-page/.test(xp.url()) && /label=the(\+|%20)Briefing/.test(xp.url()), xp.url());
179
+ const draw = await xp.evaluate(() => { const i = document.querySelector('.rail .ind'), r = document.querySelector('.rail'), d = document.querySelector('#dlg'); return { ind: getComputedStyle(i).display, rail: +getComputedStyle(r).zIndex, dlg: +getComputedStyle(d).zIndex }; });
180
+ ok('X1c on the Chat page no grey indicator sits under the Chat button, and the rail is above the dialog so its shadow does not grey the button', draw.ind === 'none' && draw.rail > draw.dlg, JSON.stringify(draw));
179
181
  const lay = await until(() => xp.evaluate(() => { const d = document.querySelector('#dlg'), r = document.querySelector('#sRail'); if (!d.classList.contains('full') || !r || !r.offsetWidth || !document.querySelector('#srlList .srl-r')) return null; const o = { rail: Math.round(r.getBoundingClientRect().width), work: Math.round(document.querySelector('#dBody').getBoundingClientRect().width), out: Math.round(document.querySelector('#dOut').getBoundingClientRect().width) }; return o.out > 300 ? o : null; }), 8000) || (await xp.evaluate(() => ({ rail: document.querySelector('#sRail').getBoundingClientRect().width, work: document.querySelector('#dBody').getBoundingClientRect().width, out: document.querySelector('#dOut').getBoundingClientRect().width, cls: document.querySelector('#dlg').className, mode: document.querySelector('#dlg').dataset.mode, w: document.querySelector('#dlg').getBoundingClientRect().width })));
180
182
  ok('X2 the Chat page opens the Briefing\'s conversation with three panels: list, conversation, viewer', /Ask about the Briefing/.test(await xp.evaluate(() => document.querySelector('#dTitle').textContent)) && lay && lay.out > 300 && lay.rail > 150 && lay.work > 300 && lay.out > 300, JSON.stringify(lay));
181
183
  const grpOf = () => xp.evaluate(() => [...document.querySelectorAll('#srlList .srl-g')].map((g) => g.querySelector('.srl-gh span').textContent + ':' + g.querySelectorAll('.srl-r').length + (g.querySelector('.srl-more') ? '+' + g.querySelector('.srl-more').textContent : '')));
@@ -1,4 +1,33 @@
1
1
  [
2
+ {
3
+ "v": "0.370.0",
4
+ "at": "2026-10-21T02:31:23.574Z",
5
+ "f": 2,
6
+ "prs": [
7
+ {
8
+ "n": 975,
9
+ "t": "Sources is one list: sources by where they are read, then derived content (briefing-source-flow, slice 4)",
10
+ "s": "One list in the shape of the approved mockup, following Wawan's split (2026-10-21) into main sources (raw) and derived content."
11
+ },
12
+ {
13
+ "n": 977,
14
+ "t": "The Chat button draws cleanly on the Chat page",
15
+ "s": "The Chat button draws cleanly on the Chat page"
16
+ }
17
+ ]
18
+ },
19
+ {
20
+ "v": "0.369.0",
21
+ "at": "2026-10-21T02:18:50.229Z",
22
+ "f": 2,
23
+ "prs": [
24
+ {
25
+ "n": 974,
26
+ "t": "Insights' first screen shows the list, not the empty card (calmer first screen 2/5)",
27
+ "s": "Insights' first screen shows the list, not the empty card (calmer first screen 2/5)"
28
+ }
29
+ ]
30
+ },
2
31
  {
3
32
  "v": "0.368.0",
4
33
  "at": "2026-10-21T02:13:10.598Z",
@@ -11,7 +11,7 @@ The premium Briefing is a page of its own at `/premium.html`. The console at `/`
11
11
 
12
12
  Every premium page uses the console's type: Space Grotesk for text, IBM Plex Mono for times and labels, and the same sizes and weights as the console. A premium page and the console at the same place read at the same size.
13
13
 
14
- A rail on the left has five places: Briefing, My work, **Chat**, Board and Insights. Chat is in the middle, a large round button, because the chat is the main place to work. Each place is a page; Chat is at `/premium-chat.html`. On a phone the rail is a bar at the bottom of the screen, and Chat rises above it. It stays at the bottom after you type in a field and the keyboard closes.
14
+ A rail on the left has five places: Briefing, My work, **Chat**, Board and Insights. Chat is in the middle, a large round button, because the chat is the main place to work. Each place is a page; Chat is at `/premium-chat.html`. On a phone the rail is a bar at the bottom of the screen, and Chat rises above it. A grey band marks the page you are on; on the Chat page the solid Chat button is that mark, so no band is drawn under it. It stays at the bottom after you type in a field and the keyboard closes.
15
15
 
16
16
  Every premium page has the same top bar. On the left is where you are. On the right are the **Sources** chip, the bell and one **⋯** menu.
17
17
 
@@ -103,7 +103,7 @@ Two reads feed the page. The quick read takes the kill conditions, the failed-re
103
103
 
104
104
  ## The header
105
105
 
106
- The Briefing's **Sources** dialog has two more parts under the tracked sources. **Products** is the product picker (see "Products"). **What the Briefing read** lists each source the page reads, with its state: **Read**, **Not read**, **Not included** or **Off**, and the reason. Examples: `planning/runs/agent-runs.jsonl` is missing in that repository; the product is not chosen under **Products**; the source is switched off under **Settings → Connectors**; the morning brief could not reach it. A source that cannot be read adds nothing. The page does not guess.
106
+ The Briefing's **Sources** dialog is one list in three groups. **Sources · read on this machine** and **Sources · read through your connectors** are the raw sources, each with its last read. **Derived content** is what PMOS builds from those stored reads, never from a tool: the morning brief, core documents and the horizon scan. Each derived row says when it was built and from which reads, with their times. Under it, **This Briefing was built from** lists each source the page reads, with its state: **Read**, **Not read**, **Not included** or **Off**, and the reason. Examples: `planning/runs/agent-runs.jsonl` is missing in that repository; the product is not chosen under **Products**; the source is switched off under **Settings → Connectors**; the morning brief could not reach it. A source that cannot be read adds nothing. The page does not guess. **Products** is the product picker (see "Products").
107
107
 
108
108
  On the Briefing, **Refresh all** also reads every included repository again now, without waiting for the 5-minute age. If a read is already running, it does not start a second one. A read that failed is tried again at once.
109
109
 
@@ -340,9 +340,9 @@ Insights is the fifth place on the rail, at `/premium-insights.html`. It reads t
340
340
 
341
341
  - **Charts.** One chart for each KR metric that holds at least two readings. The line runs through the readings at their dates, so a month with no reading is a gap and not a zero. The dashed line is the metric's target. The chip is the record's own line status: on its line, behind it, or well behind it. Pressing a chart, or its Details link, opens the metric's record in the dialog with the read-only agent beside it.
342
342
  - **The insight.** The page opens with one finding across the board's measures, in a large line, with the reason and its numbers under it, up to two more findings, **Ask PMOS why** (opens the measure's dialog on the Conversation tab) and **See the chart**. A measure that is short of its target, with a target date after its last reading, gets a projection: a straight line through its last four readings (all, when fewer), carried to the target date. When the line lands short, the finding says the measure will miss its target on that date at this pace, where it lands, how far short, and when it would get there. When the line lands on or past the target, it says the measure is on course. The page says how the projection is made, and no forecast line is drawn on a chart. With no KR metric, or none with two readings, the page says there is no insight yet and why.
343
- - **The pinned dashboard.** The card under the insight shows the pinned dashboard: its insight band (the next findings on it, past the one the page leads with), its charts and **Unpin**. When nothing is pinned, it shows All measures, marked **Not pinned**, with **Pin**. Pressing a dashboard in the list shows it in this card, with **Pin** and **Back to** the pinned one. One dashboard per board is pinned, All measures included; pillar groups cannot be pinned. The pin is a line in `premium-dashboards.jsonl` and shows on Insights only.
344
- - **Dashboards and reports.** One list holds the dashboards (All measures, your saved ones, then the pillars the metrics name) and then the reports (your set-up reports, then the report files). **All**, **Dashboards** and **Reports** filter it; it shows six rows to a page, with page numbers. A dashboard row shows its top finding and a pin. A report row quotes the opening sentence of its latest file; a set-up report with no file says no draft is written yet. **New** offers **Dashboard** or **Report**. Your requests and what PMOS found in your work stay at the top of the list. A saved dashboard draws its charts in the order you saved them. A chart whose record is gone, or that has fewer than two readings, is listed in its place with the reason and is not drawn.
345
- - **Open the Studio.** **New**, then **Dashboard**, opens the Insight Studio on a new dashboard, and **Edit** opens it on the saved dashboard you are looking at. Chat in the rail opens the Chat page, not the Studio.
343
+ - **The pinned dashboard.** The card under the insight shows the pinned dashboard: its insight band (the next findings on it, past the one the page leads with), and its charts. Its **⋯** holds **Unpin** (or **Pin**, with Not pinned when nothing is pinned), **Back to** the pinned one, **Edit** and **New chart**, and its **ⓘ** says what the dashboard is for. When nothing can be charted yet, the card is hidden and All measures is a row of the list; the insight's explanation is then behind the **ⓘ** next to Insight. Pressing a dashboard in the list shows it in this card. One dashboard per board is pinned, All measures included; pillar groups cannot be pinned. The pin is a line in `premium-dashboards.jsonl` and shows on Insights only.
344
+ - **Dashboards and reports.** One list holds the dashboards (All measures, your saved ones, then the pillars the metrics name) and then the reports (your set-up reports, then the report files). One chip in the card's head (**All** with its count) opens **All**, **Dashboards** and **Reports**, and shows only when the list holds both kinds; it shows six rows to a page, with page numbers. A dashboard row shows its top finding and a pin. A report row quotes the opening sentence of its latest file; a set-up report with no file says no draft is written yet. **New** offers **Dashboard** or **Report**. Your requests and what PMOS found in your work stay at the top of the list. A saved dashboard draws its charts in the order you saved them. A chart whose record is gone, or that has fewer than two readings, is listed in its place with the reason and is not drawn.
345
+ - **Open the Studio.** **New**, then **Dashboard**, opens the Insight Studio on a new dashboard, and **Edit** in the dashboard's **⋯** opens it on the saved dashboard you are looking at. Chat in the rail opens the Chat page, not the Studio.
346
346
  - **Make or edit a dashboard.** **+** (at the left of the report input), then **Dashboard**, or **Edit** on a saved one, opens the **Insight Studio**, a wide dialog. On the right, the brief shows the Name, Purpose, Charts and Main dashboard; press a chip to change it. **Library** lists the board's measures and saved dashboards to add. The preview draws the dashboard as the page will, and lists a measure with no series as not drawn. The checks (a name, a purpose, a chart, six or fewer, no repeat, a main dashboard on the board) say what fails, with a one-press fix. On the left you can say it instead: "add Partner activation", "remove …", "move … first", "call it …", "it is for …", "make it the main dashboard", "undo" or "start a new one". A turn changes the draft only. **Undo** steps back one change. **Save the dashboard** records it; **Remove the dashboard** asks once more and then removes it. In a chart's dialog, **On your dashboards** has a switch for each saved dashboard, which adds the chart to it or takes it off.
347
347
  - **Make your own chart.** **New chart**, or **Edit** on one of your charts, opens the Insight Studio in **Chart** mode; the switch at the top moves between Chart and Dashboard, and each keeps its own draft. The brief shows the Question, Measure, Form (line, bars, number or meter), Range (all readings or the last few) and Target; **More** adds the Title, Better when, Note and Add to (a dashboard). The Studio suggests a form from the question and says why. The checks (a question, a target, enough readings, a form that fits the question, one scale) say what fails, with a one-press fix. You can say it instead: "show it as bars", "last 4 readings", "target 35", "lower is better", "call it …", "note: …", "add it to Weekly", or a question. A pie is declined, with the reason. **Save the chart** records it in the workspace's state folder, and adds it to the dashboard you named. Your charts are listed under **All measures**, and a dashboard can hold them beside the measures. **Remove the chart** asks once more; a dashboard that held it then says it was removed.
348
348
  - **Set up a report in the Studio.** **+**, then **Report**, opens the Insight Studio in **Report** mode. The brief shows the Title, What it answers, Audience, Format, Schedule, Draw from (your work, or the board's dashboard) and the Sections. A new report always has the same sections, in the same order, so they are listed, not edited. The checks (what it answers, an audience, a format that fits the audience, a new title, the answer first) say what fails, with a one-press fix. You can say it instead: "it answers: …", "for leadership", "slides", "monthly", "every two weeks on Thursday", "call it …". **Set it up** records the report and writes its first draft as a file.
@@ -354,7 +354,7 @@ Insights is the fifth place on the rail, at `/premium-insights.html`. It reads t
354
354
  - **The findings.** Each finding is one sentence with its reason, taken from the series: will miss its target at this pace, on course, behind its line for three readings in a row, behind and still moving away from the target, closing in, slipped, reached its target, or a large one-step move. No cause is given.
355
355
  - **Board measures.** The same four tiles as the Board's Metrics card, counted from the board's repository and drawn the same way. Choose **8 weeks**, **26 weeks** or **52 weeks**; the page keeps your choice. Press a measure to read its definition and values and to set its target: type a number and press **Save target**, or press **Clear target**. For Corrections, Blocked and Idle, lower is better, so the target is the most you accept; for Merged a week it is the least. The target goes to the workspace's state folder (`board-metric-targets.jsonl`) and the Board draws it too. An agent session cannot set one.
356
356
  - **No series recorded.** A KR metric with one reading or none is listed with the reason and is not drawn.
357
- - **Ask PMOS to set up a report.** The card has one rounded input. Type what the report is for and press the round send button inside it. The **+** at its left offers Dashboard or Report. The line under the input says it only proposes; its **ⓘ** shows the longer note. A background run proposes a report and does nothing else. The request is listed as Working, then Ready to review. A ready request opens with its proposal: **Set it up**, **Change it** (say what to change; the run revises it), or **Cancel**.
357
+ - **Ask PMOS to set up a report.** The card has one rounded input, under the list. Type what the report is for and press the round send button inside it. The **+** at its left offers Dashboard or Report. The line under the input says it only proposes; its **ⓘ** shows the longer note. A background run proposes a report and does nothing else. The request is listed as Working, then Ready to review. A ready request opens with its proposal: **Set it up**, **Change it** (say what to change; the run revises it), or **Cancel**.
358
358
  - **Found in your work.** Up to three reports PMOS found in your calendar, mail or documents, each with why and what it saw. **Set it up** records the report and drafts its first cycle as a file. **Not a report** hides it and records it after 5 seconds, unless you press **Undo**. If the finding changed while the window was open, the window says what happened. It was already set up, it was marked not a report, or a new scan replaced it. The list is read again. Close the window and open the report from the list. If PMOS does not hear back, the window says nothing was recorded. Press the button to try again.
359
359
  - **Set up.** Your recurring reports, with their schedule and next draft. A report opens with **Draft it now** (for a report drawn from your work) and **Pause** or **Resume**.
360
360
  - **Report files.** The report files of the workspace, in the list, with cadence, slot and whether each is a draft or issued. Pressing one opens it on the page at the normal dialog size, with a status line (Draft or Issued, the saved design version, the file). The **slide deck / Document** menu picks the view: a deck is a title slide, then one slide for each section, with the arrow keys and a strip of slides; a document is a page. The **Read** menu holds **Present**, which shows the slide on the whole screen (the arrow keys move and Escape stops), and **Print or save as PDF**, which prints one slide to a page. **Download** gives PowerPoint, Word, Excel, CSV or the Markdown file; the files carry the words, not the look. **Edit** opens the words as a page. On a draft, **Issue** first says what it does, then **Issue it** freezes the cycle as you read it, through the console's own route; if the file changed since you opened it, nothing is issued and the reader shows the new words. Copies in Confluence or other tools are made in the console. Nothing is sent from this page.
@@ -59,6 +59,8 @@ The Sources list shows them as one row, **Your tools**. Its time is the oldest r
59
59
 
60
60
  Sources says which step the run is on. Only one run goes at a time: a second press, or a press in another tab, joins the run that is going. If the Briefing is being written when you press, it is written once more after the new reads. A run that has not ended after 3 hours is over, and the next press starts a new one. **Refresh** on one row still reads only that source.
61
61
 
62
+ Sources is one list. The raw sources come first, grouped as **read on this machine** (the repository, initiatives and tracker files) and **read through your connectors** (Calendar, Jira, My work and Your tools). Then **Derived content**: the morning brief, core documents and the horizon scan. Each derived row says when it was last built and the reads it was built from, with their times. A derived row has no Refresh of its own: Refresh all rebuilds it after its sources.
63
+
62
64
  The skill saves its reads with this command:
63
65
 
64
66
  - `pmos source save --file <reads.json>` saves one record per tool. A record that is off or not reached says so. A field past its limit refuses the whole file, and nothing is saved.
@@ -34,14 +34,14 @@ const sourceReads = require('./source-reads.js');
34
34
 
35
35
  const H = 3600 * 1000;
36
36
  const SOURCES = Object.freeze([
37
- { id: 'repository', label: 'Repository', skill: null, stale_after_ms: null },
38
- { id: 'initiatives', label: 'Initiatives', skill: null, stale_after_ms: null },
39
- { id: 'calendar', label: 'Calendar', skill: 'calendar-sync', stale_after_ms: 8 * H },
40
- { id: 'jira', label: 'Jira status', skill: 'jira-sync', stale_after_ms: 26 * H },
41
- { id: 'my-work', label: 'My work', skill: 'my-work-read', stale_after_ms: 26 * H },
42
- { id: 'tracker', label: 'Tracker items', skill: 'tracker-refresh', stale_after_ms: 8 * 24 * H },
37
+ { id: 'repository', group: 'machine', label: 'Repository', skill: null, stale_after_ms: null },
38
+ { id: 'initiatives', group: 'machine', label: 'Initiatives', skill: null, stale_after_ms: null },
39
+ { id: 'calendar', group: 'connector', label: 'Calendar', skill: 'calendar-sync', stale_after_ms: 8 * H },
40
+ { id: 'jira', group: 'connector', label: 'Jira status', skill: 'jira-sync', stale_after_ms: 26 * H },
41
+ { id: 'my-work', group: 'connector', label: 'My work', skill: 'my-work-read', stale_after_ms: 26 * H },
42
+ { id: 'tracker', group: 'machine', label: 'Tracker items', skill: 'tracker-refresh', stale_after_ms: 8 * 24 * H },
43
43
  // briefing-source-flow: Mail, Slack, Wispr, Confluence and the other tools the Briefing uses, read by one session and stored (lib/source-reads.js)
44
- { id: 'tools', label: 'Your tools', skill: 'sources-read', stale_after_ms: 8 * H },
44
+ { id: 'tools', group: 'connector', label: 'Your tools', skill: 'sources-read', stale_after_ms: 8 * H },
45
45
  ]);
46
46
 
47
47
  const iso = (ms) => (ms ? new Date(ms).toISOString() : null);
@@ -133,7 +133,7 @@ function create(o) {
133
133
  if (asOfMs && src.stale_after_ms && t - asOfMs > src.stale_after_ms) state = 'stale';
134
134
  const schedule = scheduleOf(src.skill);
135
135
  if (schedule && schedule.last_status === 'fail' && state !== 'never') state = 'failed';
136
- return { id: src.id, label: src.label, as_of: iso(asOfMs), state, detail: null, stale_after_ms: src.stale_after_ms, skill: src.skill, schedule, ...extra };
136
+ return { id: src.id, label: src.label, group: src.group, as_of: iso(asOfMs), state, detail: null, stale_after_ms: src.stale_after_ms, skill: src.skill, schedule, ...extra };
137
137
  }
138
138
 
139
139
  /** One row per source for workspace `w` ({ id, root, repoStateDir }). Reads memory, small files and file times only. */
@@ -8,6 +8,8 @@
8
8
  * run.codeRun(id, { result, got, error, took_ms, trigger }) one line pair for a run with no session (signals, repository, Git sync)
9
9
  * run.jobGate(id, now) may job `id` run its tick now (off, or an input still running)
10
10
  * run.runNow(id, { ws, withInputs }) Refresh now; with inputs, the old ones first and this one once they end
11
+ * run.derived(ws) the derived content (briefing-source-flow, slice 4): each one, when it was last built, and the
12
+ * reads it was built from
11
13
  * run.refreshAll(ws) · run.allState() Refresh all (briefing-source-flow, slice 3): read every source that is on, then write the
12
14
  * Briefing from those reads. One run at a time: a second press joins the run that is going.
13
15
  * run.rows(ws) · run.setSource(id, patch) · run.setRules(patch) · run.ensureOn(id, ws) · run.settings() · run.log()
@@ -27,6 +29,7 @@ const PRUNE_EVERY_MS = 24 * 3600 * 1000;
27
29
  const LOST_MS = 6 * 3600 * 1000; // a run with no live session and no end after this long is written as interrupted
28
30
  const ALL_MS = 3 * 3600 * 1000; // a Refresh all that has not ended after this long is over: a new press starts a new one
29
31
  const DERIVED = Object.freeze(['brief']); // what Refresh all writes again after the sources, in this order
32
+ const DERIVED_LIST = Object.freeze(['scan', 'coredocs', 'brief']); // what Sources lists as derived content: built from stored reads, never a tool
30
33
  const AUTH_RETRY_MS = 2 * 60 * 1000; // a run that failed on Claude's sign-in is tried once more after this (the token is usually refreshed by then)
31
34
 
32
35
  function create(host) {
@@ -359,6 +362,21 @@ function create(host) {
359
362
  return { ok: true, joined: false, started, already, failed, all: allState(now()) };
360
363
  }
361
364
 
365
+ /** Derived content for Sources (slice 4): { id, label, state, at, from: [{ id, label, at, state }] }. The brief names the reads its last
366
+ * run started on (the start line's inputs); the others name their inputs as they are now. */
367
+ function derived(ws) {
368
+ const t = now(); const set = settings(); const rws = new Map(rowsFor(ws, set, t).map((r) => [r.id, r]));
369
+ const f = log();
370
+ return DERIVED_LIST.map((id) => {
371
+ const r = rws.get(id); if (!r) return null;
372
+ const l = f.lastRun(id);
373
+ const snap = id === 'brief' && l && Array.isArray(l.inputs) && l.inputs.length ? l.inputs : null;
374
+ const from = snap ? snap.map((i) => ({ id: i.id, label: (R.BY_ID.get(i.id) || { label: i.id }).label, at: i.at || null, state: i.result === 'failed' ? 'failed' : i.at ? 'read' : 'never' }))
375
+ : r.inputs.map((i) => ({ id: i.id, label: i.label, at: i.at || null, state: i.state === 'failed' ? 'failed' : i.at ? 'read' : 'never' }));
376
+ return { id, label: r.label, state: r.state, at: r.last ? r.last.at || null : null, from };
377
+ }).filter(Boolean);
378
+ }
379
+
362
380
  /* ── rows ── */
363
381
  const FRESH_OF = { 'my-work': 'my-work', calendar: 'calendar', jira: 'jira', tracker: 'tracker', tools: 'tools', initiatives: 'initiatives' };
364
382
  function rowsFor(ws, set, t) {
@@ -380,7 +398,7 @@ function create(host) {
380
398
  last_run: l ? l.start_at : null, last_status: l ? (l.result === 'failed' ? 'fail' : l.result === 'done' ? 'ok' : 'started') : st.last_result || null };
381
399
  }
382
400
 
383
- return { tick, started, ended, briefDone, codeRun, jobGate, runNow, refreshAll, allState, setSource, setRules, ensureOn, rows, settings, log, scheduleOfSkill, managedSkill: (skill) => R.SKILL_OF.get(skill) || null };
401
+ return { tick, started, ended, briefDone, codeRun, jobGate, runNow, refreshAll, allState, derived, setSource, setRules, ensureOn, rows, settings, log, scheduleOfSkill, managedSkill: (skill) => R.SKILL_OF.get(skill) || null };
384
402
  }
385
403
 
386
404
  module.exports = { create };
@@ -3,7 +3,9 @@
3
3
  *
4
4
  * GET /api/sources?ws=<id> → { ok, ws, version, sources: [row], health, all } lib/freshness.js sources(); health is
5
5
  * lib/harness-health.js of(): { level, line, issues } or null; all is the last Refresh all
6
- * (lib/refresh-run.js allState) or null
6
+ * (lib/refresh-run.js allState) or null; derived is the content built from stored reads
7
+ * (refresh-run derived: the brief, core documents, the scan, and the reads each was built from).
8
+ * Each source row has a group: 'machine' (read on this machine) or 'connector'
7
9
  * POST /api/sources/refresh { ws, source } → { ok, source, started: 'rebuild'|'session', session? }
8
10
  * POST /api/sources/refresh-all { ws } → { ok, joined, started, already, failed, all } every source that is on, then the
9
11
  * Briefing from those reads (briefing-source-flow, slice 3); a press while one runs joins it
@@ -34,7 +36,8 @@ async function handle(req, res, url, ctx) {
34
36
  const sources = F.sources({ id: w.id, root: w.root, repoStateDir: repoStateDir(ctx, w) });
35
37
  let health = null; try { health = ctx.health ? ctx.health() : null; } catch { health = null; }
36
38
  let all = null; try { all = ctx.refreshAllState ? ctx.refreshAllState() : null; } catch { all = null; }
37
- ctx.json(res, { ok: true, ws: w.id, version: F.versions()[w.id] || 0, sources, health, all });
39
+ let derived = []; try { derived = ctx.refreshDerived ? ctx.refreshDerived(w.id) : []; } catch { derived = []; }
40
+ ctx.json(res, { ok: true, ws: w.id, version: F.versions()[w.id] || 0, sources, health, all, derived });
38
41
  return true;
39
42
  }
40
43
  if (p !== '/api/sources/refresh' && p !== '/api/sources/watch' && p !== '/api/sources/refresh-all') return false;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.368.0",
3
+ "version": "0.370.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.368.0",
9
+ "version": "0.370.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.368.0",
3
+ "version": "0.370.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",
@@ -97,7 +97,7 @@ fs.writeFileSync(path.join(base, 'q3-deck.png'), PNG);
97
97
  const say = async (t) => { await p.fill('#rdIn', t); await p.press('#rdIn', 'Enter'); };
98
98
  await p.goto(BASE + '/premium-insights.html');
99
99
  await until(() => p.evaluate(() => !!document.querySelector('#listSeg [data-f="rep"]')));
100
- await p.click('#listSeg [data-f="rep"]'); // the one list (insights-one-list L5): the Reports filter holds the report files
100
+ await (async (pg, sel) => { if (await pg.locator('#listSeg').isHidden()) await pg.click('#listF'); await pg.click(sel); })(p, '#listSeg [data-f="rep"]'); // the one list (insights-one-list L5): the Reports filter holds the report files
101
101
  await until(() => p.evaluate(() => document.querySelectorAll('#listRows [data-rep]').length === 2));
102
102
  const rowSel = (slot) => `#listRows [data-rep="rep:${CAD}:${slot}"]`;
103
103
 
@@ -64,7 +64,7 @@ const model = async () => (await (await fetch(BASE + '/api/insights-premium')).j
64
64
  const pv = () => p.evaluate(() => { const t = document.querySelector('#stPv .mt1'); return t ? { cls: t.className, title: t.querySelector('.mlab').firstChild.textContent, val: (t.querySelector('.mval') || {}).textContent, bars: [...t.querySelectorAll('.bw i')].map((i) => parseFloat(i.style.height)), foot: (t.querySelector('.mfoot') || {}).textContent || '' } : null; });
65
65
  const checksTxt = () => p.evaluate(() => (document.querySelector('#stCk .suckb b') || {}).textContent || '');
66
66
  const tap = (sel) => p.$eval(sel, (b) => b.click());
67
- const open = async (sel) => { if (sel === '#pdNew' || sel === '#repNew') await p.click('#listNew'); await p.click(sel); await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on') && !!document.querySelector('#oMain .stu'))); await sleep(300); };
67
+ const open = async (sel) => { if (sel === '#pdNew' || sel === '#repNew') await p.click('#listNew'); if (['#pdEdit', '#pcNew', '#pdPin', '#pdBack'].includes(sel) && await p.locator('#dashBar').isHidden()) await p.click('#dashMore'); await p.click(sel); await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on') && !!document.querySelector('#oMain .stu'))); await sleep(300); };
68
68
  const mode = () => p.evaluate(() => (document.querySelector('#oMain .stmd [aria-pressed="true"]') || {}).textContent || '');
69
69
 
70
70
  /* O: New chart opens the Studio in Chart mode */
@@ -177,7 +177,7 @@ const model = async () => (await (await fetch(BASE + '/api/insights-premium')).j
177
177
  const c2 = await browser.newContext({ viewport: { width: 390, height: 844 }, colorScheme: theme }), q = await c2.newPage();
178
178
  await q.goto(BASE + '/premium-insights.html');
179
179
  await until(() => q.evaluate(() => !!document.querySelector('#pcNew')));
180
- await q.click('#pcNew'); await until(() => q.evaluate(() => !!document.querySelector('#oMain .stu'))); await sleep(400);
180
+ await (async (pg, sel) => { if (await pg.locator('#dashBar').isHidden()) await pg.click('#dashMore'); await pg.click(sel); })(q, '#pcNew'); await until(() => q.evaluate(() => !!document.querySelector('#oMain .stu'))); await sleep(400);
181
181
  await q.$eval('#oMain [data-st="more"]', (b) => b.click()); await sleep(100);
182
182
  await q.$eval('#oMain [data-st="chip|form"]', (b) => b.click()); await sleep(100);
183
183
  const measure = () => q.evaluate(() => {
@@ -60,7 +60,7 @@ const saved = async () => { const j = await (await fetch(BASE + '/api/insights-p
60
60
  const tiles = () => p.evaluate(() => [...document.querySelectorAll('#stPv .mch .mlab')].map((e) => e.firstChild.textContent));
61
61
  const checksTxt = () => p.evaluate(() => (document.querySelector('#stCk .suckb b') || {}).textContent || '');
62
62
  const tap = (sel) => p.$eval(sel, (b) => b.click());
63
- const open = async (sel) => { if (sel === '#pdNew' || sel === '#repNew') await p.click('#listNew'); await p.click(sel); await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on') && !!document.querySelector('#oMain .stu'))); await sleep(300); };
63
+ const open = async (sel) => { if (sel === '#pdNew' || sel === '#repNew') await p.click('#listNew'); if (['#pdEdit', '#pcNew', '#pdPin', '#pdBack'].includes(sel) && await p.locator('#dashBar').isHidden()) await p.click('#dashMore'); await p.click(sel); await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on') && !!document.querySelector('#oMain .stu'))); await sleep(300); };
64
64
  const shut = async () => { for (let i = 0; i < 2 && await p.evaluate(() => document.querySelector('#dlg').classList.contains('on')); i++) { await p.keyboard.press('Escape'); await sleep(150); } };
65
65
 
66
66
  /* O0: Chat is the rail's middle place and goes to the Chat page (premium-chat-page); the Studio opens from the page's own buttons */
@@ -75,7 +75,7 @@ const disk = () => fs.readFileSync(path.join(dir, pNew), 'utf8');
75
75
  const openReader = async (slot) => {
76
76
  await p.goto(BASE + '/premium-insights.html');
77
77
  await until(() => p.evaluate(() => !!document.querySelector('#listSeg [data-f="rep"]')));
78
- await tap('#listSeg [data-f="rep"]'); // the one list (insights-one-list L5): the Reports filter holds the report files
78
+ if (await p.locator('#listSeg').isHidden()) await tap('#listF'); await tap('#listSeg [data-f="rep"]'); // the one list (insights-one-list L5): the Reports filter holds the report files
79
79
  await until(() => p.evaluate(() => document.querySelectorAll('#listRows [data-rep]').length === 2));
80
80
  await tap(`#listRows [data-rep="rep:${CAD}:${slot}"]`);
81
81
  return until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on') && !!document.querySelector('#rdSlide')));
@@ -211,3 +211,18 @@ button.nfr:hover,button.nfr:focus-visible{background:color-mix(in oklab,var(--in
211
211
  .lpager .pg button:disabled{opacity:.35;cursor:default}
212
212
  .lmenu[hidden]{display:none}
213
213
  #listRows .dmr{grid-template-columns:minmax(0,1fr) auto}
214
+ /* calmer first screen (premium-calmer-first-screen): the top card's presses wait under ⋯ and its purpose behind ⓘ; the list's filter is one chip */
215
+ [id="cDash"] .ptag{display:none}
216
+ [id="cDash"] .ch .infob{margin-left:2px}
217
+ .dmw{position:relative;margin-left:auto;flex:0 0 auto}
218
+ .ch small:not(:empty)~.dmw{margin-left:12px}
219
+ .dmore{width:44px;height:44px;display:inline-grid;place-items:center;background:var(--well)}
220
+ .dmore[hidden],.dmenu[hidden]{display:none}
221
+ .dmenu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;display:grid;gap:2px;min-width:220px;padding:6px;border-radius:16px;background:var(--card);box-shadow:var(--card-shadow)}
222
+ .dmenu .pdst{margin:4px 10px 6px;font-size:var(--fs-2);color:var(--ink-3)}
223
+ .dmenu .dmcta{justify-content:flex-start;width:100%;min-height:44px;background:transparent;color:var(--ink);border:0}
224
+ .dmenu .dmcta:hover{background:var(--well)}
225
+ #cRep #repAsk{margin-top:18px}
226
+ @media (max-width:999px){.ch small~.dmw{margin-left:auto}}
227
+ .ieye .infob{margin:-12px -8px -12px 2px;color:var(--ink-3)}
228
+ .calm .ieye .infob i{width:20px;height:20px;background:none;color:inherit;display:inline-grid}
@@ -45,9 +45,10 @@ function drawHead() {
45
45
  /* ── the insight (insights-one-list L1, L2): the strongest finding across the board's measures, its reason, two more, and a press to the measure ── */
46
46
  function drawHero() {
47
47
  const I = M.insight;
48
- $('#insEye').innerHTML = ICO(AIC) + esc(I.none ? 'Insight' : 'Insight · ' + I.off + ' of ' + I.total + ' behind their line · readings to ' + I.asOf);
48
+ $('#insEye').innerHTML = ICO(AIC) + esc(I.none ? 'Insight' : 'Insight · ' + I.off + ' of ' + I.total + ' behind their line · readings to ' + I.asOf) + (I.none && I.why ? ' ' + infoBtn('insWhy', 'How an insight is drawn') : '');
49
49
  $('#brief').textContent = I.text;
50
50
  $('#insWhy').textContent = I.why || '';
51
+ $('#insWhy').hidden = !!I.none; // with no insight, the explanation waits behind an ⓘ (premium-calmer-first-screen)
51
52
  $('#insMore').innerHTML = (I.more || []).map((x) => `<li><button class="imr" data-open="${esc(x.chart)}" aria-haspopup="dialog">${esc(x.text)}${CHV2}</button></li>`).join('');
52
53
  $('#insAct').innerHTML = I.chart ? `<button class="dmcta" data-askwhy="${esc(I.chart)}" aria-haspopup="dialog">Ask PMOS why</button><button class="dmcta alt" data-open="${esc(I.chart)}" aria-haspopup="dialog">See the chart</button>` : '';
53
54
  $('#insNote').textContent = I.proj || (I.more || []).length ? 'A sentence that says where a measure lands by its target date is a straight line through its last four readings, carried to that date. It is not drawn on a chart.' : '';
@@ -150,6 +151,7 @@ function drawDash() {
150
151
  $('#dashTag').className = 'ptag' + (isPin ? ' on' : '');
151
152
  $('#dashCap').textContent = L.length ? (L.length - D.off) + ' of ' + L.length + ' on their line' : '';
152
153
  drawDashBar(D, isPin);
154
+ $('#cDash').hidden = !D.saved && !M.charts.length; // with nothing to chart, All measures is a row of the list only (premium-calmer-first-screen)
153
155
  if (D.saved) { drawSaved(D, L); return; }
154
156
  if (!M.charts.length) {
155
157
  $('#dashBody').innerHTML = `<div class="nempty" style="margin-top:14px"><p><b>${esc(M.counts.total ? 'No KR metric holds two readings yet.' : 'No KR metric is recorded for this workspace.')}</b> ${esc(M.counts.total ? 'A chart needs a series, so nothing is drawn.' : 'There is nothing to chart. Add one where the KR metrics are kept.')}</p></div>` + noSeriesHtml();
@@ -163,10 +165,12 @@ function drawDash() {
163
165
  }
164
166
  /* The bar under the heading: Pin or Unpin, Back to the pinned one, a saved dashboard's purpose and Edit, and New chart. Hidden with no board to save on. */
165
167
  function drawDashBar(D, isPin) {
166
- const bar = $('#dashBar'); bar.hidden = !M.board.id;
167
- if (bar.hidden) return;
168
+ const bar = $('#dashBar'); dashMenu(false);
169
+ $('#dashPurpose').textContent = D.saved ? D.purpose : D.id === 'all' ? 'Every KR metric of this board. PMOS makes it, so it cannot be deleted.' : 'The measures of the ' + D.name + ' pillar.';
170
+ $('#dashMore').hidden = !M.board.id;
171
+ if (!M.board.id) { bar.innerHTML = ''; return; }
168
172
  const P = M.pinned ? M.dashboards.find((d) => d.id === M.pinned) : null;
169
- bar.innerHTML = (D.saved ? `<p class="note pdp">${esc(D.purpose)}</p>` : `<p class="note pdp">${esc(D.id === 'all' ? 'Every KR metric of this board. PMOS makes it, so it cannot be deleted.' : 'The measures of the ' + D.name + ' pillar.')}</p>`)
173
+ bar.innerHTML = `<p class="note pdst">${isPin ? 'Pinned to the top of Insights' : 'Not pinned'}</p>`
170
174
  + (pinnable(D) ? `<button class="dmcta${isPin ? ' alt' : ''}" id="pdPin" data-pin="${esc(isPin ? '' : D.id)}" aria-pressed="${isPin}">${ICO(PINI)}${isPin ? 'Unpin' : 'Pin'}</button>` : '')
171
175
  + (P && !isPin ? `<button class="dmcta alt" id="pdBack">Back to ${esc(P.name)}</button>` : '')
172
176
  + (D.saved ? '<button class="dmcta alt" id="pdEdit" aria-haspopup="dialog">Edit</button>' : '')
@@ -205,6 +209,11 @@ async function pinDash(id, from) {
205
209
  await load();
206
210
  if (from === 'list') { try { $('#cDash').scrollIntoView({ behavior: 'smooth', block: 'start' }); } catch { /* no scroll */ } }
207
211
  }
212
+ /* the ⋯ of the top card: Pin or Unpin, Back, Edit and New chart (premium-calmer-first-screen) */
213
+ function dashMenu(open) { $('#dashBar').hidden = !open; $('#dashMore').setAttribute('aria-expanded', String(open)); }
214
+ $('#dashMore').addEventListener('click', () => { const open = $('#dashBar').hidden; dashMenu(open); if (open) { const f = $('#dashBar button'); if (f) f.focus(); } });
215
+ document.addEventListener('click', (e) => { if (!$('#dashBar').hidden && !e.target.closest('#dashBar, #dashMore')) dashMenu(false); });
216
+ document.addEventListener('keydown', (e) => { if (e.key === 'Escape' && !$('#dashBar').hidden) { dashMenu(false); $('#dashMore').focus(); } });
208
217
  $('#dashBar').addEventListener('click', (e) => {
209
218
  const pin = e.target.closest('#pdPin'); if (pin) { pin.disabled = true; pinDash(pin.dataset.pin || null, 'card'); return; }
210
219
  if (e.target.closest('#pdBack')) { dash = M.pinned; drawDash(); drawList(); return; }
@@ -248,7 +257,7 @@ const dismissing = new Map(); // finding id → timer: "Not a report" waits 5
248
257
  const ASKST = { running: ['Working', 'draft'], ready: ['Ready to review', 'issued'], failed: ['Failed', 'none'] };
249
258
  const insLine = (t, q) => `<span class="nil${q ? ' q' : ''}">${ICO(AIC)}<span>${esc(t)}</span></span>`;
250
259
  function dashRow(D) {
251
- const I = D.insight || {}, f = I.finds && I.finds[0], on = M.pinned === D.id, shown = curDash().id === D.id;
260
+ const I = D.insight || {}, f = I.finds && I.finds[0], on = M.pinned === D.id, shown = curDash().id === D.id && !$('#cDash').hidden;
252
261
  const line = I.none ? '' : insLine(f ? f.text : I.calmText);
253
262
  const meta = `<span class="t">Dashboard</span>${on ? '<span class="s issued">Pinned</span>' : ''}${shown ? '<span>Shown above</span>' : ''}<span>${D.total} ${D.total === 1 ? 'chart' : 'charts'}</span>${D.off ? `<span class="s none">${D.off} behind</span>` : D.total ? '<span>All on their line</span>' : ''}`;
254
263
  return `<div class="dmr" role="listitem"><button class="dmo" data-d="${esc(D.id)}"><span class="dmi c-Dash">${ICO(DASHI)}</span><span class="dmn"><b>${esc(D.name)}</b>${line || `<small>${esc(I.none ? 'No chart is drawn on it yet.' : '')}</small>`}<span class="dmm">${meta}</span></span></button>`
@@ -275,9 +284,12 @@ function drawList() {
275
284
  const I = listItems(), L = listF === 'dash' ? I.d : listF === 'rep' ? I.r : I.all, pages = Math.max(1, Math.ceil(L.length / PER));
276
285
  listP = Math.min(Math.max(1, listP), pages);
277
286
  $('#repCap').textContent = String(I.all.length);
278
- const seg = $('#listSeg');
279
- seg.innerHTML = '<i class="pill"></i>' + [['all', 'All', I.all.length], ['dash', 'Dashboards', I.d.length], ['rep', 'Reports', I.r.length]].map(([k, t, n]) => `<button data-f="${k}" aria-pressed="${listF === k}">${t}<em>${n}</em></button>`).join('');
280
- pillOf(seg);
287
+ const F3 = [['all', 'All', I.all.length], ['dash', 'Dashboards', I.d.length], ['rep', 'Reports', I.r.length]], cur = F3.find((f) => f[0] === listF);
288
+ $('#listSeg').innerHTML = F3.map(([k, t, n]) => `<button type="button" data-f="${k}" aria-pressed="${listF === k}">${t}<em>${n}</em></button>`).join('');
289
+ $('#listF').hidden = !(I.d.length && I.r.length) && listF === 'all'; // one kind only: nothing to filter (premium-calmer-first-screen)
290
+ $('#listF').innerHTML = `${cur[1]}<em>${cur[2]}</em><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="m7 10 5 5 5-5"/></svg>`;
291
+ $('#listF').setAttribute('aria-label', 'Show: ' + cur[1] + ', ' + cur[2]);
292
+ fMenu(false);
281
293
  const group = (id, label, G, row) => G.length ? `<div class="dmg ngrp" id="${id}" role="list"><p class="label">${esc(label)} · ${G.length}</p>${G.map(row).join('')}</div>` : '';
282
294
  const row = (it) => it.kind === 'dash' ? dashRow(it.x) : it.kind === 'setup' ? setupRow(it.x) : repRow(it.x);
283
295
  const empty = listF !== 'dash' && R.missing ? '<div class="nempty"><p><b>The report files could not be read</b>, so none is listed.</p></div>'
@@ -292,7 +304,11 @@ function drawList() {
292
304
  clearTimeout(askTimer);
293
305
  if (asks.some((a) => a.state === 'running')) askTimer = setTimeout(load, 5000);
294
306
  }
295
- $('#listSeg').addEventListener('click', (e) => { const b = e.target.closest('[data-f]'); if (!b || b.dataset.f === listF) return; listF = b.dataset.f; listP = 1; drawList(); });
307
+ function fMenu(open) { $('#listSeg').hidden = !open; $('#listF').setAttribute('aria-expanded', String(open)); }
308
+ $('#listF').addEventListener('click', () => { const open = $('#listSeg').hidden; fMenu(open); if (open) $('#listSeg [aria-pressed="true"]').focus(); });
309
+ document.addEventListener('click', (e) => { if (!$('#listSeg').hidden && !e.target.closest('#listSeg, #listF')) fMenu(false); });
310
+ document.addEventListener('keydown', (e) => { if (e.key === 'Escape' && !$('#listSeg').hidden) { fMenu(false); $('#listF').focus(); } });
311
+ $('#listSeg').addEventListener('click', (e) => { const b = e.target.closest('[data-f]'); if (!b) return; fMenu(false); if (b.dataset.f === listF) return; listF = b.dataset.f; listP = 1; drawList(); $('#listF').focus(); });
296
312
  $('#listPager').addEventListener('click', (e) => { const b = e.target.closest('[data-pg]'); if (!b || b.disabled) return; listP = +b.dataset.pg; drawList(); $('#cRep').scrollIntoView({ block: 'nearest' }); });
297
313
  const menu = (open) => { $('#listMenu').hidden = !open; $('#listNew').setAttribute('aria-expanded', String(open)); };
298
314
  $('#listNew').addEventListener('click', () => { const open = $('#listMenu').hidden; menu(open); if (open) $('#listMenu button').focus(); });
@@ -145,10 +145,35 @@ const srcRow = (s) => {
145
145
  const off = s.state === 'off' || s.state === 'building' || TB.busy;
146
146
  return `<div class="sr"><span class="sn"><b><i class="sdot ${cls}" aria-hidden="true"></i>${esc(s.label)}</b><em>${esc(SSTATE[s.state] || s.state)}${s.as_of || s.id === 'repository' && s.state === 'fresh' ? ' · ' + esc(when) : ''}</em></span>${s.id === 'repository' ? '' : `<button type="button" class="cta alt" data-sref="${esc(s.id)}" aria-label="Refresh ${esc(s.label)}"${off ? ' disabled' : ''}>Refresh</button>`}</div>`;
147
147
  };
148
+ const DSTATE = { recent: 'Built', old: 'Old', running: 'Building now', waiting: 'Waits for its sources', failed: 'Failed', never: 'Not built yet', off: 'Off' };
149
+ /** A derived row: when it was last built, and the reads it was built from with their times. It has no Refresh: Refresh all rebuilds it. */
150
+ const derRow = (d) => {
151
+ const cls = d.state === 'recent' ? 'ok' : d.state === 'old' || d.state === 'failed' || d.state === 'never' ? 'warn' : '';
152
+ const from = (d.from || []).map((f) => f.label + ' ' + (f.state === 'failed' ? 'failed' : f.at ? whenRead(f.at) : 'never read')).join(', ');
153
+ return `<div class="sr" data-der="${esc(d.id)}"><span class="sn"><b><i class="sdot ${cls}" aria-hidden="true"></i>${esc(d.label)}</b><em>${esc(DSTATE[d.state] || d.state)}${d.at ? ' · ' + esc(whenRead(d.at)) : ''}${from ? ' · from ' + esc(from) : ''}</em></span></div>`;
154
+ };
155
+ /** The steps of a Refresh all that is going: read the sources, then write the brief. */
156
+ const STW = { done: 'done', running: 'running', waiting: 'next', failed: 'failed', 'not-run': 'next' };
157
+ function stepsHtml() {
158
+ if (!allOn()) return '';
159
+ const S = TB.src.all.steps || [];
160
+ const st = (L) => (L.some((x) => x.state === 'running') ? 'running' : L.some((x) => x.state === 'waiting' || x.state === 'not-run') ? 'next' : L.some((x) => x.state === 'failed') ? 'failed' : 'done');
161
+ const reads = S.filter((x) => x.step === 'read'), der = S.filter((x) => x.step === 'derived');
162
+ const one = TB.src.all.phase === 'read' ? 'running' : st(reads);
163
+ return `<ol class="srsteps" aria-label="Refresh all"><li><b>1</b> Read the sources <em>${esc(one)}</em></li><li><b>2</b> Write the brief from them <em>${esc(TB.src.all.phase === 'derived' ? 'running' : STW[st(der)] || 'next')}</em></li></ol>`;
164
+ }
148
165
  let SPOLL = null;
149
166
  export async function openSources() {
150
167
  // the frame is drawn once; a re-read redraws only the rows, the button and the message, so the page's own part (the Briefing's picker) is left alone
151
- const rowsHtml = () => { const s = TB.src; return !s ? '<p class="note">Reading the sources.</p>' : !s.ok ? '<p class="note err" role="alert">The sources could not be read.</p>' : s.sources.map(srcRow).join(''); };
168
+ // one list (briefing-source-flow, slice 4): the sources, by where they are read, then the derived content built from their stored reads
169
+ const rowsHtml = () => {
170
+ const s = TB.src; if (!s) return '<p class="note">Reading the sources.</p>'; if (!s.ok) return '<p class="note err" role="alert">The sources could not be read.</p>';
171
+ const grp = (label, L) => (L.length ? `<div class="srgrp"><span class="label">${esc(label)}</span>${L.map(srcRow).join('')}</div>` : '');
172
+ const D = Array.isArray(s.derived) ? s.derived : [];
173
+ return stepsHtml() + grp('Sources · read on this machine', s.sources.filter((x) => x.group === 'machine'))
174
+ + grp('Sources · read through your connectors', s.sources.filter((x) => x.group !== 'machine'))
175
+ + (D.length ? `<div class="srgrp"><span class="label">Derived content · built from stored reads, never from a tool</span>${D.map(derRow).join('')}</div>` : '');
176
+ };
152
177
  const draw = () => {
153
178
  if (allOn()) TB.msg = allText(TB.src.all);
154
179
  const allLabel = allOn() ? 'Refreshing' : 'Refresh all';
@@ -157,7 +182,7 @@ export async function openSources() {
157
182
  $('#oMain').innerHTML = `<article class="paper doc"><div class="addf">
158
183
  <div id="srcHealth">${healthHtml()}</div>
159
184
  <div class="srctop"><p class="note" style="margin:0">Each source is read on its own schedule, not live. Refresh all reads every source, then writes the Briefing from those reads.</p><button type="button" class="cta" id="srcAll"${TB.busy || allOn() ? ' disabled' : ''}>${allLabel}</button></div>
160
- <div>${TB.extra ? '<span class="label">Sources</span>' : ''}<div id="srcRows">${rowsHtml()}</div></div>
185
+ <div id="srcRows">${rowsHtml()}</div>
161
186
  ${TB.extra ? TB.extra.html() : ''}
162
187
  <p class="note" id="srcM" role="status" style="margin:0;min-height:1.2em">${esc(TB.msg)}</p></div></article>`;
163
188
  if (TB.extra && TB.extra.mount) TB.extra.mount();
@@ -85,6 +85,17 @@ h1,h2,h3,p{margin:0}
85
85
  .seg button{white-space:nowrap;position:relative;z-index:1;height:32px;padding:0 14px;border-radius:var(--r-chip);font-size:var(--t-small);font-weight:600;color:var(--ink-2);transition:color .3s}
86
86
  .seg button[aria-pressed="true"]{color:var(--on-solid)}
87
87
  .seg .pill{position:absolute;z-index:0;top:4px;bottom:4px;border-radius:var(--r-chip);background:var(--solid);transition:left .45s var(--spring),width .45s var(--spring)}
88
+ /* a filter or view chip in a card's head, with its choices in a small menu (premium-calmer-first-screen) */
89
+ .lfw{position:relative;margin-left:auto;flex:0 0 auto}
90
+ .ch small:not(:empty)~.lfw{margin-left:12px}
91
+ .lfchip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:var(--r-chip);background:var(--well);font-size:var(--fs-2);font-weight:600;color:var(--ink)}
92
+ .lfchip em{font:500 var(--fs-2) var(--mono);font-style:normal;color:var(--ink-3)}.lfchip svg{width:15px;height:15px}
93
+ .lfchip[hidden],.lfmenu[hidden]{display:none}
94
+ .lfmenu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;display:grid;gap:2px;min-width:200px;padding:6px;border-radius:16px;background:var(--card);box-shadow:var(--card-shadow)}
95
+ .lfmenu button{display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:0 12px;border-radius:10px;font-size:var(--fs-3);font-weight:600;color:var(--ink-2);text-align:left}
96
+ .lfmenu button em{font:500 var(--fs-2) var(--mono);font-style:normal;color:var(--ink-3)}
97
+ .lfmenu button:hover,.lfmenu button[aria-pressed="true"]{background:var(--well);color:var(--ink)}
98
+ @media (max-width:999px){.ch small~.lfw{margin-left:auto}.lfchip{min-height:44px}}
88
99
  .note{font-size:var(--t-small);color:var(--ink-3);line-height:1.5}
89
100
  .label{font:600 var(--t-micro) var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
90
101
  .rank{margin-top:8px;position:relative}
@@ -2150,6 +2161,8 @@ button.wl-row[aria-pressed="true"] .wl-tog{background:var(--solid);color:var(--o
2150
2161
  .hline:empty,#srcHealth:empty{display:none}
2151
2162
  .sr .sn b{display:inline-flex;align-items:center;gap:8px}
2152
2163
  .srctop{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
2164
+ .srgrp{display:grid;margin-top:12px}.srgrp:first-child{margin-top:0}
2165
+ .srsteps{list-style:none;margin:0 0 4px;padding:0;display:grid;gap:4px}.srsteps li{display:flex;align-items:center;gap:8px;font-size:var(--fs-2)}.srsteps li b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1px solid var(--hair)}.srsteps li em{font-style:normal;color:var(--ink-3)}
2153
2166
  .mwrap{position:relative;display:inline-flex}
2154
2167
  .mdot{position:absolute;top:2px;right:2px;width:10px;height:10px;border-radius:50%;background:var(--ember);border:2px solid var(--card-solid)}
2155
2168
  .mdot[hidden]{display:none}
@@ -2303,7 +2316,7 @@ button.wl-row[aria-pressed="true"] .wl-tog{background:var(--solid);color:var(--o
2303
2316
  #cRep .nrgo:active{transform:scale(.95)}
2304
2317
  #cRep .nrgo:disabled{opacity:.4}
2305
2318
  #cRep .nrplus svg.i,#cRep .nrgo svg.i{width:18px;height:18px;stroke-width:2.2}
2306
- #cRep .nrpill .lmenu{top:52px}
2319
+ #cRep .nrpill .lmenu{top:auto;bottom:52px} /* the ask row is the list's last row: the + menu opens upward, over the list, not under the next card (premium-calmer-first-screen) */
2307
2320
  #cRep .nrline{margin:8px 0 0;text-wrap:balance;color:var(--ink-3);font-size:var(--fs-2);text-align:center}
2308
2321
  #cRep .nrline .infob{margin:-12px -12px -12px -6px;vertical-align:middle}
2309
2322
  #cRep #repFold{margin-top:8px}
@@ -2575,6 +2588,11 @@ button.wl-row[aria-pressed="true"] .wl-tog{background:var(--solid);color:var(--o
2575
2588
  @media (min-width:1000px){.chatpg .dlg.on{left:128px;top:16px;transform:none;width:calc(100% - 144px);height:calc(100% - 32px);max-height:none!important;border-radius:28px;padding:26px 34px 18px}}
2576
2589
  @media (max-width:999px){.chatpg .dlg.on{left:0;top:0;transform:none;width:100%;height:calc(100% - 118px - env(safe-area-inset-bottom,0px));max-height:none!important;border-radius:0 0 28px 28px;padding:16px 18px 14px}}
2577
2590
 
2591
+ /* ── premium-chat-rail, the Chat page: the solid Chat button is the "you are here" mark, so the rail's grey indicator does not also sit under it
2592
+ (it peeked out below the raised button on a phone). The rail sits above the page's dialog, so the dialog's shadow does not grey the button and its ring. ── */
2593
+ .chatpg .rail{z-index:42}
2594
+ .chatpg .rail .ind{display:none}
2595
+
2578
2596
  /* ── premium-phone-room: on a phone the Chat page gives the conversation the screen. Scrolling the conversation down, or typing, moves the rail
2579
2597
  off the bottom and the page grows into its place; scrolling up brings the rail back. The page is as tall as what the keyboard leaves (--vvh). ── */
2580
2598
  @media (max-width:999px){
@@ -1087,7 +1087,7 @@ function sourcesHtml() {
1087
1087
  const L = (M && M.header && M.header.sources) || [];
1088
1088
  const rows = !L.length ? '<p class="note">The Briefing has not read anything yet.</p>'
1089
1089
  : L.map((x) => { const [c, w] = RDST[x.state] || ['', x.state]; return `<div class="sr"><span class="sn"><b><i class="sdot ${c}" aria-hidden="true"></i>${esc(x.name)}</b><em>${esc(w)}${x.reason ? ' · ' + esc(x.reason) : ''}</em></span></div>`; }).join('');
1090
- return `<div id="pkSlot"></div><div><span class="label">What the Briefing read</span>${rows}</div>`;
1090
+ return `<div class="srgrp"><span class="label">This Briefing was built from</span>${rows}</div><div id="pkSlot"></div>`;
1091
1091
  }
1092
1092
  async function refreshRepos() {
1093
1093
  const ws = new URLSearchParams(location.search).get('ws');
@@ -46,13 +46,14 @@
46
46
  <p class="note inote" id="insNote"></p>
47
47
  </section>
48
48
  <section class="card pdcard rise" style="--d:5" id="cDash" aria-labelledby="hDash">
49
- <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M4 20V10M10 20V4M16 20v-8M22 20H2"/></svg></span><h2 id="hDash">Dashboard</h2><i class="ptag" id="dashTag"></i><small id="dashCap"></small></div>
50
- <div class="nact pdbar" id="dashBar" hidden></div>
49
+ <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M4 20V10M10 20V4M16 20v-8M22 20H2"/></svg></span><h2 id="hDash">Dashboard</h2><button type="button" class="infob" id="dashAboutB" aria-controls="dashAbout" aria-expanded="false" aria-label="About this dashboard" title="About this dashboard"><i aria-hidden="true">i</i></button><i class="ptag" id="dashTag"></i><small id="dashCap"></small><span class="dmw"><button type="button" class="round dmore" id="dashMore" aria-haspopup="true" aria-expanded="false" aria-controls="dashBar" aria-label="More for this dashboard" title="More" hidden><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="6" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18" cy="12" r="1"/></svg></button><div class="nact pdbar dmenu glass" id="dashBar" role="group" aria-label="Dashboard actions" hidden></div></span></div>
50
+ <div class="ifold" id="dashAbout" hidden><p class="note pdp" id="dashPurpose"></p></div>
51
51
  <div id="dashBody"></div>
52
52
  </section>
53
53
  <section class="card nrep rise" style="--d:6" id="cRep" aria-labelledby="hRep">
54
- <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h16M4 18h10"/></svg></span><h2 id="hRep">Dashboards and reports</h2><small id="repCap"></small></div>
55
- <div class="seg" id="listSeg" role="group" aria-label="Show"><i class="pill"></i></div>
54
+ <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h16M4 18h10"/></svg></span><h2 id="hRep">Dashboards and reports</h2><small id="repCap"></small><span class="lfw"><button type="button" class="lfchip" id="listF" aria-haspopup="true" aria-expanded="false" aria-controls="listSeg" hidden></button><span class="lfmenu glass" id="listSeg" role="group" aria-label="Show" hidden></span></span></div>
55
+ <div id="repBody"></div>
56
+ <div class="lpager" id="listPager"></div>
56
57
  <form class="nrpill" id="repAsk">
57
58
  <span class="newm"><button class="nrplus" type="button" id="listNew" aria-haspopup="menu" aria-expanded="false" aria-controls="listMenu" aria-label="New dashboard or report" title="New"><svg class="i" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></svg></button>
58
59
  <span class="lmenu" id="listMenu" role="menu" hidden><button type="button" role="menuitem" id="pdNew">Dashboard</button><button type="button" role="menuitem" id="repNew">Report</button></span></span>
@@ -61,8 +62,6 @@
61
62
  </form>
62
63
  <p class="note nask-n nrline">Only proposes. Nothing is set up until you press Set it up. <button type="button" class="infob" aria-controls="repFold" aria-expanded="false" aria-label="About reports and the pin" title="About reports and the pin"><i aria-hidden="true">i</i></button></p>
63
64
  <div class="ifold" id="repFold" hidden><p class="mhint">Ask starts a background run that only proposes a report. A report is a file in the repository. PMOS drafts it, you read it. <b>Nothing is sent from here.</b> The pin puts one dashboard at the top of this page. It shows nowhere else. Open a report to read it, edit its words or issue a draft.</p></div>
64
- <div id="repBody"></div>
65
- <div class="lpager" id="listPager"></div>
66
65
  </section>
67
66
  <section class="card rise" style="--d:7" id="cBm" aria-labelledby="hBm" hidden>
68
67
  <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M4 20V10M10 20V4M16 20v-8M22 20H2"/></svg></span><h2 id="hBm">Board measures</h2><button type="button" class="infob" aria-controls="bmFold" aria-expanded="false" aria-label="About the Board measures" title="About the Board measures"><i aria-hidden="true">i</i></button><small id="bmCap"></small><div class="seg mper" id="bmRange" role="group" aria-label="Range"><i class="pill"></i><button data-w="8" aria-pressed="true">8 weeks</button><button data-w="26" aria-pressed="false">26 weeks</button><button data-w="52" aria-pressed="false">52 weeks</button></div></div>
@@ -9716,7 +9716,7 @@ async function handleRequest(req, res) {
9716
9716
  },
9717
9717
  // workspace-data-freshness: the source table, the facts rebuild and Refresh now's skill sessions
9718
9718
  freshness, factsRefresh: (root) => factsAsync.refresh(root, { force: true }), startSkill: startSkillSession, health: () => harnessHealth(),
9719
- refreshAll: (wsId) => refreshRun.refreshAll(wsId), refreshAllState: () => refreshRun.allState(),
9719
+ refreshAll: (wsId) => refreshRun.refreshAll(wsId), refreshAllState: () => refreshRun.allState(), refreshDerived: (wsId) => refreshRun.derived(wsId),
9720
9720
  // c3-initiative-boards: the PMOS checkout this server is embedded in, whose default board keeps its derived ladder
9721
9721
  selfRoot: EMBEDDED_SELF ? SELF_ROOT : null,
9722
9722
  // horizon-scan-portfolio: Scan now, Stop and an approved research proposal start and end runs in the scanner; scanClock fixes its clock in the suites