create-pmos 0.839.0 → 0.840.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 +75 -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/changelog.json +74 -10
- package/workspace/guide/cli.md +26 -0
- package/workspace/guide/layout.md +3 -1
- package/workspace/guide/programs.md +3 -0
- package/workspace/lib/app-versions.js +169 -0
- package/workspace/lib/features.json +2 -0
- package/workspace/lib/pmos-verbs.js +6 -0
- package/workspace/lib/roadmap-audiences.js +157 -0
- package/workspace/lib/roadmap-cli.js +68 -0
- package/workspace/lib/route-modules.js +2 -0
- package/workspace/lib/routes-app-versions.js +54 -0
- package/workspace/lib/routes-roadmap-audiences.js +55 -0
- package/workspace/lib/versions-cli.js +112 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/app-versions.js +97 -0
- package/workspace/public/pm/bd-ds.css +6 -0
- package/workspace/public/pm/bd-work-ds.css +26 -0
- package/workspace/public/pm/cozy-pop-work.js +7 -3
- package/workspace/public/pm/ini-detail.css +38 -0
- package/workspace/public/pm/ini-detail.js +117 -0
- package/workspace/public/pm/premium-board.js +28 -5
- package/workspace/public/pm/roadmap-audiences.js +72 -0
- package/workspace/public/pm/wk-sum.js +103 -0
- package/workspace/public/premium-board.html +3 -0
- package/workspace/test-lists/app-versions.json +9 -0
- package/workspace/test-lists/ini-detail.json +9 -0
- package/workspace/test-lists/roadmap-audiences.json +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.840.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -34,25 +34,89 @@
|
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
36
|
{
|
|
37
|
-
"v": "0.
|
|
38
|
-
"at": "2026-11-25T16:
|
|
37
|
+
"v": "0.840.0",
|
|
38
|
+
"at": "2026-11-25T16:57:47.577Z",
|
|
39
39
|
"f": 4,
|
|
40
40
|
"prs": [
|
|
41
41
|
{
|
|
42
|
-
"n":
|
|
43
|
-
"t": "
|
|
44
|
-
"s": "
|
|
42
|
+
"n": 2049,
|
|
43
|
+
"t": "The initiative page in two columns, with four numbers, Details and its Jira epics (job #2013, TbInitiative)",
|
|
44
|
+
"s": "The initiative page in two columns, with four numbers, Details and its Jira epics (job #2013, TbInitiative)",
|
|
45
45
|
"k": "new",
|
|
46
|
-
"i": "
|
|
46
|
+
"i": "tb-initiative-detail",
|
|
47
47
|
"try": {
|
|
48
48
|
"steps": [
|
|
49
|
-
"Open Work and
|
|
50
|
-
"
|
|
51
|
-
"
|
|
49
|
+
"Open Work and press an initiative",
|
|
50
|
+
"Read the four numbers at the top of the left column, and in the Work breakdown find a milestone row that says Milestone · ends and its stage",
|
|
51
|
+
"In the right column, press the Stage or Workflow value in Details to change it, and press a Jira epic to open it in Jira"
|
|
52
52
|
],
|
|
53
|
-
"see": "
|
|
53
|
+
"see": "The initiative page has two columns. The left column shows four numbers, the stages and the work breakdown. The right column shows the Overview and a Details card: Workflow, Stage, Anchor, Program,…",
|
|
54
54
|
"open": "/premium-board.html"
|
|
55
55
|
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"n": 2048,
|
|
59
|
+
"t": "Work › Initiatives summary strip, chips and Key results column (job #2038)",
|
|
60
|
+
"s": "Work › Initiatives summary strip, chips and Key results column (job #2038)",
|
|
61
|
+
"k": "new",
|
|
62
|
+
"h": "Work › Initiatives summary strip, chips and Key results column (job #2038)",
|
|
63
|
+
"try": {
|
|
64
|
+
"steps": [
|
|
65
|
+
"Open Work",
|
|
66
|
+
"Read the strip over the Initiatives tab and the Key results column on the right",
|
|
67
|
+
"Press the Over time chip, then All"
|
|
68
|
+
],
|
|
69
|
+
"see": "The strip counts the open initiatives. Over time shows only the rows past their stage's expected days; All shows every row again. Each key result names how many initiatives serve it and how they stand"
|
|
70
|
+
},
|
|
71
|
+
"i": "tb-initiatives-slices"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"n": 1963,
|
|
75
|
+
"t": "Versions on Work, old app versions and one force proposal the PM decides (job #1907, A211)",
|
|
76
|
+
"s": "Versions on Work, old app versions and one force proposal the PM decides (job #1907, A211)",
|
|
77
|
+
"k": "new",
|
|
78
|
+
"h": "Versions on Work, old app versions and one force proposal the PM decides (job #1907, A211)",
|
|
79
|
+
"try": {
|
|
80
|
+
"steps": [
|
|
81
|
+
"Open Work on one product whose Jira releases name versions (4.2, 4.1, 3.9)",
|
|
82
|
+
"Read the ✦ line in the Versions block above the initiatives and type the users still on each release (710, 220, 70), pressing ✓ beside each",
|
|
83
|
+
"The rows show newest first with their share of users; a bug its users hit comes from the chat (record a crash bug on 3.9) and then the ✦…"
|
|
84
|
+
],
|
|
85
|
+
"see": "Before any count, the Versions block names your Jira releases with a users field each, with no typed ask. After the counts, it lists 4.2, 4.1 and 3.9 with their share of users; once 3.9 has a crash…",
|
|
86
|
+
"open": "/premium-board.html"
|
|
87
|
+
},
|
|
88
|
+
"i": "app-versions"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"n": 2054,
|
|
92
|
+
"t": "The roadmap for exec, team or customer (job #2052, A88)",
|
|
93
|
+
"s": "The roadmap for exec, team or customer (job #2052, A88)",
|
|
94
|
+
"k": "new",
|
|
95
|
+
"h": "The roadmap for exec, team or customer (job #2052, A88)",
|
|
96
|
+
"try": {
|
|
97
|
+
"steps": [
|
|
98
|
+
"Open Work on one product and find Roadmap for others",
|
|
99
|
+
"Press Exec, then Team, then Customer, and read each version",
|
|
100
|
+
"On Customer, press ✓ beside an item to mark it for customers, then press the copy icon"
|
|
101
|
+
],
|
|
102
|
+
"see": "Exec shows each live roadmap item with its expected outcome and check date; Team shows stage, task owners and blocked tasks; Customer shows only the items you marked, by title and a plain word…",
|
|
103
|
+
"open": "/premium-board.html"
|
|
104
|
+
},
|
|
105
|
+
"i": "roadmap-audiences"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"v": "0.839.0",
|
|
111
|
+
"at": "2026-11-25T16:42:20.583Z",
|
|
112
|
+
"f": 4,
|
|
113
|
+
"prs": [
|
|
114
|
+
{
|
|
115
|
+
"n": 1982,
|
|
116
|
+
"t": "Report versions, languages and the standup show by themselves (job #1987)",
|
|
117
|
+
"s": "Report versions, languages and the standup show by themselves (job #1987)",
|
|
118
|
+
"k": "new",
|
|
119
|
+
"i": "surface-reports"
|
|
56
120
|
}
|
|
57
121
|
]
|
|
58
122
|
},
|
|
@@ -1055,20 +1119,6 @@
|
|
|
1055
1119
|
"i": "ci-main-unblock"
|
|
1056
1120
|
}
|
|
1057
1121
|
]
|
|
1058
|
-
},
|
|
1059
|
-
{
|
|
1060
|
-
"v": "0.814.0",
|
|
1061
|
-
"at": "2026-11-25T07:02:21.301Z",
|
|
1062
|
-
"f": 4,
|
|
1063
|
-
"prs": [
|
|
1064
|
-
{
|
|
1065
|
-
"n": 1854,
|
|
1066
|
-
"t": "Ask PMOS about anything you press (right-click / long-press), A528",
|
|
1067
|
-
"s": "Ask PMOS about anything you press (right-click / long-press), A528",
|
|
1068
|
-
"k": "new",
|
|
1069
|
-
"i": "ask-anywhere"
|
|
1070
|
-
}
|
|
1071
|
-
]
|
|
1072
1122
|
}
|
|
1073
1123
|
]
|
|
1074
1124
|
}
|
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-11-25T16:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T16:57:43Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-25T16:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T16:57:43Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-25T16:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T16:57:43Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,24 +1,88 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"v": "0.
|
|
4
|
-
"at": "2026-11-25T16:
|
|
3
|
+
"v": "0.840.0",
|
|
4
|
+
"at": "2026-11-25T16:57:47.577Z",
|
|
5
5
|
"f": 4,
|
|
6
6
|
"prs": [
|
|
7
7
|
{
|
|
8
|
-
"n":
|
|
9
|
-
"t": "
|
|
10
|
-
"s": "
|
|
8
|
+
"n": 2049,
|
|
9
|
+
"t": "The initiative page in two columns, with four numbers, Details and its Jira epics (job #2013, TbInitiative)",
|
|
10
|
+
"s": "The initiative page in two columns, with four numbers, Details and its Jira epics (job #2013, TbInitiative)",
|
|
11
11
|
"k": "new",
|
|
12
|
-
"i": "
|
|
12
|
+
"i": "tb-initiative-detail",
|
|
13
13
|
"try": {
|
|
14
14
|
"steps": [
|
|
15
|
-
"Open Work and
|
|
16
|
-
"
|
|
17
|
-
"
|
|
15
|
+
"Open Work and press an initiative",
|
|
16
|
+
"Read the four numbers at the top of the left column, and in the Work breakdown find a milestone row that says Milestone · ends and its stage",
|
|
17
|
+
"In the right column, press the Stage or Workflow value in Details to change it, and press a Jira epic to open it in Jira"
|
|
18
18
|
],
|
|
19
|
-
"see": "
|
|
19
|
+
"see": "The initiative page has two columns. The left column shows four numbers, the stages and the work breakdown. The right column shows the Overview and a Details card: Workflow, Stage, Anchor, Program,…",
|
|
20
20
|
"open": "/premium-board.html"
|
|
21
21
|
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"n": 2048,
|
|
25
|
+
"t": "Work › Initiatives summary strip, chips and Key results column (job #2038)",
|
|
26
|
+
"s": "Work › Initiatives summary strip, chips and Key results column (job #2038)",
|
|
27
|
+
"k": "new",
|
|
28
|
+
"h": "Work › Initiatives summary strip, chips and Key results column (job #2038)",
|
|
29
|
+
"try": {
|
|
30
|
+
"steps": [
|
|
31
|
+
"Open Work",
|
|
32
|
+
"Read the strip over the Initiatives tab and the Key results column on the right",
|
|
33
|
+
"Press the Over time chip, then All"
|
|
34
|
+
],
|
|
35
|
+
"see": "The strip counts the open initiatives. Over time shows only the rows past their stage's expected days; All shows every row again. Each key result names how many initiatives serve it and how they stand"
|
|
36
|
+
},
|
|
37
|
+
"i": "tb-initiatives-slices"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"n": 1963,
|
|
41
|
+
"t": "Versions on Work, old app versions and one force proposal the PM decides (job #1907, A211)",
|
|
42
|
+
"s": "Versions on Work, old app versions and one force proposal the PM decides (job #1907, A211)",
|
|
43
|
+
"k": "new",
|
|
44
|
+
"h": "Versions on Work, old app versions and one force proposal the PM decides (job #1907, A211)",
|
|
45
|
+
"try": {
|
|
46
|
+
"steps": [
|
|
47
|
+
"Open Work on one product whose Jira releases name versions (4.2, 4.1, 3.9)",
|
|
48
|
+
"Read the ✦ line in the Versions block above the initiatives and type the users still on each release (710, 220, 70), pressing ✓ beside each",
|
|
49
|
+
"The rows show newest first with their share of users; a bug its users hit comes from the chat (record a crash bug on 3.9) and then the ✦…"
|
|
50
|
+
],
|
|
51
|
+
"see": "Before any count, the Versions block names your Jira releases with a users field each, with no typed ask. After the counts, it lists 4.2, 4.1 and 3.9 with their share of users; once 3.9 has a crash…",
|
|
52
|
+
"open": "/premium-board.html"
|
|
53
|
+
},
|
|
54
|
+
"i": "app-versions"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"n": 2054,
|
|
58
|
+
"t": "The roadmap for exec, team or customer (job #2052, A88)",
|
|
59
|
+
"s": "The roadmap for exec, team or customer (job #2052, A88)",
|
|
60
|
+
"k": "new",
|
|
61
|
+
"h": "The roadmap for exec, team or customer (job #2052, A88)",
|
|
62
|
+
"try": {
|
|
63
|
+
"steps": [
|
|
64
|
+
"Open Work on one product and find Roadmap for others",
|
|
65
|
+
"Press Exec, then Team, then Customer, and read each version",
|
|
66
|
+
"On Customer, press ✓ beside an item to mark it for customers, then press the copy icon"
|
|
67
|
+
],
|
|
68
|
+
"see": "Exec shows each live roadmap item with its expected outcome and check date; Team shows stage, task owners and blocked tasks; Customer shows only the items you marked, by title and a plain word…",
|
|
69
|
+
"open": "/premium-board.html"
|
|
70
|
+
},
|
|
71
|
+
"i": "roadmap-audiences"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"v": "0.839.0",
|
|
77
|
+
"at": "2026-11-25T16:42:20.583Z",
|
|
78
|
+
"f": 4,
|
|
79
|
+
"prs": [
|
|
80
|
+
{
|
|
81
|
+
"n": 1982,
|
|
82
|
+
"t": "Report versions, languages and the standup show by themselves (job #1987)",
|
|
83
|
+
"s": "Report versions, languages and the standup show by themselves (job #1987)",
|
|
84
|
+
"k": "new",
|
|
85
|
+
"i": "surface-reports"
|
|
22
86
|
}
|
|
23
87
|
]
|
|
24
88
|
},
|
package/workspace/guide/cli.md
CHANGED
|
@@ -624,6 +624,17 @@ Once a product's five strategy lines are written, PMOS drafts a positioning stat
|
|
|
624
624
|
- `pmos positioning keep --text "<line>" --cites bet,for` keeps a line. `--kind positioning` makes it the positioning statement; the default is a key message. A line that cites no written strategy line is refused.
|
|
625
625
|
- `pmos positioning drop <id>` drops a kept line.
|
|
626
626
|
|
|
627
|
+
### pmos versions: old app versions still in use
|
|
628
|
+
|
|
629
|
+
For a product that ships an app, Work shows a Versions block below the principles: one row per version still in use, newest first, with its share of users and the open bugs its users hit. A bug counts only on the versions it is recorded against. At most one ✦ line proposes which version to force, with the reason. Forcing an update is an outward change, so PMOS never does it: your ✓ only records your decision, with Undo. Run the commands in the product's repository, or pass `--root <dir>`. The records are in `app-versions.jsonl` in the product's records folder, and Work shows what these commands write.
|
|
630
|
+
|
|
631
|
+
- `pmos versions list` shows each version in use and the ✦ proposal. `--json` prints the rows and the proposal.
|
|
632
|
+
- `pmos versions set <version> --users <count> --source "<where>"` records the users on a version, from your own source (a store console, an analytics export). `--users 7%` records a share. A count with no source is refused: PMOS never guesses one.
|
|
633
|
+
- `pmos versions gone <version>` says a version is no longer in use.
|
|
634
|
+
- `pmos versions bug --key <id> --title "<what goes wrong>" --version <version> --source "<where>"` records an open bug and the version its users hit it on. Repeat `--version` for more versions. `--crash` marks a crash. A bug with no version is refused.
|
|
635
|
+
- `pmos versions fixed <key>` says the bug is fixed.
|
|
636
|
+
- `pmos versions force <version>` records that you will force the update from that version. PMOS sends nothing. `pmos versions leave <version>` leaves that version alone. `pmos versions undo` takes back the last force or leave. A background run cannot use these three.
|
|
637
|
+
|
|
627
638
|
### pmos parked: parked work, why and the way back
|
|
628
639
|
|
|
629
640
|
An initiative on hold keeps why it is parked and what brings it back: a return day, or another initiative that must finish first. A reason that says "waiting on <id>" names the way back too. When the way back is met, Today shows "Bring back …?".
|
|
@@ -853,6 +864,21 @@ The text form prints one column per block, then one line for each card: the init
|
|
|
853
864
|
|
|
854
865
|
`pmos board` exits with 0 when it printed Work, 1 when the initiative is not on Work, and 2 when the command line is wrong.
|
|
855
866
|
|
|
867
|
+
### pmos roadmap: the roadmap for leadership, the team or customers
|
|
868
|
+
|
|
869
|
+
Work shows a Roadmap for others block with three tabs: Exec, Team and Customer. `pmos roadmap` prints the same versions, so a chat can too. Each version is the live roadmap in rank order, read again on every run, so it follows the plan. Nothing is sent: it prints, or writes the one local file `--out` names.
|
|
870
|
+
|
|
871
|
+
```
|
|
872
|
+
pmos roadmap for exec|team|customer [--out <file>] [--json]
|
|
873
|
+
pmos roadmap share|unshare <initiative>
|
|
874
|
+
```
|
|
875
|
+
|
|
876
|
+
- `pmos roadmap for exec`: each item with its expected outcome and the date to check it.
|
|
877
|
+
- `pmos roadmap for team`: each item with its stage, the task owners and up to 2 blocked or waiting tasks.
|
|
878
|
+
- `pmos roadmap for customer`: only the items marked for customers, each by title with a plain word (Planned, In progress, Shipped). It shows no names, ids or anchors.
|
|
879
|
+
- `pmos roadmap share <initiative>` marks an item for customers, and `pmos roadmap unshare <initiative>` takes the mark off. The ✓ beside an item on the Customer tab does the same.
|
|
880
|
+
- At most 20 items show; the rest is one line, "and N more on the roadmap".
|
|
881
|
+
|
|
856
882
|
### pmos signal: customer signals behind each roadmap item
|
|
857
883
|
|
|
858
884
|
Work shows on each roadmap item how many customer signals back it. A press on the count lists them. On a phone, a tap on the item opens its panel with the same list. `pmos signal` adds and removes them, so a chat can too. It works on the git root of the current folder; `--root <dir>` names another.
|
|
@@ -190,7 +190,9 @@ A phone keeps its own layout. A shared read-only Work has no popup.
|
|
|
190
190
|
|
|
191
191
|
On a computer the popup is built from the parts of the PMOS design system. The top line shows **Work ›**, the initiative's name, the **Initiative** chip and one line under it: the stage, the goal it is anchored to, when it opened and its owner. Press **Work** or ← to go back to the page.
|
|
192
192
|
|
|
193
|
-
**
|
|
193
|
+
**Two columns.** The page has two columns. The left column starts with four numbers: how many days the initiative has been in its stage (in red when that is more than the usual), how many tasks are done (with the count of each stage that started), the next date a task is due (with how many fall on it, or the milestone's name) and the end of the plan (with the days left). Under them are the Stages and the Work breakdown. The right column holds the Overview, then **Details**, then People. **Details** shows Workflow, Stage (and since when), Anchor, Program, Owner, Opened, Ends, then Status, Next milestone, Goal and Product, and the initiative's **Jira epics**. Press Workflow, Stage, Program or Ends to change it; press a Jira epic to open it in Jira. A field with no value is not shown. In the Work breakdown, a milestone says **Milestone · ends** and the name of its stage. On a narrow window the right column goes under the left one. On a phone the page is as before.
|
|
194
|
+
|
|
195
|
+
**Overview** is one block across the top of the right column; in it, the parts below are one under the other, and its Details part is the Details card. Press its name to fold it, and press it again to open it. PMOS keeps your choice for every initiative, on each device you use. When it is folded, it shows one line of **Where it stands**, and **1 suggestion** (or more) when PMOS has one; press that to open it. When it is open, it shows three parts side by side:
|
|
194
196
|
|
|
195
197
|
- **Where it stands.** What is happening, in a few sentences. Then **Next**: the next three dates, a milestone as a diamond and the outcome check as a circle; press a milestone to open it. Then one suggestion from PMOS with **Why**, **PMOS will** and **Based on**. The pencil opens it so you can change it first, ✓ does it and ✕ drops it. Other suggestions are one link under it.
|
|
196
198
|
- **The case.** **Problem**, **Goal** and **Done when** from the initiative's records. Press a line to change it. A line not written offers a PMOS draft (✦) or ✕. When no line is written yet, one suggestion offers to draft them all from what is linked: ✓ sends the request to the chat, ✕ says not this, and the pencil lets you write it yourself. When PMOS drafts several lines from one press, one message names them ("Problem and Goal drafted."), and its **Undo** takes back every line it wrote. When the chat saves a line, the case shows it as soon as the chat's turn ends, with no reload and no commit. It also reads its lines again when you come back to the page.
|
|
@@ -69,6 +69,9 @@ The weekly update on Today follows the same rules. PMOS drafts it only when some
|
|
|
69
69
|
- A product's group head works like a program's: press the product's tile or name to open its page in Today's Viewer. Press the chevron to fold the group. This works in every view: the stage track, Kanban, the timeline and List. On a shared board, the product's name is plain text.
|
|
70
70
|
- To group by product only, press the tune button in the top row and choose **By product** under **Group**. A program member then shows a small layers icon and stays under its product in every view, the timeline included.
|
|
71
71
|
- **Grouped by goal, Work's table groups by objective.** Each initiative sits under the objective its key result belongs to, for example **O1 · Sign-in is fast and nobody is locked out**, in your OKR file's order. Health budgets come next, then **No goal yet**. Under each initiative's name a short line says which key result it serves, for example "Serves KR1.1".
|
|
72
|
+
- **The strip over Work's initiatives** counts the open initiatives, how many are over time (past their stage's expected days), how many tasks are done and which initiatives have no owner. A count of zero is not shown.
|
|
73
|
+
- **The chips under Initiatives** show only the rows that are Over time, Wait on you, or have No epic. Press the chip again, or **All**, to see every row.
|
|
74
|
+
- **The Key results column**, on the right on a wide screen, lists each key result your initiatives serve, how many serve it and how they stand.
|
|
72
75
|
- **By goal** is Work's first grouping, in every view: the stage track, By stage, the timeline and List, and on a shared Work link. Each goal row shows the goal's name, its KR id and its reading ("KR-A1 · no reading yet"), the spread of its initiatives over the steps, and in the Next column its target and where the reading comes from. A health budget is a goal too: its cap is the target, and its share of the open initiatives is its reading. The goals come from your OKR file and your health budgets; nothing is typed here. An initiative whose anchor names no goal sits under **No goal yet**. On By stage each goal is a swimlane, on the timeline and in List a row over its initiatives; each one folds. Choose **Programs first** or **By product** under **Group** for the other groupings.
|
|
73
76
|
- The **Next** column says what PMOS does next, with ✦, for example "PMOS writes the experiment" or "PMOS reads the outcome". It does not ask you to write a document. Only your calls show in blue with a person icon: **Your call** · did it work?, move it to the next stage, send the drafted tickets to Jira, and the release sign-off. Ticket and task counts stay.
|
|
74
77
|
- **Kanban** shows programs as swimlanes, then products. Press a column header to fold the column to a strip with its count. An empty column starts folded. Work remembers each fold.
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* app-versions.js — which versions of a product's app are still in use, the open bugs their users hit, and at most one ✦ proposal of
|
|
3
|
+
* which version to force (idea A211, initiative app-versions, board BatchReleaseDS panel 22).
|
|
4
|
+
*
|
|
5
|
+
* read(dir) → { versions: { <v>: { users, unit, source, at, gone } }, bugs: { <key>: { title, versions, crash, open, source } },
|
|
6
|
+
* decided: { <v>: 'force' | 'leave' } } the fold of <dir>/app-versions.jsonl, last line wins
|
|
7
|
+
* rows(state) → [{ version, users, unit, share, bugs: [{ key, title, crash }], crash, forced }] PURE, newest first
|
|
8
|
+
* proposal(state, rows?) → null | { version, share, bugs, crashes, text } PURE, at most one ✦
|
|
9
|
+
* setUsers(dir, { version, users, source }, now?) users: a count (710) or a share ("7%")
|
|
10
|
+
* gone(dir, version) · bug(dir, { key, title, versions, crash, source }) · fixed(dir, key)
|
|
11
|
+
* decide(dir, version, 'force' | 'leave') · undo(dir) → takes back the last force or leave
|
|
12
|
+
* releases(root, state?) → ['4.2', '4.1', …] the release names in the product's stored Jira readings (fixVersions) not recorded
|
|
13
|
+
* yet, newest first, at most 4: the block's way in when nothing is recorded (LINE.md Rule 12). Read-only.
|
|
14
|
+
* every write → { ok, … } | { ok: false, error }
|
|
15
|
+
*
|
|
16
|
+
* WHERE. `dir` is the product's records folder (lib/records-dir.js): planning/records in the PMOS repo, pmos/state/records in a kit product.
|
|
17
|
+
* The file is append-only. The counts come from the user's own sources (store console, analytics export), each write names its source;
|
|
18
|
+
* PMOS never guesses a count.
|
|
19
|
+
*
|
|
20
|
+
* THE RULES (board panel 22).
|
|
21
|
+
* · One row per version still in use: users above 0 and not marked gone. Newest first by version number (4.10 before 4.9).
|
|
22
|
+
* · A bug counts on a version only when it is open and recorded against that version. A bug with no version counts nowhere.
|
|
23
|
+
* · At most one ✦: among the versions that are not the newest, not forced or left by the PM, with at least one open bug, the one whose
|
|
24
|
+
* users hit the most crashes, then the most bugs, then the oldest. The reason says the share of users, the bugs and the crashes.
|
|
25
|
+
* · Forcing an update is an outward change. Nothing here forces one: `decide` only records the PM's own decision, and nothing in PMOS
|
|
26
|
+
* calls it except the PM's press on Work (page-press POST) or the PM's `pmos versions force`, which refuses inside a background run. */
|
|
27
|
+
const fs = require('fs');
|
|
28
|
+
const path = require('path');
|
|
29
|
+
|
|
30
|
+
const FILE = 'app-versions.jsonl';
|
|
31
|
+
const VERSION_RE = /^[0-9A-Za-z][0-9A-Za-z._+-]{0,39}$/;
|
|
32
|
+
const KEY_RE = /^[^\s]{1,60}$/;
|
|
33
|
+
const MAX_TEXT = 160;
|
|
34
|
+
|
|
35
|
+
const fileOf = (dir) => path.join(dir, FILE);
|
|
36
|
+
function lines(dir) {
|
|
37
|
+
let raw = '';
|
|
38
|
+
try { raw = fs.readFileSync(fileOf(dir), 'utf8'); } catch { return []; }
|
|
39
|
+
const out = [];
|
|
40
|
+
for (const l of raw.split('\n')) { if (!l.trim()) continue; try { out.push(JSON.parse(l)); } catch { /* a torn line is skipped */ } }
|
|
41
|
+
return out;
|
|
42
|
+
}
|
|
43
|
+
function append(dir, line, now = Date.now()) {
|
|
44
|
+
const row = { at: new Date(now).toISOString(), ...line };
|
|
45
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
46
|
+
fs.appendFileSync(fileOf(dir), JSON.stringify(row) + '\n');
|
|
47
|
+
return row;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** Compare two version names, newest first: numbers compare as numbers (4.10 > 4.9), other parts as text. */
|
|
51
|
+
function cmpDesc(a, b) {
|
|
52
|
+
const pa = String(a).split(/[.\-+_]/), pb = String(b).split(/[.\-+_]/);
|
|
53
|
+
for (let i = 0; i < Math.max(pa.length, pb.length); i++) {
|
|
54
|
+
const x = pa[i], y = pb[i];
|
|
55
|
+
if (x === undefined) return 1;
|
|
56
|
+
if (y === undefined) return -1;
|
|
57
|
+
const nx = /^\d+$/.test(x), ny = /^\d+$/.test(y);
|
|
58
|
+
if (nx && ny && Number(x) !== Number(y)) return Number(y) - Number(x);
|
|
59
|
+
if (nx !== ny) return nx ? -1 : 1;
|
|
60
|
+
if (!nx && x !== y) return x < y ? 1 : -1;
|
|
61
|
+
}
|
|
62
|
+
return 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function read(dir) {
|
|
66
|
+
const S = { versions: {}, bugs: {}, decided: {} };
|
|
67
|
+
const stack = []; // the force and leave decisions, for undo
|
|
68
|
+
for (const l of lines(dir)) {
|
|
69
|
+
const v = l.version != null ? String(l.version) : '';
|
|
70
|
+
if (l.ev === 'users' && v) S.versions[v] = { users: Number(l.users) || 0, unit: l.unit === '%' ? '%' : 'users', source: l.source || '', at: l.at, gone: false };
|
|
71
|
+
else if (l.ev === 'gone' && v && S.versions[v]) S.versions[v].gone = true;
|
|
72
|
+
else if (l.ev === 'bug' && l.key) S.bugs[l.key] = { title: l.title || '', versions: Array.isArray(l.versions) ? l.versions.map(String) : [], crash: !!l.crash, open: true, source: l.source || '' };
|
|
73
|
+
else if (l.ev === 'fixed' && l.key && S.bugs[l.key]) S.bugs[l.key].open = false;
|
|
74
|
+
else if ((l.ev === 'force' || l.ev === 'leave') && v) { stack.push({ v, was: S.decided[v] }); S.decided[v] = l.ev; }
|
|
75
|
+
else if (l.ev === 'undo') { const last = stack.pop(); if (last) { if (last.was) S.decided[last.v] = last.was; else delete S.decided[last.v]; } }
|
|
76
|
+
}
|
|
77
|
+
S.undoable = stack.length > 0;
|
|
78
|
+
return S;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function rows(state) {
|
|
82
|
+
const live = Object.entries((state && state.versions) || {}).filter(([, x]) => !x.gone && x.users > 0);
|
|
83
|
+
const counts = live.filter(([, x]) => x.unit === 'users');
|
|
84
|
+
const total = counts.reduce((n, [, x]) => n + x.users, 0);
|
|
85
|
+
const bugs = Object.entries((state && state.bugs) || {}).filter(([, b]) => b.open);
|
|
86
|
+
return live.sort(([a], [b]) => cmpDesc(a, b)).map(([version, x]) => {
|
|
87
|
+
const hit = bugs.filter(([, b]) => b.versions.includes(version)).map(([key, b]) => ({ key, title: b.title, crash: b.crash }));
|
|
88
|
+
hit.sort((a, b) => Number(b.crash) - Number(a.crash));
|
|
89
|
+
const share = x.unit === '%' ? x.users : (total && counts.length === live.length ? Math.round((x.users / total) * 100) : null);
|
|
90
|
+
return { version, users: x.users, unit: x.unit, share, source: x.source, bugs: hit, crash: hit.filter((b) => b.crash).length, forced: (state.decided || {})[version] === 'force' };
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const usersWord = (r) => (r.share != null ? r.share + ' % of users' : r.users + (r.unit === '%' ? ' %' : ' users'));
|
|
95
|
+
function proposal(state, rs) {
|
|
96
|
+
const list = rs || rows(state);
|
|
97
|
+
if (list.length < 2) return null;
|
|
98
|
+
const decided = (state && state.decided) || {};
|
|
99
|
+
const pick = list.slice(1).filter((r) => r.bugs.length && !decided[r.version])
|
|
100
|
+
.sort((a, b) => (b.crash - a.crash) || (b.bugs.length - a.bugs.length) || cmpDesc(b.version, a.version))[0];
|
|
101
|
+
if (!pick) return null;
|
|
102
|
+
const n = pick.bugs.length;
|
|
103
|
+
const text = `Force an update from ${pick.version}: ${usersWord(pick)}, ${n} bug${n === 1 ? '' : 's'}${pick.crash ? (pick.crash === 1 ? ', one a crash' : `, ${pick.crash} crashes`) : ''}.`;
|
|
104
|
+
return { version: pick.version, share: pick.share, bugs: n, crashes: pick.crash, text };
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function releases(root, state, max = 4) {
|
|
108
|
+
let names = [], JT = null, JS = null;
|
|
109
|
+
try { JT = require('./jira-tickets.js'); JS = require('./jira-status.js'); names = fs.readdirSync(JT.jiraDir(root)); } catch { return []; }
|
|
110
|
+
const known = new Set(Object.keys((state && state.versions) || {}));
|
|
111
|
+
const seen = new Set();
|
|
112
|
+
for (const n of names) {
|
|
113
|
+
if (!n.endsWith('.md') || n.endsWith('-tickets.md')) continue;
|
|
114
|
+
let snap = null;
|
|
115
|
+
try { snap = JS.readSnapshot(root, n.slice(0, -3)); } catch { snap = null; }
|
|
116
|
+
for (const tk of snap ? snap.tickets.values() : []) {
|
|
117
|
+
for (const v of [].concat(tk.fixVersion || [])) { const s = String(v).trim(); if (VERSION_RE.test(s) && !known.has(s)) seen.add(s); }
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return [...seen].sort(cmpDesc).slice(0, max);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
const clean = (s) => String(s == null ? '' : s).replace(/\s+/g, ' ').trim().slice(0, MAX_TEXT);
|
|
124
|
+
const fail = (error) => ({ ok: false, error });
|
|
125
|
+
|
|
126
|
+
function setUsers(dir, { version, users, source } = {}, now) {
|
|
127
|
+
const v = String(version || '');
|
|
128
|
+
if (!VERSION_RE.test(v)) return fail('a version looks like 4.2 or 3.9.1');
|
|
129
|
+
const m = /^\s*(\d+(?:\.\d+)?)\s*(%?)\s*$/.exec(String(users == null ? '' : users));
|
|
130
|
+
if (!m) return fail('--users is a count (710) or a share (7%)');
|
|
131
|
+
if (m[2] && Number(m[1]) > 100) return fail('a share is 100% at most');
|
|
132
|
+
if (!clean(source)) return fail('--source "<where the count comes from>" is needed: PMOS never guesses a count');
|
|
133
|
+
return { ok: true, line: append(dir, { ev: 'users', version: v, users: Number(m[1]), unit: m[2] ? '%' : 'users', source: clean(source) }, now) };
|
|
134
|
+
}
|
|
135
|
+
function gone(dir, version, now) {
|
|
136
|
+
const v = String(version || '');
|
|
137
|
+
if (!read(dir).versions[v]) return fail(`no version ${v} is recorded`);
|
|
138
|
+
return { ok: true, line: append(dir, { ev: 'gone', version: v }, now) };
|
|
139
|
+
}
|
|
140
|
+
function bug(dir, { key, title, versions, crash, source } = {}, now) {
|
|
141
|
+
const k = String(key || '');
|
|
142
|
+
if (!KEY_RE.test(k)) return fail('--key <the bug\'s id> is needed (PAY-12)');
|
|
143
|
+
if (!clean(title)) return fail('--title "<what goes wrong>" is needed');
|
|
144
|
+
const vs = (Array.isArray(versions) ? versions : [versions]).filter((x) => x != null && x !== '').map(String);
|
|
145
|
+
if (!vs.length) return fail('--version <the version its users hit it on> is needed; a bug with no version counts nowhere');
|
|
146
|
+
const badV = vs.find((x) => !VERSION_RE.test(x));
|
|
147
|
+
if (badV) return fail(`"${badV}" is not a version`);
|
|
148
|
+
if (!clean(source)) return fail('--source "<where the bug is filed>" is needed');
|
|
149
|
+
return { ok: true, line: append(dir, { ev: 'bug', key: k, title: clean(title), versions: [...new Set(vs)], crash: !!crash, source: clean(source) }, now) };
|
|
150
|
+
}
|
|
151
|
+
function fixed(dir, key, now) {
|
|
152
|
+
const k = String(key || '');
|
|
153
|
+
if (!read(dir).bugs[k]) return fail(`no bug ${k} is recorded`);
|
|
154
|
+
return { ok: true, line: append(dir, { ev: 'fixed', key: k }, now) };
|
|
155
|
+
}
|
|
156
|
+
/** The PM's own decision on a version: 'force' (the PM will force the update where the app's updates are set) or 'leave'. Nothing is sent. */
|
|
157
|
+
function decide(dir, version, act, now) {
|
|
158
|
+
const v = String(version || '');
|
|
159
|
+
if (act !== 'force' && act !== 'leave') return fail('the decision is force or leave');
|
|
160
|
+
const S = read(dir);
|
|
161
|
+
if (!rows(S).some((r) => r.version === v)) return fail(`version ${v} is not in use`);
|
|
162
|
+
return { ok: true, line: append(dir, { ev: act, version: v, by: 'pm' }, now) };
|
|
163
|
+
}
|
|
164
|
+
function undo(dir, now) {
|
|
165
|
+
if (!read(dir).undoable) return fail('there is no force or leave to take back');
|
|
166
|
+
return { ok: true, line: append(dir, { ev: 'undo' }, now) };
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
module.exports = { FILE, read, rows, proposal, setUsers, gone, bug, fixed, decide, undo, releases, cmpDesc, usersWord };
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
{"id": "parked", "audience": "user", "status": "ga", "group": "Catch up", "name": "Parked work", "say": "Each initiative on hold, why it is parked and what brings it back.", "cmd": "/parked", "verb": "parked", "sub": "list", "phrases": ["parked work", "what is on hold", "what is parked", "paused initiatives"], "since": "0.700.0"},
|
|
17
17
|
{"id": "people", "audience": "user", "status": "ga", "group": "Catch up", "name": "People you work with", "say": "Each person with their role, how often you talk and their tone.", "cmd": "/people", "verb": "people", "sub": "list", "phrases": ["who do I work with", "stakeholders list", "people on this", "who is involved"], "since": "0.610.0"},
|
|
18
18
|
{"id": "strategy", "audience": "user", "status": "ga", "group": "Your product", "name": "Five-line strategy", "say": "Who it is for, the problem, the bet, how you win and what you will not do.", "cmd": "/strategy", "verb": "strategy", "sub": "show", "place": "board", "phrases": ["our strategy", "product strategy", "draft the strategy", "how we win"], "since": "0.776.0", "ask": ["product"]},
|
|
19
|
+
{"id": "versions", "audience": "user", "status": "beta", "group": "Your product", "name": "Old app versions", "say": "The app versions still in use, the open bugs their users hit, and which one to force.", "cmd": "/versions", "verb": "versions", "sub": "list", "since": "0.830.0"},
|
|
19
20
|
{"id": "segments", "audience": "user", "status": "ga", "group": "Your product", "name": "Segments", "say": "A few user groups with their size and health, and the roadmap items that serve each.", "cmd": "/segments", "verb": "segments", "sub": "list", "place": "board", "since": "0.822.0"},
|
|
20
21
|
{"id": "code", "audience": "user", "status": "ga", "group": "Your product", "name": "Code map", "say": "One line per main part of the code: what it is, how it is tested, who changed it last.", "cmd": "/code", "verb": "code", "sub": "show", "place": "board", "since": "0.826.0", "ask": ["product"]},
|
|
21
22
|
{"id": "connectors", "audience": "user", "status": "ga", "group": "Your product", "name": "What connectors read and write", "say": "What PMOS reads and writes through each connector, and what leaves this computer.", "cmd": "/connectors", "verb": "connectors", "sub": "data", "since": "0.825.0"},
|
|
@@ -83,6 +84,7 @@
|
|
|
83
84
|
{"id": "git-identity", "audience": "user", "status": "ga", "group": "Find your way", "name": "Your git identity", "say": "Which git identity and GitHub login this repository uses.", "cmd": "/git-identity", "verb": "git-identity"},
|
|
84
85
|
{"id": "voice", "audience": "user", "status": "ga", "group": "Your product", "name": "Customer voice", "say": "Survey comments and app-store reviews grouped by reason, the fastest-growing first.", "cmd": "/voice", "verb": "voice"},
|
|
85
86
|
{"id": "signal", "audience": "user", "status": "ga", "group": "Your product", "name": "Customer signals", "say": "The customer signals behind each roadmap item.", "cmd": "/signal", "verb": "signal", "hint": "<item>"},
|
|
87
|
+
{"id": "roadmap", "audience": "user", "status": "ga", "group": "Your product", "name": "Roadmap for others", "say": "The ranked roadmap written for leadership, the team or customers.", "cmd": "/roadmap", "verb": "roadmap", "hint": "for exec|team|customer"},
|
|
86
88
|
{"id": "launcher", "audience": "user", "status": "ga", "group": "Find your way", "name": "Start without a terminal", "say": "A PMOS app and a login item, so the workspace starts by itself.", "cmd": "/launcher", "verb": "launcher"},
|
|
87
89
|
{"id": "verify-work", "audience": "agent", "status": "ga", "group": "What PMOS did", "name": "Mark integrated work", "say": "A build run marks work items integrated from the default branch.", "cmd": "/verify-work", "verb": "verify-work"},
|
|
88
90
|
{"id": "build", "audience": "agent", "status": "ga", "group": "What PMOS did", "name": "The Builder", "say": "A declared work item becomes a pull request; the factory's runs use it.", "cmd": "/build", "verb": "build"},
|
|
@@ -212,6 +212,9 @@ const VERBS = Object.freeze({
|
|
|
212
212
|
// Not a pm-os-absorb verb (run: null): initiative strategy-draft (Wawan 2026-11-24) added it through the same table.
|
|
213
213
|
strategy: Object.freeze({ module: 'strategy-cli.js', run: null, guide: 'cli.md',
|
|
214
214
|
help: 'pmos strategy show|sources|draft|set|undo — the product\'s five-line strategy; PMOS drafts blank lines from the product\'s files, each citing them (pmos strategy help)' }),
|
|
215
|
+
// Not a pm-os-absorb verb (run: null): initiative app-versions (idea A211) added it through the same table.
|
|
216
|
+
versions: Object.freeze({ module: 'versions-cli.js', run: null, guide: 'cli.md',
|
|
217
|
+
help: 'pmos versions list|set|gone|bug|fixed|force|leave|undo — the app versions still in use, the open bugs their users hit, and which one to force; PMOS sends nothing (pmos versions help)' }),
|
|
215
218
|
// Not a pm-os-absorb verb (run: null): initiative declined-asks-reply (bet A326) added it through the same table.
|
|
216
219
|
declined: Object.freeze({ module: 'declined-cli.js', run: null, guide: 'cli.md',
|
|
217
220
|
help: 'pmos declined list|draft|record — asks closed without being done, each with a kind reply draft PMOS never sends; record one in the out-of-scope list (pmos declined help)' }),
|
|
@@ -274,6 +277,9 @@ const VERBS = Object.freeze({
|
|
|
274
277
|
// Not a pm-os-absorb verb (run: null): roadmap-signal-verb (bet A157) added it through the same table.
|
|
275
278
|
signal: Object.freeze({ module: 'signal-cli.js', run: null, guide: 'cli.md',
|
|
276
279
|
help: 'pmos signal add|remove|list|count — the customer signals behind each roadmap item; Work shows the count (pmos signal help)' }),
|
|
280
|
+
// Not a pm-os-absorb verb (run: null): initiative roadmap-audiences (job #2052, A88) added it through the same table.
|
|
281
|
+
roadmap: Object.freeze({ module: 'roadmap-cli.js', run: null, guide: 'cli.md',
|
|
282
|
+
help: 'pmos roadmap for exec|team|customer [--out <file>] · share|unshare <id> — the ranked roadmap written for leadership, the team or customers; Work shows the same' }),
|
|
277
283
|
launcher: Object.freeze({ module: 'launcher-cli.js', run: null, guide: 'cli.md',
|
|
278
284
|
help: 'pmos launcher on|off|status — a PMOS app and a login item, so the workspace starts without a terminal' }),
|
|
279
285
|
// Not a pm-os-absorb verb (run: null): initiative three-layouts (job #1904, A317) added it through the same table.
|