create-pmos 0.768.0 → 0.770.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.
@@ -1,4 +1,39 @@
1
1
  [
2
+ {
3
+ "v": "0.770.0",
4
+ "at": "2026-11-24T09:01:51.310Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1733,
9
+ "t": "Keep try steps when a PR Story has no Title line",
10
+ "s": "Keep try steps when a PR Story has no Title line",
11
+ "k": "fix"
12
+ }
13
+ ]
14
+ },
15
+ {
16
+ "v": "0.769.0",
17
+ "at": "2026-11-24T08:04:34.713Z",
18
+ "f": 4,
19
+ "prs": [
20
+ {
21
+ "n": 1729,
22
+ "t": "The task detail is one column, with its fields as chips",
23
+ "s": "The task detail is one column, with its fields as chips",
24
+ "k": "new",
25
+ "try": {
26
+ "steps": [
27
+ "Open any initiative and press one of its tasks",
28
+ "Under the title, press the Status chip and pick In progress, then pick a day",
29
+ "Write a comment at the bottom of Activity and press Send"
30
+ ],
31
+ "see": "One column: the title, one row of chips (only the fields that have a value, and +), then Where it stands, Description, Subtasks, Linked and Activity. The status changes with Undo; the comment shows…",
32
+ "open": "/pm/"
33
+ }
34
+ }
35
+ ]
36
+ },
2
37
  {
3
38
  "v": "0.768.0",
4
39
  "at": "2026-11-24T07:49:37.442Z",
@@ -77,7 +112,15 @@
77
112
  "n": 1722,
78
113
  "t": "Every task has a description PMOS writes",
79
114
  "s": "Every task has a description PMOS writes",
80
- "k": "new"
115
+ "k": "new",
116
+ "try": {
117
+ "steps": [
118
+ "Open any PMOS task from Work in the full popup",
119
+ "Press the pencil on Description, change a word and click outside"
120
+ ],
121
+ "see": "Under Where it stands, \"PMOS is writing the description from your plan…\", then What, Why, Done when and \"PMOS wrote this from N sources\" with Undo. The edit saves with Undo in the toast.",
122
+ "open": "/pm/"
123
+ }
81
124
  }
82
125
  ]
83
126
  },
@@ -90,7 +133,16 @@
90
133
  "n": 1720,
91
134
  "t": "A risky change on shared text only asks the owner",
92
135
  "s": "A risky change on shared text only asks the owner",
93
- "k": "new"
136
+ "k": "new",
137
+ "try": {
138
+ "steps": [
139
+ "Say in a Slack channel PMOS reads, and in a meeting note, that a task with no Jira ticket is done",
140
+ "Wait for the next PMOS round",
141
+ "Open Home and look at today's questions"
142
+ ],
143
+ "see": "PMOS does not close the task by itself. Today's questions ask the owner whether it is done and say that only shared text (Slack and a meeting note) says so.",
144
+ "open": "/premium-home.html"
145
+ }
94
146
  }
95
147
  ]
96
148
  },
@@ -103,7 +155,16 @@
103
155
  "n": 1719,
104
156
  "t": "Tracker sync on Today below 95%, take Jira's value with Undo",
105
157
  "s": "Tracker sync on Today below 95%, take Jira's value with Undo",
106
- "k": "new"
158
+ "k": "new",
159
+ "try": {
160
+ "steps": [
161
+ "Open Today on a product that differs from Jira on more than 5% of its tasks",
162
+ "Press the down arrow on the ✦ row that names the product, then ✓ on one row or ✓ on the ✦ row",
163
+ "Press Undo in the message that shows"
164
+ ],
165
+ "see": "The ✦ row says how many tasks differ from Jira; ✓ makes PMOS say what Jira says and the row leaves; Undo puts back what PMOS said before. A product at 95% or more shows no row.",
166
+ "open": "/today.html"
167
+ }
107
168
  }
108
169
  ]
109
170
  },
@@ -116,19 +177,45 @@
116
177
  "n": 1717,
117
178
  "t": "Every slip against the first plan, and records that disagree become one question (1c A102, A140)",
118
179
  "s": "Every slip against the first plan, and records that disagree become one question (1c A102, A140)",
119
- "k": "new"
180
+ "k": "new",
181
+ "try": {
182
+ "steps": [
183
+ "Open Today and press the row Last week: N moves in dates and scope",
184
+ "Read a moved date: it says how far the task is behind its first plan",
185
+ "Open the Decide tab and look for a row marked: the records disagree"
186
+ ],
187
+ "see": "Each moved date says 'N days behind the first plan (due D)', and an initiative that is closed but still has open tasks shows as one question to you, with the records it comes from.",
188
+ "open": "/today.html"
189
+ }
120
190
  },
