create-pmos 0.735.0 → 0.737.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.
Files changed (47) hide show
  1. package/package.json +57 -33
  2. package/payload/AGENTS.md +1 -0
  3. package/payload/KIT-VERSION +1 -1
  4. package/payload/planning/evals/eval-calibration.md +1 -1
  5. package/payload/planning/okrs/health-budgets.md +1 -1
  6. package/payload/state/discoveries.md +1 -1
  7. package/workspace/changelog.json +56 -0
  8. package/workspace/guide/cli.md +9 -0
  9. package/workspace/guide/home.md +1 -0
  10. package/workspace/guide/initiatives-and-next-steps.md +1 -1
  11. package/workspace/guide/layout.md +13 -3
  12. package/workspace/guide/positioning.md +5 -3
  13. package/workspace/lib/pmos-verbs.js +3 -0
  14. package/workspace/lib/positioning-cli.js +91 -0
  15. package/workspace/lib/use-log.js +26 -4
  16. package/workspace/package-lock.json +2 -2
  17. package/workspace/package.json +1 -1
  18. package/workspace/public/pm/action-keys.js +1 -1
  19. package/workspace/public/pm/bd-ini-panel.js +3 -2
  20. package/workspace/public/pm/bd-pop-ds.css +18 -0
  21. package/workspace/public/pm/bd-pop-ds.js +33 -3
  22. package/workspace/public/pm/bd-views.js +9 -1
  23. package/workspace/public/pm/cozy-board.css +7 -0
  24. package/workspace/public/pm/cozy-day-pick.css +0 -1
  25. package/workspace/public/pm/cozy-ev.css +9 -0
  26. package/workspace/public/pm/cozy-nav.js +2 -0
  27. package/workspace/public/pm/cozy-pop-work.js +16 -13
  28. package/workspace/public/pm/cozy-today-app.js +37 -3
  29. package/workspace/public/pm/cozy-today-model.js +12 -4
  30. package/workspace/public/pm/cozy-today-page.css +7 -0
  31. package/workspace/public/pm/cozy-today-view.js +15 -9
  32. package/workspace/public/pm/cozy-viewer.js +17 -2
  33. package/workspace/public/pm/focus-mode.js +161 -0
  34. package/workspace/public/pm/home-chat.js +4 -2
  35. package/workspace/public/pm/ini-tasks.js +8 -18
  36. package/workspace/public/pm/open-questions-view.js +96 -0
  37. package/workspace/public/pm/range-pick.css +50 -0
  38. package/workspace/public/pm/range-pick.js +155 -0
  39. package/workspace/public/pm/task-card.css +2 -19
  40. package/workspace/public/pm/task-card.js +16 -36
  41. package/workspace/stage-card-tasks-test.js +11 -11
  42. package/workspace/task-card-test.js +17 -10
  43. package/workspace/task-views-test.js +7 -5
  44. package/workspace/test-lists/chat-open-keeps-back.json +9 -0
  45. package/workspace/test-lists/focus-mode.json +9 -0
  46. package/workspace/test-lists/open-questions-view.json +9 -0
  47. package/workspace/test-lists/range-pick.json +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.735.0",
3
+ "version": "0.737.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": {
@@ -33,6 +33,62 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.737.0",
38
+ "at": "2026-11-23T06:47:33.938Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1643,
43
+ "t": "Pick a task's start and due on one calendar, like depart and return",
44
+ "s": "Pick a task's start and due on one calendar, like depart and return",
45
+ "k": "new"
46
+ },
47
+ {
48
+ "n": 1633,
49
+ "t": "Focus mode, one item and its chat (A335)",
50
+ "s": "Focus mode, one item and its chat (A335)",
51
+ "k": "new"
52
+ },
53
+ {
54
+ "n": 1636,
55
+ "t": "One Overview block on the initiative popup that folds",
56
+ "s": "One Overview block on the initiative popup that folds",
57
+ "k": "new"
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ "v": "0.736.0",
63
+ "at": "2026-11-23T06:36:26.214Z",
64
+ "f": 4,
65
+ "prs": [
66
+ {
67
+ "n": 1641,
68
+ "t": "Back after the chat opens a file by itself",
69
+ "s": "Back after the chat opens a file by itself",
70
+ "k": "new"
71
+ },
72
+ {
73
+ "n": 1640,
74
+ "t": "Open questions in Today's Decide tab, waiting on you and on others (A420)",
75
+ "s": "Open questions in Today's Decide tab, waiting on you and on others (A420)",
76
+ "k": "new"
77
+ },
78
+ {
79
+ "n": 1644,
80
+ "t": "The item panel lists its customer signals, so a phone tap reaches them (A157)",
81
+ "s": "The item panel lists its customer signals, so a phone tap reaches them (A157)",
82
+ "k": "new"
83
+ },
84
+ {
85
+ "n": 1645,
86
+ "t": "Pmos positioning, the chat keeps the positioning lines the Board shows (A328)",
87
+ "s": "Pmos positioning, the chat keeps the positioning lines the Board shows (A328)",
88
+ "k": "new"
89
+ }
90
+ ]
91
+ },
36
92
  {
37
93
  "v": "0.735.0",
38
94
  "at": "2026-11-23T06:26:05.595Z",
@@ -452,38 +508,6 @@
452
508
  "k": "fix"
453
509
  }
454
510
  ]
