create-pmos 0.442.0 → 0.443.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 +13 -13
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +12 -0
- package/workspace/goals-clear-ui-test.js +249 -0
- package/workspace/guide/home.md +7 -2
- package/workspace/guide/metric-drafts.md +8 -2
- package/workspace/home-railcard-test.js +193 -0
- package/workspace/intelligence-gaps-ui-test.js +16 -14
- package/workspace/lib/engine/records/index.js +9 -2
- package/workspace/lib/initiative-layout.js +3 -1
- package/workspace/lib/insights-premium.js +22 -1
- package/workspace/lib/metric-drafts.js +37 -10
- package/workspace/lib/metric-read-runs.js +20 -13
- package/workspace/lib/metric-reads.js +208 -23
- package/workspace/lib/metrics-cli.js +62 -5
- package/workspace/lib/routes-goal-status.js +89 -6
- package/workspace/lib/routes-insights-premium.js +1 -1
- package/workspace/lib/routes-metric-drafts.js +26 -3
- package/workspace/metric-drafts-ui-test.js +5 -2
- package/workspace/okr-goals-ui-test.js +7 -5
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +2 -2
- package/workspace/public/pm/cozy-insights.css +82 -0
- package/workspace/public/pm/cozy-live-pill.css +5 -0
- package/workspace/public/pm/cozy-today.css +15 -0
- package/workspace/public/pm/cozy-viewer.js +42 -14
- package/workspace/public/pm/cozy-vw-shell.css +4 -0
- package/workspace/public/pm/goals-clear.js +258 -0
- package/workspace/public/pm/home-app.js +51 -3
- package/workspace/public/pm/home-today.js +51 -10
- package/workspace/public/pm/ini-groups.js +14 -8
- package/workspace/public/pm/ini-tasks.js +47 -13
- package/workspace/public/pm/ini-view-model.js +37 -14
- package/workspace/public/pm/ini-view.css +29 -4
- package/workspace/public/pm/ini-view.js +9 -6
- package/workspace/public/pm/metric-drafts.js +4 -1
- package/workspace/public/pm/mission.js +11 -7
- package/workspace/public/pm/premium-insights.js +178 -24
- package/workspace/server.js +6 -2
- package/workspace/skills/metric-read.skill +7 -5
- package/workspace/stage-card-test.js +11 -3
- package/workspace/task-views-test.js +190 -1
- package/workspace/test-lists/goals-clear.json +15 -0
- package/workspace/test-lists/home-railcard.json +9 -0
- package/workspace/tk-tasks-test.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.443.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,18 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.443.0",
|
|
37
|
+
"at": "2026-10-28T14:17:24.774Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1087,
|
|
42
|
+
"t": "0.442.0 hotfix, goals made clear, folded list card, task ticket linking (batch 18)",
|
|
43
|
+
"s": "0.442.0 hotfix, goals made clear, folded list card, task ticket linking (batch 18)"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
35
47
|
{
|
|
36
48
|
"v": "0.442.0",
|
|
37
49
|
"at": "2026-10-28T11:35:22.898Z",
|
|
@@ -259,18 +271,6 @@
|
|
|
259
271
|
"s": "Twelfth testing feedback batch"
|
|
260
272
|
}
|
|
261
273
|
]
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"v": "0.423.0",
|
|
265
|
-
"at": "2026-10-26T16:10:21.071Z",
|
|
266
|
-
"f": 2,
|
|
267
|
-
"prs": [
|
|
268
|
-
{
|
|
269
|
-
"n": 1063,
|
|
270
|
-
"t": "Eleventh testing feedback batch, part 2",
|
|
271
|
-
"s": "Eleventh testing feedback batch, part 2"
|
|
272
|
-
}
|
|
273
|
-
]
|
|
274
274
|
}
|
|
275
275
|
]
|
|
276
276
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-28T14:17: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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-28T14:17: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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-28T14:17:21Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.443.0",
|
|
4
|
+
"at": "2026-10-28T14:17:24.774Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1087,
|
|
9
|
+
"t": "0.442.0 hotfix, goals made clear, folded list card, task ticket linking (batch 18)",
|
|
10
|
+
"s": "0.442.0 hotfix, goals made clear, folded list card, task ticket linking (batch 18)"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
2
14
|
{
|
|
3
15
|
"v": "0.442.0",
|
|
4
16
|
"at": "2026-10-28T11:35:22.898Z",
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
/* goals-clear-ui-test.js — goals made clear on Intelligence (feedback batch 18 item 11, build 11-B; main canvas In development, frames Gc*). Serves
|
|
4
|
+
* the real page from the real server; GET /api/insights-premium answers the model lib/insights-premium.js builds from its fixture, with the fields
|
|
5
|
+
* of the goals reading engine (11-A, next18/11-okr-clarity/api-contract.md section 5) set on some goals; GET /api/metric-drafts answers drafted
|
|
6
|
+
* metrics with their recipe, counts, live read and checks. The write routes are stubbed so each press can be read back.
|
|
7
|
+
* T GcJ1aTable: the drafted metrics are one table (Proposed metric, How it is counted, Now read hh:mm, Target, From, how often), grouped, with
|
|
8
|
+
* ✕ / ✓; no second North Star row; ✓ keeps that row and the toast names its rhythm, never "every morning"
|
|
9
|
+
* C GcJ1Drafts: a row opens its check panel: how it is counted, the live read, my checks, your number, how often, the query folded, ↗ ✎ ↻ Keep;
|
|
10
|
+
* ↻ posts the live read; a number posts the compare
|
|
11
|
+
* S GcS3Differs: mine beside yours, why, the suggestion; ✓ posts the pick
|
|
12
|
+
* F GcJ2FirstMonday: one reading: the reading with its source and time, a grey dot, "pace known after 3 readings"; the chart waits for the 2nd
|
|
13
|
+
* K GcR3Goal: a key result's Viewer: the counts as a fraction, From … with the rhythm and the last and next read said once, ↻ in the header
|
|
14
|
+
* R GcR4Failed: the last good number stays, the reason, Reconnect posts the drafted connect fix
|
|
15
|
+
* H GcR5Held: the held reading is not drawn; why, its checks, the Jira draft; ✓✓ files it
|
|
16
|
+
* P on a phone: the table and the check panel with no sideways scroll. PMOS_SHOTS=<dir> also saves screenshots. */
|
|
17
|
+
const path = require('path');
|
|
18
|
+
const fs = require('fs');
|
|
19
|
+
const { spawn } = require('child_process');
|
|
20
|
+
const { findBrowser } = require('./lib/find-browser');
|
|
21
|
+
const T = require('./test-run').configure({ name: 'goals-clear-ui' });
|
|
22
|
+
const IP = require('./lib/insights-premium.js');
|
|
23
|
+
const F = require('./fixtures/insights-premium-facts.js');
|
|
24
|
+
|
|
25
|
+
const BASE = T.BASE;
|
|
26
|
+
const SHOTS = process.env.PMOS_SHOTS || '';
|
|
27
|
+
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
28
|
+
const until = async (fn, ms = 10000, step = 100) => { const t0 = Date.now(); for (;;) { let v; try { v = await fn(); } catch { v = null; } if (v) return v; if (Date.now() - t0 > ms) return v; await sleep(step); } };
|
|
29
|
+
const results = [];
|
|
30
|
+
const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + String(extra).slice(0, 700) : ''}`); };
|
|
31
|
+
let srv = null; let browser = null;
|
|
32
|
+
const finish = async (code) => {
|
|
33
|
+
if (browser) await browser.close().catch(() => {});
|
|
34
|
+
if (srv) { try { srv.kill('SIGKILL'); } catch { /* gone */ } }
|
|
35
|
+
T.killTmux();
|
|
36
|
+
const bad = results.filter((x) => !x.cond).length;
|
|
37
|
+
console.log(`\n${results.length - bad}/${results.length} goals-clear-ui assertions passed`);
|
|
38
|
+
process.exit(code !== undefined ? code : (bad ? 1 : 0));
|
|
39
|
+
};
|
|
40
|
+
process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
41
|
+
|
|
42
|
+
const WEEKLY = { connector: 'Amplitude', query: 'event login_success\ncount unique users, per week (Mon–Sun, SGT)', cadence: 'weekly', at: '07:00', day: 'mon', where: 'chart “Signed-in shoppers”', url: 'https://app.amplitude.com/chart/1' };
|
|
43
|
+
const RH = (txt, short, cadence) => ({ cadence, txt, short, ...(/\d{2}:\d{2}/.test(txt) ? { at: txt.match(/\d{2}:\d{2}/)[0] } : {}) });
|
|
44
|
+
const CHECKS = [{ id: 'zero', ok: true, text: 'No segment reads 0' }, { id: 'jump', ok: true, text: 'The last 8 weeks rise slowly, with no gaps' }, { id: 'den', ok: true, text: 'A plain count: no share to check' }, { id: 'range', ok: true, text: 'It is less than all shoppers (61k), as it must be' }];
|
|
45
|
+
/* day 1: Claude drafted a North Star, 3 inputs and 2 guardrails (GcJ1aTable) */
|
|
46
|
+
const metric = (id, group, name, type, what, nowTxt, targetTxt, recipe, rhythm, o = {}) => Object.assign({ id, kind: 'metric', group, name, type, nowTxt, targetTxt, source: recipe.connector, why: '', state: 'open', ticket: null, goal: null,
|
|
47
|
+
recipe, rhythm, counts: { what }, live: { at: '2026-10-28T10:58:00', ok: true, value: 1, txt: nowTxt, period: 'week of 19 Oct', source: recipe.connector }, checks: CHECKS }, o);
|
|
48
|
+
const ROWS = () => [
|
|
49
|
+
metric('d-ns', 'North Star', 'Weekly signed-in shoppers', 'Count', 'Shoppers who signed in at least once in the week, each person once', '38.8k', '45k by Dec 31', WEEKLY, RH('every Monday 07:00', 'Every Monday', 'weekly')),
|
|
50
|
+
metric('d-i1', 'Inputs', 'Login success rate', 'Percentage', 'Logins that worked ÷ logins started', '94.1%', '96%', WEEKLY, RH('every Monday 07:00', 'Every Monday', 'weekly')),
|
|
51
|
+
metric('d-i2', 'Inputs', 'Checkout login drop-off', 'Percentage', 'Checkouts that stop at login ÷ checkouts that reach login', '21.4%', '15%', WEEKLY, RH('every Monday 07:00', 'Every Monday', 'weekly')),
|
|
52
|
+
metric('d-i3', 'Inputs', 'Returning shopper share', 'Percentage', 'Shoppers back within 30 days ÷ shoppers this week', '58%', '60%', WEEKLY, RH('every Monday 07:00', 'Every Monday', 'weekly')),
|
|
53
|
+
metric('d-g1', 'Guardrails', 'Login time, slowest 5%', 'Stay within', 'The time 95 of 100 logins finish within', '0.9 s', 'Under 1.2 s', { connector: 'Datadog', query: 'p95(login.duration)', cadence: 'hourly' }, RH('every hour in working hours', 'Every hour', 'hourly')),
|
|
54
|
+
metric('d-g2', 'Guardrails', 'Login support tickets', 'Stay within', 'New tickets in Jira LOGIN tagged “sign-in”, per week', '31', 'Under 40', { connector: 'Jira', query: 'project = LOGIN AND labels = sign-in', cadence: 'daily', at: '07:00' }, RH('every day 07:00', 'Every day', 'daily')),
|
|
55
|
+
];
|
|
56
|
+
const DRAFTS = (rows) => ({ ok: true, scope: 'product', id: 'w1', title: 'pmos-idpf', run: { state: 'ready', step: 4, reads: [] }, head: '', sub: '', src: '', rows });
|
|
57
|
+
|
|
58
|
+
/* the model: day 1 has no goal read (the fixture's goals emptied), later days carry the reading engine's fields */
|
|
59
|
+
function model(kind) {
|
|
60
|
+
const M = IP.build(F.facts({ pinned: 'all', budgets: [] }));
|
|
61
|
+
M.board.name = 'pmos-idpf';
|
|
62
|
+
const g = (id) => M.goals.find((x) => x.id === id);
|
|
63
|
+
if (kind === 'day1') { M.goals = []; M.charts = []; M.budgets = []; return M; }
|
|
64
|
+
const ns = g('krm-up'), act = g('krm-act');
|
|
65
|
+
ns.role = 'north-star';
|
|
66
|
+
const counts = { what: 'Checkouts that stop at login ÷ checkouts that reach login', num_label: 'checkouts stopped at login', den_label: 'checkouts reached login' };
|
|
67
|
+
if (kind === 'first') {
|
|
68
|
+
// one reading each (GcJ2FirstMonday)
|
|
69
|
+
for (const x of M.goals) { const s = (x.series || []).slice(-1); x.series = s.length ? s : [{ at: '2026-11-02', v: 1 }]; x.readings = 1; x.key = null; x.reading = { dot: 'on', at: '2026-11-02', ageDays: 0, txt: x.nowTxt || '1', line: '' }; x.recipe = Object.assign({}, WEEKLY); x.rhythm = RH('every Monday 07:00', 'Every Monday', 'weekly');
|
|
70
|
+
x.lastRead = { at: '2026-11-02T07:02:00', value: 1, txt: x.nowTxt || '1', source: 'Amplitude' }; x.nextRead = '2026-11-09T07:00:00'; }
|
|
71
|
+
return M;
|
|
72
|
+
}
|
|
73
|
+
Object.assign(act, { recipe: Object.assign({}, WEEKLY, { where: 'chart “Checkout funnel”' }), rhythm: RH('every Monday 07:00', 'Every Monday', 'weekly'), counts,
|
|
74
|
+
lastRead: { at: '2026-11-16T07:02:00', value: 20.2, txt: '20.2%', num: 1212, den: 6000, source: 'Amplitude', period: 'week of 9 Nov' }, nextRead: '2026-11-23T07:00:00', checks: CHECKS, held: [], failed: null,
|
|
75
|
+
reading: { dot: 'behind', at: '2026-11-16', ageDays: 0, stale: false, txt: '20.2% of 15%', line: 'its line says 16.5%' } });
|
|
76
|
+
if (kind === 'failed') Object.assign(act, { failed: { at: '2026-11-16T07:02:00', why: 'Amplitude said your login has expired.', fix: { kind: 'connect', connector: 'Amplitude', row: 'fx-amp' } },
|
|
77
|
+
lastRead: { at: '2026-11-09T07:02:00', value: 20.2, txt: '20.2%', num: 1212, den: 6000, source: 'Amplitude', period: 'week of 2 Nov' } });
|
|
78
|
+
if (kind === 'held') Object.assign(ns, { recipe: Object.assign({}, WEEKLY), rhythm: RH('every Monday 07:00', 'Every Monday', 'weekly'), counts: { what: 'Shoppers who signed in at least once in the week, each person once' },
|
|
79
|
+
lastRead: { at: '2026-11-16T07:02:00', value: 40600, txt: '40.6k', source: 'Amplitude' }, nextRead: '2026-11-30T07:00:00',
|
|
80
|
+
held: [{ at: '2026-11-23T07:02:00', day: '2026-11-23', value: 52300, txt: '52.3k', source: 'Amplitude', why: 'Moved more than 3× a normal week', checks: [{ id: 'jump', ok: false, text: 'Moved more than 3× a normal week' }, { id: 'den', ok: true, text: 'Both counts came back' }], ticket: 'tk-held' }] });
|
|
81
|
+
return M;
|
|
82
|
+
}
|
|
83
|
+
const TICKET = { id: 'tk-held', kind: 'ticket', goal: 'krm-up', text: 'Send a ticket to fix the double count', act: 'Send to Jira', state: 'open', ticket: { title: 'login_success fires twice on app 5.2', text: '…' }, why: '' };
|
|
84
|
+
const FIX = { id: 'fx-amp', kind: 'connect', goal: 'krm-act', connector: 'Amplitude', text: 'Connect Amplitude', act: 'Connect Amplitude', state: 'open', ticket: null, why: '' };
|
|
85
|
+
|
|
86
|
+
(async () => {
|
|
87
|
+
const exe = process.env.PMOS_CHROME || findBrowser();
|
|
88
|
+
if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the suite cannot run'); return finish(1); }
|
|
89
|
+
let chromium;
|
|
90
|
+
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
91
|
+
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), PMOS_SELF_ROOT: path.resolve(__dirname, '..') }) });
|
|
92
|
+
await T.waitForServer(BASE);
|
|
93
|
+
browser = await chromium.launch({ executablePath: exe });
|
|
94
|
+
if (SHOTS) fs.mkdirSync(SHOTS, { recursive: true });
|
|
95
|
+
const shot = async (p, name) => { if (!SHOTS) return; await sleep(450); await p.screenshot({ path: path.join(SHOTS, name + '.png') }); };
|
|
96
|
+
|
|
97
|
+
const open = async ({ w = 1440, h = 900, m = model('day1'), rows = ROWS(), theme = 'light', ready = '#draftBox .gc-tr' } = {}) => {
|
|
98
|
+
const ctx = await browser.newContext({ viewport: { width: w, height: h }, timezoneId: 'UTC' });
|
|
99
|
+
const page = await ctx.newPage();
|
|
100
|
+
const errors = [], posts = [], S = { rows };
|
|
101
|
+
page.on('pageerror', (e) => errors.push(String((e && e.message) || e)));
|
|
102
|
+
await page.route('**/api/insights-premium*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, model: m }) }));
|
|
103
|
+
await page.route('**/api/board-metrics-premium*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, state: 'ready', model: { tiles: [] } }) }));
|
|
104
|
+
await page.route('**/api/briefing-premium/products', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, all: false, chosen: true, products: [{ ws: m.board.ws, name: m.board.name, primary: true, on: true }] }) }));
|
|
105
|
+
await page.route('**/api/metric-drafts?*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify(DRAFTS(S.rows)) }));
|
|
106
|
+
const answer = (p, body) => {
|
|
107
|
+
if (p === '/api/metric-drafts/keep') return { ok: true, rid: 'r1', rhythm: (S.rows.find((x) => x.id === body.row) || {}).rhythm };
|
|
108
|
+
if (p === '/api/goal-status/compare') {
|
|
109
|
+
// the server stores the PM's number; the GET then carries the compare with Claude's why and suggestion
|
|
110
|
+
S.rows = S.rows.map((x) => (x.id === body.goal ? Object.assign({}, x, { compare: { value: body.value, txt: '44.1k', ours: 38800, oursTxt: '38.8k', label: 'Yours', apart: '5.3k', pct: 13.7, differs: true, state: 'differs',
|
|
111
|
+
why: 'finance counts a shopper once per device; I count each shopper once. 5.3k shoppers signed in on two devices last week.', suggest: { text: 'I suggest per shopper: the North Star is about people.', keep: 'mine' } } }) : x));
|
|
112
|
+
return { ok: true, pct: 13.7, apart: '5.3k', differs: true };
|
|
113
|
+
}
|
|
114
|
+
if (p === '/api/goal-status/test') { S.rows = S.rows.map((x) => (x.id === (body.rows || [])[0] ? Object.assign({}, x, { live: Object.assign({}, x.live, { at: '2026-10-28T11:05:00' }) }) : x)); return { ok: true, run: 'r', rids: body.rows }; }
|
|
115
|
+
return { ok: true };
|
|
116
|
+
};
|
|
117
|
+
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']) {
|
|
118
|
+
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)) }); });
|
|
119
|
+
}
|
|
120
|
+
await page.goto(BASE + '/premium-intelligence.html?theme=' + theme);
|
|
121
|
+
await until(() => page.evaluate((s) => !!document.querySelector(s), ready), 20000);
|
|
122
|
+
return { ctx, page, errors, posts, S };
|
|
123
|
+
};
|
|
124
|
+
const txt = (p, s) => p.evaluate((x) => { const e = document.querySelector(x); return e ? e.textContent.replace(/\s+/g, ' ').trim() : ''; }, s);
|
|
125
|
+
const vw = (p) => until(() => p.evaluate(() => { const V = document.querySelector('#czViewer'); return V && !V.hidden && V.querySelector('.ins-vbody') ? V.querySelector('.ins-vbody').innerText.replace(/\s+/g, ' ').trim() : null; }), 5000);
|
|
126
|
+
|
|
127
|
+
/* T · the drafts table */
|
|
128
|
+
const A = await open(), p = A.page;
|
|
129
|
+
const tb = await p.evaluate(() => ({ heads: [...document.querySelectorAll('#draftBox .gc-th [role="columnheader"]')].map((e) => e.textContent.replace(/\s+/g, ' ').trim()),
|
|
130
|
+
groups: [...document.querySelectorAll('#draftBox .gc-grp b')].map((e) => e.textContent), rows: document.querySelectorAll('#draftBox .gc-tr').length,
|
|
131
|
+
ns: (() => { const r = document.querySelector('[data-gc-row="d-ns"]'); return r ? [...r.querySelectorAll('[role="cell"]')].map((c) => c.innerText.replace(/\s+/g, ' ').trim()) : []; })(),
|
|
132
|
+
g1: (document.querySelector('[data-gc-row="d-g1"] .gc-from') || {}).innerText || '', g2: (document.querySelector('[data-gc-row="d-g2"] .gc-from') || {}).innerText || '',
|
|
133
|
+
nsRow: !document.querySelector('#nsRow').hidden, list: document.querySelectorAll('#goalTbl .okr-row').length, empty: /No key result is recorded/.test(document.querySelector('#goalTbl').textContent),
|
|
134
|
+
acts: [...document.querySelectorAll('[data-gc-row="d-ns"] .gc-acts button')].map((b) => b.getAttribute('aria-label') + '|' + b.textContent.trim()) }));
|
|
135
|
+
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(' | '));
|
|
136
|
+
ok('T2 grouped: North Star, Inputs, Guardrails; 6 rows', tb.groups.join('|') === 'North Star|Inputs|Guardrails' && tb.rows === 6, JSON.stringify(tb));
|
|
137
|
+
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(' / '));
|
|
138
|
+
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);
|
|
139
|
+
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));
|
|
140
|
+
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(', '));
|
|
141
|
+
const line = await p.evaluate(() => document.querySelector('#brief').textContent + ' ' + document.querySelector('#insWhy').textContent);
|
|
142
|
+
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);
|
|
143
|
+
await shot(p, 'GcJ1aTable-built');
|
|
144
|
+
await p.click('[data-gc-row="d-g2"] [data-gc="keep"]');
|
|
145
|
+
ok('T8 ✓ keeps that row', await until(() => A.posts.some((x) => x.path === '/api/metric-drafts/keep' && x.body.row === 'd-g2')));
|
|
146
|
+
const toastT = await until(() => p.evaluate(() => { const t = document.querySelector('#toast'); return t && /Kept/.test(t.textContent) ? t.textContent : null; }), 4000);
|
|
147
|
+
ok('T9 the Kept toast names the goal\'s own rhythm, never "every morning"', /Kept\. I read it every day 07:00\./.test(toastT || '') && !/every morning/.test(toastT || ''), toastT);
|
|
148
|
+
|
|
149
|
+
/* C · the check panel */
|
|
150
|
+
await p.click('[data-gc-row="d-ns"] .gc-hw');
|
|
151
|
+
const c1 = await vw(p);
|
|
152
|
+
const cp = await p.evaluate(() => { const V = document.querySelector('#czViewer'); return { title: (V.querySelector('.cz-vw-title') || {}).textContent || '', sel: !!document.querySelector('[data-gc-row="d-ns"].sel'), q: !!V.querySelector('details.gc-q:not([open])'),
|
|
153
|
+
foot: [...V.querySelectorAll('.gc-foot .cz-ib')].map((b) => b.getAttribute('aria-label') + '|' + b.textContent.trim()) }; });
|
|
154
|
+
ok('C1 a row opens its check panel beside the table, the row marked', /Weekly signed-in shoppers/.test(cp.title) && cp.sel, JSON.stringify(cp));
|
|
155
|
+
ok('C2 how it is counted with the live read, then my checks', /How it is counted Shoppers who signed in at least once in the week, each person once 38\.8k read .*week of 19 Oct My checks No segment reads 0/.test(c1 || '') && /It is less than all shoppers \(61k\), as it must be/.test(c1), c1);
|
|
156
|
+
ok('C3 "No other number to compare yet", the input for yours, how often once, and the query folded', /No other number to compare yet: type yours/.test(c1) && /How often every Monday 07:00/.test(c1) && (c1.match(/every Monday/g) || []).length === 1 && cp.q, c1);
|
|
157
|
+
ok('C4 ↗ ✎ ↻ and Keep, icon-only', cp.foot.length === 4 && /^Open in Amplitude/.test(cp.foot[0]) && /^Edit/.test(cp.foot[1]) && /^Read it now/.test(cp.foot[2]) && /^Keep\|$/.test(cp.foot[3]) && cp.foot.every((f) => /\|$/.test(f)), cp.foot.join(', '));
|
|
158
|
+
ok('C5 the old "test read" wording is gone', !/test read/i.test(c1) && !/test read/i.test(await txt(p, '#draftBox')));
|
|
159
|
+
await shot(p, 'GcJ1Drafts-built');
|
|
160
|
+
await p.click('#czViewer [data-gc="test"]');
|
|
161
|
+
ok('C6 ↻ reads it now: POST /api/goal-status/test for that row', await until(() => A.posts.some((x) => x.path === '/api/goal-status/test' && (x.body.rows || [])[0] === 'd-ns')));
|
|
162
|
+
|
|
163
|
+
/* S · your number differs */
|
|
164
|
+
await until(() => p.evaluate(() => { const b = document.querySelector('#czViewer [data-gc="test"]'); return b && !b.disabled; }), 8000);
|
|
165
|
+
await p.fill('#czViewer [data-gc-cmp] input', '44.1k');
|
|
166
|
+
await p.click('#czViewer [data-gc-cmp] button[type="submit"]');
|
|
167
|
+
ok('S1 your number posts the compare, 44.1k as 44100', await until(() => A.posts.some((x) => x.path === '/api/goal-status/compare' && x.body.goal === 'd-ns' && x.body.value === 44100)));
|
|
168
|
+
const s1 = await until(() => p.evaluate(() => { const V = document.querySelector('#czViewer .ins-vbody'); return V && V.querySelector('.gc-two') ? V.innerText.replace(/\s+/g, ' ').trim() : null; }), 6000);
|
|
169
|
+
ok('S2 mine beside yours, how far apart, and why', /Mine 38\.8k/.test(s1 || '') && /Yours 44\.1k/.test(s1 || '') && /5\.3k apart\. I found why: finance counts a shopper once per device/.test(s1 || ''), s1);
|
|
170
|
+
ok('S3 Claude suggests one, and writes the pick into "How it is counted"', /I suggest per shopper: the North Star is about people\. I write your pick into “How it is counted”/.test(s1 || ''), s1);
|
|
171
|
+
await shot(p, 'GcS3Differs-built');
|
|
172
|
+
await p.click('#czViewer [data-gc="pick"]');
|
|
173
|
+
ok('S4 ✓ posts the pick (mine, as suggested)', await until(() => A.posts.some((x) => x.path === '/api/goal-status/compare-pick' && x.body.goal === 'd-ns' && x.body.pick === 'mine')));
|
|
174
|
+
ok('S5 no script error on the page', !A.errors.length, A.errors.join(' | '));
|
|
175
|
+
await A.ctx.close();
|
|
176
|
+
|
|
177
|
+
/* F · the first readings */
|
|
178
|
+
const B = await open({ m: model('first'), rows: [], ready: '#goalTbl .okr-row' });
|
|
179
|
+
const f1 = await B.page.evaluate(() => { const r = document.querySelector('#goalTbl [data-goal="krm-act"]'); return { meta: r.querySelector('.okr-main .note').textContent, dot: r.querySelector('.okr-main .cz-dot').className, line: document.querySelector('#brief').textContent + ' ' + document.querySelector('#insWhy').textContent }; });
|
|
180
|
+
ok('F1 one reading: the number, its source and time, "pace known after 3 readings", and a grey dot', /· Amplitude, Mon 2 Nov, 07:02 · pace known after 3 readings$/.test(f1.meta) && /\bq\b/.test(f1.dot), JSON.stringify(f1));
|
|
181
|
+
ok('F2 the ✦ line: the first readings are in; one reading is a starting point, not a trend', /^The first readings are in/.test(f1.line) && /One reading is a starting point, not a trend/.test(f1.line), f1.line);
|
|
182
|
+
await shot(B.page, 'GcJ2FirstMonday-built');
|
|
183
|
+
await B.page.click('#goalTbl [data-goal="krm-act"] .okr-main');
|
|
184
|
+
const f2 = await vw(B.page);
|
|
185
|
+
ok('F3 the Viewer waits for the 2nd reading instead of drawing a line', /The line starts with the 2nd reading, Mon 9 Nov/.test(f2 || '') && /pace known after 3 readings/.test(f2 || ''), f2);
|
|
186
|
+
await B.ctx.close();
|
|
187
|
+
|
|
188
|
+
/* K · a key result's panel */
|
|
189
|
+
const K = await open({ m: model('kr'), rows: [], ready: '#goalTbl .okr-row' });
|
|
190
|
+
await K.page.click('#goalTbl [data-goal="krm-act"] .okr-main');
|
|
191
|
+
const k1 = await vw(K.page);
|
|
192
|
+
const kh = await K.page.evaluate(() => ({ read: !!document.querySelector('#czViewer [data-cz-act="gc-read"], #czViewer button[aria-label="Read it now"]'), folds: [...document.querySelectorAll('#czViewer .czs-row b')].map((b) => b.textContent) }));
|
|
193
|
+
ok('K1 how it is counted as the two counts: 1,212 over 6,000 = 20.2%, week of 9 Nov', /How it is counted 1,212 checkouts stopped at login 6,000 checkouts reached login = 20\.2%, week of 9 Nov/.test(k1 || ''), k1);
|
|
194
|
+
ok('K2 From Amplitude, its chart, every Monday 07:00; last and next read said once', /From Amplitude, chart “Checkout funnel”, every Monday 07:00\. Last Mon 16 Nov, next Mon 23 Nov\./.test(k1 || '') && (k1.match(/every Monday/g) || []).length === 1, k1);
|
|
195
|
+
ok('K3 the last read with its checks, and the query', /Last read Mon 16 Nov, 07:02/.test(k1) && /The last 8 weeks rise slowly/.test(k1) && /The query Amplitude · chart “Checkout funnel” event login_success/.test(k1), k1);
|
|
196
|
+
ok('K4 ↻ Read now is in the header; the folds no longer repeat How I read it or What it counts', kh.read && !kh.folds.includes('How I read it') && !kh.folds.includes('What it counts') && kh.folds.includes('Readings'), JSON.stringify(kh));
|
|
197
|
+
await shot(K.page, 'GcR3Goal-built');
|
|
198
|
+
await K.page.click('#czViewer button[aria-label="Read it now"]');
|
|
199
|
+
ok('K5 ↻ reads that goal now (POST /api/goal-status/read)', await until(() => K.posts.some((x) => x.path === '/api/goal-status/read' && x.body.id === 'krm-act')));
|
|
200
|
+
await K.ctx.close();
|
|
201
|
+
|
|
202
|
+
/* R · a read that failed */
|
|
203
|
+
const R = await open({ m: model('failed'), rows: [FIX], ready: '#goalTbl .okr-row' });
|
|
204
|
+
const r0 = await R.page.evaluate(() => ({ meta: document.querySelector('#goalTbl [data-goal="krm-act"] .okr-main .note').textContent, line: document.querySelector('#brief').textContent + ' ' + document.querySelector('#insWhy').textContent }));
|
|
205
|
+
ok('R1 the row keeps the last good reading and says it was not read', /^20\.2% of 15%.* · not read Mon 16 Nov$/.test(r0.meta), r0.meta);
|
|
206
|
+
ok('R2 the ✦ line: I couldn’t read it, the reason the source gave, reconnect and I read it straight away', /^I couldn’t read Partner activation on Monday\. Amplitude said your login has expired\. Reconnect it and I read it straight away\./.test(r0.line), r0.line);
|
|
207
|
+
ok('R2b the drafted reconnect is not said again under the row', !(await R.page.$('#goalTbl [data-goal="krm-act"] [data-draft="fx-amp"]')));
|
|
208
|
+
await R.page.click('#goalTbl [data-goal="krm-act"] .okr-main');
|
|
209
|
+
const r1 = await vw(R.page);
|
|
210
|
+
ok('R3 the Viewer: the last good number, when it was not read and why, and that no number was guessed', /from Mon 9 Nov, the last good reading/.test(r1 || '') && /Mon 16 Nov, 07:02 · not read Amplitude said your login has expired\. I did not guess a number\./.test(r1 || ''), r1);
|
|
211
|
+
ok('R4 the counts are not known for this week', /\? checkouts stopped at login \? checkouts reached login = not known for this week/.test(r1 || ''), r1);
|
|
212
|
+
await shot(R.page, 'GcR4Failed-built');
|
|
213
|
+
await R.page.click('#czViewer [data-gc="reconnect"]');
|
|
214
|
+
ok('R5 its one fix: Reconnect keeps the drafted connect fix', await until(() => R.posts.some((x) => x.path === '/api/metric-drafts/keep' && x.body.row === 'fx-amp')));
|
|
215
|
+
await R.ctx.close();
|
|
216
|
+
|
|
217
|
+
/* H · a held reading */
|
|
218
|
+
const H = await open({ m: model('held'), rows: [TICKET], ready: '#nsRow .okr-row' });
|
|
219
|
+
const h0 = await H.page.evaluate(() => ({ meta: document.querySelector('#nsRow [data-goal="krm-up"] .okr-main .note').textContent, line: document.querySelector('#brief').textContent + ' ' + document.querySelector('#insWhy').textContent }));
|
|
220
|
+
ok('H1 the row says one reading is held and never shows it', / · 1 reading held$/.test(h0.meta) && !/52\.3k/.test(h0.meta), h0.meta);
|
|
221
|
+
ok('H2 the ✦ line: I held back one reading of the North Star', /^I held back one reading of the North Star\. Moved more than 3× a normal week\. Check it in the side panel\./.test(h0.line), h0.line);
|
|
222
|
+
ok('H2b the held reading\'s drafted ticket is said in the panel, not again under the row', !(await H.page.$('#nsRow [data-draft="tk-held"]')));
|
|
223
|
+
await H.page.click('#nsRow [data-goal="krm-up"] .okr-main');
|
|
224
|
+
const h1 = await vw(H.page);
|
|
225
|
+
ok('H3 the Viewer: the last good number, the held reading with why and its checks', /the last good reading, Mon 16 Nov/.test(h1 || '') && /Mon 23 Nov · read 52\.3k · held Moved more than 3× a normal week/.test(h1 || '') && /Both counts came back/.test(h1 || ''), h1);
|
|
226
|
+
ok('H4 the drafted Jira ticket, and "(held)" said once in From', /I drafted a Jira ticket: “login_success fires twice on app 5\.2”/.test(h1 || '') && /Last Mon 23 Nov \(held\), next Mon 30 Nov\./.test(h1 || ''), h1);
|
|
227
|
+
await shot(H.page, 'GcR5Held-built');
|
|
228
|
+
await H.page.click('#czViewer [data-gc="file-held"]');
|
|
229
|
+
ok('H5 ✓✓ files it as a reading', await until(() => H.posts.some((x) => x.path === '/api/goal-status/file-held' && x.body.id === 'krm-up' && x.body.held === '2026-11-23T07:02:00')));
|
|
230
|
+
await H.page.click('#czViewer [data-okd="keep"][data-row="tk-held"]').catch(() => {});
|
|
231
|
+
ok('H6 ✓ on the ticket sends the Jira draft', await until(() => H.posts.some((x) => x.path === '/api/metric-drafts/keep' && x.body.row === 'tk-held'), 4000));
|
|
232
|
+
ok('H7 no script error', !H.errors.length, H.errors.join(' | '));
|
|
233
|
+
await H.ctx.close();
|
|
234
|
+
|
|
235
|
+
/* P · a phone */
|
|
236
|
+
for (const theme of ['light', 'dark']) {
|
|
237
|
+
const Q = await open({ w: 390, h: 844, theme });
|
|
238
|
+
const ph = await Q.page.evaluate(() => ({ over: document.documentElement.scrollWidth > innerWidth + 1, rows: document.querySelectorAll('#draftBox .gc-tr').length }));
|
|
239
|
+
ok('P1 on a phone (' + theme + ') the drafts table shows with no sideways scroll', !ph.over && ph.rows === 6, JSON.stringify(ph));
|
|
240
|
+
await shot(Q.page, 'GcJ1aTable-phone-' + theme);
|
|
241
|
+
await Q.page.click('[data-gc-row="d-ns"] .gc-hw');
|
|
242
|
+
await vw(Q.page);
|
|
243
|
+
const pv = await Q.page.evaluate(() => ({ over: document.documentElement.scrollWidth > innerWidth + 1 }));
|
|
244
|
+
ok('P2 on a phone (' + theme + ') the check panel opens with no sideways scroll', !pv.over, JSON.stringify(pv));
|
|
245
|
+
await shot(Q.page, 'GcJ1Drafts-phone-' + theme);
|
|
246
|
+
await Q.ctx.close();
|
|
247
|
+
}
|
|
248
|
+
finish();
|
|
249
|
+
})();
|
package/workspace/guide/home.md
CHANGED
|
@@ -74,6 +74,10 @@ Press an initiative's name in the list, or open `?ini=<id>`. The list stays as i
|
|
|
74
74
|
- A cancelled, done or archived initiative leaves Home, and so do the next steps that were for it.
|
|
75
75
|
- With no dates at all, the parts are even and dashed. The calendar button opens **Tasks** in the Timeline view to set the dates.
|
|
76
76
|
- On a phone the line shows only the next open milestone's name. Press the line to unfold the stages and milestones as a list under it.
|
|
77
|
+
- On a wide Viewer the stage's dates, ⋯ and the next stage always show under the picture, and the milestones are in their own **Milestones** card under it. When the dates are too long for the row, they take their own line. They are never cut.
|
|
78
|
+
- **Group by** (Stage, Owner, Status or Epic) is saved for the initiative. It stays after you change a task.
|
|
79
|
+
- When the list is folded, the Live pill above the menu button shows its marks in a column.
|
|
80
|
+
- The picture spans the card from edge to edge. The telescope stands at the left, the launch pad in the middle and the dish at the right, whatever the stages' dates. The rocket gets smaller as it flies toward the planet.
|
|
77
81
|
- Under the card are the 3 most urgent tasks and the documents that need a look. **Show N more** opens all the tasks and **Show all N** opens all the documents. ← goes back to the page. A task or a document that you open from the page also has ← back to the page.
|
|
78
82
|
- ⋯ is a short menu. It is the same on Home and on the Board, in the same order: **Split into a new initiative**, **Merge into**, **Program**, **Open on the Board** (only on Home), **Copy** (**Link** or **Text**), **The record**, a line, then **Delete** in red.
|
|
79
83
|
- **Program** is one list: the open programs (the current one says Now), then **No program** to move out. An initiative that is in no program has **Make it a program** at the end.
|
|
@@ -93,8 +97,9 @@ Press an initiative's name in the list, or open `?ini=<id>`. The list stays as i
|
|
|
93
97
|
- **Moves on by itself** is a switch, on by default. When every exit item is done, the stage moves to the next stage and a message shows **Undo**. A stage never moves by itself into a milestone (Deliver or Evaluate). This rule is a proposal that the PM has not confirmed yet.
|
|
94
98
|
- → with open tasks in the stage asks first (**Move anyway**, with a note). **Back** always asks for a reason.
|
|
95
99
|
- **Tasks** in the Viewer can be grouped by stage, by groups that you name, by owner or by status. Drag a task to another group.
|
|
96
|
-
- In **Tasks**, a box is a PMOS task: half blue is In progress, empty is To do. A ticket mark with a bold key is a Jira ticket. Jira owns its status
|
|
97
|
-
- In the Build stage, the open Jira tickets show with the tasks. A task whose name
|
|
100
|
+
- In **Tasks**, a box is a PMOS task: half blue is In progress, empty is To do. A ticket mark with a bold key is a Jira ticket. Jira owns its status, so it has no box. Its dates can be kept in PMOS (see below). A ◇ always means a milestone.
|
|
101
|
+
- In the Build stage, the open Jira tickets show with the tasks. A task whose name holds the key of a Jira ticket that PMOS read (for example "MSD-4376 Navigation tabs") is linked to that ticket. The ticket shows once, as the task, and counts once. In the List, Timeline and Kanban, the task has the ticket's status square (grey To do, blue In progress, green Done) in place of the box, and the key shows once, in blue. Its status follows Jira, so it has no box and does not drag between Kanban columns. Its start and due stay yours: press the dates or drag the bar, and PMOS keeps them. Jira's dates show only while the task has none of its own. In **By epic**, the task shows once, as its ticket, with the task's bar on the Timeline.
|
|
102
|
+
- A key that PMOS did not read from Jira is only text in the name. The task stays a PMOS task with its box.
|
|
98
103
|
- **Set a Jira ticket's dates.** Press the dates of a Jira ticket in the List, or drag its bar on the Timeline, as you do for a task. PMOS keeps the start and due days and shows them in place of the sprint end. Jira does not change. The status and the name stay Jira's.
|
|
99
104
|
- **Tasks** show one row (one group) for each stage of the workflow, in order. Finished stages and later stages are never merged into one row; they start folded, and the current stage and any stage with a late task start open.
|
|
100
105
|
- **Delete a task.** Press the caret under a task's box (on a phone, press and hold the box) and press the trash at the end of the status picker. The task goes at once and the message shows **Undo**. In the Task Viewer, the trash is the last icon of the Status row, and **Delete** is the last entry of its ⋯ menu. You can delete every PMOS task, also a task that Claude planned in the breakdown and a task that a stage's To finish list made. A deleted To finish task does not come back when the stage is read again or when the initiative moves back to that stage. A Jira ticket has no Delete: change it in Jira. A task deleted in a draft leaves only the draft.
|
|
@@ -53,7 +53,12 @@ The run writes no record and sends nothing.
|
|
|
53
53
|
|
|
54
54
|
Claude also reads your goals and repairs them. You see the result on Intelligence and on the product page. You do not fill in a form.
|
|
55
55
|
|
|
56
|
-
- **Each goal has a recipe:** a connector, a query and a
|
|
56
|
+
- **Each goal has a recipe:** a connector, a query and a rhythm: every hour (in working hours), every day, every week or every month, at a time of day and on a weekday you can set. When the rhythm comes round, Claude reads the goal and files the value with where it read it and when.
|
|
57
|
+
- **How it is counted:** a goal says in one sentence how it is counted, and the names of its two counts (for example 1,212 ÷ 6,000). Each reading keeps both counts.
|
|
58
|
+
- **Read now** reads a goal at any time. It does not move the next scheduled read.
|
|
59
|
+
- **Claude checks every reading before it is drawn:** a part that always reads 0, a jump of more than 3 times (or less than a third) the usual level, too small a count, and a value the goal cannot be. A reading that fails a check is held. A held reading never moves the dot, the line or "target reached". Claude says why and drafts a Jira ticket for the owner. Press "file it" when the number is real.
|
|
60
|
+
- **Compare with your number:** give your own number for the goal. When the two differ by more than 2%, Claude says why and suggests which way to count it. Your pick changes how it is counted.
|
|
61
|
+
- **A guardrail is always on:** it needs no end date.
|
|
57
62
|
- **A goal Claude cannot read** says so plainly, and comes with a drafted fix: connect the source, or read it another way. If no connector reads it, upload a CSV or sheet export with a date and a number on each line.
|
|
58
63
|
- **The dot of a goal comes from its latest reading only:** on its line, behind it, close to a limit, or a broken limit. A goal with no reading has a hollow dot. A late initiative never sets a goal's dot.
|
|
59
64
|
- **Fixes sit under the goal they repair:** an outcome for a goal that names a project, a recipe, connect a source, a thankful note to the owner, a rollback ticket, next quarter's goal, carry on, and an owner. Press ✓ to keep one, or ✓✓ to keep them all. A note or a ticket goes to the outbox. Nothing is sent until you send it. Undo puts it back.
|
|
@@ -63,7 +68,8 @@ Claude also reads your goals and repairs them. You see the result on Intelligenc
|
|
|
63
68
|
The reading run files with these commands, pinned by the server to the run and its goals:
|
|
64
69
|
|
|
65
70
|
- `pmos metrics reading list`: the goals of this run, with their recipes.
|
|
66
|
-
- `pmos metrics reading <rid> <value> --source "<connector · what>" [--day YYYY-MM-DD]`: one value read.
|
|
71
|
+
- `pmos metrics reading <rid> <value> --source "<connector · what>" [--day YYYY-MM-DD] [--num N --den D] [--segments "web=597/733,app=0/904"] [--period "<period>"]`: one value read, with its counts. A value that fails a check is held.
|
|
72
|
+
- `pmos metrics reading <rid> --why "<why>" [--suggest mine|yours --suggest-text "<line>"] [--yours-what "<how>" --yours-query "<query>"]`: in a compare run only, why your number and Claude's differ.
|
|
67
73
|
- `pmos metrics reading <rid> --cant "<why>" [--fix connect|recipe --connector <name>]`: Claude could not read it, and the fix it drafted.
|
|
68
74
|
|
|
69
75
|
To turn the reading runs off, set `PMOS_METRIC_READ=off`.
|