121
191
  {
122
192
  "n": 1718,
123
193
  "t": "The meeting buddy floats over any call app, with a wide topic view, a room view and a walk-in card",
124
194
  "s": "The meeting buddy floats over any call app, with a wide topic view, a room view and a walk-in card",
125
- "k": "new"
195
+ "k": "new",
196
+ "try": {
197
+ "steps": [
198
+ "Start recording a meeting from Today (the play icon) and join the call in Zoom, Google Meet or Teams.",
199
+ "In the PMOS recording tab, press the Float icon in the bar at the bottom.",
200
+ "Move the small PMOS window over the call; use its Fold, Open wide and Room view icons."
201
+ ],
202
+ "see": "A small PMOS window stays on top of the call app, folds to a pill and opens wide with For this topic, People and Filed; Room view hides your private rows so you can share it on screen. Two minutes…",
203
+ "open": "/today.html"
204
+ }
126
205
  },
127
206
  {
128
207
  "n": 1715,
129
208
  "t": "Outcome checks finish by themselves",
130
209
  "s": "Outcome checks finish by themselves",
131
- "k": "new"
210
+ "k": "new",
211
+ "try": {
212
+ "steps": [
213
+ "In a PMOS chat, ask: how many outcome checks got a verdict on time?",
214
+ "Open an initiative whose check date has passed and look at PMOS did"
215
+ ],
216
+ "see": "The chat gives the number of checks due, how many got a verdict within 2 days and how many of those PMOS did by itself. The initiative shows PMOS's verdict, can't tell included with what it read and…",
217
+ "open": "/pm/"
218
+ }
132
219
  }
133
220
  ]
134
221
  },
@@ -141,7 +228,15 @@
141
228
  "n": 1716,
142
229
  "t": "The standup digest sees every status change, from one daily search",
143
230
  "s": "The standup digest sees every status change, from one daily search",
144
- "k": "new"
231
+ "k": "new",
232
+ "try": {
233
+ "steps": [
234
+ "In the chat, ask \"refresh Jira\" (or wait for the morning refresh)",
235
+ "Then ask \"what moved in Jira since yesterday?\""
236
+ ],
237
+ "see": "The answer lists tickets that changed status in Jira even when no PMOS initiative or task names them, under \"Not in PMOS yet\", each with its new state and person, and says how many moved tickets…",
238
+ "open": "/today.html"
239
+ }
145
240
  }
146
241
  ]
147
242
  },
@@ -154,7 +249,16 @@
154
249
  "n": 1707,
155
250
  "t": "The weekly digest (quiet rows slice C)",
156
251
  "s": "The weekly digest (quiet rows slice C)",
157
- "k": "new"
252
+ "k": "new",
253
+ "try": {
254
+ "steps": [
255
+ "On a Monday, open Today",
256
+ "Press \"last week's digest\" in the Overview sentence",
257
+ "Switch it off in its header, then on again in Settings › General"
258
+ ],
259
+ "see": "A read-only page in the Viewer: the line this week in one sentence, What moved, What PMOS did by itself (with what you undid and the Checker's samples), Not sent, and Next week. No button acts on…",
260
+ "open": "/today.html"
261
+ }
158
262
  }
159
263
  ]
160
264
  },
@@ -193,7 +297,15 @@
193
297
  "n": 1706,
194
298
  "t": "Sample PMOS's landed changes across kinds; a run alone is not eval",
195
299
  "s": "Sample PMOS's landed changes across kinds; a run alone is not eval",
196
- "k": "fix"
300
+ "k": "fix",
301
+ "try": {
302
+ "steps": [
303
+ "Open Home and look at What PMOS did",
304
+ "Wait a day for the checks",
305
+ "Open an initiative that had a run logged but no build yet"
306
+ ],
307
+ "see": "Changes of different kinds get checked, not only the oldest of one kind, and a failed check undoes the change. The initiative with only a run reads at its spec stage, not Evaluate."
308
+ }
197
309
  }
198
310
  ]
199
311
  },
@@ -206,7 +318,16 @@
206
318
  "n": 1704,
207
319
  "t": "Line tab on Work and Today's dashed line (quiet rows slice B)",
208
320
  "s": "Line tab on Work and Today's dashed line (quiet rows slice B)",
209
- "k": "new"
321
+ "k": "new",
322
+ "try": {
323
+ "steps": [
324
+ "Open Work",
325
+ "Press the Line tab",
326
+ "On Today, press the dashed line under Your move"
327
+ ],
328
+ "see": "One table per product, grouped by station, with Initiative, Days here, Still missing to finish, Next move and State; tabs All, Stuck, Can't tell and Your move. Today's dashed line says how many move…",
329
+ "open": "/premium-board.html?work=line"
330
+ }
210
331
  }
211
332
  ]
212
333
  },
@@ -219,7 +340,16 @@
219
340
  "n": 1699,
220
341
  "t": "A new product passes a Setup station before PMOS plans its work",
221
342
  "s": "A new product passes a Setup station before PMOS plans its work",
222
- "k": "new"
343
+ "k": "new",
344
+ "try": {
345
+ "steps": [
346
+ "Add a first initiative to a product you just set up, then open Today",
347
+ "Read the Setup row: it names what is still missing",
348
+ "Ask the chat: agree the drafted goal"
349
+ ],
350
+ "see": "Until the tracker is read, a goal is agreed and an owner is named, Today shows one Setup row saying which of the three is missing, and the chat can keep the drafted goal or the owner for you. Once…",
351
+ "open": "/today.html"
352
+ }
223
353
  }
