create-pmos 0.827.0 → 0.829.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 +217 -45
- 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/bin/pmos.js +19 -9
- package/workspace/board-deliveries-test.js +2 -2
- package/workspace/changelog.json +216 -12
- package/workspace/guide/cli.md +62 -0
- package/workspace/guide/home.md +1 -0
- package/workspace/guide/settings-and-switches.md +1 -0
- package/workspace/lib/board-cli.js +5 -1
- package/workspace/lib/board-premium.js +1 -0
- package/workspace/lib/critical-needs.js +162 -0
- package/workspace/lib/deps-cli.js +102 -0
- package/workspace/lib/engine/boards.js +13 -2
- package/workspace/lib/features.json +5 -0
- package/workspace/lib/five-action-cap.js +84 -0
- package/workspace/lib/needs-providers.js +1 -0
- package/workspace/lib/page-one-answer.js +86 -0
- package/workspace/lib/pages-cli.js +6 -2
- package/workspace/lib/people-cli.js +43 -2
- package/workspace/lib/pmos-verbs.js +15 -1
- package/workspace/lib/portfolio-cli.js +64 -0
- package/workspace/lib/portfolio.js +168 -0
- package/workspace/lib/prototype-cli.js +86 -0
- package/workspace/lib/report-cli.js +12 -2
- package/workspace/lib/report-readers.js +5 -3
- package/workspace/lib/review-pack.js +348 -0
- package/workspace/lib/review-reasons.js +357 -0
- package/workspace/lib/route-modules.js +6 -0
- package/workspace/lib/routes-boards.js +25 -2
- package/workspace/lib/routes-portfolio.js +50 -0
- package/workspace/lib/routes-review-pack.js +42 -0
- package/workspace/lib/routes-roadmap-ops.js +53 -1
- package/workspace/lib/routes-sim-users.js +66 -0
- package/workspace/lib/routes-stakeholders.js +42 -0
- package/workspace/lib/routes-strategy-card.js +29 -1
- package/workspace/lib/routes-team-waits.js +24 -0
- package/workspace/lib/routes-use-log.js +6 -1
- package/workspace/lib/sim-users.js +329 -0
- package/workspace/lib/stakeholder-map.js +232 -0
- package/workspace/lib/task-store.js +1 -1
- package/workspace/lib/team-waits.js +167 -0
- package/workspace/lib/tradeoff-cards.js +258 -0
- package/workspace/lib/tradeoff-cli.js +83 -0
- package/workspace/lib/voice-cli.js +7 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-vw-jira-test.js +6 -2
- package/workspace/public/pm/bd-backlog.js +44 -6
- package/workspace/public/pm/bd-principles.js +12 -1
- package/workspace/public/pm/cozy-library.css +5 -0
- package/workspace/public/pm/cozy-pick.css +1 -0
- package/workspace/public/pm/cozy-pop-work.js +8 -2
- package/workspace/public/pm/cozy-proto.css +5 -0
- package/workspace/public/pm/cozy-proto.js +11 -3
- package/workspace/public/pm/cozy-today-app.js +53 -3
- package/workspace/public/pm/cozy-today-view.js +12 -4
- package/workspace/public/pm/day-time.js +8 -0
- package/workspace/public/pm/five-action-cap.js +104 -0
- package/workspace/public/pm/home-ini.js +3 -2
- package/workspace/public/pm/ini-links.js +2 -1
- package/workspace/public/pm/ini-tasks.js +5 -2
- package/workspace/public/pm/ini-view-model.js +14 -6
- package/workspace/public/pm/ini-view.js +12 -2
- package/workspace/public/pm/library-model.js +1 -1
- package/workspace/public/pm/page-one-answer.css +18 -0
- package/workspace/public/pm/page-one-answer.js +134 -0
- package/workspace/public/pm/pop-work-model.js +8 -6
- package/workspace/public/pm/portfolio.js +67 -0
- package/workspace/public/pm/premium-board.js +19 -6
- package/workspace/public/pm/premium-library.js +27 -3
- package/workspace/public/pm/product-switcher.js +7 -1
- package/workspace/public/pm/range-pick.css +12 -0
- package/workspace/public/pm/range-pick.js +30 -6
- package/workspace/public/pm/review-pack.js +47 -0
- package/workspace/public/pm/review-reasons.js +75 -0
- package/workspace/public/pm/sim-users.js +34 -0
- package/workspace/public/pm/sort-order.js +3 -0
- package/workspace/public/pm/stakeholder-map.js +125 -0
- package/workspace/public/pm/task-card.js +10 -7
- package/workspace/public/pm/team-waits.js +56 -0
- package/workspace/public/pm/tradeoff-cards.css +27 -0
- package/workspace/public/pm/tradeoff-cards.js +183 -0
- package/workspace/public/premium-board.html +1 -0
- package/workspace/public/premium-portfolio.html +48 -0
- package/workspace/public/today.html +1 -0
- package/workspace/run-tests.js +9 -1
- package/workspace/server.js +1 -1
- package/workspace/stage-card-tasks-test.js +11 -5
- package/workspace/test-lists/critical-needs.json +9 -0
- package/workspace/test-lists/five-action-cap.json +9 -0
- package/workspace/test-lists/page-one-answer.json +9 -0
- package/workspace/test-lists/portfolio.json +9 -0
- package/workspace/test-lists/review-pack.json +9 -0
- package/workspace/test-lists/review-reasons.json +9 -0
- package/workspace/test-lists/sim-users.json +9 -0
- package/workspace/test-lists/stakeholder-map.json +9 -0
- package/workspace/test-lists/task-time-optional.json +9 -0
- package/workspace/test-lists/team-waits.json +9 -0
- package/workspace/test-lists/tradeoff-cards.json +9 -0
- package/workspace/test-timings.json +25 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.829.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,219 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.829.0",
|
|
38
|
+
"at": "2026-11-25T13:25:22.949Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1948,
|
|
43
|
+
"t": "Work › Dependencies lists who waits on which team",
|
|
44
|
+
"s": "Work › Dependencies lists who waits on which team",
|
|
45
|
+
"k": "new",
|
|
46
|
+
"h": "Work › Dependencies lists who waits on which team",
|
|
47
|
+
"try": {
|
|
48
|
+
"steps": [
|
|
49
|
+
"Open Work",
|
|
50
|
+
"Press the Dependencies tab",
|
|
51
|
+
"On a row, press the person icon (Chase)"
|
|
52
|
+
],
|
|
53
|
+
"see": "Waiting on other teams: one row per wait, oldest first, each with the day it started; a wait of 14 days or more says how many days and shows the late mark; a wait in a sprint that is still running…",
|
|
54
|
+
"open": "/premium-board.html?work=deps"
|
|
55
|
+
},
|
|
56
|
+
"i": "team-waits"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"n": 2002,
|
|
60
|
+
"t": "A Today row when a critical-path task moves (A103)",
|
|
61
|
+
"s": "A Today row when a critical-path task moves (A103)",
|
|
62
|
+
"k": "new",
|
|
63
|
+
"h": "A Today row when a critical-path task moves (A103)",
|
|
64
|
+
"try": {
|
|
65
|
+
"steps": [
|
|
66
|
+
"Open Today: when a task on an initiative's critical path moved its start or due date in the last 7 days, a row names the task, the move…",
|
|
67
|
+
"Open Work, open that initiative and read its plan: the task the row named sits on the critical path.",
|
|
68
|
+
"Move the date of a task that is not on the critical path, then open Today again: no new row."
|
|
69
|
+
],
|
|
70
|
+
"see": "One row per critical-path move, for example: \"Design review\" moved its due from Dec 3 to Dec 6. It is on the critical path of Checkout revamp, so go-live forecasts Dec 12. No. Forecast Dec 12, 2…",
|
|
71
|
+
"open": "/today.html"
|
|
72
|
+
},
|
|
73
|
+
"i": "critical-moved"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"n": 1964,
|
|
77
|
+
"t": "Trade-off cards decide two close Roadmap neighbours and keep the reason (job #1918, A325)",
|
|
78
|
+
"s": "Trade-off cards decide two close Roadmap neighbours and keep the reason (job #1918, A325)",
|
|
79
|
+
"k": "new",
|
|
80
|
+
"h": "Trade-off cards decide two close Roadmap neighbours and keep the reason (job #1918, A325)",
|
|
81
|
+
"try": {
|
|
82
|
+
"steps": [
|
|
83
|
+
"Open Work and find the line These two are close. Compare them between two initiatives",
|
|
84
|
+
"Press it, read both sides and the ✦ line, write why in one line and press ✓"
|
|
85
|
+
],
|
|
86
|
+
"see": "The card shows the goal, evidence, cost, risk and what waits for each side, with not known where a record says nothing. After ✓ the reason shows once under the row that went first, and the toast has…",
|
|
87
|
+
"open": "/premium-board.html"
|
|
88
|
+
},
|
|
89
|
+
"i": "tradeoff-cards"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"n": 1965,
|
|
93
|
+
"t": "Simulated users try the prototype — Findings above the design (A20, #1909)",
|
|
94
|
+
"s": "Simulated users try the prototype — Findings above the design (A20, #1909)",
|
|
95
|
+
"k": "new",
|
|
96
|
+
"h": "Simulated users try the prototype",
|
|
97
|
+
"try": {
|
|
98
|
+
"steps": [
|
|
99
|
+
"Open Work and open an initiative that has a prototype",
|
|
100
|
+
"Press its prototype to open it in the Viewer",
|
|
101
|
+
"Read Findings above the design and press one finding"
|
|
102
|
+
],
|
|
103
|
+
"see": "Findings says how many simulated users (one per persona) got stuck on each key task and where, for example 2 of 4 personas stuck at Pay, with who they are; a task everyone finished is one line.…",
|
|
104
|
+
"open": "/premium-board.html"
|
|
105
|
+
},
|
|
106
|
+
"i": "sim-users"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"n": 1974,
|
|
110
|
+
"t": "Monthly product review pack in Library › Reports (job #1910, A343)",
|
|
111
|
+
"s": "Monthly product review pack in Library › Reports (job #1910, A343)",
|
|
112
|
+
"k": "new",
|
|
113
|
+
"h": "Monthly product review pack in Library › Reports (job #1910, A343)",
|
|
114
|
+
"try": {
|
|
115
|
+
"steps": [
|
|
116
|
+
"From Today, open Library in the rail and pick Reports in the Kind chip",
|
|
117
|
+
"Press this month's review pack: read Goals, Bets that failed, Next big decision and Asks, each line with its source",
|
|
118
|
+
"Open it with the arrow to edit it in the document view"
|
|
119
|
+
],
|
|
120
|
+
"see": "One pack for each product, drafted by PMOS in the last week of the month. Every line names the record it came from; a part with nothing to say is not shown. The pack changes only when you edit it.…",
|
|
121
|
+
"open": "/premium-library.html"
|
|
122
|
+
},
|
|
123
|
+
"i": "review-pack"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"n": 1962,
|
|
127
|
+
"t": "Every page opens with one answer (job #1889)",
|
|
128
|
+
"s": "Every page opens with one answer (job #1889)",
|
|
129
|
+
"k": "new",
|
|
130
|
+
"h": "Every page opens with one answer (job #1889)",
|
|
131
|
+
"try": {
|
|
132
|
+
"steps": [
|
|
133
|
+
"Open Today and read the first line: how many things need you, and how many are moving",
|
|
134
|
+
"Open Work and read the same line, then the Needs you rows under it",
|
|
135
|
+
"Open the fold under them and see the rest"
|
|
136
|
+
],
|
|
137
|
+
"see": "Each page opens with one sentence that counts what needs you, then the rest. Under it, only what needs you. The rest is folded until you open it. When nothing needs you the line says All moving and…",
|
|
138
|
+
"open": "/today.html"
|
|
139
|
+
},
|
|
140
|
+
"i": "page-one-answer"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"n": 1995,
|
|
144
|
+
"t": "An optional time on a task's start and due",
|
|
145
|
+
"s": "An optional time on a task's start and due",
|
|
146
|
+
"k": "new",
|
|
147
|
+
"i": "task-time-optional"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"n": 2007,
|
|
151
|
+
"t": "Portfolio's Not now draws the dismiss icon",
|
|
152
|
+
"s": "Portfolio's Not now draws the dismiss icon",
|
|
153
|
+
"k": "fix",
|
|
154
|
+
"i": "portfolio",
|
|
155
|
+
"try": {
|
|
156
|
+
"steps": [
|
|
157
|
+
"With two or more products, open Today or Work and press the Portfolio button at the end of the product tiles",
|
|
158
|
+
"Read one row per product: bets, odds, spend and outcome so far",
|
|
159
|
+
"Press a product's row to open it in Work"
|
|
160
|
+
],
|
|
161
|
+
"see": "One row per product with its open bets, the share of its checked outcomes that held, what its agent runs cost in 30 days and its latest outcome that held. At most one ✦ recommendation with its…",
|
|
162
|
+
"open": "/premium-portfolio.html"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"v": "0.828.0",
|
|
169
|
+
"at": "2026-11-25T12:42:22.052Z",
|
|
170
|
+
"f": 4,
|
|
171
|
+
"prs": [
|
|
172
|
+
{
|
|
173
|
+
"n": 1951,
|
|
174
|
+
"t": "Reviews grouped by reason — Customer voice on Work and pmos voice (job #1913, A427)",
|
|
175
|
+
"s": "Reviews grouped by reason — Customer voice on Work and pmos voice (job #1913, A427)",
|
|
176
|
+
"k": "new",
|
|
177
|
+
"i": "review-reasons",
|
|
178
|
+
"h": "Reviews grouped by reason — Customer voice on Work and pmos voice (job #1913, A427)",
|
|
179
|
+
"try": {
|
|
180
|
+
"steps": [
|
|
181
|
+
"Ask PMOS in the chat: add three reviews about checkout failing on old Android, score 1 of 5, reason Checkout fails on old Android",
|
|
182
|
+
"Open Work for that product and find Customer voice under the strategy",
|
|
183
|
+
"Press ✦ on the fastest-growing complaint, then Undo in the toast"
|
|
184
|
+
],
|
|
185
|
+
"see": "Customer voice lists each reason with its comments, how it moved in 30 days and the score in one line under the reasons. ✦ files the complaint as a triage item and the toast offers Undo, which takes…",
|
|
186
|
+
"open": "/premium-board.html"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"n": 1977,
|
|
191
|
+
"t": "Work and Today get the popup's five-action limit (job #1917, A529)",
|
|
192
|
+
"s": "Work and Today get the popup's five-action limit (job #1917, A529)",
|
|
193
|
+
"k": "new",
|
|
194
|
+
"i": "five-action-cap",
|
|
195
|
+
"h": "Work and Today get the popup's five-action limit (job #1917, A529)",
|
|
196
|
+
"try": {
|
|
197
|
+
"steps": [
|
|
198
|
+
"Open Today and point at a row in Today's log",
|
|
199
|
+
"See at most three buttons: Done, Put off a day and ⋯",
|
|
200
|
+
"Press ⋯ and find Set a date in the Change group"
|
|
201
|
+
],
|
|
202
|
+
"see": "Each Today row shows three buttons at most. ⋯ opens a short menu that starts with Change and holds every action the row does not show, so nothing is lost. Work's header keeps five actions and its ⋯.",
|
|
203
|
+
"open": "/today.html"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"n": 1959,
|
|
208
|
+
"t": "The Portfolio puts every product side by side (job #1894, A56)",
|
|
209
|
+
"s": "The Portfolio puts every product side by side (job #1894, A56)",
|
|
210
|
+
"k": "new",
|
|
211
|
+
"i": "portfolio",
|
|
212
|
+
"h": "The Portfolio puts every product side by side (job #1894, A56)",
|
|
213
|
+
"try": {
|
|
214
|
+
"steps": [
|
|
215
|
+
"With two or more products, open Today or Work and press the Portfolio button at the end of the product tiles",
|
|
216
|
+
"Read one row per product: bets, odds, spend and outcome so far",
|
|
217
|
+
"Press a product's row to open it in Work"
|
|
218
|
+
],
|
|
219
|
+
"see": "One row per product with its open bets, the share of its checked outcomes that held, what its agent runs cost in 30 days and its latest outcome that held. At most one ✦ recommendation with its…",
|
|
220
|
+
"open": "/premium-portfolio.html"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"n": 1967,
|
|
225
|
+
"t": "Who decides, who must agree, who needs to know on each initiative (job #1896)",
|
|
226
|
+
"s": "Who decides, who must agree, who needs to know on each initiative (job #1896)",
|
|
227
|
+
"k": "new",
|
|
228
|
+
"i": "stakeholder-map",
|
|
229
|
+
"h": "Who decides, who must agree, who needs to know on each initiative (job #1896)",
|
|
230
|
+
"try": {
|
|
231
|
+
"steps": [
|
|
232
|
+
"Open Work and open an initiative that has people on it",
|
|
233
|
+
"Find the People block under the Overview: each name says decides, must agree or needs to know, and when they last heard from you",
|
|
234
|
+
"On a name over 3 weeks, press ✦ to read the draft update, copy it and send it yourself, then press I sent it"
|
|
235
|
+
],
|
|
236
|
+
"see": "One People block with the names PMOS found in Jira, meeting notes, mail and sign-offs, each a draft until you keep it. A name not updated in 3 weeks shows a warning and a ✦ draft update. PMOS sends…",
|
|
237
|
+
"open": "/premium-board.html"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"n": 1887,
|
|
242
|
+
"t": "Day-run and stage-card-tasks hold under load, pmos uses the pinned port, Viewer phone floors wait for the pane",
|
|
243
|
+
"s": "Day-run and stage-card-tasks hold under load, pmos uses the pinned port, Viewer phone floors wait for the pane",
|
|
244
|
+
"k": "fix",
|
|
245
|
+
"i": "ci-main-unblock"
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
},
|
|
36
249
|
{
|
|
37
250
|
"v": "0.827.0",
|
|
38
251
|
"at": "2026-11-25T12:10:57.880Z",
|
|
@@ -43,6 +256,7 @@
|
|
|
43
256
|
"t": "Starter goals from your own product, under the fundamentals card (job #1916, A84)",
|
|
44
257
|
"s": "Starter goals from your own product, under the fundamentals card (job #1916, A84)",
|
|
45
258
|
"k": "new",
|
|
259
|
+
"i": "starter-goals",
|
|
46
260
|
"h": "Starter goals from your own product, under the fundamentals card (job #1916, A84)",
|
|
47
261
|
"try": {
|
|
48
262
|
"steps": [
|
|
@@ -52,24 +266,14 @@
|
|
|
52
266
|
],
|
|
53
267
|
"see": "Up to 3 drafts appear, each with 'from: <source>'. ✓ writes the goal to planning/okrs/okrs-starter.md and the row leaves the block; Undo puts the row back and takes the line out again. A product…",
|
|
54
268
|
"open": "/today.html"
|
|
55
|
-
}
|
|
56
|
-
"i": "starter-goals"
|
|
269
|
+
}
|
|
57
270
|
},
|
|
58
271
|
{
|
|
59
272
|
"n": 1984,
|
|
60
273
|
"t": "One warning when an initiative names risky code (A54)",
|
|
61
274
|
"s": "One warning when an initiative names risky code (A54)",
|
|
62
275
|
"k": "new",
|
|
63
|
-
"i": "arch-warns"
|
|
64
|
-
"try": {
|
|
65
|
-
"steps": [
|
|
66
|
-
"On Work, open an initiative of a product whose repository PMOS has read, whose record names a part the Code panel tints as risky",
|
|
67
|
-
"Read the ✦ line above the plan: it names the part and why it is risky",
|
|
68
|
-
"Press ✓ to add the test task, then Undo in the toast; press ✕ for Not now"
|
|
69
|
-
],
|
|
70
|
-
"see": "One ✦ line at most, naming the risky part and its reason in the code map's own words. ✓ adds the task 'Add tests for <part>' to the initiative and the toast's Undo removes it. ✕ hides the line for…",
|
|
71
|
-
"open": "/work.html"
|
|
72
|
-
}
|
|
276
|
+
"i": "arch-warns"
|
|
73
277
|
}
|
|
74
278
|
]
|
|
75
279
|
},
|
|
@@ -587,38 +791,6 @@
|
|
|
587
791
|
"k": "imp"
|
|
588
792
|
}
|
|
589
793
|
]
|
|
590
|
-
},
|
|
591
|
-
{
|
|
592
|
-
"v": "0.799.0",
|
|
593
|
-
"at": "2026-11-25T00:01:31.314Z",
|
|
594
|
-
"f": 4,
|
|
595
|
-
"prs": [
|
|
596
|
-
{
|
|
597
|
-
"n": 1824,
|
|
598
|
-
"t": "Drafting the goal keeps the initiative page; one toast for one draft press",
|
|
599
|
-
"s": "Drafting the goal keeps the initiative page; one toast for one draft press",
|
|
600
|
-
"k": "fix"
|
|
601
|
-
}
|
|
602
|
-
]
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
"v": "0.798.0",
|
|
606
|
-
"at": "2026-11-24T23:17:36.353Z",
|
|
607
|
-
"f": 4,
|
|
608
|
-
"prs": [
|
|
609
|
-
{
|
|
610
|
-
"n": 1822,
|
|
611
|
-
"t": "The merge station runs the strict guardrail on every merge (A508)",
|
|
612
|
-
"s": "The merge station runs the strict guardrail on every merge (A508)",
|
|
613
|
-
"k": "new"
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
"n": 1823,
|
|
617
|
-
"t": "Use it in the status editor keeps the whole text in the log (job #1817, A505)",
|
|
618
|
-
"s": "Use it in the status editor keeps the whole text in the log (job #1817, A505)",
|
|
619
|
-
"k": "fix"
|
|
620
|
-
}
|
|
621
|
-
]
|
|
622
794
|
}
|
|
623
795
|
]
|
|
624
796
|
}
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T13:25:19Z"}
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T13:25:19Z"}
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T13:25:19Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/bin/pmos.js
CHANGED
|
@@ -84,7 +84,8 @@ function probe(port, ms = PROBE_MS) {
|
|
|
84
84
|
}
|
|
85
85
|
// How long a `pmos` command waits for the workspace server to answer. A server that is not running refuses at once, so this only
|
|
86
86
|
// matters when it is busy: while several agent sessions start in tmux at once, a request on a 2-CPU machine took over 5 s, and the
|
|
87
|
-
// old 5 s limit made `pmos proactive day show` say the server was not running (day-run D8b, 2026-11-25).
|
|
87
|
+
// old 5 s limit made `pmos proactive day show` say the server was not running (day-run D8b, 2026-11-25). The same commands find the
|
|
88
|
+
// server with discover(API_TIMEOUT_MS): the 2.5 s launcher probe alone still read a busy server as not running (Checker, 2026-11-25).
|
|
88
89
|
const API_TIMEOUT_MS = 30000;
|
|
89
90
|
function api(port, method, pathname, body, extraHeaders) {
|
|
90
91
|
return new Promise((res) => {
|
|
@@ -119,11 +120,22 @@ function pressApi(port, method, pathname, body) {
|
|
|
119
120
|
});
|
|
120
121
|
}
|
|
121
122
|
|
|
122
|
-
/**
|
|
123
|
-
|
|
123
|
+
/** The server a command that only asks a running server talks to (schedule, proactive, the verbs). Inside a workspace session
|
|
124
|
+
* PMOS_WS_PORT names it, so it is used as it is: the request itself shows whether the server is there, and a probe first only adds
|
|
125
|
+
* a second wait. /api/sessions, which the probe reads, took over 30 s on a busy runner while five job sessions started (day-run D8b,
|
|
126
|
+
* 2026-11-25). Without a pin, the first server that answers, probed as long as the request would wait. */
|
|
127
|
+
async function serverPort() {
|
|
128
|
+
if (PINNED) return PINNED;
|
|
129
|
+
const live = await discover(API_TIMEOUT_MS);
|
|
130
|
+
return live.length ? live[0].port : null;
|
|
131
|
+
}
|
|
132
|
+
/** Every workspace server that answers, in candidate order (the default port first). `ms` is how long each probe waits: the
|
|
133
|
+
* launcher keeps the short probe, and a command that only asks a running server (schedule, proactive, the verbs) waits as long
|
|
134
|
+
* as its request would (API_TIMEOUT_MS). A port with no server refuses at once, so the longer wait only costs time on a busy one. */
|
|
135
|
+
async function discover(ms = PROBE_MS) {
|
|
124
136
|
const ports = D.candidatePorts({ stateDir: STATE, pinned: PINNED });
|
|
125
137
|
const hits = await Promise.all(ports.map(async (port) => {
|
|
126
|
-
const s = await probe(port);
|
|
138
|
+
const s = await probe(port, ms);
|
|
127
139
|
return s ? { port, sessions: s.sessions, version: s.version || null } : null;
|
|
128
140
|
}));
|
|
129
141
|
return hits.filter(Boolean);
|
|
@@ -589,14 +601,12 @@ function doctor() {
|
|
|
589
601
|
else if (cmd === 'phone') code = await phone(process.argv[3] && !process.argv[3].startsWith('-') ? path.resolve(process.argv[3]) : process.cwd());
|
|
590
602
|
else if (cmd === 'schedule' || cmd === 'skill') {
|
|
591
603
|
// Thin client of the running server's own routes (lib/schedule-cli.js): one store, one validator.
|
|
592
|
-
const
|
|
593
|
-
const port = live.length ? live[0].port : null;
|
|
604
|
+
const port = await serverPort();
|
|
594
605
|
code = await require('../lib/schedule-cli').run(process.argv.slice(2), {
|
|
595
606
|
say, call: async (m, p, b) => (port ? api(port, m, p, b) : null) });
|
|
596
607
|
}
|
|
597
608
|
else if (cmd === 'proactive') {
|
|
598
|
-
const
|
|
599
|
-
const port = live.length ? live[0].port : null;
|
|
609
|
+
const port = await serverPort();
|
|
600
610
|
code = await require('../lib/proactive-cli').run(process.argv.slice(2), {
|
|
601
611
|
say, call: async (m, p, b) => (port ? pressApi(port, m, p, b) : null) });
|
|
602
612
|
}
|
|
@@ -613,7 +623,7 @@ function doctor() {
|
|
|
613
623
|
else if (require('../lib/pmos-verbs.js').has(cmd)) {
|
|
614
624
|
// pm-os-absorb Runs 2–5: one module per verb (lib/pmos-verbs.js). A verb whose run has not built it says so.
|
|
615
625
|
code = await require('../lib/pmos-verbs.js').run(cmd, process.argv.slice(2), {
|
|
616
|
-
say, call: async (m, p, b) => { const
|
|
626
|
+
say, call: async (m, p, b) => { const port = await serverPort(); return port ? api(port, m, p, b) : null; } });
|
|
617
627
|
await new Promise((r) => process.stdout.write('', r));
|
|
618
628
|
}
|
|
619
629
|
else if (cmd === 'upgrade') {
|
|
@@ -142,8 +142,8 @@ const model = () => {
|
|
|
142
142
|
const { ctx, page: p, errors } = await open({ w: 390, h: 844, phone: true });
|
|
143
143
|
const ph = await p.evaluate(() => ({ tg: document.querySelectorAll('#ibBody .tg, #ibBody .tgq-r').length, rows: document.querySelectorAll('#ibBody .bd-lrow.ini2').length, scroll: document.documentElement.scrollWidth <= innerWidth + 1 }));
|
|
144
144
|
ok('Q the phone draws no timeline: the List, with no sideways page scroll', ph.tg === 0 && ph.rows >= 1 && ph.scroll, JSON.stringify(ph));
|
|
145
|
-
const c = await p.evaluate(() => { const s = document.querySelector('#ibBody .dl-ph'); return s ? { head: s.querySelector('.dl-phh').textContent, lines: s.querySelectorAll('.dl-pl').length, first: s === document.querySelector('#ibBody').
|
|
146
|
-
ok('Q "Next deliveries · 1 missed" leads the List, flat (no card), with All and the next 3', c && c.first && c.head === 'Next deliveries· 1 missedAll' && c.lines === 3 && /^0px rgba\(0, 0, 0, 0\)$/.test(c.box), JSON.stringify(c));
|
|
145
|
+
const c = await p.evaluate(() => { const s = document.querySelector('#ibBody .dl-ph'); return s ? { head: s.querySelector('.dl-phh').textContent, lines: s.querySelectorAll('.dl-pl').length, first: s === [...document.querySelector('#ibBody').children].find((x) => !x.classList.contains('poa')), box: getComputedStyle(s).borderTopWidth + ' ' + getComputedStyle(s).backgroundColor } : null; });
|
|
146
|
+
ok('Q "Next deliveries · 1 missed" leads the List (after the page\'s one answer, page-one-answer), flat (no card), with All and the next 3', c && c.first && c.head === 'Next deliveries· 1 missedAll' && c.lines === 3 && /^0px rgba\(0, 0, 0, 0\)$/.test(c.box), JSON.stringify(c));
|
|
147
147
|
await shot(p, 'deliveries-phone-390');
|
|
148
148
|
await p.click('#ibBody .dl-all'); await p.waitForTimeout(200);
|
|
149
149
|
const sh = await p.evaluate(() => { const m = document.querySelector('.tg-msp.sh'); return m ? { h: (m.querySelector('.h') || {}).textContent, n: m.querySelectorAll('[data-ms-ini]').length } : null; });
|