create-pmos 0.660.0 → 0.661.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.660.0",
3
+ "version": "0.661.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": {
@@ -34,21 +34,21 @@
34
34
  ],
35
35
  "pmosChanges": [
36
36
  {
37
- "v": "0.660.0",
38
- "at": "2026-11-22T03:56:11.761Z",
37
+ "v": "0.661.0",
38
+ "at": "2026-11-22T04:04:22.455Z",
39
39
  "f": 4,
40
40
  "prs": [
41
- {
42
- "n": 1444,
43
- "t": "Library is built from the design system's blocks",
44
- "s": "Library is built from the design system's blocks",
45
- "k": "new"
46
- },
47
41
  {
48
42
  "n": 1445,
49
43
  "t": "Pmos design drift, the design drift guard",
50
44
  "s": "Pmos design drift, the design drift guard",
51
45
  "k": "new"
46
+ },
47
+ {
48
+ "n": 1449,
49
+ "t": "Rebuild the Intelligence page from Komorebi blocks",
50
+ "s": "Rebuild the Intelligence page from Komorebi blocks",
51
+ "k": "new"
52
52
  }
53
53
  ]
54
54
  },
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@58c68d24
1
+ kernel-source: pmos@6ad955bd
2
2
  assembled: 2026-11-22
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-11-22T03:56:08Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-22T04:04:19Z"}
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-11-22T03:56:08Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-22T04:04:19Z"}
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-11-22T03:56:08Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-22T04:04:19Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -78,7 +78,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
78
78
  if (r.request().method() === 'POST') { pk.on = JSON.parse(r.request().postData() || '{}').on; pk.posts.push(pk.on); }
79
79
  r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, all: false, chosen: true, products: reg.map((x, i) => ({ ...x, home: false, primary: !i, initials: null, on: pk.on.includes(x.ws) })) }) });
80
80
  });
81
- await page.goto(BASE + '/premium-intelligence.html?theme=' + theme + q);
81
+ await page.goto(BASE + '/premium-intelligence.html?theme=' + theme + '&tab=goals' + q); // key results live on Goals: ?tab=goals shows them here (intelligence-ds-page)
82
82
  const up = await until(() => page.evaluate(() => document.querySelectorAll('#goalTbl .ins-row').length > 0 || /could not be read/.test(document.querySelector('#brief').textContent) || !!document.querySelector('#goalTbl .ins-empty')), 20000);
83
83
  return { ctx, page, errors, posts, up, pk, calls: () => calls, setModel: (m) => { current = m; } };
84
84
  };
@@ -123,7 +123,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
123
123
  ok('B1 the filter is chips by status, owner and kind; the owners are the goals\' owners and the work that moves them', fl.heads === 'Status,Owner,Kind' && fl.status === 'Off track,On track,Hit,No readings' && fl.owners === 'Dara,Lee,Mira' && fl.kinds === 'Goals,Health budgets' && /status, owner or kind/.test(fl.label), JSON.stringify(fl));
124
124
  // re-pointed (U3): ⋯ is Reports and dashboards and Export CSV; About moved to the guide, Sources is Settings › Connectors, Metrics and Delivery trends left the menu
125
125
  await p.click('#moreB'); const mo = await p.evaluate(() => [...document.querySelectorAll('#moreMenu [data-more]')].map((b) => b.dataset.more + ':' + (b.disabled ? 'off' : 'on')).join()); await p.keyboard.press('Escape');