224
354
  ]
225
355
  },
@@ -232,7 +362,16 @@
232
362
  "n": 1705,
233
363
  "t": "The Driver follows the line: works missing exit items, quote-checked stage moves, sprint dates",
234
364
  "s": "The Driver follows the line: works missing exit items, quote-checked stage moves, sprint dates",
235
- "k": "new"
365
+ "k": "new",
366
+ "try": {
367
+ "steps": [
368
+ "Open an initiative whose stage shows every To finish line ticked",
369
+ "Wait for the next Driver round (or ask the chat: work the missing exit items of this initiative)",
370
+ "Open What PMOS did on Home"
371
+ ],
372
+ "see": "PMOS moves the initiative to its next stage by itself, the change says which record lines it quoted, and Undo puts it back. An initiative still missing a To finish line gets drafts for that line…",
373
+ "open": "/premium-home.html"
374
+ }
236
375
  }
237
376
  ]
238
377
  },
@@ -245,7 +384,16 @@
245
384
  "n": 1702,
246
385
  "t": "Program line, Charter to Land over pmos line",
247
386
  "s": "Program line, Charter to Land over pmos line",
248
- "k": "new"
387
+ "k": "new",
388
+ "try": {
389
+ "steps": [
390
+ "In a PMOS chat, ask: where are my programs?",
391
+ "Ask: draft the milestones for <a program>",
392
+ "Open that program from Home and look under Milestones"
393
+ ],
394
+ "see": "The chat names each program's station (Charter, Sequence, Track or Land), what is missing and the next move, and its forecast against the target. After the second ask, the program shows dated…",
395
+ "open": "/pm/"
396
+ }
249
397
  }
250
398
  ]
251
399
  },
@@ -264,19 +412,44 @@
264
412
  "n": 1700,
265
413
  "t": "Quiet rows, at most 3 line rows a day per product and one batch (quiet-rows, slice A)",
266
414
  "s": "Quiet rows, at most 3 line rows a day per product and one batch (quiet-rows, slice A)",
267
- "k": "new"
415
+ "k": "new",
416
+ "try": {
417
+ "steps": [
418
+ "Open Today",
419
+ "Read Your move: each product has at most 3 rows, and what other people will see is one row, Today's batch",
420
+ "Press Today's batch"
421
+ ],
422
+ "see": "Your move shows at most 3 line rows for each product, fixed for the day. Today's batch opens full size with Back: the drafts grouped by kind, each saying who will see it, with Change it first, Skip…",
423
+ "open": "/today.html"
424
+ }
268
425
  },
269
426
  {
270
427
  "n": 1698,
271
428
  "t": "Pmos line, where each initiative stands on its own workflow",
272
429
  "s": "Pmos line, where each initiative stands on its own workflow",
273
- "k": "new"
430
+ "k": "new",
431
+ "try": {
432
+ "steps": [
433
+ "In a PMOS chat on a product, ask: where is each initiative on the line?",
434
+ "Ask: which ones are stuck, and what moves each one next?"
435
+ ],
436
+ "see": "The chat answers from pmos line: every live initiative with its station, days there, the exit items still missing, the next move, and stuck, moving, waiting or can't tell."
437
+ }
274
438
  },
275
439
  {
276
440
  "n": 1701,
277
441
  "t": "PMOS never waits on its own drafts",
278
442
  "s": "PMOS never waits on its own drafts",
279
- "k": "new"
443
+ "k": "new",
444
+ "try": {
445
+ "steps": [
446
+ "Open Home and look at PMOS did",
447
+ "Find a draft PMOS applied by itself or a question it closed after 2 days, and press Undo",
448
+ "Open Home again the next day"
449
+ ],
450
+ "see": "Applied drafts and closed questions show in PMOS did with Undo; Undo brings a closed question back as a draft. No row says the agent waits on your drafts. A message or stage move that waited 7 days…",
451
+ "open": "/pm/"
452
+ }
280
453
  }
281
454
  ]
282
455
  },
@@ -289,7 +462,16 @@
289
462
  "n": 1690,
290
463
  "t": "Positioning drafts need 2 to 5 key messages; nonce and ask-origin tests (Checker C1, C7)",
291
464
  "s": "Positioning drafts need 2 to 5 key messages; nonce and ask-origin tests (Checker C1, C7)",
292
- "k": "fix"
465
+ "k": "fix",
466
+ "try": {
467
+ "steps": [
468
+ "Open the Board for one product and write all five strategy lines",
469
+ "Press ✦ beside Positioning under the strategy",
470
+ "Edit one drafted line and press ✓ to keep it"
471
+ ],
472
+ "see": "A positioning statement and 2 to 5 key messages appear, each showing the strategy lines it comes from; the line you kept stays under the strategy",
473
+ "open": "/premium-board.html"
474
+ }
293
475
  }
294
476
  ]
295
477
  },
@@ -302,7 +484,16 @@
302
484
  "n": 1685,
303
485
  "t": "Count similar past requests before a one-off",
304
486
  "s": "Count similar past requests before a one-off",
