create-pmos 0.761.0 → 0.763.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 +39 -51
- 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 +38 -0
- package/workspace/guide/cli.md +6 -0
- package/workspace/guide/home.md +2 -1
- package/workspace/guide/notes.md +15 -0
- package/workspace/lib/actor.js +8 -3
- package/workspace/lib/contradictions.js +137 -0
- package/workspace/lib/meeting-focus.js +14 -1
- package/workspace/lib/open-questions.js +23 -5
- package/workspace/lib/outcome-judge.js +1 -1
- package/workspace/lib/outcome-props.js +51 -5
- package/workspace/lib/outcomes-cli.js +49 -3
- package/workspace/lib/plan-baseline.js +106 -0
- package/workspace/lib/proposal-runs.js +1 -1
- package/workspace/lib/proposals.js +1 -1
- package/workspace/lib/propose-cli.js +16 -7
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-drift.js +30 -0
- package/workspace/lib/routes-meeting-focus.js +6 -1
- package/workspace/lib/routes-open-questions.js +9 -2
- package/workspace/lib/routes-tracker-sync.js +64 -0
- package/workspace/lib/task-jira.js +9 -3
- package/workspace/lib/tracker-sync-take.js +92 -0
- package/workspace/lib/week-moves.js +8 -2
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-rec-tab-test.js +2 -1
- package/workspace/public/pm/buddy-core.js +162 -0
- package/workspace/public/pm/buddy-float.js +63 -0
- package/workspace/public/pm/cozy-buddy.css +26 -0
- package/workspace/public/pm/cozy-buddy.js +59 -7
- package/workspace/public/pm/cozy-rec-tab.js +10 -2
- package/workspace/public/pm/cozy-today-app.js +40 -1
- package/workspace/public/pm/cozy-today-model.js +27 -0
- package/workspace/public/pm/cozy-today-view.js +14 -2
- package/workspace/public/pm/cozy-today.css +2 -0
- package/workspace/public/pm/moves-view.js +11 -1
- package/workspace/public/pm/open-questions-view.js +1 -0
- package/workspace/public/premium-buddy.html +4 -0
- package/workspace/skills/initiative-propose.skill +2 -2
- package/workspace/test-lists/outcome-checks-finish.json +9 -0
- package/workspace/test-lists/slip-baseline-contradictions.json +9 -0
- package/workspace/test-lists/tracker-sync-on-today.json +9 -0
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* rowOf(lists, { looked }) → the Your move row ({ key, go, title, sub }) or null: null in a quiet week (zero is silence) and once the
|
|
5
5
|
* PM opened this week's list. lists: each product's GET /api/drift/moves answer.
|
|
6
|
+
* behindWords(row) → "40 days behind the first plan (due 5 Nov)" on a date row behind its baseline, else ''
|
|
6
7
|
* listHtml(lists, { esc }) → the list, one section per product, the moves with no source first; each says its source, or
|
|
7
8
|
* "No source · ask <owner>"
|
|
8
9
|
* openMoves(lists, H) the list in the Viewer. H: { toast }
|
|
@@ -32,10 +33,19 @@ export function rowOf(lists, { looked = '' } = {}) {
|
|
|
32
33
|
sub: unsourced ? unsourced + ' with no source. See who to ask.' : 'Each one has a source.' };
|
|
33
34
|
}
|
|
34
35
|
|
|
36
|
+
const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
37
|
+
const dayWords = (s) => { const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(s || '')); return m ? +m[3] + ' ' + MON[+m[2] - 1] + (+m[1] !== new Date().getFullYear() ? ' ' + m[1] : '') : ''; };
|
|
38
|
+
/** How far a moved date is from the task's first plan (initiative slip-baseline-contradictions), or '' when it is not behind. */
|
|
39
|
+
export function behindWords(m) {
|
|
40
|
+
if (!m || m.kind !== 'date' || !(Number(m.behind) > 0) || !m.baseline) return '';
|
|
41
|
+
return plural(Number(m.behind), 'day', 'days') + ' behind the first plan (due ' + dayWords(m.baseline) + ')';
|
|
42
|
+
}
|
|
43
|
+
|
|
35
44
|
function moveHtml(m, esc) {
|
|
36
45
|
const what = m.n > 1 ? m.titles.join(', ') + (m.n > m.titles.length ? ', …' : '') : m.title;
|
|
37
46
|
const src = m.sourced ? esc(m.source) : `<strong>No source</strong> · ${m.toPm ? 'yours to check' : 'ask ' + esc(m.owner)}`;
|
|
38
|
-
|
|
47
|
+
const behind = behindWords(m);
|
|
48
|
+
return `<li class="mv-row${m.sourced ? '' : ' mv-flag'}"><span class="mv-say">${esc(m.say)}</span> · ${esc(what)}${behind ? ' · ' + esc(behind) : ''}`
|
|
39
49
|
+ `<br><span class="yd-exp">${esc(m.iniTitle)} · ${src}${m.by && m.by !== 'you' && m.sourced ? ' · by ' + esc(m.by) : ''}</span></li>`;
|
|
40
50
|
}
|
|
41
51
|
|
|
@@ -36,6 +36,7 @@ function kindWords(l) {
|
|
|
36
36
|
if (k.change) out.push(k.change === 1 ? 'PMOS holds a change with no source' : 'PMOS holds ' + k.change + ' changes with no source');
|
|
37
37
|
if (k.ask) out.push(k.ask === 1 ? 'a sign-off or a ticket question' : k.ask + ' sign-offs or ticket questions');
|
|
38
38
|
if (k.draft) out.push(k.draft === 1 ? 'PMOS drafted it' : 'PMOS drafted them');
|
|
39
|
+
if (k.record) out.push('the records disagree');
|
|
39
40
|
return out.join(', ');
|
|
40
41
|
}
|
|
41
42
|
const underOf = (l) => (l.default && l.default.say ? l.default.say : 'No default: ' + String(l.waits || 'it waits for an answer.').replace(/^./, (c) => c.toLowerCase()));
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
<title>PMOS · Meeting buddy</title>
|
|
9
9
|
<!-- The meeting buddy (initiative meeting-buddy; Exploring 2, "Meeting buddy and one-press start", boards 1, 2 and 4). The PMOS extension frames
|
|
10
10
|
it over a Google Meet call: /premium-buddy.html?meet=<abc-defg-hij>&mtitle=<tab title>. It can also name its meeting: ?event=<id>&date=YYYY-MM-DD.
|
|
11
|
+
?float=1: the same page in a window on top of the call app (initiative meeting-float, pm/buddy-float.js): Fold, Open wide and Room view.
|
|
11
12
|
Only the PM sees it. Its links open in a new tab, so the call never navigates away. pm/cozy-buddy.js draws it. It is on the PMOS design system (design-system-meeting-pages): pm-ds, the Summary block
|
|
12
13
|
in a single column, pm-btn buttons and a pm-input ask line. -->
|
|
13
14
|
<base target="_blank" />
|
|
@@ -22,6 +23,9 @@
|
|
|
22
23
|
<body class="cz pm-ds mb-page">
|
|
23
24
|
<main class="mb" id="mb">
|
|
24
25
|
<header class="mb-h"><i class="mb-dot" id="mbDot" aria-hidden="true"></i><b>PMOS</b><span class="mb-sm" id="mbHead">Looking for the meeting</span>
|
|
26
|
+
<button type="button" class="mb-ib pm-btn mb-fl" id="mbRoom" hidden aria-pressed="false" aria-label="Room view: share this window in the call" title="Room view: share this window in the call"><svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12s4-6 9-6 9 6 9 6-4 6-9 6-9-6-9-6zM12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6"/></svg></button>
|
|
27
|
+
<button type="button" class="mb-ib pm-btn mb-fl" id="mbGrow" hidden aria-label="Open wide" title="Open wide"><svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 14v6h6M20 10V4h-6M4 20l7-7M20 4l-7 7"/></svg></button>
|
|
28
|
+
<button type="button" class="mb-ib pm-btn mb-fl" id="mbFloat" hidden aria-label="Float PMOS over the call" title="Float PMOS over the call"><svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 5h16v11H4zM12 11h6v5h-6z"/></svg></button>
|
|
25
29
|
<button type="button" class="mb-ib pm-btn" id="mbFold" aria-expanded="true" aria-label="Fold PMOS" title="Fold PMOS"><svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg></button></header>
|
|
26
30
|
<section class="mb-b" id="mbBody" aria-live="polite"></section>
|
|
27
31
|
<p class="mb-msg" id="mbMsg" role="status" hidden></p>
|
|
@@ -41,8 +41,8 @@ Procedure when the run is `check` (the morning check: tasks are late or at risk)
|
|
|
41
41
|
|
|
42
42
|
Procedure when the run is `outcome` (the check date of its expected outcome has passed, and its goal's own reading did not decide it):
|
|
43
43
|
1. Read the lines below: the expected outcome, the check date, the anchor, the record and why the reading did not decide it. Read the record, its PRD and done test if it names them, and the product's own ledgers and files the outcome is about (for example a ledger that should keep filling, a bench that should have run, a feedback ledger with or without a repeat complaint). Read the stored reads first (`pmos source show <source>`).
|
|
44
|
-
2. Decide only from what you read: `worked` when the evidence shows the expected outcome happened, `didnt-work` when it shows it did not. "Nobody complained" is not evidence it worked. When you cannot tell, file `
|
|
45
|
-
3. File once with `pmos propose verdict --json -`: `{ "disposition": "worked" | "didnt-work" | "cant-tell", "evidence": "<one line: what you found, with the number>", "claims": [{ "text": "<one fact>", "sources": [{ "label": "<what it is>", "ref": "<path:line, from the repository root>", "quote": "<the text on that line, at least 12 characters>" }] }] }`. Each quote is checked against its line; a claim that does not match is refused, and so is the verdict.
|
|
44
|
+
2. Decide only from what you read: `worked` when the evidence shows the expected outcome happened, `didnt-work` when it shows it did not. "Nobody complained" is not evidence it worked. When you cannot tell, file `cant-tell` with evidence that says what you read and what was missing (for example "Read IDPF-3113 and IDPF-3115 (both Done) and 4 docs; no number for sign-in errors after 10 Aug"). PMOS records it with Undo, and that is the right answer: it is never a guess.
|
|
45
|
+
3. File once with `pmos propose verdict --json -`: `{ "disposition": "worked" | "didnt-work" | "cant-tell", "evidence": "<one line: what you found, with the number>", "claims": [{ "text": "<one fact>", "sources": [{ "label": "<what it is>", "ref": "<path:line, from the repository root>", "quote": "<the text on that line, at least 12 characters>" }] }] }`. Each quote is checked against its line; a claim that does not match is refused, and so is the verdict. Claims are optional for `cant-tell`. When `worked` or `didnt-work` is refused because the evidence is only in a connector (not on a line in the repository), file `cant-tell` and name that evidence: do not end the run with nothing filed.
|
|
46
46
|
4. Do not record the check yourself: the server records your verdict with Undo.
|
|
47
47
|
|
|
48
48
|
Output contract: produce EXACTLY these sections in your final message:
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Outcome checks finish by themselves (initiative outcome-checks-finish, done test F1-F6): the auto apply's actor writes records, can't tell is a verdict, a silent run still ends in one, and pmos outcomes rate. No connector, model or network.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"outcome-checks-finish.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"outcome-checks-finish.test.js": 3
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Every slip against a baseline, and records that disagree (initiative slip-baseline-contradictions, done test B1-B4, C1-C5): pure checks, ledger files in a scratch folder and the drift routes in process. No connector, model or network.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"plan-truth.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"plan-truth.test.js": 5
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Tracker sync on Today (initiative tracker-sync-on-today, done test T1-T9): the ✦ row below 95% in sync with Jira, the PM's ✓ that takes Jira's value with Undo, and the route. Pure checks and a scratch repository. No connector, model or network.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"tracker-sync-take.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"tracker-sync-take.test.js": 5
|
|
8
|
+
}
|
|
9
|
+
}
|