455
- },
456
- {
457
- "v": "0.712.0",
458
- "at": "2026-11-22T14:42:19.445Z",
459
- "f": 4,
460
- "prs": [
461
- {
462
- "n": 1543,
463
- "t": "Phone Today opens first, Ask PMOS by work, and Work on the phone (job #1540)",
464
- "s": "Phone Today opens first, Ask PMOS by work, and Work on the phone (job #1540)",
465
- "k": "new"
466
- },
467
- {
468
- "n": 1556,
469
- "t": "Phone follow-up — tap for why and Undo on proposals, Work tab names, task without cards (job 1540)",
470
- "s": "Phone follow-up — tap for why and Undo on proposals, Work tab names, task without cards (job 1540)",
471
- "k": "new"
472
- }
473
- ]
474
- },
475
- {
476
- "v": "0.710.0",
477
- "at": "2026-11-22T13:35:34.451Z",
478
- "f": 4,
479
- "prs": [
480
- {
481
- "n": 1542,
482
- "t": "What-moved route answers label and rows; put-back task tested (Checker M2, M6)",
483
- "s": "What-moved route answers label and rows; put-back task tested (Checker M2, M6)",
484
- "k": "fix"
485
- }
486
- ]
487
511
  }
488
512
  ]
489
513
  }
package/payload/AGENTS.md CHANGED
@@ -112,6 +112,7 @@ The PM talks to you from an initiative's popup in the workspace. PMOS acts by it
112
112
 
113
113
  - **The merge ✦ ("7 references and 2 retros can each be one artefact. Merge them?").** The popup derives it from the files: it shows while several different files of one kind belong to the initiative. When you merge files, put `superseded_by: <path of the merged file>` in the frontmatter of each old file. The Artefacts list then shows the merged file, folds each old file under it as an earlier version, and the ✦ goes away by itself. Delete nothing.
114
114
  - **The case card (Problem, Goal, Done when).** It reads the Experiment and Done test artefacts first, then the record's Problem, Goal and Done test sections. When the PM says yes to a case line, save it where the card reads it: `pmos artefacts set experiment:<id> experiment why --text "<problem>"`, `pmos artefacts set experiment:<id> experiment hypothesis --text "<goal>"`, and `pmos artefacts set experiment:<id> done-test check --text "<one check>"` once for each check. `pmos why` and `pmos ready check` read the same lines.
115
+ - **The Positioning part of the Strategy card.** When the PM agrees a positioning statement or key message, keep it with `pmos positioning keep --text "<line>" --cites <keys> [--kind positioning]`, citing the strategy lines it comes from (`pmos positioning strategy` lists the keys). Drop one with `pmos positioning drop <id>`. The Board shows what these write.
115
116
  - **A program's card (For, Goal).** After the PM's yes, run `pmos program charter <program id> --why "<what it is for>"` or `--goal "<goal>"` in the repository where the program was made. Its Done when comes from the last milestone and the target date.
116
117
  - **The ✦ that drafts missing documents.** Save a PRD as a file the record names in `prd_path:`, a rubric in `rubric_path:`, and the done test with `pmos artefacts set experiment:<id> done-test check`. A file that nothing names does not show in the Artefacts list.
117
118
  - **A stage's dates on the timeline.** A stage's bar runs from the earliest start to the latest end of its tasks (a task with no start counts from its due date). To change a stage's dates, change the dates of its tasks, with the PM's yes. Do not edit the workflow history to move a bar.
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@5af57152
1
+ kernel-source: pmos@c595a5b1
2
2
  assembled: 2026-11-23
3
3
  mode: vendor