305
- "k": "new"
487
+ "k": "new",
488
+ "try": {
489
+ "steps": [
490
+ "Open the Board and press New asks",
491
+ "Read the line under an ask that says how many times it was asked before",
492
+ "Or ask the chat: how often was <the ask> asked before?"
493
+ ],
494
+ "see": "An ask that was asked before shows \"Asked N times before\" with the tickets or asks it matches, and from 2 times PMOS suggests building it as a setting others can use. An ask never asked before shows…",
495
+ "open": "/premium-board.html"
496
+ }
306
497
  }
307
498
  ]
308
499
  },
@@ -315,31 +506,76 @@
315
506
  "n": 1680,
316
507
  "t": "Date fields take dates typed in words (A488)",
317
508
  "s": "Date fields take dates typed in words (A488)",
318
- "k": "new"
509
+ "k": "new",
510
+ "try": {
511
+ "steps": [
512
+ "Open any task's dates (press its due date in the work popup)",
513
+ "Press Due and type: friday",
514
+ "Look under the fields, then press Enter"
515
+ ],
516
+ "see": "Before Enter, the calendar says which real day it read, such as Friday 27 Nov 2026. Enter saves that day, and the message has Undo.",
517
+ "open": "/premium-board.html"
518
+ }
319
519
  },
320
520
  {
321
521
  "n": 1684,
322
522
  "t": "One ranked Your move leads Today's log (A468)",
323
523
  "s": "One ranked Your move leads Today's log (A468)",
324
- "k": "new"
524
+ "k": "new",
525
+ "try": {
526
+ "steps": [
527
+ "Open Today",
528
+ "Read the first row of Your move and its ✦ line",
529
+ "Press the arrow on that row (Put off a day)"
530
+ ],
531
+ "see": "Your move lists at most five rows, ranked, each with a ✦ line that says why it is in that place. The put-off row leaves, the next one moves up, and the line under the five names the next one.",
532
+ "open": "/today.html"
533
+ }
325
534
  },
326
535
  {
327
536
  "n": 1683,
328
537
  "t": "Draft the next sprint from team capacity, carry-over first (A471)",
329
538
  "s": "Draft the next sprint from team capacity, carry-over first (A471)",
330
- "k": "new"
539
+ "k": "new",
540
+ "try": {
541
+ "steps": [
542
+ "Open Board, then press Backlog on the switch at the top",
543
+ "Read the PMOS suggestion under Where it stands: it says how many items the next sprint holds, how many carry over, and what does not fit",
544
+ "Press ✓ to take the draft, or the pen to change it first"
545
+ ],
546
+ "see": "The suggestion sizes the next sprint from the sprints your team finished, counts the open work that will carry over first, and names the ranked items that do not fit. When the open work already…",
547
+ "open": "/premium-board.html"
548
+ }
331
549
  },
332
550
  {
333
551
  "n": 1682,
334
552
  "t": "Standing rules list — see, edit and retire the rules PMOS learned (A470)",
335
553
  "s": "Standing rules list — see, edit and retire the rules PMOS learned (A470)",
336
- "k": "new"
554
+ "k": "new",
555
+ "try": {
556
+ "steps": [
557
+ "Open Settings and go to How PMOS decides",
558
+ "Under Standing rules, press Edit on a rule, change a word and save",
559
+ "Press Retire on another rule, then Bring back"
560
+ ],
561
+ "see": "Each rule shows where it came from (how many of your corrections, and your latest words), how many times it fired and when it last fired. The edit shows at once, a retired rule moves to Retired, and…",
562
+ "open": "/premium.html?settings=claude"
563
+ }
337
564
  },
338
565
  {
339
566
  "n": 1681,
340
567
  "t": "Ask for the smallest test before building a ranked bet",
341
568
  "s": "Ask for the smallest test before building a ranked bet",
342
- "k": "new"
569
+ "k": "new",
570
+ "try": {
571
+ "steps": [
572
+ "Rank an initiative on the Roadmap",
573
+ "Open its ✦ and read Smallest test before building",
574
+ "Tell the chat what the test showed"
575
+ ],
576
+ "see": "The ✦ names one cheap test (a data count, a fake door or a hand-run) with the kill line it cites; after you answer, the initiative shows the test and its result, and Your move stops asking.",
577
+ "open": "/pm/"
578
+ }
343
579
  }
344
580
  ]
345
581
  },
@@ -384,7 +620,14 @@
384
620
  "n": 1668,
385
621
  "t": "A short link for every item, which opens it in its panel on a desktop and full screen on a phone (A428)",
386
622
  "s": "A short link for every item, which opens it in its panel on a desktop and full screen on a phone (A428)",
387
- "k": "new"
623
+ "k": "new",
624
+ "try": {
625
+ "steps": [
626
+ "Open any task on the Board, press ⋯, then Copy link. Paste the link in a new tab, then on your phone."
627
+ ],
628
+ "see": "The task opens by itself, in its panel on the desktop and full screen on the phone. It does not land on Home.",
629
+ "open": "/premium-board.html"
630
+ }
388
631
  }
389
632
  ]
390
633
  },
@@ -397,7 +640,13 @@
397
640
  "n": 1659,