126
- ok('B1 ⋯ holds Reports and dashboards and Export CSV only (U3)', mo === 'library:on,export:on', mo);
126
+ ok('B1 ⋯ holds Reports and dashboards, Key results here and Export CSV (U3, intelligence-ds-page)', mo === 'library:on,krs:on,export:on', mo);
127
127
  { const R = await open(), q = R.page; await q.route('**/api/insights-records/export*', (r) => r.fulfill({ status: 200, contentType: 'text/csv', headers: { 'Content-Disposition': 'attachment; filename="insights-goals.csv"' }, body: 'id\n' }));
128
128
  const [rq] = await Promise.all([q.waitForRequest(/\/api\/insights-records\/export/), (async () => { await q.click('#moreB'); await q.click('#moreMenu [data-more="export"]'); })()]);
129
129
  const u = new URL(rq.url());
@@ -281,9 +281,9 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
281
281
 
282
282
  /* L1 the strip */
283
283
  { const hero = await p.evaluate(() => ({ eye: document.querySelector('#insEye').textContent, head: document.querySelector('#brief').textContent, why: document.querySelector('#insWhy').textContent, ask: document.querySelector('#askWhy').getAttribute('href') }));
284
- const pg = await p.evaluate(() => [...document.querySelectorAll('#insPg [data-ins]')].map((b) => b.getAttribute('aria-pressed')).join());
284
+ const pg = await p.evaluate(() => (document.querySelector('#insOf') || {}).textContent || '');
285
285
  /* re-pointed (batch 16 item 6, GsM3): the ✦ line about the goals leads; the strongest finding is the next page */
286
- ok('L1 the ✦ strip leads the page with the goal furthest behind and why (the period chip says the day, so the strip does not); Ask why opens Home with the question; the dots page through the findings', hero.eye === '' && pg.split(',').length >= 3 && pg.split(',')[0] === 'true' && hero.head === 'Partner activation is behind its line: 28% of 50%, its line says 38%. 2 other goals are behind too.' && !!hero.why && /^\/premium\.html\?ws=w1&ask=insights&q=Why/.test(hero.ask), JSON.stringify(hero));
286
+ ok('L1 the ✦ strip leads the page with the goal furthest behind and why (the period chip says the day, so the strip does not); Ask why opens Home with the question; ‹ › page through the findings, 1 of N', hero.eye === '' && /^1 of [3-9]/.test(pg) && hero.head === 'Partner activation is behind its line: 28% of 50%, its line says 38%. 2 other goals are behind too.' && !!hero.why && /^\/premium\.html\?ws=w1&ask=insights&q=Why/.test(hero.ask), JSON.stringify(hero));
287
287
  await p.click('#insPg [data-ins="1"]'); await sleep(80);
288
288
  const f1 = await p.evaluate(() => ({ head: document.querySelector('#brief').textContent, why: document.querySelector('#insWhy').textContent }));
289
289
  ok('L1 the next page is the strongest finding and its reason', f1.head === 'Time to first call will miss its 3 days target on 31 Dec unless it turns.' && /Over its last 4 readings it went from 8 days to 9 days/.test(f1.why), JSON.stringify(f1));
@@ -344,8 +344,8 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
344
344
  /* O: Did it work? (Iq8Overview), the drafted verdict with ✓ Keep and Undo, and the full verdict (AgInsVerdict) */
345
345
  {
346
346
  const R = await open(), q = R.page;
347
- const o = await q.evaluate(() => ({ cols: [...document.querySelectorAll('#outTbl .ins-th [role="columnheader"]')].map((c) => c.textContent).join('|'), rows: [...document.querySelectorAll('#outTbl [data-ini]')].map((r) => r.dataset.ini), sso: document.querySelector('#outTbl [data-ini="sso-partners"]').textContent.replace(/\s+/g, ' '), decide: document.querySelectorAll('#outTbl [data-verdict]').length, keep: document.querySelectorAll('#outTbl [data-keep]').length, shown: !document.querySelector('#pOutcomes').hidden }));
348
- ok('O1 Did it work? sits under the key results with the columns Promised, Check, Got and Verdict (redesign A: the check date is a column), and counts what is to judge and in window', o.shown && o.cols === 'Did it work? 1 to judge · 2 in window|Promised|Check|Got|Verdict', o.cols);
347
+ const o = await q.evaluate(() => ({ cols: [((document.querySelector('#outTbl .head h2') || {}).textContent || '') + ' ' + ((document.querySelector('#outTbl .head .pm-meta') || {}).textContent || ''), ...[...document.querySelectorAll('#outTbl th')].map((c) => c.textContent.trim())].join('|'), rows: [...document.querySelectorAll('#outTbl [data-ini]')].map((r) => r.dataset.ini), sso: document.querySelector('#outTbl [data-ini="sso-partners"]').textContent.replace(/\s+/g, ' '), decide: document.querySelectorAll('#outTbl [data-verdict]').length, keep: document.querySelectorAll('#outTbl [data-keep]').length, shown: !document.querySelector('#pOutcomes').hidden }));
348
+ ok('O1 Did it work? sits under the key results as a Table (board IntelligenceDS): Work, Expected, What happened, PMOS thinks and Keep or change, and counts what is to judge and in window', o.shown && o.cols === 'Did it work? 1 to judge · 2 in window|Work|Expected|What happened|PMOS thinks|Keep or change', o.cols);
349
349
  ok('O1 it lists only the work to judge and in its window; a row says what its goal promised and what it got, and its date', o.rows.join() === 'refund-reason-codes,sso-partners,audit-log-export' && /Partner activation \+30 pts/.test(o.sso) && /\+8 pts/.test(o.sso) && /Judged Dec 31/.test(o.sso) && /shipped Oct 23/.test(o.sso), JSON.stringify(o));
350
350
  ok('O1 a promise with no reading has no drafted verdict: Decide only, no ✓', o.decide === 1 && o.keep === 0, JSON.stringify(o));
351
351
  await R.ctx.close();
@@ -357,7 +357,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
357
357
  const R3 = await open({ model: IP.build(met) }), q3 = R3.page, sent = [];
358
358
  await q3.route(/\/api\/insights-records\/verdict(-undo)?$/, (r) => { sent.push([new URL(r.request().url()).pathname, JSON.parse(r.request().postData() || '{}')]); r.fulfill({ contentType: 'application/json', body: '{"ok":true}' }); });
359
359
  const dv = await q3.evaluate(() => ({ text: document.querySelector('#outTbl [data-ini="refund-reason-codes"]').textContent.replace(/\s+/g, ' '), keep: (document.querySelector('#outTbl [data-keep]') || {}).getAttribute && document.querySelector('#outTbl [data-keep]').getAttribute('aria-label') }));
360
- ok('O2 a met promise gets a drafted verdict said from the readings, with ✓ Record the verdict: Keep', /Keep\. It beat the promise: −2\.2 pts against −2 pts\./.test(dv.text) && dv.keep === 'Record the verdict: Keep', JSON.stringify(dv));
360
+ ok('O2 a met promise gets a drafted verdict said from the readings, with ✓ Record the verdict: Keep', /It beat the promise: −2\.2 pts against −2 pts\./.test(dv.text) && dv.keep === 'Record the verdict: Keep', JSON.stringify(dv));
361
361
  await q3.click('#outTbl [data-keep]'); await until(() => sent.length > 0, 4000);
362
362
  ok('O2 ✓ Keep records Keep with the drafted line, marked drafted, without opening a panel', sent[0][0] === '/api/insights-records/verdict' && sent[0][1].verdict === 'Keep' && sent[0][1].drafted === true && /beat the promise/.test(sent[0][1].learned) && sent[0][1].ini === 'refund-reason-codes' && sent[0][1].board === 'w1' && await q3.evaluate(() => document.querySelector('#side').hidden), JSON.stringify(sent));
363
363
  await q3.click('#toast .cta'); await until(() => sent.length > 1, 4000);
@@ -564,7 +564,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
564
564
  await q.route('**/api/insights-premium?ws=w2*', (r) => { asked.push(r.request().url()); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, state: 'ready', model: other }) }); });
565
565
  await q.reload(); // the route above answers the second product from the first read on
566
566
  const pf = await until(async () => { const x = await q.evaluate(() => ({ chip: (document.querySelector('#prodPick') || { getAttribute: () => '' }).getAttribute('aria-label'), all: (document.querySelector('#prodPick .ppk-all') || {}).textContent, groups: [...document.querySelectorAll('#goalTbl .ins-grp')].map((g) => g.querySelector('[role="cell"]').textContent), rows: document.querySelectorAll('#goalTbl [data-goal]').length, brief: document.querySelector('#brief').textContent, budgets: document.querySelectorAll('#goalTbl [data-budget]').length })); return x.groups.includes('Billing') ? x : null; }, 8000);
567
- ok('M1 two products ticked (the chip says All; the ✦ line sums All products, redesign A): Portfolio reads the other product once and groups every goal by product; budgets stay with their product', !!pf && pf.chip === 'Products: all 2' && /^All( products)?$/.test(pf.all) && pf.groups.slice(0, 2).join() === 'pmos,Billing' && pf.rows === 6 && /^Across your 2 products/.test(pf.brief) && pf.budgets === 0 && asked.length === 1, JSON.stringify(pf));
567
+ ok('M1 two products ticked (the chip says All; the ✦ line sums All products, redesign A): Portfolio reads the other product once and groups every goal by product; budgets stay with their product', !!pf && pf.chip === 'Products: all 2' && /^All( products)?$/.test(pf.all) && pf.groups.slice(0, 2).join() === 'pmos,Billing' && pf.rows === 6 && /^Across your 2 products/.test(pf.brief) && pf.budgets === 0 && asked.length === 1, JSON.stringify(pf) + ' asked ' + JSON.stringify(asked));
568
568
  await q.click('#prodPick'); const pm = await q.evaluate(() => [...document.querySelectorAll('#ppMenu [data-pp]')].map((b) => b.querySelector('b').textContent + ':' + ((b.querySelector('em') || {}).textContent || '') + ':' + b.getAttribute('aria-checked')).join());
569
569
  ok('M1 the list counts each product\'s goals and ticks both', pm === 'All products::true,pmos:5 goals:true,Billing:1 goal:true', pm);
570
570
  await q.keyboard.press('Escape');
@@ -603,7 +603,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
603
603
  const f = await R.page.evaluate(() => { const cs = (s) => getComputedStyle(document.querySelector(s)); const main = cs('main.ins'), tab = cs('#viewChip'), strip = cs('#insHero'), row = document.querySelector('#goalTbl .ins-row').getBoundingClientRect();
604
604
  return { font: cs('body').fontFamily, radius: main.borderTopLeftRadius, bg: main.backgroundColor, tabBg: tab.backgroundColor, tabR: tab.borderTopLeftRadius, tabW: tab.fontWeight, stripR: strip.borderTopLeftRadius, stripBg: strip.backgroundColor, rowH: Math.round(row.height), over: document.documentElement.scrollWidth > innerWidth, fab: document.querySelector('#czFab').getBoundingClientRect().width, rail: document.querySelector('#czMenu.ev-rail') ? Math.round(document.querySelector('#czMenu.ev-rail').getBoundingClientRect().width) : 0, fabX: Math.round(document.querySelector('#czFab').getBoundingClientRect().left) }; });