@@ -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-23T06:26:02Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T06:47:30Z"}
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-23T06:26:02Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T06:47:30Z"}
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-23T06:26:02Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T06:47:30Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,60 @@
1
1
  [
2
+ {
3
+ "v": "0.737.0",
4
+ "at": "2026-11-23T06:47:33.938Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1643,
9
+ "t": "Pick a task's start and due on one calendar, like depart and return",
10
+ "s": "Pick a task's start and due on one calendar, like depart and return",
11
+ "k": "new"
12
+ },
13
+ {
14
+ "n": 1633,
15
+ "t": "Focus mode, one item and its chat (A335)",
16
+ "s": "Focus mode, one item and its chat (A335)",
17
+ "k": "new"
18
+ },
19
+ {
20
+ "n": 1636,
21
+ "t": "One Overview block on the initiative popup that folds",
22
+ "s": "One Overview block on the initiative popup that folds",
23
+ "k": "new"
24
+ }
25
+ ]
26
+ },
27
+ {
28
+ "v": "0.736.0",
29
+ "at": "2026-11-23T06:36:26.214Z",
30
+ "f": 4,
31
+ "prs": [
32
+ {
33
+ "n": 1641,
34
+ "t": "Back after the chat opens a file by itself",
35
+ "s": "Back after the chat opens a file by itself",
36
+ "k": "new"
37
+ },
38
+ {
39
+ "n": 1640,
40
+ "t": "Open questions in Today's Decide tab, waiting on you and on others (A420)",
41
+ "s": "Open questions in Today's Decide tab, waiting on you and on others (A420)",
42
+ "k": "new"
43
+ },
44
+ {
45
+ "n": 1644,
46
+ "t": "The item panel lists its customer signals, so a phone tap reaches them (A157)",
47
+ "s": "The item panel lists its customer signals, so a phone tap reaches them (A157)",
48
+ "k": "new"
49
+ },
50
+ {
51
+ "n": 1645,
52
+ "t": "Pmos positioning, the chat keeps the positioning lines the Board shows (A328)",
53
+ "s": "Pmos positioning, the chat keeps the positioning lines the Board shows (A328)",
54
+ "k": "new"
55
+ }
56
+ ]
57
+ },
2
58
  {
3
59
  "v": "0.735.0",
4
60
  "at": "2026-11-23T06:26:05.595Z",
@@ -339,6 +339,15 @@ PMOS drafts 4 to 6 principles for a product from its past decisions. Each draft
339
339
  - `pmos principles keep <id>` and `pmos principles drop <id>` answer a draft. `pmos principles undo <id>` puts it back to a draft.
340
340
  - `pmos principles add --text "<principle>"` adds your own principle, kept at once. `--why` and `--source` are optional.
341
341
 
342
+ ### pmos positioning: positioning and key messages from the strategy
343
+
344
+ Once a product's five strategy lines are written, PMOS drafts a positioning statement and key messages from them on the Board's Strategy card ([Positioning](positioning.md)). Each line cites the strategy lines it comes from. Run the commands in the product's repository, or pass `--root <dir>`. The kept lines are in `positioning.jsonl` in the product's records folder, and the Board shows what these commands write.
345
+
346
+ - `pmos positioning strategy` shows the five strategy lines with the keys a line can cite: `for`, `problem`, `bet`, `win`, `wont`.
347
+ - `pmos positioning list` shows the kept lines, the positioning statement first. A line whose cited strategy line changed since says so.
348
+ - `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.
349
+ - `pmos positioning drop <id>` drops a kept line.
350
+
342
351
  ### pmos parked: parked work, why and the way back
343
352
 
344
353
  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 …?".
@@ -122,6 +122,7 @@ Press an initiative's name in the list, or open `?ini=<id>`. The list stays as i
122
122
  - **Tasks** show one row (one group) for each stage of the workflow, in order. Finished stages and later stages are never merged into one row; they start folded, and the current stage and any stage with a late task start open.
123
123
  - **Change a task where it is.** In the List, press a task's name. The row opens in place: change the name (Enter saves), the status, and the dates. Only one row is open at a time. Esc closes it. The ⋯ after the dates has **Milestone** (or **Make it a plain task**), **Move to a stage**, **Open the task card** and **Delete task**. A milestone has one date: its due day. Each change shows **Undo**.
124
124
  - In the List, a task's full name always shows: a long name wraps onto more lines. A short prefix such as "Bus shelter:" stays in the name, in grey. The dates show at the right. In a narrow panel or on a phone, the dates show under the name. On a computer, the Timeline's name column wraps a long name too, and its row grows; on a phone, each title stays on one line above its bar. On the Timeline, the blue Today line is your own day, from the clock of your device. Each bar starts on its start day and ends on its due day: a task that starts today starts at the Today line, and a bar, its grid line and its date at the top always meet on the same day. A task with no dates shows no date; open the row to set them.
125
+ - **Set the dates on one calendar.** Every date press of a task opens the same calendar: in the List, the Timeline, the task card and the work popup. Press the first day for the start and a second day for the due day, as you pick depart and return for a flight. The days between show as one band. A day before the start becomes the new start. Press **Start** or **Due** first to change only that end, or type a day such as "15 Oct" in it and press Enter. A milestone has one **Date**: one press sets it. **No date** clears the dates. Each press saves and shows **Undo**. The arrow keys move a day or a week, and Page Up and Page Down move a month. On a phone the calendar opens from the bottom of the screen.
125
126
  - **Add a task to a stage.** Press **+** on an open stage. The field opens at the top of that stage, with one row of chips under it. **Stage** is the stage you pressed + on; press it to pick another stage of the workflow. **Task** can change to **Milestone**: the box becomes ◇ and **Date** takes one day. **Dates** and **Owner** are optional; with no owner, the task is yours. Enter adds the task and keeps the field open for the next one. Esc closes the field.
126
127
  - **Move a task between stages.** On a computer, drag the grip at the left of a row. On a phone, press and hold the task's name, then drag. Drop it on a stage name to put it last in that stage, or between two rows to put it there. The status and the dates do not change. The message shows **Undo**.
127
128
  - A linked Jira ticket opens in place too. Its name and status stay Jira's ("In Progress in Jira · read 4 min ago"). Its dates can change, and it can be a milestone. It has no **Delete**.
@@ -97,7 +97,7 @@ The Roadmap shows work lanes only: feature, discovery, chore, incident, content,
97
97
 
98
98
  ### Customer signals
99
99
 
100
- A customer signal is one customer who asked for what an initiative does: who, where you heard it (ticket, call, email, chat, survey, review or other), a link, and a short note. On the Board's List view, an initiative with signals shows the count in its Next cell. Press the count to see the list. On a phone, the second line of the row says how many. An initiative with no signal shows nothing.
100
+ A customer signal is one customer who asked for what an initiative does: who, where you heard it (ticket, call, email, chat, survey, review or other), a link, and a short note. On the Board's List view, an initiative with signals shows the count in its Next cell. Press the count to see the list. On a phone, the second line of the row says how many; tap the row and its panel lists them. The panel lists them on a computer too. An initiative with no signal shows nothing.
101
101
 
102
102
  When the record says a customer raised the initiative (`raised_by: "customer: <name>"`), that customer counts as one signal.
103
103
 
@@ -86,6 +86,8 @@ What you do not finish is carried to the next day, and the badge says for how lo
86
86
 
87
87
  Findings that fit no initiative (the Lab) are ✦ rows in the log. ✓ keeps one and starts an initiative from it. ✕ drops it.
88
88
 
89
+ **Open questions in Decide.** The **Decide** tab also lists every question that is not answered yet, across all initiatives, in two groups. **Waiting on you · n · oldest first** has the questions only you can answer: a plan change PMOS holds for want of a source, a drafted ticket's open gaps, a sign-off, and the drafts PMOS filed that nobody kept or dropped (one row per initiative, for example "4 drafts on Faster checkout wait on you"). **Waiting on others · n** has the questions a teammate must answer, each starting with their name. Each row says its initiative and its kind, and under it what PMOS does if nobody answers ("If nobody answers by 7 Dec, PMOS drops the drafts; nothing on the plan changes.") or why it has no default ("No default: …"). The badge says how many days it waited; it turns red after 14 days. Press a row, or its arrow, to open the initiative and answer there. On a teammate's row, the speech icon writes a short reminder in the chat for you to read and send; nothing is sent by itself. A question whose default is due today is also a row in the log. The Overview says how many wait on you and the oldest. When nothing waits, there is no group, and the Decide tab shows only when it has lines. The phone shows the same groups in the Decide filter. `pmos questions` prints the same list in a terminal (see the [Command reference](cli.md)).
90
+
89
91
  The agenda lists the day's events in time order, each with its start time, and a red line with the time now between the past and the next ones. Past events are dashed. The next event says how soon it starts ("in 20 min"). A meeting with a call has a play button: one press joins the call and starts the recording. It shows your meetings, the reports that go out today at their time, your own events, and focus time: the free time from now until the next meeting, held for the first row of your log, in a dashed box. Focus time is only ever a gap before a meeting: it never runs past the last one. Press the focus time to open that row. A day with no meeting or event shows one quiet line, for example "No events today · 9 h free". **Events** at the top right opens the Events page. "PMOS did" is not on Today; it moves to Routine.
90
92
 
91
93
  Under the agenda, after a meeting PMOS recorded and filed in the last 3 hours, a card says what came of it and where PMOS filed it. ✓ keeps it there and the card goes. ✕ takes the recording out of that work, with Undo.
@@ -122,6 +124,7 @@ The Viewer shows one item: an initiative, a program, a task, a document, a meeti
122
124
  - On a computer, work opens in the popup over the page, with Ask PMOS beside it. There is no setting for this: the popup is the one way.
123
125
  - Drag its edge to change its width. The expand icon opens it wide. Each kind of item keeps the width you gave it.
124
126
  - It keeps one trail: a press inside it keeps the item behind, ← goes back, → goes forward, and the browser's Back and Forward move along the same trail. × or Escape closes it.
127
+ - When an answer in the chat opens a file, a report, a chart or a goal by itself, it opens in front of what the Viewer showed, as if you had pressed it. ← goes back to that item, such as the initiative, where you left it.
125
128
  - A step along the trail gives the item back as you left it: scrolled to the same place, with the same sections open. If its content arrives a moment later, the place lands when it arrives. Scroll or press first, and PMOS leaves the place to you. A new item opens at the top.
126
129
  - An item opened on its own page, with **Open in a new tab**, shows the Viewer card in the colours and type of the PMOS design system. When you close it, one line at the top links to Home.
127
130
  - On a page drawn from the PMOS design system (Today, Home, an item on its own page), the parts inside the Viewer card follow the system too: a meeting, the calendar and a report use its corners, its buttons and its switches. A word button has a small corner, a switch looks like tabs, and a chip or a tag stays round.
@@ -167,17 +170,21 @@ A phone keeps its own layout. A shared read-only Board has no popup.
167
170
 
168
171
  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.
169
172
 
170
- The left column has three blocks:
173
+ **Overview** is one block across the top. 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:
171
174
 
172
175
  - **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.
176
+ - **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 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.
177
+ - **Details.** The facts: dates, the next milestone, product, program, workflow and what is open.
178
+
179
+ Under it, the left column has two blocks:
180
+
173
181
  - **Stages.** Each stage of the workflow, with its dates under its name or "no dates yet", on a month scale with a red line for today. A stage's bar runs from the earliest start to the latest end of its tasks; a task with no start counts from its due date. Only a stage with no dated task uses the days the workflow moved through it. To change a stage's dates, change its tasks' dates. A stage has a bar only when it has real dates. A milestone is a diamond on its stage's row.
174
182
  - **Work breakdown.** **List** or **Gantt**; PMOS keeps your choice on this computer. **List** has one box on top: type a task and press Enter. Say its stage ("… in Plan"), or it goes to the stage in progress; start with ◇ to add a milestone. Each stage with tasks is one group that says how much is done, for example "1 of 3 done". Press the group to fold it, and press it again to open it. A stage whose tasks are all done is folded until you open it. In a stage, the tasks are in date order, a late task first. A done task stays in its place, in grey with a check. Stages with no tasks fold into one line at the end. Press the box before a task to mark it done, with **Undo**. Press its name to rename it: Enter saves and Escape cancels. When you point at the row, four icons show: **Who** (You, the people on this initiative, or **PMOS does it**, which gives the task to PMOS), **Due date**, **Stage** (moves the task to another stage) and ⋯ (**Status**, **Make it a milestone** and **Open the task**). Each change has **Undo**. A Jira ticket keeps its owner and stage from Jira. **Gantt** is the table described below, with its bars.
175
183
 
176
184
  Press the rest of a row, or a milestone, to open it as a full popup in place of the work side. Its top line has ←, the path (**Work › product › initiative**), the chat button, ⋯ and ×. ← or the initiative's name goes back to the initiative, where you left it. The chat button shows **Ask PMOS** beside it. × closes the popup. A task shows its status, dates, owner, notes and what changed. A milestone also shows its date and how many days are left, the done test, **Kill if**, and the suggestion from PMOS about it when there is one.
177
185
 
178
- The right column has two blocks:
186
+ The right column has one block:
179
187
 
180
- - **The case.** **Problem**, **Goal** and **Done when** from the initiative's records, then its facts (status, dates, the next milestone, goal, product, program, workflow and what is open). 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 the chat saves a line, the card 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.
181
188
  - **Artefacts.** The brief, the prototype and the documents, each with its kind and date. A document the gate needs that nobody wrote is grey and says which gate. + adds a file, a link or a new document. After a merge, the merged file stands and says how many earlier files it holds, for example "7 earlier". An old file folds under it when its frontmatter has `superseded_by:` with the merged file's path, or when it opens with the merge's "superseded by" note. The merge suggestion then goes away by itself.
182
189
 
183
190
  On a phone, in a shared read-only copy and in a breakdown given the whole popup, the work side keeps the three parts below. They use the full width of the popup: in a wide popup the timeline gets the extra width. A done task shows in grey text, never struck through.
@@ -283,10 +290,13 @@ When the words you type in Search point clearly to one thing, the first row is t
283
290
  | S | Move the item you point at to the next sprint. |
284
291
  | P | Park the item you point at (put it on hold). |
285
292
  | Z | Undo the last change. |
293
+ | F | Focus on the item you point at: everything else hides, and only the item and its chat stay. Press F again, or the button at the top right, to see the whole page again where you left it. |
286
294
  | ? | Show these keys, and which of them work on this page. Esc, ? again or × closes the list. |
287
295
 
288
296
  Y, O, S, P and Z press the item's own button, so they work only where the item has that button. Point at the item, or tab to it, then press the key. Hover a button to see its key, for example **Open (O)**. After you use a key 3 times, its buttons stop showing it. Press **?** to see every key again. PMOS counts your key presses in the Use log on this computer.
289
297
 
298
+ Focus (F) keeps the item's panel and its chat. In a popup, the popup takes the whole window. On a list, the row you point at stays with the page's chat. The item's next Yes comes into view. When you close the item, the whole page comes back by itself. Focus is not on a phone.
299
+
290
300
  A key that you type in a field, or in a terminal, goes to the field or the terminal.
291
301
 
292
302
  ## On a phone
@@ -28,6 +28,8 @@ The lines are kept in `positioning.jsonl` in the product's records folder. Every
28
28
 
29
29
  From a terminal or a chat, in the product's folder:
30
30
 
31
- - `node <workspace>/lib/positioning-draft.js show` prints the kept lines.
32
- - `node <workspace>/lib/positioning-draft.js keep --text "<line>" --cites bet,for [--kind positioning]` keeps a line. It must name one or more written strategy lines: `for`, `problem`, `bet`, `win`, `wont`.
33
- - `node <workspace>/lib/positioning-draft.js drop --id <id>` drops a kept line.
31
+ - `pmos positioning list` prints the kept lines.
32
+ - `pmos positioning keep --text "<line>" --cites bet,for [--kind positioning]` keeps a line. It must name one or more written strategy lines: `for`, `problem`, `bet`, `win`, `wont` (`pmos positioning strategy` shows them).
33
+ - `pmos positioning drop <id>` drops a kept line.
34
+
35
+ The [command reference](cli.md#pmos-positioning-positioning-and-key-messages-from-the-strategy) has the details.
@@ -151,6 +151,9 @@ const VERBS = Object.freeze({
151
151
  // Not a pm-os-absorb verb (run: null): initiative product-principles-draft (bet A352) added it through the same table.
152
152
  principles: Object.freeze({ module: 'principles-cli.js', run: null, guide: 'cli.md',
153
153
  help: 'pmos principles list|sources|draft|keep|drop|undo|add — the product\'s principles, drafted from its decisions, each citing them; keep or drop each (pmos principles help)' }),
154
+ // Not a pm-os-absorb verb (run: null): initiative positioning-draft (idea A328) added it through the same table.
155
+ positioning: Object.freeze({ module: 'positioning-cli.js', run: null, guide: 'cli.md',
156
+ help: 'pmos positioning strategy|list|keep|drop — the product\'s positioning and key messages, each citing its strategy lines (pmos positioning help)' }),
154
157
  // Not a pm-os-absorb verb (run: null): initiative parked-reason-way-back (bet A446) added it through the same table.
155
158
  parked: Object.freeze({ module: 'parked-cli.js', run: null, guide: 'cli.md',
156
159
  help: 'pmos parked list|hold|back|coverage — parked initiatives: why each is parked, what brings it back, and bringing it back (pmos parked help)' }),
@@ -0,0 +1,91 @@
1
+ 'use strict';
2
+ /* positioning-cli.js — `pmos positioning`: the product's positioning statement and key messages, each citing the strategy lines it comes from
3
+ * (idea A328, initiative positioning-draft; the store is lib/positioning-draft.js). The same lines the Strategy card on the Board shows.
4
+ *
5
+ * pmos positioning strategy [--json] the five strategy lines with their keys (for, problem, bet, win, wont), the lines a line may cite
6
+ * pmos positioning list [--json] the kept lines, the positioning statement first; a line whose cited strategy line changed says so
7
+ * pmos positioning keep --text "<line>" --cites <key>[,<key>…] [--kind positioning|message] keep a line (the chat writes it for the PM)
8
+ * pmos positioning drop <id> drop a kept line
9
+ * every command: [--root <dir>] (default: this repository)
10
+ *
11
+ * The lines live in positioning.jsonl in the product's records folder, so what the chat writes shows on the Board.
12
+ * Exit codes: 0 done, 1 refused, 2 usage. Nothing is sent. */
13
+ const path = require('path');
14
+ const { execFileSync } = require('child_process');
15
+ const PD = require('./positioning-draft.js');
16
+ const SC = require('./strategy-card.js');
17
+
18
+ const COMMANDS = { positioning: ['strategy', 'list', 'keep', 'drop'] };
19
+ const USAGE = [
20
+ 'usage: pmos positioning strategy|list|keep|drop — the product\'s positioning and key messages, each citing its strategy lines',
21
+ ' pmos positioning strategy [--json] the five strategy lines and their keys: ' + SC.FIELDS.join(', '),
22
+ ' pmos positioning list [--json] the kept lines, the positioning statement first',
23
+ ' pmos positioning keep --text "<line>" --cites bet,for [--kind positioning|message] keep a line; it must cite written strategy lines',
24
+ ' pmos positioning drop <id> drop a kept line (ids from list)',
25
+ 'Run it in the product\'s repository, or pass --root <dir>.',
26
+ ];
27
+ const ALLOWED = { strategy: ['json', 'root'], list: ['json', 'root'], keep: ['json', 'root', 'text', 'cites', 'kind'], drop: ['json', 'root'] };
28
+ const BOOL = new Set(['json']);
29
+
30
+ function parse(args) {
31
+ const pos = [], flags = {};
32
+ for (let i = 0; i < args.length; i++) {
33
+ const a = args[i];
34
+ if (!a.startsWith('--')) { pos.push(a); continue; }
35
+ const k = a.slice(2);
36
+ if (BOOL.has(k)) { flags[k] = true; continue; }
37
+ flags[k] = args[i + 1] !== undefined && !String(args[i + 1]).startsWith('--') ? args[++i] : '';
38
+ }
39
+ return { pos, flags };
40
+ }
41
+ function repoRoot(cwd) {
42
+ try { return execFileSync('git', ['rev-parse', '--show-toplevel'], { cwd, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim() || cwd; } catch { return cwd; }
43
+ }
44
+ function recordsDirOf(root) {
45
+ try { const { repoScript } = require('./repo-script.js'); return require(repoScript('signals/layout-paths.js')).pathsFor(root).recordsDir; } catch { return path.join(root, 'planning', 'records'); }
46
+ }
47
+ const from = (l) => l.cites.map((c) => SC.LABELS[c] || c).join(', ');
48
+
49
+ async function run(argv, { say = (s) => console.log(s), cwd = process.cwd() } = {}) {
50
+ const args = argv[0] === 'positioning' ? argv.slice(1) : argv.slice();
51
+ const sub = args[0];
52
+ if (!sub || ['help', '--help', '-h'].includes(sub)) { for (const l of USAGE) say(l); return sub ? 0 : 1; }
53
+ if (!COMMANDS.positioning.includes(sub)) { say(`unknown positioning command "${sub}". Use one of: ${COMMANDS.positioning.join(', ')}`); return 2; }
54
+ const { pos, flags } = parse(args.slice(1));
55
+ for (const k of Object.keys(flags)) if (!ALLOWED[sub].includes(k)) { say(`✗ --${k} is not an option of pmos positioning ${sub}`); return 2; }
56
+ const dir = recordsDirOf(path.resolve(flags.root || repoRoot(cwd)));
57
+ const card = SC.read(dir);
58
+ const fail = (error, code = 1) => { say(flags.json ? JSON.stringify({ ok: false, error }) : '✗ ' + error); return code; };
59
+
60
+ if (sub === 'strategy') {
61
+ const lines = SC.FIELDS.map((k) => ({ key: k, label: SC.LABELS[k], text: card[k] || '' }));
62
+ if (flags.json) { say(JSON.stringify({ ok: true, complete: SC.complete(card), lines })); return 0; }
63
+ for (const l of lines) say(` ${l.key.padEnd(8)} ${l.label}: ${l.text || '(not written)'}`);
64
+ if (!SC.complete(card)) say('Write all five lines on the Board\'s Strategy card before drafting positioning.');
65
+ return 0;
66
+ }
67
+ if (sub === 'list') {
68
+ if (pos.length) return fail('pmos positioning list takes no argument', 2);
69
+ const kept = PD.read(dir, card);
70
+ if (flags.json) { say(JSON.stringify({ ok: true, kept })); return 0; }
71
+ if (!kept.length) { say('No positioning line kept yet. Press ✦ on the Strategy card, or keep one: pmos positioning keep --text "<line>" --cites bet'); return 0; }
72
+ for (const l of kept) say(` ${l.id} — ${l.kind === 'positioning' ? 'Positioning' : 'Message'}: ${l.text}\n from: ${from(l)}${l.stale ? ' (the strategy changed since)' : ''}`);
73
+ return 0;
74
+ }
75
+ if (sub === 'keep') {
76
+ if (pos.length) return fail('pmos positioning keep takes --text and --cites, not an argument', 2);
77
+ if (flags.kind && !PD.KINDS.includes(flags.kind)) return fail('--kind is positioning or message', 2);
78
+ const r = PD.keep(dir, { kind: flags.kind || 'message', text: flags.text, cites: String(flags.cites || '').split(/[\s,]+/).filter(Boolean) }, card);
79
+ if (!r.ok) return fail(r.error);
80
+ say(flags.json ? JSON.stringify({ ok: true, line: r.line }) : `kept ${r.line.id} — ${r.line.text} (from ${from(r.line)})`);
81
+ return 0;
82
+ }
83
+ // drop
84
+ if (pos.length !== 1) return fail('pmos positioning drop <id>', 2);
85
+ const r = PD.drop(dir, pos[0]);
86
+ if (!r.ok) return fail(r.error);
87
+ say(flags.json ? JSON.stringify({ ok: true }) : `dropped ${pos[0]}`);
88
+ return 0;
89
+ }
90
+
91
+ module.exports = { run, COMMANDS, USAGE };
@@ -22,7 +22,9 @@
22
22
  * keys(lines, days, now) → { used, missed, pct } PURE, the action keys (bet A477)
23
23
  * CLI: node lib/use-log.js count → the distinct days with a line in the last KEEP_DAYS days, on its last line (the health number)
24
24
  * node lib/use-log.js keys [--days 7] → [action-keys] used n, [action-keys] missed n, then the hit percent on its last line
25
- * node lib/use-log.js control <id> [--days 7] → the uses of one control on its last line (day-tint: bet A339's health number) */
25
+ * node lib/use-log.js control <id> [--days 7] → the uses of one control on its last line (day-tint: bet A339's health number)
26
+ * node lib/use-log.js focus [--days 7] → [focus-mode] entered n, [focus-mode] missed n, then the hit percent on its last line (bet A335)
27
+ * focus(lines, days, now) → { entered, missed, pct } PURE, focus mode (bet A335) */
26
28
  const fs = require('fs');
27
29
  const path = require('path');
28
30
 
@@ -135,6 +137,20 @@ function keys(lines, days = 7, now = Date.now()) {
135
137
 
136
138
  module.exports.keys = keys;
137
139
 
140
+ /** PURE: focus mode (bet A335, pm/focus-mode.js) in the last `days` days: { entered, missed, pct }. entered = presses that turned focus on
141
+ * (control focus-on), missed = presses with nothing to focus on (focus-miss), pct = entered / (entered + missed), 100 when there were none. */
142
+ function focus(lines, days = 7, now = Date.now()) {
143
+ const from = now - Math.max(1, Number(days) || 7) * DAY;
144
+ let entered = 0, missed = 0;
145
+ for (const l of lines || []) {
146
+ if (!l || l.kind !== 'use' || !(Date.parse(l.at) >= from)) continue;
147
+ if (l.control === 'focus-on') entered++; else if (l.control === 'focus-miss') missed++;
148
+ }
149
+ return { entered, missed, pct: entered + missed ? Math.round((100 * entered) / (entered + missed)) : 100 };
150
+ }
151
+
152
+ module.exports.focus = focus;
153
+
138
154
  /** PURE: the uses of one control in the last `days` days (bet A339: `day-tint` is noted once per page open with the tint on). */
139
155
  function controlCount(lines, control, days = 7, now = Date.now()) {
140
156
  const from = now - Math.max(1, Number(days) || 7) * DAY;
@@ -146,12 +162,18 @@ if (require.main === module) {
146
162
  const cmd = process.argv[2];
147
163
  const usage = 'usage: node lib/use-log.js count (the distinct days with a line in the last ' + KEEP_DAYS + ' days)\n'
148
164
  + ' node lib/use-log.js keys [--days 7] (actions taken with a key, presses with nothing to act on, and the hit percent)\n'
149
- + ' node lib/use-log.js control <id> [--days 7] (the uses of one control, on the last line)';
150
- if (cmd !== 'count' && cmd !== 'keys' && !(cmd === 'control' && CONTROL_RE.test(process.argv[3] || ''))) { console.error(usage); process.exit(2); }
165
+ + ' node lib/use-log.js control <id> [--days 7] (the uses of one control, on the last line)\n'
166
+ + ' node lib/use-log.js focus [--days 7] (times focus mode was entered, presses with nothing to focus on, and the hit percent)';
167
+ if (cmd !== 'count' && cmd !== 'keys' && cmd !== 'focus' && !(cmd === 'control' && CONTROL_RE.test(process.argv[3] || ''))) { console.error(usage); process.exit(2); }
151
168
  const dir = require('./state-root.js').defaultRoot({ env: process.env });
152
169
  if (cmd === 'count') console.log(String(summary(readLines(dir)).days));
153
170
  else if (cmd === 'control') { const i = process.argv.indexOf('--days'); console.log(String(controlCount(readLines(dir), process.argv[3], i > 0 ? process.argv[i + 1] : 7))); }
154
- else {
171
+ else if (cmd === 'focus') {
172
+ const i = process.argv.indexOf('--days'), f = focus(readLines(dir), i > 0 ? process.argv[i + 1] : 7);
173
+ console.log('[focus-mode] entered ' + f.entered);
174
+ console.log('[focus-mode] missed ' + f.missed);
175
+ console.log(String(f.pct));
176
+ } else {
155
177
  const i = process.argv.indexOf('--days'), k = keys(readLines(dir), i > 0 ? process.argv[i + 1] : 7);
156
178
  console.log('[action-keys] used ' + k.used);
157
179
  console.log('[action-keys] missed ' + k.missed);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.735.0",
3
+ "version": "0.737.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.735.0",
9
+ "version": "0.737.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@anthropic-ai/sdk": "^1.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.735.0",
3
+ "version": "0.737.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",
@@ -165,7 +165,7 @@ export function sheetHtml(here = new Set()) {
165
165
  return `<div class="pm-row"><h2 class="pm-h-sm" id="akTitle">Keys</h2>`
166
166
  + `<button type="button" class="pm-btn" data-ak-close aria-label="Close" title="Close">${X}</button></div>`
167
167
  + '<p class="pm-meta">Point at an item, or tab to it, then press its key.</p>'
168
- + `<ul>${KEYS.map((k) => row(k.key.toUpperCase(), k.say, here.has(k.act))).join('')}${row('?', 'This list')}</ul>`;
168
+ + `<ul>${KEYS.map((k) => row(k.key.toUpperCase(), k.say, here.has(k.act))).join('')}${row('F', 'Focus on this item')}${row('?', 'This list')}</ul>`; // F: pm/focus-mode.js (bet A335)
169
169
  }
170
170
 
171
171
  let started = false;
@@ -38,6 +38,7 @@ import * as MD from './home-ini-model.js'; // the stage move's rules, as Home
38
38
  import * as WF from './ini-wf.js'; // D99: Change workflow, Won't do, Back to Triage, Archive, the same popovers as Home's
39
39
  import { openPop, closePop, undoToast, ensureCss as ensurePopCss } from './hi-pop.js';
40
40
  import { readyOf } from './bd-acts.js'; // how much of the step is ready, beside the next stage in the stage picker
41
+ import { sigListHtml } from './bd-views.js'; // the customer signals behind the item (roadmap-signal-phone): the phone's tap lists them here
41
42
  import * as PW from './cozy-pop-work.js'; // what the popup shows for work (slice 3 of the six-place navigation): in the popup, in place of the old page
42
43
  import * as PP from './ini-props.js'; // everything PMOS suggests, as a drill-in (the popup's ⋯)
43
44
  import { stageName } from './stage-chip.js';
@@ -187,14 +188,14 @@ function dashFor(r) {
187
188
  function iniBody(r, body) {
188
189
  const h = dashFor(r);
189
190
  if (h && h.shows()) return h.html(() => '');
190
- if (PW.on(body)) return PW.html(r, viewOf(r), popOpts(r));
191
+ if (PW.on(body)) return PW.html(r, viewOf(r), popOpts(r)) + sigListHtml(r);
191
192
  const md = (v) => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][+v.slice(5, 7) - 1] + ' ' + +v.slice(8, 10) + (+v.slice(0, 4) !== new Date().getFullYear() ? ' ’' + v.slice(2, 4) : '');
192
193
  const self = !!((O.M() || {}).board || {}).self, M = O.M() || {};
193
194
  // what left the ⋯ for the thing it changes (batch 16 item 5c): the workflow chip, the dashed +, the stage chip, the dates chip, Jira's ↻
194
195
  // the same parts and presses as Home's page (UI grill U1): the next stage is a press, Core documents a fold, the tail under Linked
195
196
  const v = viewOf(r), docs = ((r.id && PAGE.get(r.id)) || {}).docs || [];
196
197
  return viewHtml(v, { add: !!(r.id && O.addTask), adding: adding === r.key, addHint: adding === r.key && addDates ? md(addDates.start) + ' to ' + md(addDates.due) : '', openTask: !!O.openTask, quick: !!(O.setTask && O.setDates), hold: !!O.hold,
197
- next: !!(r.id && v.stage.next && O.moreAct && !self && !window.PMOS_READONLY), docs: docs.length ? { n: docs.length } : null, tail: TL.tailHtml(r, { VW, today: M.today }),
198
+ next: !!(r.id && v.stage.next && O.moreAct && !self && !window.PMOS_READONLY), docs: docs.length ? { n: docs.length } : null, tail: TL.tailHtml(r, { VW, today: M.today }) + sigListHtml(r),
198
199
  wf: !!r.id && !self && !r.ended, person: !!r.id, stagePick: !!r.id, planDates: !!r.id, jira: !!M.jira });
199
200
  }
200
201
  /** What pm/cozy-pop-work.js reads for the row: the Board's steps and day, the core documents, the product and the program. */
@@ -22,6 +22,24 @@ span.pwd-nx { cursor: default; }
22
22
  .pwd-mk.ring { border-radius: 50%; }
23
23
  .pwd-moresug { margin: 0; }
24
24
 
25
+ /* ── Overview: Where it stands, The case and the details across the top; the head folds it ── */
26
+ .pwd-ov { grid-column: 1 / -1; }
27
+ .pwd-ov > .pm-h-sm { margin: 0; }
28
+ .pwd-ovt { display: inline-flex; align-items: center; gap: var(--space-8); border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; border-radius: var(--radius-sm); }
29
+ .pwd-ovt:focus-visible { outline: none; box-shadow: var(--glow); }
30
+ .pwd-ovt > .pm-ic:first-child { color: var(--muted); }
31
+ .pwd-ovg { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(220px, 0.8fr); gap: var(--space-24); align-items: start; }
32
+ .pwd-ovp { display: flex; flex-direction: column; gap: var(--space-12); min-width: 0; }
33
+ .pwd-ovp > h3 { margin: 0; font-weight: var(--fw-strong); }
34
+ .pwd-ovp + .pwd-ovp { border-left: 1px solid var(--line); padding-left: var(--space-24); }
35
+ .pwd-ovs { gap: var(--space-12); flex-wrap: nowrap; min-width: 0; }
36
+ .pwd-ov1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
37
+ .pwd-ovs > .pw-lk { flex: none; }
38
+ .pwd-ov .grey { color: var(--muted); }
39
+ .pwd-ov .warn { color: var(--alert); }
40
+ @container (max-width: 860px) { .pwd-ovg { grid-template-columns: minmax(0, 1fr); } .pwd-ovp + .pwd-ovp { border-left: 0; padding-left: 0; } }
41
+ @media (max-width: 1100px) { .pwd-ovg { grid-template-columns: minmax(0, 1fr); } .pwd-ovp + .pwd-ovp { border-left: 0; padding-left: 0; } }
42
+
25
43
  /* ── Stages: the name and its dates on the left, the track on the right ── */
26
44
  .pwd-st { display: flex; flex-direction: column; }
27
45
  .pwd-sr { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; min-height: 52px; }