398
641
  "t": "Start a chat about a product from Work, and a program's chat answers its first message",
399
642
  "s": "Start a chat about a product from Work, and a program's chat answers its first message",
400
- "k": "fix"
643
+ "k": "fix",
644
+ "try": {
645
+ "steps": [
646
+ "open Work with one product picked; press the chat bubble left of Search and send \"What is late here?\"; then open a program from the…"
647
+ ],
648
+ "see": "the chat opens named after the product, then after the program, and PMOS answers each first message."
649
+ }
401
650
  },
402
651
  {
403
652
  "n": 1669,
@@ -416,7 +665,16 @@
416
665
  "n": 1664,
417
666
  "t": "Approvals, card picks, drops and parks write the decision journal, with Undo (A475)",
418
667
  "s": "Approvals, card picks, drops and parks write the decision journal, with Undo (A475)",
419
- "k": "new"
668
+ "k": "new",
669
+ "try": {
670
+ "steps": [
671
+ "Open an initiative and press ✓ on one ✦ proposal",
672
+ "Put another initiative on hold and say why",
673
+ "In the chat, ask: what did I decide today?"
674
+ ],
675
+ "see": "The chat lists both, each with today's date and the reason you gave. Press Undo on the ✓ and ask again: that one is gone.",
676
+ "open": "/premium-board.html"
677
+ }
420
678
  },
421
679
  {
422
680
  "n": 1665,
@@ -428,7 +686,13 @@
428
686
  "n": 1659,
429
687
  "t": "Start a chat about a product from Work, and a program's chat answers its first message",
430
688
  "s": "Start a chat about a product from Work, and a program's chat answers its first message",
431
- "k": "fix"
689
+ "k": "fix",
690
+ "try": {
691
+ "steps": [
692
+ "open Work with one product picked; press the chat bubble left of Search and send \"What is late here?\"; then open a program from the…"
693
+ ],
694
+ "see": "the chat opens named after the product, then after the program, and PMOS answers each first message."
695
+ }
432
696
  }
433
697
  ]
434
698
  },
@@ -562,6 +562,7 @@ An agent adds and closes tasks when you ask, so you do not have to find the task
562
562
  - `pmos task set <task> [<task> …] --parent <task>` puts tasks under a parent task as subtasks; `--parent none` moves them back to the top level. A loop or a parent that does not exist is refused. The answer prints an `Undo:` line, one command per old parent. `pmos task add … --parent <task>` adds a new task as a subtask.
