create-pmos 0.417.0 → 0.419.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 +25 -25
- 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/board-programs-test.js +82 -1
- package/workspace/briefing-premium-board-test.js +23 -21
- package/workspace/changelog.json +24 -0
- package/workspace/guide/briefing-premium.md +2 -2
- package/workspace/guide/workflows.md +1 -0
- package/workspace/lib/board-cli.js +1 -1
- package/workspace/lib/coredoc-cli.js +2 -0
- package/workspace/lib/engine/boards.js +7 -2
- package/workspace/lib/initiative-chat.js +3 -1
- package/workspace/lib/initiative-premium.js +2 -1
- package/workspace/lib/routes-boards.js +55 -7
- package/workspace/lib/task-cli.js +27 -3
- package/workspace/lib/task-items.js +5 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/bd-acts.js +3 -2
- package/workspace/public/pm/bd-scroll.js +164 -0
- package/workspace/public/pm/bd-span.js +156 -190
- package/workspace/public/pm/bd-stages.js +3 -25
- package/workspace/public/pm/cozy-board.css +93 -72
- package/workspace/public/pm/home-app.js +2 -0
- package/workspace/public/pm/home-data.js +17 -4
- package/workspace/public/pm/home-ini-model.js +5 -1
- package/workspace/public/pm/home-ini.js +4 -2
- package/workspace/public/pm/home-list.js +3 -3
- package/workspace/public/pm/home-task.js +4 -1
- package/workspace/public/pm/ini-view-model.js +4 -2
- package/workspace/public/pm/premium-board.js +48 -37
- package/workspace/public/pm/premium-vw-item.js +5 -2
- package/workspace/public/pm/task-card.js +12 -0
- package/workspace/public/premium-board.html +3 -2
- package/workspace/server.js +3 -0
- package/workspace/task-card-test.js +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.419.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,30 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.419.0",
|
|
37
|
+
"at": "2026-10-26T03:21:59.105Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1055,
|
|
42
|
+
"t": "Eighth testing feedback batch",
|
|
43
|
+
"s": "Eighth testing feedback batch"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"v": "0.418.0",
|
|
49
|
+
"at": "2026-10-26T01:29:44.041Z",
|
|
50
|
+
"f": 2,
|
|
51
|
+
"prs": [
|
|
52
|
+
{
|
|
53
|
+
"n": 1051,
|
|
54
|
+
"t": "Seventh testing feedback batch (items 1–7)",
|
|
55
|
+
"s": "Chats PMOS ended stay on Home, the timeline's longer spans scroll like Quarter, tasks can be deleted with Undo, task rows show start and end dates, and a press on any task in the initiative page opens that task."
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
35
59
|
{
|
|
36
60
|
"v": "0.417.0",
|
|
37
61
|
"at": "2026-10-26T01:02:52.959Z",
|
|
@@ -252,30 +276,6 @@
|
|
|
252
276
|
"s": "Testing fixes from the iPhone run of create-pmos 0.399.0"
|
|
253
277
|
}
|
|
254
278
|
]
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"v": "0.399.0",
|
|
258
|
-
"at": "2026-10-23T08:35:27.575Z",
|
|
259
|
-
"f": 2,
|
|
260
|
-
"prs": [
|
|
261
|
-
{
|
|
262
|
-
"n": 1019,
|
|
263
|
-
"t": "Build the uncovered features from the canvas review",
|
|
264
|
-
"s": "Build the uncovered features from the canvas review"
|
|
265
|
-
}
|
|
266
|
-
]
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"v": "0.398.0",
|
|
270
|
-
"at": "2026-10-23T04:45:54.728Z",
|
|
271
|
-
"f": 2,
|
|
272
|
-
"prs": [
|
|
273
|
-
{
|
|
274
|
-
"n": 1012,
|
|
275
|
-
"t": "Rebuild Home, Viewer, Board and Insights to the Agreed design",
|
|
276
|
-
"s": "Rebuild Home, Viewer, Board and Insights to the Agreed design"
|
|
277
|
-
}
|
|
278
|
-
]
|
|
279
279
|
}
|
|
280
280
|
]
|
|
281
281
|
}
|
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-26T03:21:55Z"}
|
|
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-26T03:21:55Z"}
|
|
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-26T03:21:55Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -157,8 +157,20 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
157
157
|
lgd: (document.querySelector('#bdChipset .tg-lgd') || {}).textContent || '',
|
|
158
158
|
}));
|
|
159
159
|
ok('T the program row comes first, with its title and products and a thin span over its initiatives\' dates', /tg-pg/.test(t.first) && /Project Ascent/.test(t.title) && /2 products/.test(t.title) && t.span, JSON.stringify(t));
|
|
160
|
-
ok('T three milestones within a week merge into one counted diamond labelled "Pilot live +2 · Nov 18–21"', t.clu.length === 1 && /^3\|3 program milestones from Nov 18 to 21: Pilot live, Pilot users invited, Support ready/.test(t.clu[0]) && t.lab.
|
|
160
|
+
ok('T three milestones within a week merge into one counted diamond labelled "Pilot live +2 · Nov 18–21"', t.clu.length === 1 && /^3\|3 program milestones from Nov 18 to 21: Pilot live, Pilot users invited, Support ready/.test(t.clu[0]) && t.lab.includes('Pilot live +2 · Nov 18–21'), JSON.stringify(t));
|
|
161
161
|
ok('T the program\'s initiatives sit under it as one-line rows: a status dot and the name', t.kids.join() === 'Descope feature parity,Legacy IdP sunset' && t.oneLine, JSON.stringify(t));
|
|
162
|
+
const nd = await p.evaluate(async () => {
|
|
163
|
+
const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 26);
|
|
164
|
+
const a = { key: 'board:a', id: 'a', title: 'Dated one', start: '2026-10-01', end: '2026-11-20', track: { key: 'build' } };
|
|
165
|
+
const b = { key: 'board:b', id: 'b', title: 'Mobile OTP login', start: null, end: null, track: { key: 'discover' } };
|
|
166
|
+
const c = { key: 'board:c', id: 'c', title: 'Loose undated', start: null, end: null, track: { key: 'discover' } };
|
|
167
|
+
const groups = [{ kind: 'program', key: 'p', program: { id: 'p', title: 'IDPF', products: [] }, products: [{ name: 'X', rows: [b] }], rows: [b] }, { kind: 'product', key: 'x', rows: [a, c] }];
|
|
168
|
+
const T = S.timelineHtml([a, b, c], { jira: null }, 'quarter', { now, groups });
|
|
169
|
+
const d = document.createElement('div'); d.innerHTML = T.html;
|
|
170
|
+
const row = [...d.querySelectorAll('.tg-r[data-row]')].find((r) => /Mobile OTP login/.test(r.textContent));
|
|
171
|
+
return { member: !!row, nd: row ? (row.querySelector('.tg-nd') || {}).textContent : '', loose: [...d.querySelectorAll('.tg-r[data-row]')].some((r) => /Loose undated/.test(r.textContent)), none: T.none.length };
|
|
172
|
+
});
|
|
173
|
+
ok('T an undated initiative in a program keeps its row under the program and says "No dates"; an undated one outside a program is named in the foot only (batch 8 item 4)', nd.member && nd.nd === 'No dates' && !nd.loose && nd.none === 2, JSON.stringify(nd));
|
|
162
174
|
ok('T a legend in the chip row names done, planned, the program milestone, Deliver or Evaluate and today', /Done in Jira/.test(t.lgd) && /Planned/.test(t.lgd) && /Program milestone/.test(t.lgd) && /Deliver or Evaluate/.test(t.lgd) && /Today/.test(t.lgd), t.lgd);
|
|
163
175
|
await p.click('#ibBody .tg-pg .tg-pgo');
|
|
164
176
|
// the program opens in the floating Viewer (shell A), which sits over the right of the timeline; close it before the next press
|
|
@@ -169,6 +181,75 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
169
181
|
await ctx.close();
|
|
170
182
|
}
|
|
171
183
|
|
|
184
|
+
/* S the timeline scrolls sideways from Quarter on (feedback batch 7, timeline spans C: TsCOpen, TsCDesk, TsCEdges, TsCGrill, TsCPhone) */
|
|
185
|
+
{
|
|
186
|
+
const { ctx, page: p, errors } = await open({ view: 'time', store: { 'pmos.board.span': 'quarter' } });
|
|
187
|
+
const geo = () => p.evaluate(() => { const el = document.querySelector('#ibBody .tg-s'), sc = el.querySelector('.tg-sc'), nw = el.querySelector('.tg-h > .tg-n').getBoundingClientRect().width, vw = sc.clientWidth - nw, tw = sc.scrollWidth - nw;
|
|
188
|
+
const xOf = (ms) => ((ms - +el.dataset.from) / (+el.dataset.to - +el.dataset.from)) * tw, tx = xOf(+el.dataset.now);
|
|
189
|
+
const mid = +el.dataset.from + ((sc.scrollLeft + vw / 2) / tw) * (+el.dataset.to - +el.dataset.from);
|
|
190
|
+
const vis = (b) => !b.hidden && getComputedStyle(b).display !== 'none';
|
|
191
|
+
return { span: el.dataset.span, l: sc.scrollLeft, vw, tw, at: (tx - sc.scrollLeft) / vw, mid, back: [...el.querySelectorAll('.tg-tback')].filter(vis).map((b) => b.className), pill: !!el.querySelector('.tg-tpill'),
|
|
192
|
+
tabs: [...el.querySelectorAll('.tg-edge')].filter(vis).map((b) => b.dataset.edge + ':' + b.textContent.trim()), out: el.querySelectorAll('.tg-out').length, first: (el.querySelector('.tg-h .tg-p > span.pin') || {}).textContent || '', label: sc.getAttribute('aria-label') }; });
|
|
193
|
+
const DAY = 86400000;
|
|
194
|
+
let g = await geo();
|
|
195
|
+
ok('S Quarter opens with today a quarter of the way in, wider than the screen, the ends shaded, Today on its line', g.tw > g.vw * 1.5 && Math.abs(g.at - 0.25) < 0.03 && g.pill && !g.back.length && g.out > 0, JSON.stringify(g));
|
|
196
|
+
ok('S the first column on screen carries the year, and the scroller names its range', /2026/.test(g.first) && /^Timeline, Oct 2026 to (Nov|Dec) 2026/.test(g.label), JSON.stringify(g));
|
|
197
|
+
ok('S the next program milestone past the view waits on the right edge in the program colour', g.tabs.some((x) => /^m:Legacy IdP off · Feb ’27$/.test(x)), JSON.stringify(g.tabs));
|
|
198
|
+
await p.focus('#ibBody .tg-sc'); const l0 = g.l; await p.keyboard.press('ArrowRight'); await p.waitForTimeout(700);
|
|
199
|
+
g = await geo();
|
|
200
|
+
ok('S → moves half a screen', Math.abs(g.l - l0 - g.vw / 2) < 6, JSON.stringify({ l0, l: g.l, vw: g.vw }));
|
|
201
|
+
await p.evaluate(() => { const sc = document.querySelector('#ibBody .tg-sc'); sc.scrollLeft = sc.scrollWidth; }); await p.waitForTimeout(200);
|
|
202
|
+
g = await geo();
|
|
203
|
+
ok('S scrolled to the end: Today waits beside "Initiative" pointing back, unfinished work behind leaves its due date at the left edge', g.back.length === 1 && /\bl\b/.test(g.back[0]) && g.tabs.includes('l:Nov ’26'), JSON.stringify(g));
|
|
204
|
+
// from a place in the middle of the range (at the far end the next span's track can be shorter and stops short)
|
|
205
|
+
await p.evaluate(() => { const sc = document.querySelector('#ibBody .tg-sc'); sc.scrollLeft = (sc.scrollWidth - sc.clientWidth) / 2; }); await p.waitForTimeout(200);
|
|
206
|
+
const mid = (await geo()).mid;
|
|
207
|
+
await p.click('#bdSpans [data-sp="half"]'); await p.waitForTimeout(250);
|
|
208
|
+
g = await geo();
|
|
209
|
+
ok('S switching span keeps the date in the middle in the middle', g.span === 'half' && Math.abs(g.mid - mid) < 3 * DAY, JSON.stringify({ mid: new Date(mid), now: new Date(g.mid) }));
|
|
210
|
+
// the Monitor and Evaluate rows (batch 8 item 2) widen the range, so the middle can hold today: scroll back to the end, away from today
|
|
211
|
+
await p.evaluate(() => { const sc = document.querySelector('#ibBody .tg-sc'); sc.scrollLeft = sc.scrollWidth; }); await p.waitForTimeout(300);
|
|
212
|
+
await p.click('#ibBody .tg-tback'); await p.waitForTimeout(800);
|
|
213
|
+
g = await geo();
|
|
214
|
+
ok('S the Today button scrolls back to today, a quarter of the way in, and hides', Math.abs(g.at - 0.25) < 0.03 && !g.back.length, JSON.stringify(g));
|
|
215
|
+
await p.click('#bdSpans [data-sp="y2"]'); await p.waitForTimeout(250);
|
|
216
|
+
g = await geo();
|
|
217
|
+
ok('S with today in view, a span switch keeps today in its place', g.span === 'y2' && (g.l === 0 || Math.abs(g.at - 0.25) < 0.03), JSON.stringify(g));
|
|
218
|
+
const lab2 = await p.evaluate(() => [...document.querySelectorAll('#ibBody .tg-endl, #ibBody .tg-pdl')].map((e) => e.textContent));
|
|
219
|
+
ok('S 2 yr names dates by month and year ("Nov ’26")', lab2.some((x) => /Nov ’26/.test(x)) && !lab2.some((x) => /\b[A-Z][a-z]{2} \d{1,2}\b/.test(x)), JSON.stringify(lab2));
|
|
220
|
+
await p.click('#bdSpans [data-sp="sprint"]'); await p.waitForTimeout(200);
|
|
221
|
+
await p.evaluate(() => { const sc = document.querySelector('#ibBody .tg-sc'); if (sc) sc.scrollLeft = 0; });
|
|
222
|
+
await p.click('#bdSpans [data-sp="quarter"]'); await p.waitForTimeout(250);
|
|
223
|
+
g = await geo();
|
|
224
|
+
ok('S Sprint does not scroll, and going from Sprint to Quarter opens at today', !(await p.evaluate(() => !!document.querySelector('.sp .tg-sc'))) && Math.abs(g.at - 0.25) < 0.03, JSON.stringify(g));
|
|
225
|
+
// a drag on empty track scrolls; a press on a bar still opens the initiative
|
|
226
|
+
const box = await p.evaluate(() => { const el = document.querySelector('#ibBody .tg-s'), r = el.querySelector('.tg-sc').getBoundingClientRect(), nw = el.querySelector('.tg-h > .tg-n').getBoundingClientRect().width, y = el.querySelector('.tg-pg .tg-p').getBoundingClientRect().top; return { x: r.left + nw + 40, y: y + 6 }; });
|
|
227
|
+
const l1 = (await geo()).l;
|
|
228
|
+
await p.mouse.move(box.x + 300, box.y); await p.mouse.down(); await p.mouse.move(box.x + 200, box.y, { steps: 4 }); await p.mouse.move(box.x + 100, box.y, { steps: 4 }); await p.mouse.up();
|
|
229
|
+
g = await geo();
|
|
230
|
+
ok('S a drag on empty track scrolls the timeline', Math.abs(g.l - l1 - 200) < 12, JSON.stringify({ l1, l: g.l }));
|
|
231
|
+
// Find scrolls an off-screen bar into view and tints its row (TsCEdges 4)
|
|
232
|
+
await p.evaluate(() => { document.querySelector('#ibBody .tg-sc').scrollLeft = 0; }); await p.waitForTimeout(150);
|
|
233
|
+
await p.click('#bdFind'); await p.fill('#bdQ', 'Legacy'); await p.keyboard.press('Enter'); await p.waitForTimeout(700);
|
|
234
|
+
const f = await p.evaluate(() => { const row = [...document.querySelectorAll('#ibBody .tg-r[data-row]')].find((r) => /Legacy IdP sunset/.test(r.textContent)); const sc = document.querySelector('#ibBody .tg-sc'), b = row.querySelector('.tg-bar').getBoundingClientRect(), s = sc.getBoundingClientRect(); return { tint: row.classList.contains('tint'), inView: b.right > s.left + 250 && b.left < s.right }; });
|
|
235
|
+
ok('S Find scrolls the bar into view and tints its row for a moment', f.tint && f.inView, JSON.stringify(f));
|
|
236
|
+
ok('S the scroll threw nothing', !errors.length, errors.join('\n'));
|
|
237
|
+
await ctx.close();
|
|
238
|
+
}
|
|
239
|
+
{
|
|
240
|
+
// the phone (TsCPhone, TsCPhoneSpan): the timeline is a view; the span buttons become one picker beside the product picker
|
|
241
|
+
const { ctx, page: p, errors } = await open({ view: 'time', w: 390, h: 844, store: { 'pmos.board.pview': 'time', 'pmos.board.span': 'quarter' } });
|
|
242
|
+
const ph = await p.evaluate(() => ({ spans: !document.querySelector('#bdSpans').hidden, pick: (document.querySelector('#bdSpanBtn') || {}).textContent || '', rows: [...document.querySelectorAll('#ibBody .tgq-r .tgq-n b')].map((b) => b.textContent), names: document.querySelectorAll('#ibBody .tgq-r[data-row] .tgq-n').length }));
|
|
243
|
+
ok('S phone: one span picker beside the product, no span row; each row carries its name above its bar, Monitor and Evaluate rows too (batch 8 item 2)', !ph.spans && ph.pick === 'Quarter' && ph.names === 3 && ph.rows.includes('Legacy IdP sunset') && ph.rows.includes('Inline login for eShop checkout'), JSON.stringify(ph));
|
|
244
|
+
await p.click('#bdSpanBtn'); await p.click('#bdSpanMenu [data-spick="year"]'); await p.waitForTimeout(200);
|
|
245
|
+
ok('S phone: the picker changes the span', await p.evaluate(() => document.querySelector('#ibBody .tg-s').dataset.span === 'year' && document.querySelector('#bdSpanBtn').textContent === 'Year' && localStorage.getItem('pmos.board.span') === 'year'));
|
|
246
|
+
await p.evaluate(() => { const sc = document.querySelector('#ibBody .tg-sc'); sc.scrollLeft = sc.scrollWidth; }); await p.waitForTimeout(200);
|
|
247
|
+
const pb = await p.evaluate(() => ({ back: [...document.querySelectorAll('#ibBody .tg-tback')].filter((b) => !b.hidden).map((b) => b.className), tabs: [...document.querySelectorAll('#ibBody .tg-edge')].filter((b) => !b.hidden).length }));
|
|
248
|
+
ok('S phone: swiped ahead, Today docks at the axis edge; only late work leaves an edge tab', pb.back.length === 1 && pb.tabs === 0, JSON.stringify(pb));
|
|
249
|
+
ok('S phone threw nothing', !errors.length, errors.join('\n'));
|
|
250
|
+
await ctx.close();
|
|
251
|
+
}
|
|
252
|
+
|
|
172
253
|
/* L List (PgList) */
|
|
173
254
|
{
|
|
174
255
|
const { ctx, page: p } = await open({ view: 'list' });
|
|
@@ -320,14 +320,13 @@ const IVREAD = () => {
|
|
|
320
320
|
await R.ctx.close();
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
/* B6 (premium-agreed-design B2) the timeline: plan against the Jira forecast;
|
|
323
|
+
/* B6 (premium-agreed-design B2) the timeline: plan against the Jira forecast; every span from Quarter on draws the same rows (feedback batch 7,
|
|
324
|
+
* timeline spans C: TsAllSpans); the scroll itself is checked in board-programs-test.js (T) */
|
|
324
325
|
await view(p, 'time');
|
|
325
|
-
const tl = await p.evaluate(() => ({ spans: [...document.querySelectorAll('#bdSpans button')].map((b) => b.textContent + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')).join(), shown: !document.querySelector('#bdSpans').hidden, rows: [...document.querySelectorAll('#ibBody .tg-r .tg-n.ini2 b')].map((b) => b.textContent), bars: document.querySelectorAll('#ibBody .tg-bar').length, none: (document.querySelector('.tg-none') || {}).textContent || '', ask: (document.querySelector('#askDates') || {}).href || '', hid: (document.querySelector('.tg-hid') || {}).textContent || '', lgd: (document.querySelector('.tg-lgd') || {}).textContent || '', today:
|
|
326
|
-
ok('B6 the timeline has six spans and starts on Quarter, one row per initiative with dates; the others are named, with an ask to propose dates', tl.shown && tl.spans === 'Sprint,Quarter*,Half,Year,2 yr,5 yr' && tl.rows.length === 3 && tl.bars === 3 && /^
|
|
327
|
-
ok('B6 Monitor and Evaluate
|
|
328
|
-
await p.
|
|
329
|
-
ok('B6 the timeline\'s first head opens "The longer the span, the higher the grouping", with the spans and the example themes', await until(() => p.evaluate(() => !document.querySelector('#popRules').hidden && /The longer the span, the higher the grouping/.test(document.querySelector('#popRules').textContent) && document.querySelectorAll('#popRules .bd-tbl4 .bd-tr').length === 5 && document.querySelectorAll('#popRules .bd-tbl3 .bd-tr').length === 5)));
|
|
330
|
-
await p.keyboard.press('Escape');
|
|
326
|
+
const tl = await p.evaluate(() => ({ spans: [...document.querySelectorAll('#bdSpans button')].map((b) => b.textContent + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')).join(), shown: !document.querySelector('#bdSpans').hidden, rows: [...document.querySelectorAll('#ibBody .tg-r .tg-n.ini2 b')].map((b) => b.textContent), bars: document.querySelectorAll('#ibBody .tg-bar').length, none: (document.querySelector('.tg-none') || {}).textContent || '', ask: (document.querySelector('#askDates') || {}).href || '', hid: (document.querySelector('.tg-hid') || {}).textContent || '', lgd: (document.querySelector('.tg-lgd') || {}).textContent || '', today: (document.querySelector('#ibBody .tg-tpill') || {}).textContent === 'Today' }));
|
|
327
|
+
ok('B6 the timeline has six spans and starts on Quarter, one row per initiative with dates; the others are named, with an ask to propose dates', tl.shown && tl.spans === 'Sprint,Quarter*,Half,Year,2 yr,5 yr' && tl.rows.length === 3 && tl.bars === 3 && /^4 have no dates: Usage-based billing, Audit log export, Refund reason codes, Docs search/.test(tl.none) && /\/premium\.html\?ask=board%3Aw1&q=Propose/.test(tl.ask), JSON.stringify(tl));
|
|
328
|
+
ok('B6 Monitor and Evaluate show on the Quarter, with no hidden count in the footer (batch 8 item 2); the legend (PgTimeline: done, planned, the Jira forecast, Deliver or Evaluate, today) and Today are drawn', tl.hid === '' && /Done in Jira/.test(tl.lgd) && /Planned/.test(tl.lgd) && /Jira forecast/.test(tl.lgd) && /Deliver or Evaluate/.test(tl.lgd) && /Today/.test(tl.lgd) && tl.today, JSON.stringify(tl));
|
|
329
|
+
ok('B6 the spans help popover went with the theme grouping (TsCGrill): the first head is a plain "Initiative"', await p.evaluate(() => !document.querySelector('#popRules') && !document.querySelector('#ibBody [data-rules]') && /^Initiative/.test(document.querySelector('#ibBody .tg-h .tg-n').textContent)));
|
|
331
330
|
await p.click('#ibBody .tg-n[data-key="board:partner-rate-limits"]');
|
|
332
331
|
/* re-pointed (the one view, item 3): the timeline opens the same initiative in the Viewer as every other view. The stage card names the step
|
|
333
332
|
* over the eight; the old Plan card is the dates line (start, plan end, days left; no Jira date without a Jira forecast); the progress says
|
|
@@ -344,15 +343,14 @@ const IVREAD = () => {
|
|
|
344
343
|
ok('B6 Escape closes the menu first and leaves the Viewer open', await p.evaluate(() => document.querySelector('#bdPop').hidden) && await vwOn(p, 'Initiative'));
|
|
345
344
|
await p.keyboard.press('Escape'); await vwShut(p);
|
|
346
345
|
await spanTo(p, 'year');
|
|
347
|
-
const yr = await p.evaluate(() => ({
|
|
348
|
-
ok('B6 Year
|
|
349
|
-
await p.click('#ibBody [data-span-go="quarter"]');
|
|
350
|
-
ok('B6 "Switch to Quarter" goes back to one row per initiative', await p.evaluate(() => document.querySelector('#bdSpans [aria-pressed="true"]').dataset.sp === 'quarter' && document.querySelectorAll('#ibBody .tg-n.ini2').length === 3));
|
|
346
|
+
const yr = await p.evaluate(() => ({ rows: [...document.querySelectorAll('#ibBody .tg-q[data-span="year"] .tg-n.ini2 b')].map((b) => b.textContent), bars: document.querySelectorAll('#ibBody .tg-bar').length, themes: document.querySelectorAll('#ibBody .tg-th, #ibBody .tg-tn, #ibBody .tg-phase').length, group: !!document.querySelector('#chGroup'), lgd: !!document.querySelector('#bdChipset .tg-lgd'), jira: !!document.querySelector('#chJira'), heads: [...document.querySelectorAll('#ibBody .tg-h .tg-p > span[data-y] b')].map((b) => b.textContent) }));
|
|
347
|
+
ok('B6 Year draws Quarter\'s rows (TsAllSpans): one row per initiative with its bar, months as columns; no themes, no Group chip; the chips and the legend stay', yr.rows.join() === tl.rows.join() && yr.bars === 3 && !yr.themes && !yr.group && yr.lgd && yr.jira && yr.heads.length >= 12 && yr.heads.every((h) => /^[A-Z][a-z]{2}$/.test(h)), JSON.stringify(yr));
|
|
351
348
|
await spanTo(p, 'y5');
|
|
352
|
-
|
|
349
|
+
const y5 = await p.evaluate(() => ({ rows: document.querySelectorAll('#ibBody .tg-q[data-span="y5"] .tg-n.ini2').length, heads: [...document.querySelectorAll('#ibBody .tg-h .tg-p > span[data-y] b')].map((b) => b.textContent), dates: [...document.querySelectorAll('#ibBody .tg-endl, #ibBody .tg-lab')].map((e) => e.textContent) }));
|
|
350
|
+
ok('B6 5 yr draws the same rows with years as columns, and a date reads "Nov ’26"', y5.rows === 3 && y5.heads.length >= 5 && y5.heads.every((h) => /^\d{4}$/.test(h)) && y5.dates.some((d) => /^[A-Z][a-z]{2} ’\d\d$/.test(d)) && !y5.dates.some((d) => /\b[A-Z][a-z]{2} \d{1,2}\b/.test(d)), JSON.stringify(y5));
|
|
353
351
|
const sp = [];
|
|
354
|
-
for (const [k, sel, re] of [['sprint', '.sp[data-span="sprint"]', /Initiative and ticket.*Backlog · \d+ not in/], ['half', '.tg-
|
|
355
|
-
ok('B6 Sprint (BdSpans: tickets and the backlog row), Half
|
|
352
|
+
for (const [k, sel, re] of [['sprint', '.sp[data-span="sprint"]', /Initiative and ticket.*Backlog · \d+ not in/], ['half', '.tg-q[data-span="half"]', /Self-serve onboarding v2/], ['y2', '.tg-q[data-span="y2"]', /Self-serve onboarding v2/]]) { await spanTo(p, k); sp.push(await p.evaluate(([q2, r]) => { const e = document.querySelector('#ibBody ' + q2); return !!e && !document.querySelector('#ibBody .bd-wtag') && new RegExp(r).test(e.textContent); }, [sel, re.source])); }
|
|
353
|
+
ok('B6 Sprint (BdSpans: tickets and the backlog row), Half and 2 yr (Quarter\'s rows) are drawn, with no "Waiting for design" tag', sp.every(Boolean), JSON.stringify(sp));
|
|
356
354
|
await spanTo(p, 'quarter');
|
|
357
355
|
{
|
|
358
356
|
const f = F.facts(); f.rows = f.rows.map((r) => ({ ...r, start: null, end: null }));
|
|
@@ -421,7 +419,7 @@ const IVREAD = () => {
|
|
|
421
419
|
ok(`B13 at 390 px (${theme}) the page has no sideways scroll, the top bar is one line with "Board", the menu sits bottom right, and every control is 44 px`, !m.over && m.small.length === 0 && m.fabRight < 40 && m.top <= 56 && m.title !== 'none', JSON.stringify(m));
|
|
422
420
|
ok(`B13 at 390 px (${theme}) the chips lead with This sprint, then the Jira read time and the new asks, and end with the documents`, m.chips[0] === 'Sprint 24 only' && /^Jira \d+ days$/.test(m.chips[1]) && m.chips[2] === '1 new ask' && m.chips[m.chips.length - 1] === 'Docs 6', JSON.stringify(m.chips));
|
|
423
421
|
const pl = await q.evaluate(() => ({ groups: [...document.querySelectorAll('#ibBody .bd-ghd')].map((g) => g.textContent.replace(/\s+/g, ' ').trim()), seg: [...document.querySelectorAll('#ibBody [data-pv]')].map((b) => b.textContent + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')).join(), note: /Timeline needs a wider screen/.test(document.querySelector('#ibBody').textContent), small: [...document.querySelectorAll('#ibBody [data-pv], #ibBody .bd-lrow')].filter((b) => b.getBoundingClientRect().height < 44).length }));
|
|
424
|
-
ok(`B13 at 390 px (${theme}) the phone opens on the List, grouped your turn first, with List, By stage
|
|
422
|
+
ok(`B13 at 390 px (${theme}) the phone opens on the List, grouped your turn first, with List, By stage, Track and Timeline (BdPhone, TsCPhone)`, pl.groups.join('|') === 'At risk or late4|On track3' && pl.seg === 'List*,By stage,Track,Timeline' && !pl.note && pl.small === 0, JSON.stringify(pl));
|
|
425
423
|
await q.click('#bdView'); const s2 = await q.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1 && document.querySelectorAll('#ibBody .bd-scols.ph .bd-scol').length + (((document.querySelector('#ibBody .bd-sempty') || {}).textContent || '').replace(/^Nothing on screen in /, '').match(/[A-Z][a-z]+/g) || []).length === 8);
|
|
426
424
|
ok(`B13 at 390 px (${theme}) the one view button switches to By stage, every step a column down the page (the empty steps named on one line), with no sideways scroll`, s2);
|
|
427
425
|
await q.click('#bdView'); await q.locator('#ibBody .bt-l[data-row="board:sso-partners"] .bt-nm').click();
|
|
@@ -463,13 +461,17 @@ const IVREAD = () => {
|
|
|
463
461
|
await q.click('.bt-l[data-row="board:sso-partners"] .bt-nm'); await until(() => vwOn(q, 'Initiative')); await q.click('#czViewer [data-iv-ticket="SSO-12"]');
|
|
464
462
|
ok('T the ticket counts its subtasks from the Jira reading (the Subtasks fold: "1 of 3 done")', await until(() => q.evaluate(() => { const x = document.querySelector('#czViewer [data-czs-id="sub"]'); if (!x) return false; const t = x.textContent.replace(/\s+/g, ' '); return (x.querySelector('.czs-n') || {}).textContent === '1 of 3 done' && (x.querySelector('.czs-body') ? /1 done, 2 open/.test(t) : true) && !document.querySelector('#czViewer .seg5'); })));
|
|
465
463
|
await q.keyboard.press('Escape'); await vwShut(q);
|
|
466
|
-
/* the long spans: themes
|
|
464
|
+
/* the long spans draw Quarter's rows (timeline spans C): the trail's themes group nothing there any more, and there is no Group control */
|
|
467
465
|
await view(q, 'time'); await spanTo(q, 'year');
|
|
468
|
-
const y1 = await q.evaluate(() => ({
|
|
469
|
-
ok('T
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
await q.click('#
|
|
466
|
+
const y1 = await q.evaluate(() => ({ rows: document.querySelectorAll('#ibBody .tg-q[data-span="year"] .tg-n.ini2').length, themes: document.querySelectorAll('#ibBody .tg-tn, #ibBody .tg-sw').length, group: !!document.querySelector('#chGroup') }));
|
|
467
|
+
ok('T with the trail read, Year still draws one row per initiative: no theme groups and no Group control', y1.rows > 0 && !y1.themes && !y1.group, JSON.stringify(y1));
|
|
468
|
+
// TsSprintFilter: the sprint filter (the "Sprint N only" chip and Filter's Sprint group) shows on the Sprint span only; the stage track keeps its chip
|
|
469
|
+
const sfY = await q.evaluate(() => !document.querySelector('#bdChipset [data-f="sprint"]'));
|
|
470
|
+
await q.click('#bdFilter'); const fgY = await q.evaluate(() => [...document.querySelectorAll('#bdPop .bd-mlbl')].map((e) => e.textContent)); await q.keyboard.press('Escape');
|
|
471
|
+
await spanTo(q, 'sprint');
|
|
472
|
+
const sfS = await q.evaluate(() => !!document.querySelector('#bdChipset [data-f="sprint"]'));
|
|
473
|
+
await q.click('#bdFilter'); const fgS = await q.evaluate(() => [...document.querySelectorAll('#bdPop .bd-mlbl')].map((e) => e.textContent)); await q.keyboard.press('Escape');
|
|
474
|
+
ok('T the sprint filter shows on the Sprint span only: no chip and no Sprint group in Filter on Year, both on Sprint', sfY && !fgY.includes('Sprint') && sfS && fgS.includes('Sprint'), JSON.stringify({ sfY, fgY, sfS, fgS }));
|
|
473
475
|
await spanTo(q, 'quarter');
|
|
474
476
|
ok('T the Quarter marks a release sign-off and a dependency on the bars', await q.evaluate(() => /v2\.4 sign-off/.test(document.querySelector('#ibBody').textContent) && /after SSO for partners/.test(document.querySelector('#ibBody').textContent)));
|
|
475
477
|
await view(q, 'track');
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.419.0",
|
|
4
|
+
"at": "2026-10-26T03:21:59.105Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1055,
|
|
9
|
+
"t": "Eighth testing feedback batch",
|
|
10
|
+
"s": "Eighth testing feedback batch"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"v": "0.418.0",
|
|
16
|
+
"at": "2026-10-26T01:29:44.041Z",
|
|
17
|
+
"f": 2,
|
|
18
|
+
"prs": [
|
|
19
|
+
{
|
|
20
|
+
"n": 1051,
|
|
21
|
+
"t": "Seventh testing feedback batch (items 1–7)",
|
|
22
|
+
"s": "Chats PMOS ended stay on Home, the timeline's longer spans scroll like Quarter, tasks can be deleted with Undo, task rows show start and end dates, and a press on any task in the initiative page opens that task."
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
2
26
|
{
|
|
3
27
|
"v": "0.417.0",
|
|
4
28
|
"at": "2026-10-26T01:02:52.959Z",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "The premium Briefing (/premium.html)"
|
|
4
4
|
description: "The Briefing page at /premium.html: the hero sentence, What you need to do, Today, the dock, and what each one reads from the repository."
|
|
5
|
-
timestamp: 2026-10-
|
|
5
|
+
timestamp: 2026-10-26
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# The premium Briefing
|
|
@@ -324,7 +324,7 @@ Board is the fourth place on the rail, after Chat, at `/premium-board.html`. It
|
|
|
324
324
|
- **The view chip** in the Initiatives head says which view is shown (List, By stage or Timeline); press it to pick another.
|
|
325
325
|
- **List** shows the late and at-risk initiatives first, then the board's now view, up to 100 loaded and 25 on screen at a time. A row shows the owner and lane, a status chip when it is not on track, how far through the workflow it is (and "derived" when the workflow engine placed it), a progress bar only when a record holds progress, and the planned finish only when an end date was set ("Not planned" otherwise). "Do this first" appears only when the first row is late.
|
|
326
326
|
- **By stage** has one column for each stage of the board's workflow with the board's own count and its first five initiatives.
|
|
327
|
-
- **List** and **Timeline** show ten tasks a page with Previous and Next; **By stage** shows six cards a column with Show more. **Timeline** draws a bar for each initiative that has
|
|
327
|
+
- **List** and **Timeline** show ten tasks a page with Previous and Next; **By stage** shows six cards a column with Show more. **Timeline** draws a bar for each initiative that has dates, with the days left or over, and counts the rest. A bar runs from the earliest start to the latest due date of the initiative's breakdown items and its tasks. Every stage shows, Monitor and Evaluate too. Under a program, every initiative of the program has a row; one with no dates says **No dates** beside today. With no dates on record it says so and draws nothing.
|
|
328
328
|
- **Sprint** appears when an agent session has read Jira for the board. Otherwise it says there is none. Press it to open the sprint's facts, with the sprint as a board in a second tab: **To do**, **In progress** and **Done** columns from the last Jira read, with the dates, the days left and the points. The sprint goal is the one the Jira status check writes from the sprint's tickets, as on the console's Sprints tab, with its summary; Jira's own goal shows under it only as a reference (**In Jira: "…"**). Until the check has written one, the tab says **No goal yet**. The active and next sprints are buttons at the top. The closed sprints are behind **Past sprints**, which is shut until you press it. Press any card to open its ticket in another tab. A ticket that is on no initiative of this board shows what the sprint read holds (title, status, points and its Jira link). The board is read only: Jira owns each ticket's status and sprint, so you move tickets in Jira. Tickets with no sprint are not in this read. **Coming up** shows the next release, from the releases ledger.
|
|
329
329
|
- **Open the backlog** is in the Sprint dialog and on its sprint tab. It opens the board's Jira backlog in a tab beside the dialog: the open sprints (active, then next) and then **Backlog**, the tickets in no sprint and not done. A row shows the key, title, status, points and initiative, and why a blocked ticket is blocked. **All**, **Blocked** and **Bugs** filter it (Bugs appears only when the Jira read holds the issue type). A row opens its ticket. The list holds only the tickets the board's initiatives pushed to Jira or hold under their epics, in key order: the Jira read has no rank, assignee or capacity. You move and rank tickets in Jira. With no Jira read, the tab says so.
|
|
330
330
|
- **Next release** shows the next release that carries an initiative of this board, the one planned after it, and the three latest past releases (**Released** when accepted, else **Past**). It reads the release records (`releases/releases.jsonl`, written from the console's Releases view); Jira fix versions alone do not make a release. With no release planned it says so and still lists the past ones. With none at all it says "No release is on record for this board, past or planned."
|
|
@@ -72,5 +72,6 @@ An agent adds and closes tasks when you ask, so you do not have to find the task
|
|
|
72
72
|
- `pmos task list <initiative>` lists the initiative's open tasks (To do and In progress) with their ids. `--all` adds the Done, Won't do and Archived tasks.
|
|
73
73
|
- `pmos task state <task> [<task> …] --to <state>` sets the state of one or more tasks: To do, In progress, Done, Won't do or Archived. `--why` adds the reason, and for Done it is the evidence you read. Each change writes the same line as the page's press, under the agent's name. Won't do on a breakdown item withdraws it, and it cannot come back.
|
|
74
74
|
- `pmos task set <task> [<task> …] --stage <stage>` puts one or more tasks under a stage of the initiative's workflow, by the stage's key or name. `--stage none` takes them out of every stage. The Tasks section groups the tasks by these stages. A task's stage is its place in the plan: it does not change the task's state, and it does not move the initiative. `set` also takes `--due`, `--start`, `--owner` and `--notes`; `--due none` and `--start none` clear a day.
|
|
75
|
+
- `pmos task remove <task> [<task> …]` deletes a task that was added by mistake, such as a placeholder or a duplicate. The task goes from every list, and the Undo on the page brings it back. For work that stopped, use Archived or Won't do instead. A breakdown item cannot be deleted: set it to Won't do.
|
|
75
76
|
|
|
76
77
|
When an initiative reaches a stage, each entry of that stage's To finish list becomes one task, once. Closing that task, on the stage card, in the Tasks section or with `pmos task state`, marks the entry done on the stage card.
|
|
@@ -25,7 +25,7 @@ const USAGE = [
|
|
|
25
25
|
' pmos board --mine your own items',
|
|
26
26
|
' pmos board --init <initiative> one initiative',
|
|
27
27
|
' pmos board --json the answer of GET /api/board, for scripts',
|
|
28
|
-
'Done shows the last 14 days.
|
|
28
|
+
'Done shows the last 14 days. Breakdown items only: tasks are in `pmos task list <initiative>`, and they also set the initiative\'s bar on the Board timeline.',
|
|
29
29
|
];
|
|
30
30
|
const BOOL = new Set(['json', 'mine', 'help']);
|
|
31
31
|
const VALUE = new Set(['init', 'root']);
|
|
@@ -23,6 +23,8 @@ const USAGE = [
|
|
|
23
23
|
' pmos coredoc write --scope <portfolio|board:<id>|initiative:<id>> --key <key> --file <path|->',
|
|
24
24
|
' Write ONE draft of a core document (the markdown from the file, or standard input with -). It waits for the PM, who issues it.',
|
|
25
25
|
' Keys: ' + CD.LEVELS.map((l) => `${l}: ${CD.SETS[l].filter(CD.storable).map((x) => x.key).join(', ')}`).join(' · '),
|
|
26
|
+
' A workflow stage\'s document (the stage cards on the initiative page) is initiative key wf-<stage key>, for example wf-technical-poc; `pmos workflow of <initiative>` lists the stage keys.',
|
|
27
|
+
' Only this command fills a card. A file written elsewhere in the repository (planning/prd/…) is not linked to any card.',
|
|
26
28
|
' every command: [--json] [--root <dir>]. Nothing is sent.',
|
|
27
29
|
];
|
|
28
30
|
const BOOL = new Set(['json', 'help']);
|
|
@@ -161,7 +161,7 @@ function foundOf(f) {
|
|
|
161
161
|
const sources = Array.isArray(f.sources) ? f.sources.filter((x) => x && typeof x.ref === 'string').slice(0, 8).map((x) => ({ label: String(x.label || ''), ref: x.ref })) : [];
|
|
162
162
|
return { why: typeof f.why === 'string' ? f.why : '', sources, match: typeof f.match === 'string' && f.match ? f.match : null, scan: typeof f.scan === 'string' ? f.scan : null, run: typeof f.run === 'string' ? f.run : null };
|
|
163
163
|
}
|
|
164
|
-
const KINDS = new Set(['board', 'workflow', 'move', 'assign', 'ask', 'ask-accept', 'ask-decline', 'ask-more', 'ini-workflow', 'task', 'task-update', 'task-remove', 'ticket-note', 'ini-epics', 'ini-archive', 'ini-notdup', 'ini-wf', 'ini-end', 'stage-judge', 'ini-auto', 'task-section']);
|
|
164
|
+
const KINDS = new Set(['board', 'workflow', 'move', 'assign', 'ask', 'ask-accept', 'ask-decline', 'ask-more', 'ini-workflow', 'task', 'task-update', 'task-remove', 'task-restore', 'ticket-note', 'ini-epics', 'ini-archive', 'ini-notdup', 'ini-wf', 'ini-end', 'stage-judge', 'ini-auto', 'task-section']);
|
|
165
165
|
// A task's state is its only stage (Wawan, 2026-10-25): the same five every workflow ends in. An old 'In review' reads as In progress (taskState).
|
|
166
166
|
const TASK_STATES = Object.freeze(['To do', 'In progress', 'Done', "Won't do", 'Archived']);
|
|
167
167
|
const taskState = (s) => (s === 'In review' ? 'In progress' : TASK_STATES.includes(s) ? s : null);
|
|
@@ -191,6 +191,7 @@ function fold(events) {
|
|
|
191
191
|
const iniWorkflows = new Map(); // key(board, id) → { template, stages } (the initiative's own workflow)
|
|
192
192
|
const tasks = new Map(); // task id → { id, board, initiative, title, epic, owner, state, start, due, at, by, history }
|
|
193
193
|
const sections = new Map(); // task id → the stage key its breakdown section is ('' = Not in a stage); the last task-section line wins
|
|
194
|
+
const removed = new Map(); // task id → the task a task-remove took out, so a task-restore (Delete's Undo) puts it back
|
|
194
195
|
const ticketNotes = new Map(); // key(board, Jira key) → the PM's notes on that ticket (the last ticket-note line wins)
|
|
195
196
|
const epics = new Map(); // initiative id → the Jira epic keys the PM linked to it (the last ini-epics line wins)
|
|
196
197
|
const archives = new Map(); // initiative id → { at, by, reason, into, moved } while archived (an `archived: false` line restores it)
|
|
@@ -277,7 +278,11 @@ function fold(events) {
|
|
|
277
278
|
} else if (e.kind === 'ticket-note' && b && typeof e.ref === 'string' && typeof e.notes === 'string') {
|
|
278
279
|
if (e.notes) ticketNotes.set(key(b, e.ref), e.notes); else ticketNotes.delete(key(b, e.ref));
|
|
279
280
|
} else if (e.kind === 'task-remove' && typeof e.task === 'string' && tasks.has(e.task)) {
|
|
280
|
-
|
|
281
|
+
removed.set(e.task, tasks.get(e.task));
|
|
282
|
+
tasks.delete(e.task); // the Undo of a task just added (routes-boards.js tasks/undo-add), or the PM's Delete (tasks/delete, pmos task remove)
|
|
283
|
+
} else if (e.kind === 'task-restore' && typeof e.task === 'string' && removed.has(e.task) && !tasks.has(e.task)) {
|
|
284
|
+
tasks.set(e.task, removed.get(e.task)); // Delete's Undo (batch 7 item 5)
|
|
285
|
+
removed.delete(e.task);
|
|
281
286
|
} else if (e.kind === 'ini-epics' && typeof e.id === 'string' && Array.isArray(e.epics)) {
|
|
282
287
|
epics.set(e.id, e.epics.filter((k) => typeof k === 'string' && JIRA_KEY_RE.test(k)).map((k) => k.toUpperCase()));
|
|
283
288
|
} else if (e.kind === 'ini-archive' && typeof e.id === 'string') {
|
|
@@ -41,7 +41,9 @@ function rule(info, id) {
|
|
|
41
41
|
`The workflow stage is on the initiative: the stage card and the Board show it. \`pmos workflow of ${ini}\` reads it. When the PM asks to move the initiative, run \`pmos workflow move ${ini} --stage <key> --why "<reason>"\`. When the PM asks to change its workflow, run \`pmos workflow switch ${ini} --to <workflow id>\`. Both write what the page's press writes, under your name.`,
|
|
42
42
|
'There is one kind of task: the ones the PM sees in the initiative\'s Tasks section. The stage card\'s To finish entries and the older breakdown items are tasks too. '
|
|
43
43
|
+ 'A task\'s state is To do, In progress, Done, Won\'t do or Archived. The Tasks section groups the tasks under the stages of this initiative\'s workflow: a task\'s group is its place in the breakdown, never its state. When the PM asks to add, close, group or change a task, '
|
|
44
|
-
+ `do it yourself, never send the PM to the Board: \`pmos task add ${ini} "<title>" [--stage <stage>] [--due YYYY-MM-DD]\` adds one, \`pmos task list ${ini}\` names them all, \`pmos task state <task> [<task> …] --to "<state>" --why "<what shows it>"\` sets their state and \`pmos task set <task> [<task> …] --stage <stage>|none\` groups them (it also takes --due, --start, --owner, --notes; none clears a date). Never use \`pmos item add\` for new work, and never change tasks to move the initiative.`,
|
|
44
|
+
+ `do it yourself, never send the PM to the Board: \`pmos task add ${ini} "<title>" [--stage <stage>] [--due YYYY-MM-DD]\` adds one, \`pmos task list ${ini}\` names them all, \`pmos task state <task> [<task> …] --to "<state>" --why "<what shows it>"\` sets their state and \`pmos task set <task> [<task> …] --stage <stage>|none\` groups them (it also takes --due, --start, --owner, --notes; none clears a date). \`pmos task remove <task> [<task> …]\` deletes a task added by mistake when the PM asks; work that stopped is Archived instead. Never use \`pmos item add\` for new work, and never change tasks to move the initiative.`,
|
|
45
|
+
'The Board timeline draws one bar per initiative, from the earliest start to the latest due of its tasks. An initiative with no dated task has no bar. Every stage shows there, Monitor and Evaluate included. Use these rules when the PM asks why an initiative is not on the timeline.',
|
|
46
|
+
`A stage's document fills its card only through \`pmos coredoc write --scope initiative:${ini} --key wf-<stage key> --file <path>\` (the stage keys are in \`pmos workflow of ${ini}\`). It is a draft the PM issues on the page. A file written under planning/ is not linked to a card.`,
|
|
45
47
|
);
|
|
46
48
|
return out;
|
|
47
49
|
}
|
|
@@ -93,7 +93,8 @@ function build(f) {
|
|
|
93
93
|
|
|
94
94
|
// ── tasks: PRD requirements (no result per requirement) and the board's items: its Board tasks, the initiative's breakdown items and its
|
|
95
95
|
// stage's To finish tasks are one kind of task (feedback batch 5, lib/task-items.js), Jira rows are read-only ──
|
|
96
|
-
|
|
96
|
+
// every task the page draws (batch 7 item 7): a cap here left the 61st and later tasks with no editor, so a press fell back to the old list
|
|
97
|
+
const items = (f.items || []).filter((t) => t && t.ini === id);
|
|
97
98
|
const tracker = items.map((t, n) => ({ key: 'task:' + (t.uid || t.key || n), uid: t.uid || '', pmos: t.src === 'pmos', ref: t.key || t.ref || '', title: clip(t.title, 160), state: t.status || 'To do', src: t.src === 'jira' ? 'Jira (read-only)' : 'PMOS task', owner: t.owner || '', start: t.start || '', end: t.end || '', blocked: !!t.blocked, kind: t.kind || 'Task', notes: t.notes || '', readAt: t.readAt || '',
|
|
98
99
|
...(t.from ? { from: { stage: t.from.stage, finish: t.from.finish } } : {}), ...(t.store === 'item' ? { store: 'item' } : {}) }));
|
|
99
100
|
const dv = sheet && sheet.derived;
|
|
@@ -310,8 +310,8 @@ function workflowRowOf(board, base, folded, lib, legacyStage) {
|
|
|
310
310
|
} else {
|
|
311
311
|
const byName = WF.stageByRef(wf, legacyStage);
|
|
312
312
|
const read = WF.stageByRef(wf, base.reading);
|
|
313
|
-
// an older board's merged column ("Build & Deliver") names two stages: the reading when it is one of them, else the first (
|
|
314
|
-
// back to the reading, so a move to Build & Deliver showed Triage)
|
|
313
|
+
// an older board's merged column ("Build & Deliver") names two stages: the reading when it is one of them, else the first (batch 7 item 2;
|
|
314
|
+
// it fell back to the reading, so a move to Build & Deliver showed Triage)
|
|
315
315
|
cur = (byName || mergedStage(wf, legacyStage, read) || read || wf.stages[0]).key;
|
|
316
316
|
}
|
|
317
317
|
const judged = (folded && folded.judged && folded.judged.get(k)) || {};
|
|
@@ -331,13 +331,31 @@ const wfRowFields = (x) => {
|
|
|
331
331
|
};
|
|
332
332
|
};
|
|
333
333
|
|
|
334
|
+
/** The span of an initiative's own tasks: the earliest start (or due) to the latest due (or start). Won't do and Archived
|
|
335
|
+
* tasks leave it out. null when no task has a date. Feedback batch 8 item 1: a bar drew only from breakdown items, so an initiative
|
|
336
|
+
* planned as dated tasks had no bar on the timeline. */
|
|
337
|
+
function taskSpanOf(folded, id) {
|
|
338
|
+
let start = null, end = null;
|
|
339
|
+
for (const t of (folded && folded.tasks ? folded.tasks.values() : [])) {
|
|
340
|
+
if (!t || t.initiative !== id || t.state === "Won't do" || t.state === 'Archived') continue;
|
|
341
|
+
const a = t.start || t.due, z = t.due || t.start;
|
|
342
|
+
if (!a) continue;
|
|
343
|
+
if (!start || a < start) start = a;
|
|
344
|
+
if (!end || z > end) end = z;
|
|
345
|
+
}
|
|
346
|
+
return start ? { start: String(start).slice(0, 10), end: String(end).slice(0, 10) } : null;
|
|
347
|
+
}
|
|
348
|
+
const minDay = (a, b) => (!a ? b || null : !b ? a : a < b ? a : b);
|
|
349
|
+
const maxDay = (a, b) => (!a ? b || null : !b ? a : a > b ? a : b);
|
|
350
|
+
|
|
334
351
|
function boardRow(board, base, folded, lib) {
|
|
335
352
|
const s = B.stageOf(board, base.id, base.reading, folded);
|
|
353
|
+
const ts = taskSpanOf(folded, base.id); // the bar covers the breakdown items and the tasks
|
|
336
354
|
const wf = B.workflowOf(board, base.id, folded);
|
|
337
355
|
const cat = B.catOf({ workflow: wf }, s.stage);
|
|
338
356
|
const row = {
|
|
339
357
|
id: base.id, title: base.title, lane: base.lane, stage: s.stage, cat, owner: base.owner, anchor: base.anchor,
|
|
340
|
-
horizon: base.horizon, status: base.status, start: base.start, end: base.end, progress: base.progress, warnings: [],
|
|
358
|
+
horizon: base.horizon, status: base.status, start: ts ? minDay(base.start, ts.start) : base.start, end: ts ? maxDay(base.end, ts.end) : base.end, progress: base.progress, warnings: [],
|
|
341
359
|
rank: base.rank, health: B.isActive(base) ? base.health : null, updated: base.updated, reading: base.reading, stageSource: s.source, lifecycle: base.lifecycle,
|
|
342
360
|
stopped: base.stopped || null, archived: archivedOf(folded, base.id),
|
|
343
361
|
template: B.templateOf(board, base.id, folded), workflow: wf.map((x) => ({ name: x.name, cat: x.cat })),
|
|
@@ -467,6 +485,7 @@ function itemsOf(w, fr, board, rows) {
|
|
|
467
485
|
const ids = new Set(rows.map((x) => x.id));
|
|
468
486
|
const out = [];
|
|
469
487
|
const jiraKeys = new Set();
|
|
488
|
+
let planOf = null;
|
|
470
489
|
if (board.build) {
|
|
471
490
|
for (const row of rows) {
|
|
472
491
|
let d = null;
|
|
@@ -484,8 +503,10 @@ function itemsOf(w, fr, board, rows) {
|
|
|
484
503
|
for (const t of d.tickets || []) {
|
|
485
504
|
if (!t.jira || jiraKeys.has(t.jira)) continue;
|
|
486
505
|
const rd = reading(t.jira);
|
|
506
|
+
// the breakdown item the ticket was drafted from keeps the plan's days: the row shows them (batch 7 item 6; it showed none). Jira owns the assignee
|
|
507
|
+
const it = (planOf || (planOf = TI.itemsById(w.root)))[t.id] || null;
|
|
487
508
|
out.push({ uid: t.jira, key: t.jira, kind: ['Story', 'Task', 'Bug'].includes(t.type) ? t.type : 'Task', src: 'jira', title: (rd && rd.summary) || t.summary || t.jira,
|
|
488
|
-
status: B.itemStatus(rd && rd.status, rd && rd.category), blocked: !!(rd && rd.flagged), owner: null, ini: row.id, epic: epicKey, start: null, end: null, ref: null, board: board.id, readAt: (snap && snap.fetchedAt) || null });
|
|
509
|
+
status: B.itemStatus(rd && rd.status, rd && rd.category), blocked: !!(rd && rd.flagged), owner: null, ini: row.id, epic: epicKey, start: (it && it.start) || null, end: (it && it.due) || null, ref: null, board: board.id, readAt: (snap && snap.fetchedAt) || null });
|
|
489
510
|
jiraKeys.add(t.jira);
|
|
490
511
|
}
|
|
491
512
|
}
|
|
@@ -847,8 +868,8 @@ const WRITES = {
|
|
|
847
868
|
const own = typeof body.id === 'string' && p.fr.folded.iniWf ? p.fr.folded.iniWf.get(B.key(p.board.id, body.id)) : null;
|
|
848
869
|
if (own) return moveOnWorkflow(ctx, res, body, g, p, own);
|
|
849
870
|
const wfOwn = typeof body.id === 'string' ? B.workflowOf(p.board, body.id, p.fr.folded) : p.board.workflow;
|
|
850
|
-
// an initiative on Product feature shows its eight stages, but an older board's columns merge them ("Build & Deliver").
|
|
851
|
-
// feature stage that is not a column pins the initiative to Product feature at that stage, so it lands where it was sent.
|
|
871
|
+
// batch 7 item 2: an initiative on Product feature shows its eight stages, but an older board's columns merge them ("Build & Deliver").
|
|
872
|
+
// A Product feature stage that is not a column pins the initiative to Product feature at that stage, so it lands where it was sent.
|
|
852
873
|
const pf = typeof body.to === 'string' && !wfOwn.some((s) => s.name === body.to) ? WF.stageByRef(WF.PRODUCT_FEATURE, body.to) : null;
|
|
853
874
|
if (pf) return moveToProductStage(ctx, res, body, g, p, pf);
|
|
854
875
|
if (typeof body.to !== 'string' || !wfOwn.some((s) => s.name === body.to)) {
|
|
@@ -1112,6 +1133,30 @@ const WRITES = {
|
|
|
1112
1133
|
append(p.file, g.actor, { kind: 'task-remove', board: p.board.id, task: t.id, why: 'undo of add' });
|
|
1113
1134
|
ctx.json(res, { ok: true });
|
|
1114
1135
|
},
|
|
1136
|
+
'/api/boards/tasks/delete': (ctx, res, body, g) => {
|
|
1137
|
+
// a task added by mistake (batch 7 item 5): the task-remove line takes it out everywhere; tasks/restore is its Undo. Archived stays for
|
|
1138
|
+
// work that stopped. A breakdown item is withdrawn (Won't do), never deleted.
|
|
1139
|
+
const p = postFrame(ctx, res, body);
|
|
1140
|
+
if (!p) return;
|
|
1141
|
+
if (TI.isItemId(body.task)) return fail(ctx, res, 409, `${body.task} is a breakdown item: set it to Won't do instead`);
|
|
1142
|
+
const t = B.taskOf(p.fr.folded, body.task);
|
|
1143
|
+
if (!t || t.board !== p.board.id) return fail(ctx, res, 404, `no PMOS task ${body.task} on this board`);
|
|
1144
|
+
if (body.why != null && (typeof body.why !== 'string' || body.why.length > 500)) return fail(ctx, res, 400, 'why is text of at most 500 characters');
|
|
1145
|
+
if (!p.file) return fail(ctx, res, 409, NO_STATE);
|
|
1146
|
+
append(p.file, g.actor, { kind: 'task-remove', board: p.board.id, task: t.id, why: body.why ? String(body.why).trim() : 'deleted' });
|
|
1147
|
+
ctx.json(res, { ok: true, task: t.id, title: t.title });
|
|
1148
|
+
},
|
|
1149
|
+
'/api/boards/tasks/restore': (ctx, res, body, g) => {
|
|
1150
|
+
const p = postFrame(ctx, res, body);
|
|
1151
|
+
if (!p) return;
|
|
1152
|
+
if (typeof body.task !== 'string' || !body.task) return fail(ctx, res, 400, 'task is required');
|
|
1153
|
+
if (B.taskOf(p.fr.folded, body.task)) return fail(ctx, res, 409, `${body.task} is not deleted`);
|
|
1154
|
+
const ev = [...p.fr.folded.events].reverse().find((e) => e.kind === 'task-remove' && e.task === body.task);
|
|
1155
|
+
if (!ev || ev.board !== p.board.id) return fail(ctx, res, 404, `no deleted task ${body.task} on this board`);
|
|
1156
|
+
if (!p.file) return fail(ctx, res, 409, NO_STATE);
|
|
1157
|
+
append(p.file, g.actor, { kind: 'task-restore', board: p.board.id, task: body.task });
|
|
1158
|
+
ctx.json(res, { ok: true, task: body.task });
|
|
1159
|
+
},
|
|
1115
1160
|
'/api/boards/tasks/rename': (ctx, res, body, g) => {
|
|
1116
1161
|
// tap the title to rename it (canvas RnATask): only the title changes; Undo is the same press with the old name
|
|
1117
1162
|
const p = postFrame(ctx, res, body);
|
|
@@ -1352,6 +1397,9 @@ function taskState(ctx, body, g) { return writeAs(ctx, '/api/boards/tasks/state'
|
|
|
1352
1397
|
function taskAdd(ctx, body, g) { return writeAs(ctx, '/api/boards/tasks/add', body, g); }
|
|
1353
1398
|
/** A task's edit, by the same function as the Viewer's (POST /api/boards/tasks/edit; `pmos task set`). body: { ws, board, task, section?, start?, due?, owner?, notes? }. */
|
|
1354
1399
|
function taskEdit(ctx, body, g) { return writeAs(ctx, '/api/boards/tasks/edit', body, g); }
|
|
1400
|
+
/** Delete a task added by mistake, and its Undo (POST /api/boards/tasks/delete|restore; `pmos task remove`; batch 7 item 5). */
|
|
1401
|
+
function taskDelete(ctx, body, g) { return writeAs(ctx, '/api/boards/tasks/delete', body, g); }
|
|
1402
|
+
function taskRestore(ctx, body, g) { return writeAs(ctx, '/api/boards/tasks/restore', body, g); }
|
|
1355
1403
|
|
|
1356
1404
|
/** The workflow one initiative runs and where it stands in it, as the Board's row has it (boardRow: wf, wfStage, wfStages, ended), with the
|
|
1357
1405
|
* board it is on. For `pmos workflow of|move|switch` and the initiative chat's opening (bug 2026-10-25: an agent that could not see the
|
|
@@ -1439,4 +1487,4 @@ function meetingBoards(ctx) {
|
|
|
1439
1487
|
return { list, detail };
|
|
1440
1488
|
}
|
|
1441
1489
|
|
|
1442
|
-
module.exports = { prefixes: ['/api/boards'], handle, move, switchWorkflow, taskState, taskAdd, taskEdit, initiativeWorkflow, seedInitiative, stageTasks, itemsOf, boardIndex, appendScanAsk, scanDeclineSignal, createAndPlace, ledgerFile, append, frameFor, boardIdOf, meetingBoards, boardsOf, baseRows, boardRow, workflowRowOf, foldOf, portfolio, SELF_REFUSAL, NO_STATE };
|
|
1490
|
+
module.exports = { prefixes: ['/api/boards'], handle, move, switchWorkflow, taskState, taskAdd, taskEdit, taskDelete, taskRestore, initiativeWorkflow, seedInitiative, stageTasks, itemsOf, boardIndex, appendScanAsk, scanDeclineSignal, createAndPlace, ledgerFile, append, frameFor, boardIdOf, meetingBoards, boardsOf, baseRows, boardRow, taskSpanOf, workflowRowOf, foldOf, portfolio, SELF_REFUSAL, NO_STATE };
|