605
605
  const phone = w < 720;
606
- ok(`I11 the page wears the Agreed design at ${w} px: Plus Jakarta Sans, the white panel, the pill View chip, the well strip, the 44 px ⋯ at the top right on a phone (phone design, Ph2_menu), the 72 px rail of places on a desktop (slice 1)`, /^"?Plus Jakarta Sans/.test(f.font) && f.radius === (phone ? '0px' : '28px') && (phone || f.bg === 'rgb(255, 255, 255)') && f.tabBg === 'rgb(244, 243, 240)' && f.tabR === '999px' && +f.tabW >= 600 && (phone || (f.stripR === '16px' && f.stripBg === 'rgb(244, 242, 238)' && f.rowH >= 60)) && !f.over && (phone ? f.fab === 44 && f.fabX > 300 : f.rail === 72), JSON.stringify(f));
606
+ ok(`I11 the page wears the Agreed design at ${w} px: Plus Jakarta Sans, the white panel, the pill View chip, the finding as a white Block (board IntelligenceDS), the 44 px ⋯ at the top right on a phone (phone design, Ph2_menu), the 72 px rail of places on a desktop (slice 1)`, /^"?Plus Jakarta Sans/.test(f.font) && f.radius === (phone ? '0px' : '28px') && (phone || f.bg === 'rgb(255, 255, 255)') && f.tabBg === 'rgb(244, 243, 240)' && f.tabR === '999px' && +f.tabW >= 600 && (phone || (f.stripR === '16px' && f.stripBg === 'rgb(255, 255, 255)' && f.rowH >= 60)) && !f.over && (phone ? f.fab === 44 && f.fabX > 300 : f.rail === 72), JSON.stringify(f));
607
607
  if (!phone) {
608
608
  await toTrends(R.page);
609
609
  const t = await R.page.evaluate(() => { const tiles = [...document.querySelectorAll('#bmBody [data-tile]')].map((x) => x.getBoundingClientRect()); return { n: tiles.length, tileH: tiles.length ? Math.round(tiles[0].height) : 0, over: document.documentElement.scrollWidth > innerWidth }; });
@@ -1,20 +1,20 @@
1
1
  [
2
2
  {
3
- "v": "0.660.0",
4
- "at": "2026-11-22T03:56:11.761Z",
3
+ "v": "0.661.0",
4
+ "at": "2026-11-22T04:04:22.455Z",
5
5
  "f": 4,
6
6
  "prs": [
7
- {
8
- "n": 1444,
9
- "t": "Library is built from the design system's blocks",
10
- "s": "Library is built from the design system's blocks",
11
- "k": "new"
12
- },
13
7
  {
14
8
  "n": 1445,
15
9
  "t": "Pmos design drift, the design drift guard",
16
10
  "s": "Pmos design drift, the design drift guard",
17
11
  "k": "new"
12
+ },
13
+ {
14
+ "n": 1449,
15
+ "t": "Rebuild the Intelligence page from Komorebi blocks",
16
+ "s": "Rebuild the Intelligence page from Komorebi blocks",
17
+ "k": "new"
18
18
  }
19
19
  ]
20
20
  },
@@ -120,7 +120,7 @@ const FIX = { id: 'fx-amp', kind: 'connect', goal: 'krm-act', connector: 'Amplit
120
120
  for (const k of ['metric-drafts/keep', 'metric-drafts/keep-all', 'metric-drafts/drop', 'metric-drafts/edit', 'metric-drafts/undo', 'goal-status/test', 'goal-status/read', 'goal-status/compare', 'goal-status/compare-pick', 'goal-status/file-held']) {
121
121
  await page.route('**/api/' + k, (r) => { const p = '/api/' + k, body = JSON.parse(r.request().postData() || '{}'); posts.push({ path: p, body }); r.fulfill({ contentType: 'application/json', body: JSON.stringify(answer(p, body)) }); });
122
122
  }
123
- await page.goto(BASE + '/premium-intelligence.html?theme=' + theme);
123
+ await page.goto(BASE + '/premium-intelligence.html?tab=goals&theme=' + theme);
124
124
  await until(() => page.evaluate((s) => !!document.querySelector(s), ready), 20000);
125
125
  return { ctx, page, errors, posts, S };
126
126
  };
@@ -129,18 +129,18 @@ const FIX = { id: 'fx-amp', kind: 'connect', goal: 'krm-act', connector: 'Amplit
129
129
 
130
130
  /* T · the drafts table */
131
131
  const A = await open(), p = A.page;
132
- const tb = await p.evaluate(() => ({ heads: [...document.querySelectorAll('#draftBox .gc-th [role="columnheader"]')].map((e) => e.textContent.replace(/\s+/g, ' ').trim()),
133
- groups: [...document.querySelectorAll('#draftBox .gc-grp b')].map((e) => e.textContent), rows: document.querySelectorAll('#draftBox .gc-tr').length,
134
- ns: (() => { const r = document.querySelector('[data-gc-row="d-ns"]'); return r ? [...r.querySelectorAll('[role="cell"]')].map((c) => c.innerText.replace(/\s+/g, ' ').trim()) : []; })(),
135
- g1: (document.querySelector('[data-gc-row="d-g1"] .gc-from') || {}).innerText || '', g2: (document.querySelector('[data-gc-row="d-g2"] .gc-from') || {}).innerText || '',
132
+ const tb = await p.evaluate(() => ({ head: ((document.querySelector('#draftBox .head h2') || {}).textContent || ''), rows: document.querySelectorAll('#draftBox .gc-tr.pm-li').length,
133
+ ns: ((document.querySelector('[data-gc-row="d-ns"] .gc-hw') || {}).innerText || '').replace(/\s+/g, ' ').trim(), nsName: ((document.querySelector('[data-gc-row="d-ns"] .gc-nm .t') || {}).textContent || ''),
134
+ g1: (document.querySelector('[data-gc-row="d-g1"] .gc-hw') || {}).innerText || '', g2: (document.querySelector('[data-gc-row="d-g2"] .gc-hw') || {}).innerText || '',
136
135
  nsRow: !document.querySelector('#nsRow').hidden, list: document.querySelectorAll('#goalTbl .okr-row').length, empty: /No key result is recorded/.test(document.querySelector('#goalTbl').textContent),
137
136
  acts: [...document.querySelectorAll('[data-gc-row="d-ns"] .gc-acts button')].map((b) => b.getAttribute('aria-label') + '|' + b.textContent.trim()) }));
138
- ok('T1 one table: Proposed metric, How it is counted, Now (read 10:58), Target, From, how often', tb.heads.slice(0, 5).join(' | ') === 'Proposed metric | How it is counted | Now read 10:58 | Target | From, how often', tb.heads.join(' | '));
139
- ok('T2 grouped: North Star, Inputs, Guardrails; 6 rows', tb.groups.join('|') === 'North Star|Inputs|Guardrails' && tb.rows === 6, JSON.stringify(tb));
140
- ok('T3 a row says how it is counted, now, its target and where and how often it is read', tb.ns.join(' / ') === 'Weekly signed-in shoppers Count / Shoppers who signed in at least once in the week, each person once / 38.8k / 45k by Dec 31 / Amplitude Every Monday / ', tb.ns.join(' / '));
141
- ok('T4 the rhythm is each goal\'s own: Every hour, Every day, 07:00', /Datadog\s*Every hour/.test(tb.g1) && /Jira\s*Every day, 07:00/.test(tb.g2), tb.g1 + ' | ' + tb.g2);
137
+ // intelligence-ds-page (board IntelligenceDS): the drafted metrics are one List block, "PMOS drafted N measures for <product>", a ListRow each
138
+ ok('T1 one List: PMOS drafted 6 measures, a ListRow each', /^PMOS drafted 6 measures for /.test(tb.head) && tb.rows === 6, JSON.stringify(tb));
139
+ ok('T2 each row says what it is: the North Star, an input, a guardrail', /^The North Star\./.test(tb.ns) && /^(An input|A guardrail)/.test(tb.g1) && /^(An input|A guardrail)/.test(tb.g2), JSON.stringify(tb));
140
+ ok('T3 a row says how it is counted, where and how often it is read, now and its target', tb.nsName === 'Weekly signed-in shoppers' && /Shoppers who signed in at least once in the week, each person once\. Read every Monday 07:00 from Amplitude\. now 38\.8k\. Target 45k by Dec 31\./.test(tb.ns), tb.ns);
141
+ ok('T4 the rhythm is each goal\'s own: every hour, every day 07:00', /every hour/.test(tb.g1) && /from Datadog/.test(tb.g1) && /every day 07:00 from Jira/.test(tb.g2), tb.g1 + ' | ' + tb.g2);
142
142
  ok('T5 no second North Star row, no plain goal list and no empty card under the table', !tb.nsRow && tb.list === 0 && !tb.empty, JSON.stringify(tb));
143
- ok('T6 ✕ and ✓ are icon-only, named in their label', tb.acts.length === 2 && tb.acts.every((a) => /\|$/.test(a)) && /^Not now: /.test(tb.acts[0]) && /^Keep: /.test(tb.acts[1]), tb.acts.join(', '));
143
+ ok('T6 ✓ and ✕ are icon-only, named in their label', tb.acts.length === 2 && tb.acts.every((a) => /\|$/.test(a)) && /^Keep: /.test(tb.acts[0]) && /^Not now: /.test(tb.acts[1]), tb.acts.join(', '));
144
144
  const line = await p.evaluate(() => document.querySelector('#brief').textContent + ' ' + document.querySelector('#insWhy').textContent);
145
145
  ok('T7 a goal behind its line stays the ✦ news; the drafts are kept from the table or with Keep all', /^Partner activation is behind its line/.test(line) && !/I drafted a North Star/.test(line) && !!(await p.$('#insAct [data-okl="keep-all"]')), line);
146
146
  await shot(p, 'GcJ1aTable-built');
@@ -180,7 +180,7 @@ const FIX = { id: 'fx-amp', kind: 'connect', goal: 'krm-act', connector: 'Amplit
180
180
  /* F · the first readings */
181
181
  const B = await open({ m: model('first'), rows: [], ready: '#goalTbl .ins-row' });
182
182
  const f1 = await B.page.evaluate(() => { const r = document.querySelector('#goalTbl [data-goal="krm-act"]'), c = (s) => (r.querySelector(s) || {}).textContent || ''; return { head: [...document.querySelectorAll('#goalTbl .ins-th [role="columnheader"]')].map((h) => h.childNodes[0].textContent.trim()).join('|'), now: c('.val'), dot: !!r.querySelector('.sofar .ins-dot1') && !r.querySelector('.sofar svg'), pace: c('.pace'), bar: !!r.querySelector('.ins-bar1'),
183
- ns: (document.querySelector('#nsRow .ins-nsc') || {}).innerText || '', wait: !!document.querySelector('#nsRow .ins-nsc .gc-wait') && !document.querySelector('#nsRow .ins-nsch'), seg: !!document.querySelector('#nsRow .cz-seg'), inputs: !!document.querySelector('#nsRow .ins-nsi'),
183
+ ns: (document.querySelector('#nsRow .ins-nsc') || {}).innerText || '', wait: !!document.querySelector('#nsRow .ins-nsc .gc-wait') && !document.querySelector('#nsRow .ins-nsch'), seg: !!document.querySelector('#nsRow .pm-tabs'), inputs: !!document.querySelector('#nsRow .ins-nsi'),
184
184
  line: document.querySelector('#brief').textContent + ' ' + document.querySelector('#insWhy').textContent }; });
185
185
  ok('F0 the dashboard: the North Star card, then one table Key results · Now, of target · So far · By its date · Moved by', f1.head === 'Key results|Now, of target|So far|By its date|Moved by', JSON.stringify(f1));
186
186
  ok('F1 one reading: the number of its target, a grey dot for So far, "Known after 3 readings" and the day of the 3rd, Mon 16 Nov, and no bar yet', /^\S+ of \S+$/.test(f1.now.trim()) && f1.dot && /^Known after 3 readings\s*Mon 16 Nov$/.test(f1.pace.trim()) && !f1.bar, JSON.stringify(f1));
@@ -194,7 +194,7 @@ const FIX = { id: 'fx-amp', kind: 'connect', goal: 'krm-act', connector: 'Amplit
194
194
 
195
195
  /* K · a key result's panel */
196
196
  const K = await open({ m: model('kr'), rows: [], ready: '#goalTbl .ins-row' });
197
- const k0 = await K.page.evaluate(() => ({ ns: !!document.querySelector('#nsRow .ins-nsch'), seg: [...document.querySelectorAll('#nsRow .cz-seg button')].map((b) => b.textContent).join('|'), spark: document.querySelectorAll('#goalTbl .ins-row .sofar svg').length }));
197
+ const k0 = await K.page.evaluate(() => ({ ns: !!document.querySelector('#nsRow .ins-nsch'), seg: [...document.querySelectorAll('#nsRow .pm-tabs [data-span]')].map((b) => b.textContent).join('|'), spark: document.querySelectorAll('#goalTbl .ins-row .sofar svg').length }));
198
198
  ok('K0 from the 3rd reading the dashboard is Production Iq8Overview: the North Star line with its spans, a line per key result', k0.ns && k0.seg === '4 weeks|12 weeks|This quarter vs last' && k0.spark > 0, JSON.stringify(k0));
199
199
  await K.page.click('#goalTbl [data-goal="krm-act"] .nm');
200
200
  const k1 = await vw(K.page);
@@ -13,6 +13,17 @@ Intelligence (`/premium-intelligence.html`) uses the OKR file of a product as it
13
13
 
14
14
  Goals and Intelligence use the PMOS design system (see [Layout](layout.md#the-design-system)). On Goals, the North Star is one block. When PMOS drafted it, the draft is a suggestion with ✓ and ✕. The goals are one table: objective, key result, actual and target, days left, levers and initiative. On a phone, the table becomes a list under each objective. On both pages, red means late or at risk, blue means PMOS speaks or waits on you, and a goal on track has no colour.
15
15
 
16
+ Intelligence is built from the design system's blocks, in one column. It is the place for charts, so key results are not repeated here: they are on Goals. From top to bottom:
17
+
18
+ 1. **What PMOS found**: one finding at a time ("1 of 3", with ‹ and ›) and its suggestion: why, what PMOS will do, what changes and what it is based on, with ✓ and ✕.
19
+ 2. **North Star**: a chart with the target line, and a diamond on each day that work moving it shipped. Point at a reading to see its value and source. Its inputs and guardrail are small numbers under it.
20
+ 3. **Measures PMOS drafted**: keep each with ✓, or drop it with ✕.
21
+ 4. **Delivery trends**: the tiles, with **Choose tiles**.
22
+ 5. **Did it work?** (below).
23
+ 6. **Waiting on a source**: a key result with no reading, with Connect or Add a reading.
24
+
25
+ To see the key results on this page too, pick **Key results here** in ⋯, or open a link with `?tab=goals`.
26
+
16
27
  ## The goal list
17
28
 
18
29
  - **The period.** The first period in the period chip is the period of the OKR file, for example H2 2026. It is the default, so a filter for one quarter does not hide a goal of the half.
@@ -51,7 +62,7 @@ The panel shows the drafts that wait for you and the asks that are ready first,
51
62
 
52
63
  ## The ⋯ menu
53
64
 
54
- The ⋯ menu has two items: **Reports and dashboards** and **Export CSV**. Sources are in **Settings › Connectors**. To make a report, use the report icon in the bar (**Make a report from this**).
65
+ The ⋯ menu has three items: **Reports and dashboards**, **Key results here** and **Export CSV**. Sources are in **Settings › Connectors**. To make a report, use the report icon in the bar (**Make a report from this**).
55
66
 
56
67
  ## Forecasts
57
68
 
@@ -82,7 +82,7 @@ const FINDING = { id: 'rf-0123456789', name: 'Partner numbers to Lee', why: 'You
82
82
  });
83
83
  await page.route('**/api/report-setups?*', (r) => json(r, { setups: [], findings: [], asks: [], finder: {} }));
84
84
  await page.route('**/api/report-documents/**', (r) => { posts.push({ path: new URL(r.request().url()).pathname, body: JSON.parse(r.request().postData() || '{}') }); return json(r, { ok: true }); });
85
- await page.goto(BASE + '/premium-intelligence.html');
85
+ await page.goto(BASE + '/premium-intelligence.html?tab=goals'); // key results live on Goals: ?tab=goals shows them here
86
86
  await until(() => page.evaluate(() => document.querySelectorAll('#goalTbl .ins-row').length > 0), 20000);
87
87
  return { page, ctx: c, errors, posts, gets, st };
88
88
  };
@@ -92,7 +92,7 @@ const WEEKLY = { view: 'view', weeks: 3, day: 'Mon', opens: 4 };
92
92
  // the ✦ line about the goals comes first (batch 16 item 6, GsM1–M5); the finding with its drafted move is the next page
93
93
  await until(() => p.evaluate(() => !!document.querySelector('#insPg [data-ins="1"]')), 5000); await p.click('#insPg [data-ins="1"]');
94
94
  const s0 = await until(() => p.evaluate(() => { const m = document.querySelector('#insMv'); const b = document.querySelector('#insAct [data-mv="apply"]'); return m && !m.hidden && b ? { mv: m.textContent, label: b.getAttribute('aria-label'), text: b.textContent.trim(), solid: b.classList.contains('primary'), two: document.querySelector('#insHero').classList.contains('mv') } : null; }), 5000);
95
- ok('S the drafted move is said under the finding, with a primary ✓ that is icon-only', !!s0 && s0.mv === MOVE.text && s0.label === MOVE.label && !s0.text && s0.solid && s0.two, JSON.stringify(s0));
95
+ ok('S the drafted move is the expanded Suggestion under the finding (its label, then PMOS will …), with a primary ✓ that is icon-only', !!s0 && s0.mv.startsWith(MOVE.label) && s0.mv.includes('PMOS will' + MOVE.text) && s0.label === MOVE.label && !s0.text && s0.solid && s0.two, JSON.stringify(s0));
96
96
  await shot(p, 'gap1-strip-move', '#insHero');
97
97
  await p.click('#insAct [data-mv="apply"]');
98
98
  await until(() => A.posts.some((x) => x.path === '/api/insight-moves/apply'), 3000);
@@ -84,7 +84,7 @@ const ROWS = [
84
84
  await page.route('**/api/metric-drafts?*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify(DRAFTS(rows)) }));
85
85
  for (const k of ['keep', 'keep-all', 'drop', 'edit', 'undo', 'start']) await page.route('**/api/metric-drafts/' + k, (r) => { posts.push({ path: '/api/metric-drafts/' + k, body: JSON.parse(r.request().postData() || '{}') }); r.fulfill({ contentType: 'application/json', body: JSON.stringify(k === 'keep' ? { ok: true, rid: 'r1' } : { ok: true, kept: 3 }) }); });
86
86
  await page.route('**/api/goals/notify', (r) => { posts.push({ path: '/api/goals/notify', body: JSON.parse(r.request().postData() || '{}') }); r.fulfill({ contentType: 'application/json', body: '{"ok":true}' }); });
87
- await page.goto(BASE + '/premium-intelligence.html?theme=' + theme);
87
+ await page.goto(BASE + '/premium-intelligence.html?theme=' + theme + '&tab=goals'); // key results live on Goals: ?tab=goals shows them here (intelligence-ds-page)
88
88
  await until(() => page.evaluate(() => document.querySelectorAll('#goalTbl .ins-row').length > 0), 20000);
89
89
  await until(() => page.evaluate(() => !!document.querySelector('#goalTbl .okr-dr')), 6000);
90
90
  return { ctx, page, errors, posts };
@@ -104,7 +104,7 @@ const ROWS = [
104
104
  const wt = await p.evaluate(() => { const W = document.querySelector('#waitList'); return { shown: !!W && !W.hidden, churn: !!(W && W.querySelector('[data-goal="krm-churn"]')), head: ((W && W.querySelector('h2')) || {}).textContent || '' }; });
105
105
  ok('L4 a goal with no reading is not a table row; it waits in Waiting on a source', !churn.id && wt.shown && wt.churn && wt.head === 'Waiting on a source', JSON.stringify([churn, wt]));
106
106
  const ns = await txt(p, '#nsRow .ins-nsc');
107
- ok('L6 the North Star is its own card with its number, its change and its line', /North Star Partner uptime/.test(ns) && /99\.6%/.test(ns) && !!(await p.$('#nsRow .ins-nsch')), ns);
107
+ ok('L6 the North Star is its own card with its number, its change and its line', /North Star · Partner uptime/.test(ns) && /99\.6%/.test(ns) && !!(await p.$('#nsRow .ins-nsch')), ns);
108
108
  await shot(p, 'okr-desktop-light');
109
109
 
110
110
  /* D · drafts */
@@ -149,7 +149,7 @@ const ROWS = [
149
149
 
150
150
  /* M · ⋯ (re-pointed, U3): Reports and dashboards and Export CSV only; the table is the metric list, so ⋯ › Metrics is gone */
151
151
  await p.click('#moreB'); await sleep(80);
152
- ok('M1 ⋯ holds Reports and dashboards and Export only', (await p.evaluate(() => [...document.querySelectorAll('#moreMenu [data-more]')].map((b) => b.dataset.more).join())) === 'library,export');
152
+ ok('M1 ⋯ holds Reports and dashboards, Key results here and Export only', (await p.evaluate(() => [...document.querySelectorAll('#moreMenu [data-more]')].map((b) => b.dataset.more).join())) === 'library,krs,export');
153
153
  await p.keyboard.press('Escape');
154
154
  ok('M4 no script error on the page', !R.errors.length, R.errors.join(' | '));
155
155
  await R.ctx.close();
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.660.0",
3
+ "version": "0.661.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.660.0",
9
+ "version": "0.661.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@anthropic-ai/sdk": "^1.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.660.0",
3
+ "version": "0.661.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",
@@ -428,7 +428,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
428
428
  ok('0 no page error with the chat at 1920', Dw.errors.length === 0, Dw.errors.join(' | '));
429
429
  await Dw.close();
430
430
  // Intelligence: a goal row opens a split; ⌘-click opens beside
431
- const In = await open({ at: '/premium-intelligence.html', ready: () => !!window.czPanels && document.querySelectorAll('#goalTbl .ins-row[data-goal]').length > 1 });
431
+ const In = await open({ at: '/premium-intelligence.html?tab=goals', ready: () => !!window.czPanels && document.querySelectorAll('#goalTbl .ins-row[data-goal]').length > 1 });
432
432
  ok('P9 Intelligence draws its goal rows and window.czPanels', !!In.up);
433
433
  const G = await In.page.evaluate(() => [...document.querySelectorAll('#goalTbl .ins-row[data-goal]')].map((r) => r.dataset.goal));
434
434
  await In.page.click(`#goalTbl .ins-row[data-goal="${G[0]}"]`);
@@ -441,7 +441,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
441
441
  ok('0 no page error on Intelligence', In.errors.length === 0, In.errors.join(' | '));
442
442
  await In.close();
443
443
  // a phone: the page as today
444
- for (const [at, ready, row] of [['/premium-board.html', boardReady, '.ini2[data-key]:not(.bd-bc)'], ['/premium-intelligence.html', () => !!window.czPanels && document.querySelectorAll('[data-goal]').length > 1, '#goalCards .ins-card[data-goal]']]) {
444
+ for (const [at, ready, row] of [['/premium-board.html', boardReady, '.ini2[data-key]:not(.bd-bc)'], ['/premium-intelligence.html?tab=goals', () => !!window.czPanels && document.querySelectorAll('[data-goal]').length > 1, '#goalCards .ins-card[data-goal]']]) {
445
445
  const Q = await open({ w: 390, h: 844, at, ready });
446
446
  await Q.page.evaluate((s) => { const b = document.querySelector(s); if (b) b.click(); }, row);
447
447
  await until(() => Q.page.evaluate(() => !!document.querySelector('#czViewer:not([hidden])')), 5000);
@@ -378,8 +378,6 @@ p.ins-fl { flex-direction: row; align-items: center; margin: 0 0 6px; flex-wrap:
378
378
  .ins-strip { align-items: flex-start; }
379
379
  .ins-strip .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
380
380
  /* a drafted move on a phone: the finding and its move, the reason behind Ask why (summary first) */
381
- .ins-hero.mv .t { display: block; }
382
- .ins-hero.mv #insWhy { display: none; }
383
381
  .ins-th, .ins-grp .q { display: none; }
384
382
  .ins-tbl { border: 0; border-radius: 0; background: transparent; gap: 10px; overflow: visible; }
385
383
  .ins-grp { background: transparent; border: 0; padding: 0 4px; min-height: 0; }
@@ -394,12 +392,7 @@ p.ins-fl { flex-direction: row; align-items: center; margin: 0 0 6px; flex-wrap:
394
392
  .ins-side, .ins-side[data-kind] { width: 100%; }
395
393
  .ins-2 { grid-template-columns: 1fr; }
396
394
  /* Iq8Phone: the strip, the North Star as one card, the key results as cards; drafts and Did it work? as cards */
397
- #insHero { display: flex; flex-wrap: wrap; }
398
- #insHero .t { flex-basis: calc(100% - 30px); }
399
395
  .ins-ns, .ins-ns.one { grid-template-columns: minmax(0, 1fr); }
400
- .ins-nsh { flex-wrap: wrap; }
401
- .ins-nsh .cz-seg { display: none; }
402
- .ins-nsch { height: 70px; }
403
396
  .ins-row.ins-dcols { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); padding: 12px 14px; }
404
397
  .ins-row.ins-dcols > :nth-child(n+2):not(.ins-act) { grid-column: 1; }
405
398
  .ins-row.ins-dcols .ins-act { grid-row: 1; grid-column: 2; }
@@ -590,53 +583,19 @@ body.ins-trv #goalTbl { border: 0; background: none; border-radius: 0; overflow:
590
583
 
591
584
  /* ── Intelligence (batch 15 item 1: Iq8Overview, Iq8Suggest, Iq9Draft, Iq8Phone) ── */
592
585
  /* the ✦ strip: the finding in ink, its reason after it; Not now, Ask why and the dots at its end */
593
- .ins-hero #brief { font-weight: var(--fw-strong); color: var(--ink); }
594
586
  .ins-hact { display: inline-flex; gap: 2px; flex: none; }
595
587
  /* a finding with a drafted move (batch 16 item 1): the strip takes two lines, the move under the finding with its ✦; ✓ makes it, Done + Undo after */
596
- .ins-hero.mv .t { white-space: normal; }
597
- .ins-mv { display: flex; align-items: flex-start; gap: 6px; margin-top: 3px; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--blue); line-height: var(--lh-label); }
598
- .ins-mv[hidden] { display: none; }
599
- .ins-mv svg { width: 13px; height: 13px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
600
- .ins-mv.dn { color: var(--muted); }
601
588
  /* a drafted metric edited in place (batch 16 item 1): its name, target and source as quiet fields on the row */
602
589
  .ins-dri { width: 100%; min-width: 0; height: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 8px; font: inherit; font-size: var(--fs-row); font-weight: var(--fw-strong); background: var(--card); color: var(--ink); line-height: var(--lh-row); }
603
590
  .ins-dri:focus { outline: 2px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 0; border-color: var(--blue); }
604
591
  .ins-dred { background: color-mix(in srgb, var(--blue) 5%, var(--card)); }
605
- .ins-hact:empty, .ins-pg:empty { display: none; }
606
- .ins-pg { display: inline-flex; gap: 5px; flex: none; padding: 0 6px; }
607
- .ins-pg button { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--muted) 35%, var(--card)); cursor: pointer; position: relative; }
608
- .ins-pg button::after { content: ''; position: absolute; inset: -12px -4px; }
609
- .ins-pg button.on { background: var(--blue); width: 18px; border-radius: var(--radius-sm); }
610
- .ins-pg button[hidden] { display: none; }
592
+ .ins-hact:empty, .ins-pg:empty { display: none; } /* the finding’s answers and its "n of N" are silent when there is nothing to press */
611
593
  /* the North Star and its inputs */
612
594
  .ins-ns { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 12px; }
613
595
  .ins-ns[hidden] { display: none; }
614
596
  .ins-ns.one { grid-template-columns: minmax(0, 1fr); }
615
- .ins-nsc, .ins-nsi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
616
- .ins-nsh { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
617
- .ins-lbl2 { font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--muted); line-height: var(--lh-label); }
618
- .ins-lbl2 span { font-weight: var(--fw-strong); color: var(--muted); margin-left: 4px; }
619
- .ins-nsv { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
620
597
  .ins-big { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }
621
- .ins-big b { font-size: var(--fs-display); font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; line-height: var(--lh-display); }
622
- .ins-nsch { width: 100%; height: 110px; display: block; overflow: visible; }
623
- .ins-nsch .ln { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
624
- .ins-nsch .ar { fill: var(--blue-tint); stroke: none; opacity: .7; }
625
- .ins-nsch .pv { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .6; vector-effect: non-scaling-stroke; }
626
- .ins-nsch .pt { fill: var(--card); stroke: var(--blue); stroke-width: 1.5; opacity: 0; transition: opacity .15s; }
627
- .ins-nsch .pt:hover { opacity: 1; }
628
- .ins-nsch .dt { fill: var(--blue); }
629
- .ins-nsi .ins-lbl2 + .ins-inr { border-top: 0; }
630
- .ins-nsi .ins-inr + .ins-lbl2 { margin-top: 6px; }
631
- .ins-inr { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 4px 0; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
632
- .ins-inr .nm { font-size: var(--fs-row); font-weight: var(--fw-strong); min-width: 0; line-height: var(--lh-row); }
633
- .ins-inr .v { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
634
- .ins-inr .v b { font-size: var(--fs-row); font-weight: var(--fw-strong); line-height: var(--lh-row); }
635
- .ins-inr .v span { font-size: var(--fs-badge); font-weight: var(--fw-strong); line-height: var(--lh-badge); }
636
- .ins-inr .up { color: var(--chart-done); } .ins-inr .dn { color: var(--alert); } .ins-inr .q { color: var(--muted); }
637
598
  /* what Claude drafted */
638
- .ins-dr { display: flex; flex-direction: column; gap: 10px; border: 1px dashed var(--blue); border-radius: var(--radius-card); padding: 12px 14px; background: linear-gradient(100deg, var(--blue-tint) 0%, var(--card) 60%); }
639
- .ins-dr[hidden] { display: none; }
640
599
  .ins-drh { display: flex; align-items: center; gap: 10px; }
641
600
  .ins-drh > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-body); line-height: var(--lh-body); }
642
601
  .ins-drh .sp { color: var(--blue); display: inline-flex; }
@@ -679,15 +638,11 @@ body.ins-trv #goalTbl { border: 0; background: none; border-radius: 0; overflow:
679
638
  /* Intelligence on a phone (Iq8Phone): one column; these follow the rules above so they win */
680
639
  @media (max-width: 720px) {
681
640
  .ins-ns, .ins-ns.one { grid-template-columns: minmax(0, 1fr); }
682
- .ins-nsh .cz-seg { display: none; }
683
- .ins-nsch { height: 70px; }
684
- .ins-inr .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
685
641
  .ins-gby { margin-left: 0; flex-basis: 100%; }
686
642
  }
687
643
  /* batch 15 item 1: the ⋯ rows carry an icon, so they lay out side by side (icon, words, count) */
688
644
  .ins-menu#moreMenu [role="menuitem"] { flex-direction: row; align-items: center; gap: 10px; }
689
645
  .ins-menu#moreMenu [role="menuitem"] > span:not(.k) { flex: 1; min-width: 0; }
690
- .ins-strip .sp.ad svg { width: 40px; height: 40px; fill: initial; stroke: none; } /* Adler in Claude’s line (batch 16 item 2, AdH3) */
691
646
 
692
647
  /* ── Claude runs the OKRs (batch 16 item 6, 6-B; frames GsM1–M5, GsViewer, GsMetrics, GsMetricsTree, GsProduct): one goal list on every width.
693
648
  * A row is a dot, the outcome with its reading and age, and the owner; its drafts sit under it with ✕ / ✎ / ✓. ── */
@@ -853,7 +808,6 @@ textarea.ins-dri { height: auto; padding: 6px 8px; font-weight: var(--fw-regular
853
808
  .gc-file { display: flex; justify-content: flex-end; }
854
809
  .gc-wait { border: 1.5px dashed var(--line); border-color: var(--chart-rest); border-radius: var(--radius-card); min-height: 120px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; font-size: var(--fs-body); color: var(--muted); line-height: var(--lh-body); }
855
810
  .gc-ed { display: flex; flex-direction: column; gap: 10px; }
856
- .ins-dr.gc-on { border: 0; padding: 0; background: none; gap: 12px; }
857
811
 
858
812
  /* ── batch 18 item 11 gap: the goals dashboard (Iq8Overview with GcJ2FirstMonday): the first readings, a failed or held reading, the drafts under a row ── */
859
813
  .ins-dot1 { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--chart-rest); }
@@ -863,11 +817,10 @@ textarea.ins-dri { height: auto; padding: 6px 8px; font-weight: var(--fw-regular
863
817
  .ins-drr { border-top: 0; padding: 0 16px 4px 0; }
864
818
  .ins-drr .okr-dr { margin-left: 16px; }
865
819
  .ins-nsc .gc-wait { flex: 1; }
866
- .ins-nsn { margin-left: auto; }
867
820
  .ins-nsd .okr-dr { margin: 6px 0 0; }
868
821
  .ins-inr .nm small { display: block; font-weight: var(--fw-strong); color: var(--alert); margin-top: 2px; }
869
822
  #goalTbl[hidden] { display: none !important; }
870
- @media (max-width: 720px) { .ins-cards > .okr-dr { margin: -2px 0 4px 12px; } .ins-nsn { margin-left: 0; } }
823
+ @media (max-width: 720px) { .ins-cards > .okr-dr { margin: -2px 0 4px 12px; } }
871
824
 
872
825
  /* ── Intelligence as the first panel (panels on Board and Intelligence, P-B; BiI1Split, BiI2Half): the narrow form is the phone's goal cards
873
826
  * (pm/pn-narrow.js keys the phone rules on .cz-pn-narrow); Moved by steps aside while the table is too narrow for it, and the goal Viewer
@@ -990,24 +943,84 @@ body.ins-trv #pGoals .ins-trstrip { display: flex; } /* the narrow form hides
990
943
  }
991
944
 
992
945
  /* Waiting on a source (U3, UI grill item 4): the key results with no reading, one row per source, its key results, its one connect ✓ */
993
- .ins-wait .ins-wh { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; }
994
- .ins-wait .ins-wh h2 { margin: 0; font-size: var(--fs-row); font-weight: var(--fw-strong); line-height: var(--lh-row); }
995
- .ins-wait .ins-wh .q { color: var(--muted); font-size: var(--fs-meta); }
996
- .ins-wl { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: var(--card); }
997
- .ins-wrow { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; }
998
- .ins-wrow + .ins-wrow { border-top: 1px solid var(--line); }
999
- .ins-wsrc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
1000
- .ins-wsrc small { color: var(--muted); font-size: var(--fs-meta); line-height: var(--lh-meta); }
1001
- .ins-wkrs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
1002
- .ins-wkr { border: 1px solid var(--line); background: transparent; border-radius: var(--radius-pill); padding: 3px 10px; font: inherit; font-size: var(--fs-meta); color: var(--muted); cursor: pointer; text-align: left; }
1003
- .ins-wkr:hover, .ins-wkr:focus-visible { background: var(--blue-tint); }
1004
- .ins-wkr .ins-krt { margin-right: 6px; }
1005
- @media (max-width: 760px) {
1006
- .ins-wrow { grid-template-columns: minmax(0, 1fr) auto; }
1007
- .ins-wkrs { grid-column: 1 / -1; grid-row: 2; }
1008
- }
1009
946
 
1010
947
  /* the Badge's tones on this page (design-system/ui/components/Badge): late, at risk and red are alert; you is PMOS waiting on you (blue);
1011
948
  * on course (ok) and quiet (q) take no colour, because on track gets no colour. The words stay the hooks the page's code and suites read. */
1012
949
  .pm-ds .pm-badge.late, .pm-ds .pm-badge.risk, .pm-ds .pm-badge.red { background: var(--alert-tint); color: var(--alert); }
1013
950
  .pm-ds .pm-badge.you { background: var(--blue-tint); color: var(--blue); }
951
+
952
+ /* ── Intelligence from Komorebi blocks (board IntelligenceDS on Exploring 3, initiative intelligence-ds-page) ─────────────────────────────
953
+ * The parts draw themselves (komorebi.css: Block, Suggestion, Chart, Number, ListRow, Table, Tabs, Badge, Fold, Switch, Menu); these rules
954
+ * only place them: the top line, one column of 1080 px, and where each part sits in its block. No colour, size or radius of its own. */
955
+ .ins-col { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
956
+ .ins-col > * { width: 100%; max-width: 1080px; }
957
+ .ins-col > #pGoals { max-width: none; } /* the key results, when asked for, keep the page's whole width: Moved by needs it */
958
+ .ins-col > [hidden] { display: none !important; } /* a Block is flex; hidden still hides it */
959
+ .ins-bar { gap: 12px; }
960
+ .ins-path .pm-ic { width: 14px; height: 14px; }
961
+ .ins-path b { font-weight: var(--fw-strong); }
962
+ /* What PMOS found: the finding, then its Suggestion; the answers at the Suggestion's foot */
963
+ .ins-hero .ins-ad { display: inline-flex; }
964
+ .ins-hero .ins-ad.ad svg { width: 28px; height: 28px; fill: initial; stroke: none; } /* Adler in the line's icon slot (batch 16 item 2) */
965
+ .ins-txt { display: flex; flex-direction: column; gap: 12px; }
966
+ .ins-say { margin: 0; }
967
+ .ins-say #insWhy { color: var(--muted); }
968
+ .ins-hero .ins-pg { display: inline-flex; align-items: center; gap: 2px; }
969
+ .ins-hero .ins-hact:not(.ans) { align-self: flex-end; gap: 8px; }
970
+ .ins-hero .pm-sug.x .ans { display: flex; gap: 8px; justify-content: flex-end; }
971
+ .ins-hero .pm-sug.x.dn { opacity: .8; }
972
+ .ins-hero.crit .ins-ad { color: var(--alert); }
973
+ /* the North Star: the number and its pace at the head's right, the chart, the inputs and guardrails as Numbers under it */
974
+ .ins-nsb { gap: 16px; }
975
+ .ins-nsc { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
976
+ .ins-nsb .ins-lbl2 span { color: var(--ink); }
977
+ .ins-big { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: inherit; }
978
+ .ins-nsch { position: relative; padding-top: 22px; } /* room for the ship labels over the line */
979
+ .ins-nsch .pm-chart-head:empty { display: none; }
980
+ .ins-ships { position: absolute; inset: -22px 0 0 0; pointer-events: none; }
981
+ .ins-ship { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line); }
982
+ .ins-ship .pm-dia { top: 10px; left: 0; pointer-events: auto; cursor: default; }
983
+ .ins-ship .pm-meta { position: absolute; top: 0; left: 12px; white-space: nowrap; }
984
+ .ins-nsi { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
985
+ .ins-inr { font: inherit; color: inherit; text-align: left; cursor: pointer; gap: 8px; }
986
+ .ins-inr .ins-nmr, .ins-inr .ins-nvr { flex-wrap: nowrap; }
987
+ .ins-inr .sp, .ins-tile .sp { flex: 1; }
988
+ .ins-inr .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
989
+ /* the measures PMOS drafted: ListRows with ✓ and ✕ */
990
+ .ins-dr .rows { display: flex; flex-direction: column; }
991
+ .ins-dr .gc-tr { cursor: pointer; }
992
+ .ins-dr .gc-tr > svg { width: 16px; height: 16px; color: var(--blue); }
993
+ .ins-dr .gc-acts { display: flex; gap: 2px; }
994
+ .pm-ds .ins-dr .pm-li .gc-hw { white-space: normal; overflow-wrap: anywhere; }
995
+ /* Delivery trends: Number tiles, three to a row; Choose tiles as a Menu of Switches */
996
+ .ins-trb .ins-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding: 0; border-top: 0; }
997
+ .ins-trb .ins-tile { background: var(--card); padding: 14px 16px; gap: 4px; cursor: pointer; }
998
+ .ins-trb .ins-tile.warn { border-color: var(--alert); }
999
+ .ins-trb .ins-tile.sel { box-shadow: var(--glow); }
1000
+ .ins-trb .ins-tile .l { font-weight: var(--fw-strong); color: var(--ink); }
1001
+ .ins-trb .ins-tile .ins-tsp { width: 160px; height: 34px; }
1002
+ .ins-tilemenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; padding: 4px 12px; min-width: 260px; }
1003
+ .ins-tilemenu .pm-set:first-child { border-top: 0; }
1004
+ .ins-tilemenu .pm-set .sp { flex: 1; }
1005
+ /* key results live on Goals: on a desk they show only when asked (body.ins-krs); a phone keeps its goal cards */
1006
+ @media (min-width: 761px) { body:not(.ins-krs) #pGoals { display: none; } }
1007
+ /* Did it work?: the Table; a row's presses at its end; the decided rows fold under it */
1008
+ #outTbl { display: flex; flex-direction: column; gap: 12px; }
1009
+ .ins-otbl td { vertical-align: top; }
1010
+ .ins-otbl td.pace { white-space: normal; }
1011
+ .ins-otbl .nm a { color: var(--ink); text-decoration: none; }
1012
+ .ins-otbl .ins-act { white-space: nowrap; text-align: right; }
1013
+ .ins-otbl .ins-dv { display: inline-flex; gap: 6px; align-items: flex-start; }
1014
+ .ins-otbl .ins-dv > svg { width: 14px; height: 14px; color: var(--blue); margin-top: 4px; }
1015
+ /* Waiting on a source: a ListRow per source, its key results nested under it */
1016
+ .ins-wait .rows { display: flex; flex-direction: column; }
1017
+ .ins-wsrc > svg { width: 16px; height: 16px; color: var(--muted); }
1018
+ .ins-wkr { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
1019
+ .ins-wkr .pm-btn { pointer-events: none; }
1020
+ @media (max-width: 720px) {
1021
+ .ins-col { gap: 12px; }
1022
+ .ins-nsb .head .pm-tabs { display: none; }
1023
+ .ins-nsb .head { flex-wrap: wrap; }
1024
+ .ins-otbl thead { display: none; }
1025
+ .ins-otbl tr, .ins-otbl td { display: block; }
1026
+ }