563
563
  - `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.
564
564
  - `pmos task describe <task>` prints the task's description and its sources. `pmos task describe <task> "<text>"` writes it: what the task is, why it matters, and when it is done. `none` clears it. The task page shows it at once, with Undo. When a task has no description, PMOS writes one by itself from the initiative's record, PRD and plan documents, and names its sources. A Jira ticket keeps its description in Jira.
565
+ - `pmos task comment <task>` lists the task's comments. `pmos task comment <task> "<text>"` adds one. The task page shows it at once, under Activity › Comments. Comments stay in PMOS: nothing is sent to Jira.
565
566
  - `pmos task link <from> <to>` makes `<to>` wait on `<from>`. `--type` sets how they wait: `fs` (start after it finishes, the default), `ss` (start when it starts), `ff` (finish when it finishes) or `sf` (finish when it starts). `--lag` adds days, or takes them away with a negative number. Make a link only when the PM asks for it. To suggest a link, add `--propose --why "<reason>"`: the link shows under the blue ✦ in the Tasks header, and the PM approves it or drops it. A link that loops back to a task is refused.
566
567
  - `pmos task unlink <from> <to>` removes the link. The dates stay as they are.
567
568
 
@@ -39,6 +39,7 @@
39
39
  * task-update { task, state?, start?, due?, title?, owner?, notes?, initiative?, why } a status move, a reschedule, a rename or an edit in the Viewer
40
40
  * ticket-note { ref, notes } the PM's own notes on a Jira ticket (Jira keeps its fields)
41
41
  * task-description { task, description, sources? } a task's description (task-descriptions): '' clears; sources [{ path, line, title }]
42
+ * task-comment { task, text } a comment on a task (task-detail-one-column): each line adds one, oldest first
42
43
  * task-section { task, section } a task's place in the breakdown (one view, feedback batch 6 item 1): the key
43
44
  * of a stage of its initiative's workflow, '' for "Not in a stage". It is the task's place, never its state, and moving a task
44
45
  * never moves the initiative. `task` is a Board task or a breakdown item; the last line wins.
@@ -195,7 +196,10 @@ const KINDS = new Set(['board', 'workflow', 'move', 'assign', 'ask', 'ask-accept
195
196
  // a task's priority, set in the row (initiative inline-sprint-priority): P1, P2 or P3; '' takes it out
196
197
  'task-priority',
197
198
  // a task's description (initiative task-descriptions): what it is, why, and when it is done; '' clears it
198
- 'task-description']);
199
+ 'task-description',
200
+ // a comment on a task (initiative task-detail-one-column): the task popup's Activity › Comments and `pmos task comment`
201
+ 'task-comment']);
202
+ const COMMENT_MAX = 2000; // one comment on a task (task-comment)
199
203
  // 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).
200
204
  const TASK_STATES = Object.freeze(['To do', 'In progress', 'Done', "Won't do", 'Archived']);
201
205
  const taskState = (s) => (s === 'In review' ? 'In progress' : TASK_STATES.includes(s) ? s : null);
@@ -229,6 +233,7 @@ function fold(events) {
229
233
  const parents = new Map(); // task id (or Jira key) → the id of its parent task (subtasks, initiative work-subtasks); the last task-parent line wins
230
234
  const orders = new Map(); // key(initiative, section) → the task ids in the PM's order inside that stage; the last task-order line wins
231
235
  const pins = new Map(); // task id (or Jira key) → true | false: the PM's pin on a milestone; a null line takes it out (the rule again)
236
+ const comments = new Map(); // task id → [{ text, by, at }]: its comments, oldest first (task-detail-one-column)
232
237
  const descriptions = new Map(); // task id → { text, by, at, sources }: the task's description (task-descriptions); the last line wins, '' clears
233
238
  const priorities = new Map(); // task id → 'P1' | 'P2' | 'P3': the PM's priority (inline-sprint-priority); a '' line takes it out, the last line wins
234
239
  const removed = new Map(); // task id → the task a task-remove took out, so a task-restore (Delete's Undo) puts it back
@@ -339,6 +344,9 @@ function fold(events) {
339
344
  } else if (e.kind === 'task-description' && typeof e.task === 'string' && e.task && typeof e.description === 'string') {
340
345
  if (e.description) descriptions.set(e.task, { text: e.description, by: e.by || null, at: e.at || null, sources: Array.isArray(e.sources) ? e.sources.filter((x) => x && typeof x.path === 'string').slice(0, 8) : [] });
341
346
  else descriptions.delete(e.task);
347
+ } else if (e.kind === 'task-comment' && typeof e.task === 'string' && e.task && typeof e.text === 'string' && e.text.trim()) {
348
+ if (!comments.has(e.task)) comments.set(e.task, []);
349
+ comments.get(e.task).push({ text: e.text.slice(0, COMMENT_MAX), by: e.by || null, at: e.at || null });
342
350
  } else if (e.kind === 'task-priority' && typeof e.task === 'string' && e.task && typeof e.priority === 'string' && /^(P[1-3])?$/.test(e.priority)) {
343
351
  if (e.priority) priorities.set(e.task, e.priority); else priorities.delete(e.task);
344
352
  } else if (e.kind === 'task-pin' && typeof e.task === 'string' && e.task && (typeof e.pinned === 'boolean' || e.pinned === null)) {
@@ -422,7 +430,7 @@ function fold(events) {
422
430
  suggestNo.set(e.id, { kind: e.of === 'merge' ? 'merge' : 'split', fp: e.fp, at: e.at || null });
423
431
  }
424
432
  }
425
- return { boards, moves, assigns, asks, stages, iniWorkflows, tasks, removed, sections, parents, orders, milestones, pins, priorities, descriptions, ticketNotes, ticketDates, epics, archives, deleted, notDup, iniWf, ends, judged, autoOver, ticketMoves, backlogRank, smOps, smUndone, suggestNo, events: list };
433
+ return { boards, moves, assigns, asks, stages, iniWorkflows, tasks, removed, sections, parents, orders, milestones, pins, priorities, descriptions, comments, ticketNotes, ticketDates, epics, archives, deleted, notDup, iniWf, ends, judged, autoOver, ticketMoves, backlogRank, smOps, smUndone, suggestNo, events: list };
426
434
  }
427
435
 
428
436
  /** The stages an initiative runs on a board: its own workflow when one is recorded, else the board's. */
@@ -926,5 +934,5 @@ module.exports = {
926
934
  templateWorkflow, isTemplateEdited, fold, readingOf, deriveStage, stageOf, catOf, moveWarnings, cardWarnings,
927
935
  applyWorkflowEdit, filterRows, health, counts, sprintsOf, backlogOf, key,
928
936
  INI_TEMPLATES, TASK_STATES, taskState, isBuildStage, templateBuilds, boardSettings, jiraProjectsOf, JIRA_KEY_RE, JIRA_PROJECT_RE, workflowOf, templateOf, applyIniWorkflow, taskOf, shiftDay,
929
- ITEM_PROGRESS, itemStatus, taskItem, rollupItems, wouldCycle,
937
+ ITEM_PROGRESS, itemStatus, taskItem, rollupItems, wouldCycle, COMMENT_MAX,
930
938
  };
@@ -55,7 +55,7 @@ function rule(info, id) {
55
55
  `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.`,
56
56
  '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. '
57
57
  + '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, '
58
- + `do it yourself, never send the PM to the Board: \`pmos task add ${ini} "<title>" [--stage <stage>] [--due YYYY-MM-DD] [--parent <task>]\` 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). Tasks nest: \`pmos task set <task> [<task> …] --parent <task>|none\` puts tasks under a parent task as subtasks, or back at the top level with none, and \`--parent\` on add makes a new subtask. When the PM asks to group tasks into task and subtask, make the parent tasks and move the tasks under them, keeping each task and its state; never close tasks as Won't do to group them. Tell the PM the Undo line the command prints. \`pmos task describe <task> "<text>"\` writes a task's description (What, Why, Done when) and \`pmos task describe <task>\` reads it. \`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.`,
58
+ + `do it yourself, never send the PM to the Board: \`pmos task add ${ini} "<title>" [--stage <stage>] [--due YYYY-MM-DD] [--parent <task>]\` 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). Tasks nest: \`pmos task set <task> [<task> …] --parent <task>|none\` puts tasks under a parent task as subtasks, or back at the top level with none, and \`--parent\` on add makes a new subtask. When the PM asks to group tasks into task and subtask, make the parent tasks and move the tasks under them, keeping each task and its state; never close tasks as Won't do to group them. Tell the PM the Undo line the command prints. \`pmos task describe <task> "<text>"\` writes a task's description (What, Why, Done when) and \`pmos task describe <task>\` reads it. \`pmos task comment <task> "<text>"\` adds a comment to a task (it shows under the task's Activity › Comments) and \`pmos task comment <task>\` lists them. \`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.`,
59
59
  // batch 31 (Wawan 2026-11-18): the chat offered to rewrite a closed initiative's dates to clear "145 days over"; the count was the page's bug
60
60
  'The "N days over" badge counts from the planned finish (the latest due of its tasks). While the initiative is open it counts to today. Once it is in its workflow\'s last stage (Closed, Done) it counts to when the work really finished: the end of its last Done task, else the day it moved into that stage. On time, the badge goes away and the card says Done with that date; late, it reads "Finished N days late" and that number never grows. '
61
61
  + 'Never change a date, a task or the stage to clear or shorten the badge: the dates are the record. When the PM asks why it shows, explain this rule.',
@@ -42,6 +42,8 @@
42
42
  * POST /api/boards/tasks/rename { ws, board, task, title } → { ok, from, item } only the title changes
43
43
  * POST /api/boards/tasks/edit { ws, board, task, owner?, notes?, start?, due?, initiative?, section?, milestone?, pinned?, parent?, description? } → { ok, from, item } the Viewer's edits in place
44
44
  * POST /api/boards/tasks/describe-draft { ws, board, task } → { ok, wrote, description?, sources?, from? } PMOS writes a task's description once (task-descriptions)
45
+ * POST /api/boards/tasks/comment { ws, board, task, text } → { ok, comment, comments } a comment on a task, a breakdown item or a Jira ticket, kept in
46
+ * PMOS only (task-detail-one-column: the task popup's Activity › Comments; `pmos task comment`). Nothing is sent to Jira
45
47
  * (parent: the task it sits under, '' for the top level; a task-parent line, any kind of task, a loop refused)
46
48
  * (milestone: true | false, the ◇ flag of batch 11 item 3; a Jira key takes the flag only)
47
49
  * (pinned: true | false | null, a milestone's pin on the Board timeline, batch 13 item 4; null = the rule, the last one only)
@@ -195,6 +197,11 @@ function withTracker(w, f, key, lines) {
195
197
  function descFields(d) {
196
198
  return { description: d.text, descBy: /^agent:/.test(String(d.by || '')) ? 'pmos' : 'you', descSources: (d.sources || []).map((x) => ({ path: x.path, line: x.line || null, title: x.title || '' })) };
197
199
  }
200
+ /** A folded comment as the page reads it: { text, by: 'you' | 'pmos' | name, at } (task-detail-one-column). Never the session token. */
201
+ function commentOf(c) {
202
+ const by = String((c && c.by) || '');
203
+ return { text: c.text, by: /^pm:/.test(by) ? 'you' : /^agent:/.test(by) ? 'pmos' : by || 'you', at: c.at || null };
204
+ }
198
205
  function append(file, actor, ev) {
199
206
  const line = { at: new Date().toISOString(), by: actor.by, ...ev };
200
207
  // a task line is the initiative's (D104): it goes to the initiative ledger; only when that ledger cannot be placed does it stay here
@@ -904,6 +911,9 @@ function itemsOf(w, fr, board, rows) {
904
911
  // the task's description (task-descriptions): carried only when set; descBy 'pmos' when PMOS wrote the last one, with its sources
905
912
  const DS = fr.folded.descriptions || new Map();
906
913
  if (DS.size) for (const x of out) if (x.src !== 'jira' && DS.has(x.uid)) Object.assign(x, descFields(DS.get(x.uid)));
914
+ // the task's comments (task-detail-one-column): carried only when there are some, for every kind of task (a Jira ticket's stay in PMOS)
915
+ const CM = fr.folded.comments || new Map();
916
+ if (CM.size) for (const x of out) if (x.kind !== 'Epic') { const c = CM.get(x.uid) || (x.src === 'jira' && x.key ? CM.get(String(x.key).toUpperCase()) : null); if (c && c.length) x.comments = c.map(commentOf); }
907
917
  return B.rollupItems(out);
908
918
  }
909
919
 
@@ -1841,6 +1851,25 @@ const WRITES = {
1841
1851
  describing.set(t.id, run);
1842
1852
  try { ctx.json(res, await run); } finally { describing.delete(t.id); }
1843
1853
  },
1854
+ '/api/boards/tasks/comment': (ctx, res, body, g) => {
1855
+ // a comment on a task (initiative task-detail-one-column): one line, any kind of task; Jira is never written
1856
+ const p = postFrame(ctx, res, body);
1857
+ if (!p) return;
1858
+ if (typeof body.task !== 'string' || !body.task) return fail(ctx, res, 400, 'task is a task id or a Jira key');
1859
+ if (typeof body.text !== 'string' || !body.text.trim()) return fail(ctx, res, 400, 'text is the comment: write something first');
1860
+ if (body.text.length > B.COMMENT_MAX) return fail(ctx, res, 400, `a comment is at most ${B.COMMENT_MAX} characters`);
1861
+ const jira = B.JIRA_KEY_RE.test(body.task) && !B.taskOf(p.fr.folded, body.task);
1862
+ let id = jira ? body.task.toUpperCase() : body.task;
1863
+ if (!jira) {
1864
+ const t0 = B.taskOf(p.fr.folded, body.task);
1865
+ if (!t0 && TI.isItemId(body.task)) { if (!itemOnBoard(ctx, res, p, body.task)) return; } else if (!t0 || t0.board !== p.board.id) return fail(ctx, res, 404, `no PMOS task ${body.task} on this board`);
1866
+ }
1867
+ if (!p.file) return fail(ctx, res, 409, NO_STATE);
1868
+ const line = append(p.file, g.actor, { kind: 'task-comment', board: p.board.id, task: id, text: body.text.replace(/\s+$/, ''), why: 'comment' });
1869
+ console.info('[task-detail] comment');
1870
+ const all = (B.fold(readLedger(ctx, p.w)).comments || new Map()).get(id) || [];
1871
+ ctx.json(res, { ok: true, comment: commentOf(line), comments: all.map(commentOf) });
1872
+ },
1844
1873
  '/api/boards/tasks/bulk': (ctx, res, body, g) => {
1845
1874
  // bulk move (initiative work-subtasks, board WorkBulkDS): several tasks under a parent, to a stage, to a person, by N days, or to Done.
1846
1875
  // Each task goes through the same route a single press uses; the answer's `undo` puts every one back in one press (tasks/bulk-undo)
@@ -2236,6 +2265,7 @@ function taskState(ctx, body, g) { return writeAs(ctx, '/api/boards/tasks/state'
2236
2265
  function taskAdd(ctx, body, g) { return writeAs(ctx, '/api/boards/tasks/add', body, g); }
2237
2266
  /** 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? }. */
2238
2267
  function taskEdit(ctx, body, g) { return writeAs(ctx, '/api/boards/tasks/edit', body, g); }
2268
+ function taskComment(ctx, body, g) { return writeAs(ctx, '/api/boards/tasks/comment', body, g); }
2239
2269
  /** PMOS's own description of a task (POST /api/boards/tasks/describe-draft; task-descriptions). → Promise<{ status, body }> after the draft. */
2240
2270
  async function describeDraft(ctx, body, g) {
2241
2271
  let out = { status: 500, body: { ok: false, error: 'the draft was not answered' } };
@@ -2332,4 +2362,4 @@ function meetingBoards(ctx) {
2332
2362
  return { list, detail };
2333
2363
  }
2334
2364
 
2335
- module.exports = { prefixes: ['/api/boards'], handle, tasksOfIni, postFrame, needRows, itemsOf, readLedger, foldOf, epicsOf, rowsOfBoard, invalidateRows: (w) => { rowsLib.invalidate(w.root); rowCache.delete(w.root); }, move, switchWorkflow, taskState, taskAdd, taskEdit, describeDraft, writeAs, taskDelete, taskRestore, initiativeWorkflow, seedInitiative, stageTasks, boardIndex, appendScanAsk, scanDeclineSignal, createAndPlace, startOnDefault, kindSwitch, kindFollowsWorkflow, recordKind, ledgerFile, append, frameFor, boardIdOf, meetingBoards, boardsOf, baseRows, boardRow, taskSpanOf, workflowRowOf, closedOf, foldOf, portfolio, SELF_REFUSAL, NO_STATE };
2365
+ module.exports = { prefixes: ['/api/boards'], handle, tasksOfIni, postFrame, needRows, itemsOf, readLedger, foldOf, epicsOf, rowsOfBoard, invalidateRows: (w) => { rowsLib.invalidate(w.root); rowCache.delete(w.root); }, move, switchWorkflow, taskState, taskAdd, taskEdit, taskComment, describeDraft, writeAs, taskDelete, taskRestore, initiativeWorkflow, seedInitiative, stageTasks, boardIndex, appendScanAsk, scanDeclineSignal, createAndPlace, startOnDefault, kindSwitch, kindFollowsWorkflow, recordKind, ledgerFile, append, frameFor, boardIdOf, meetingBoards, boardsOf, baseRows, boardRow, taskSpanOf, workflowRowOf, closedOf, foldOf, portfolio, SELF_REFUSAL, NO_STATE };