create-pmos 0.748.0 → 0.750.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 (51) hide show
  1. package/package.json +51 -40
  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 +50 -0
  8. package/workspace/guide/backlog.md +13 -1
  9. package/workspace/guide/cli.md +13 -1
  10. package/workspace/guide/home.md +1 -1
  11. package/workspace/guide/layout.md +6 -6
  12. package/workspace/guide/programs.md +1 -0
  13. package/workspace/lib/idle-lab.js +16 -6
  14. package/workspace/lib/outcome-props.js +14 -4
  15. package/workspace/lib/outcomes-cli.js +44 -6
  16. package/workspace/lib/pmos-verbs.js +3 -0
  17. package/workspace/lib/proposals.js +12 -2
  18. package/workspace/lib/repeat-requests.js +123 -0
  19. package/workspace/lib/route-modules.js +1 -0
  20. package/workspace/lib/routes-intake.js +45 -2
  21. package/workspace/lib/routes-lab.js +19 -0
  22. package/workspace/lib/routes-proposals.js +13 -0
  23. package/workspace/lib/routes-standing-rules.js +44 -0
  24. package/workspace/lib/routes-your-move.js +7 -1
  25. package/workspace/lib/rules-cli.js +74 -0
  26. package/workspace/lib/smallest-test.js +200 -0
  27. package/workspace/lib/sprint-draft.js +24 -0
  28. package/workspace/lib/standing-rules.js +187 -0
  29. package/workspace/lib/tracker-cli.js +42 -1
  30. package/workspace/package-lock.json +2 -2
  31. package/workspace/package.json +1 -1
  32. package/workspace/premium-board-actions-test.js +2 -1
  33. package/workspace/public/pm/bd-asks.js +19 -5
  34. package/workspace/public/pm/bd-backlog-ds.js +58 -1
  35. package/workspace/public/pm/bd-backlog.js +14 -2
  36. package/workspace/public/pm/cozy-day-pick.js +34 -2
  37. package/workspace/public/pm/cozy-pop-work.js +13 -5
  38. package/workspace/public/pm/cozy-settings.js +6 -2
  39. package/workspace/public/pm/cozy-today-app.js +12 -6
  40. package/workspace/public/pm/cozy-today-model.js +88 -45
  41. package/workspace/public/pm/cozy-today-page.css +6 -0
  42. package/workspace/public/pm/cozy-today-view.js +72 -13
  43. package/workspace/public/pm/range-pick.css +1 -0
  44. package/workspace/public/pm/range-pick.js +21 -4
  45. package/workspace/public/pm/standing-rules-ui.js +100 -0
  46. package/workspace/task-card-test.js +16 -0
  47. package/workspace/test-lists/repeat-requests.json +9 -0
  48. package/workspace/test-lists/smallest-test.json +9 -0
  49. package/workspace/test-lists/sprint-draft.json +9 -0
  50. package/workspace/test-lists/standing-rules-list.json +9 -0
  51. package/workspace/test-lists/your-move-today.json +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.748.0",
3
+ "version": "0.750.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,56 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.750.0",
38
+ "at": "2026-11-23T17:16:14.272Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1685,
43
+ "t": "Count similar past requests before a one-off",
44
+ "s": "Count similar past requests before a one-off",
45
+ "k": "new"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "v": "0.749.0",
51
+ "at": "2026-11-23T17:01:32.549Z",
52
+ "f": 4,
53
+ "prs": [
54
+ {
55
+ "n": 1680,
56
+ "t": "Date fields take dates typed in words (A488)",
57
+ "s": "Date fields take dates typed in words (A488)",
58
+ "k": "new"
59
+ },
60
+ {
61
+ "n": 1684,
62
+ "t": "One ranked Your move leads Today's log (A468)",
63
+ "s": "One ranked Your move leads Today's log (A468)",
64
+ "k": "new"
65
+ },
66
+ {
67
+ "n": 1683,
68
+ "t": "Draft the next sprint from team capacity, carry-over first (A471)",
69
+ "s": "Draft the next sprint from team capacity, carry-over first (A471)",
70
+ "k": "new"
71
+ },
72
+ {
73
+ "n": 1682,
74
+ "t": "Standing rules list — see, edit and retire the rules PMOS learned (A470)",
75
+ "s": "Standing rules list — see, edit and retire the rules PMOS learned (A470)",
76
+ "k": "new"
77
+ },
78
+ {
79
+ "n": 1681,
80
+ "t": "Ask for the smallest test before building a ranked bet",
81
+ "s": "Ask for the smallest test before building a ranked bet",
82
+ "k": "new"
83
+ }
84
+ ]
85
+ },
36
86
  {
37
87
  "v": "0.748.0",
38
88
  "at": "2026-11-23T14:27:01.777Z",
@@ -585,45 +635,6 @@
585
635
  }
586
636
  }
587
637
  ]
588
- },
589
- {
590
- "v": "0.726.0",
591
- "at": "2026-11-23T04:24:12.361Z",
592
- "f": 4,
593
- "prs": [
594
- {
595
- "n": 1604,
596
- "t": "What the chat writes shows on the workspace cards",
597
- "s": "What the chat writes shows on the workspace cards",
598
- "k": "fix",
599
- "try": {
600
- "steps": [
601
- "In an initiative's chat, ask it to write the case."
602
- ],
603
- "see": "The case shows on the workspace card."
604
- }
605
- }
606
- ]
607
- },
608
- {
609
- "v": "0.725.0",
610
- "at": "2026-11-23T03:46:31.972Z",
611
- "f": 4,
612
- "prs": [
613
- {
614
- "n": 1602,
615
- "t": "Jira sprint read and account lookup work with the Atlassian MCP connector",
616
- "s": "Jira sprint read and account lookup work with the Atlassian MCP connector",
617
- "k": "fix",
618
- "try": {
619
- "steps": [
620
- "Refresh Work for a product that uses Jira."
621
- ],
622
- "see": "The sprint loads; large sprints no longer stop.",
623
- "open": "/premium-board.html"
624
- }
625
- }
626
- ]
627
638
  }
628
639
  ]
629
640
  }
package/payload/AGENTS.md CHANGED
@@ -114,6 +114,7 @@ The PM talks to you from an initiative's popup in the workspace. PMOS acts by it
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
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.
116
116
  - **The product glossary (a word's meaning on hover).** When the PM asks to explain, add or change one of the product's own words ("add MAGW to the glossary"), run `pmos glossary set <term> "<meaning>"` in the product's repository; `pmos glossary remove <term>` takes one out and `pmos glossary` lists them. Every page reads the same file and shows the meaning on hover, or on a long press on a phone.
117
+ - **Standing rules (Settings › How PMOS decides › Standing rules).** When the PM asks to see, reword, retire or bring back a rule PMOS learned from their corrections, run `pmos rules` to list them numbered, then `pmos rules edit <n> --text "<new words>"`, `pmos rules retire <n>` or `pmos rules restore <n>` (the R number under Retired). The page reads the same memory entries.
117
118
  - **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.
118
119
  - **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.
119
120
  - **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@d53c1304
1
+ kernel-source: pmos@57d83500
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-23T14:26:58Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T17:16:11Z"}
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-23T14:26:58Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T17:16:11Z"}
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-23T14:26:58Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T17:16:11Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,54 @@
1
1
  [
2
+ {
3
+ "v": "0.750.0",
4
+ "at": "2026-11-23T17:16:14.272Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1685,
9
+ "t": "Count similar past requests before a one-off",
10
+ "s": "Count similar past requests before a one-off",
11
+ "k": "new"
12
+ }
13
+ ]
14
+ },
15
+ {
16
+ "v": "0.749.0",
17
+ "at": "2026-11-23T17:01:32.549Z",
18
+ "f": 4,
19
+ "prs": [
20
+ {
21
+ "n": 1680,
22
+ "t": "Date fields take dates typed in words (A488)",
23
+ "s": "Date fields take dates typed in words (A488)",
24
+ "k": "new"
25
+ },
26
+ {
27
+ "n": 1684,
28
+ "t": "One ranked Your move leads Today's log (A468)",
29
+ "s": "One ranked Your move leads Today's log (A468)",
30
+ "k": "new"
31
+ },
32
+ {
33
+ "n": 1683,
34
+ "t": "Draft the next sprint from team capacity, carry-over first (A471)",
35
+ "s": "Draft the next sprint from team capacity, carry-over first (A471)",
36
+ "k": "new"
37
+ },
38
+ {
39
+ "n": 1682,
40
+ "t": "Standing rules list — see, edit and retire the rules PMOS learned (A470)",
41
+ "s": "Standing rules list — see, edit and retire the rules PMOS learned (A470)",
42
+ "k": "new"
43
+ },
44
+ {
45
+ "n": 1681,
46
+ "t": "Ask for the smallest test before building a ranked bet",
47
+ "s": "Ask for the smallest test before building a ranked bet",
48
+ "k": "new"
49
+ }
50
+ ]
51
+ },
2
52
  {
3
53
  "v": "0.748.0",
4
54
  "at": "2026-11-23T14:27:01.777Z",
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "The Backlog"
4
4
  description: "Every open task of your products in one list, the way Jira lists them, and the tasks PMOS takes and finishes itself."
5
- timestamp: 2026-11-22
5
+ timestamp: 2026-11-23
6
6
  ---
7
7
 
8
8
  # The Backlog
@@ -47,6 +47,18 @@ The quick filters at the top count each group alone. Group filters add to each o
47
47
 
48
48
  Tick rows to give them to PMOS or to a person, move them to an initiative, set a date, or archive them. On a phone, a long press on a row shows the tick boxes.
49
49
 
50
+ ## Draft the next sprint
51
+
52
+ When Jira has a next sprint with dates and PMOS kept at least two finished sprints of the product, **Where it stands** drafts the next sprint for you. The draft works the same for every product.
53
+
54
+ 1. **How much fits.** PMOS takes the number of items the team finished in each of its last three finished sprints, and uses the middle number. When the next sprint is longer or shorter than those sprints, PMOS changes the number to match. It counts items, not story points, because many tickets have no points and PMOS tasks have none.
55
+ 2. **Carry-over first.** The open items of the current sprint will probably carry over, so PMOS counts them first.
56
+ 3. **Then the rank.** The ready items at the top of the Backlog fill the room that is left. A ready item is in an initiative, has an owner, and is not started.
57
+
58
+ The Suggestion says how much fits, how much carries over, and which ready items do not fit. It also says how many items need an owner or an initiative first. Press ✓ to give the PMOS tasks the dates of the next sprint. PMOS lists the Jira tickets for you to add in Jira, because PMOS does not change Jira. Press the pen to tick the draft's tasks, change the ticks, and then press **Set date**. Press ✕ and PMOS does not suggest this draft again.
59
+
60
+ When the open items alone fill the next sprint, PMOS does not suggest more work. **Where it stands** says that the next sprint is full before anything new goes in. When PMOS has fewer than two finished sprints, it suggests the top 4 ready items, as before.
61
+
50
62
  ## The sprint overview
51
63
 
52
64
  Press **This sprint** to see the current sprint above the list:
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "Command reference: every pmos command, by area"
4
4
  description: "Every pmos command of the workspace in one page, grouped by area, with its flags, examples and exit codes."
5
- timestamp: 2026-11-19
5
+ timestamp: 2026-11-23
6
6
  ---
7
7
 
8
8
  # Command reference
@@ -287,6 +287,15 @@ On a computer that follows the beta line, each update brings a short list of cha
287
287
  - `pmos try later` hides Today's row until tomorrow. `pmos try count` prints the percent of recent changes you answered.
288
288
  - Your answers stay on this computer. A computer on the GA line has no list.
289
289
 
290
+ ### pmos rules: the standing rules PMOS keeps
291
+
292
+ When you correct the same kind of thing 3 times, PMOS offers a standing rule in the Lab, and every run reads the rules you keep. This is the list of them for the product. Settings › How PMOS decides › Standing rules shows the same list. Run it in the product's repository, or pass `--root <dir>`. No running workspace is needed.
293
+
294
+ - `pmos rules` (or `pmos rules list`) lists the rules, numbered: where each came from (how many of your corrections, and your latest words), how many times it fired (you corrected the same kind of thing again after you kept it) and when it last fired. Retired rules follow, numbered R1, R2. `--json` prints them for a script.
295
+ - `pmos rules edit <n> --text "…"` gives rule `n` new words. `pmos rules retire <n>` takes it out of every run. `pmos rules restore <n>` brings back retired rule `Rn`.
296
+ - `pmos rules count` prints the uses of the list in the last 7 days.
297
+ - Once a month, when rules have not fired in 30 days, the Lab asks whether to retire them. ✓ retires them, Undo brings them back.
298
+
290
299
  ### pmos glossary: the product's own words, explained on every page
291
300
 
292
301
  Run it in the product's repository, or pass `--root <dir>`. It writes the product's records folder on disk, needs no running workspace and sends nothing.
@@ -332,6 +341,8 @@ Run them in the product's repository, or pass `--root <dir>`.
332
341
  - `pmos outcomes propose [<id>]` shows PMOS's drafts, each with the lines it cites. Before the first draft of a repository it replays them on that repository's records, and shows nothing unless the replay passes.
333
342
  - `pmos outcomes declare <id> --metric "<text>" --horizon <YYYY-MM-DD>` writes the outcome and its check date, after you said yes.
334
343
  - `pmos outcomes record <id> <worked|didnt-work|cant-tell> --evidence "<text>"` records your verdict on a due check.
344
+ - `pmos outcomes test <id> --test "<text>" [--method data-count|fake-door|concierge|other] [--result planned|holds|fails|unclear] [--evidence "<text>"]` records the smallest test that could kill a ranked bet before it is built, and what the test showed. A result other than `planned` needs evidence. When the bet already has a named test, `--test` can be left out.
345
+ - `pmos outcomes tests [--count]` lists the ranked bets with no smallest test, the tests that wait for a result, and the results. `--count` prints the number of bets with a result in the last 14 days.
335
346
  - `pmos outcomes live --where <place> --version <version>` records the version a place runs now, for example after a deploy. When a record says `shipped_in: "<version>"` and `measured_on: "<place>"`, and that place still runs an older version, its outcome check shows as blocked with the step to fix it. PMOS does not ask for a verdict until the place runs the change.
336
347
  - When you record `didnt-work`, the initiative shows **At risk** on every page, with the check as the reason. PMOS compares the evidence with the kill condition and files one next step under the initiative's ✦. If the evidence meets the kill condition, PMOS suggests that you stop the initiative. If this is the second check that did not work, it suggests a new experiment. Otherwise it suggests one more round with a new check date. The Board's Next column asks you the same question. Nothing happens until you press ✓. Undo reverses the step.
337
348
  - `pmos outcomes propose` also reads the experiment's hypothesis. When the hypothesis names a different KR from the initiative's anchor, the draft tells you.
@@ -914,6 +925,7 @@ Before the tickets of an initiative go to the engineers, `pmos ready` shows whic
914
925
  - `pmos tracker status` says when tracker items were last read for this repository.
915
926
  - `pmos tracker sync` says how much of this repository's tasks match the last Jira read, as one percent, and lists each task that differs: its state, its done day or its owner. The read already sets the state, the done day (Jira's resolution day) and the owner (Jira's assignee), so what is left is what someone set by hand. Tasks the read could not return are counted apart. `--number` prints the percent alone; `--json` prints all of it. It calls no tracker and writes nothing.
916
927
  - `pmos tracker match` lists the initiatives the last Jira read does not cover, and the epic or ticket that most likely holds each one's work. `--number` prints the share of initiatives with tasks that the read covers. `--file` proposes each match under the initiative's ✦ for you to approve; after every read, `pmos tracker done` does the same. It calls no tracker and moves no item.
928
+ - `pmos tracker repeats "<ask>"` says how many times the same thing was asked before: the stored tickets and the boards' earlier asks that share most of its words, with up to 3 of them. From 2, it suggests building it once as a setting others can use. With no ask, it gives the share of stored tickets that repeat; `--number` prints that share alone. It calls no tracker and writes nothing.
917
929
 
918
930
  ### pmos source
919
931
 
@@ -122,7 +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 calendar opens with the focus on a day. The arrow keys move a day or a week, Home and End go to the start and end of the week, and Page Up and Page Down move a month. On a phone the calendar opens from the bottom of the screen.
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. You can also type a day in words: "today", "tomorrow", "friday" (the next Friday after today), "+3d", "+2w", "in 2 weeks", "end of week" (Friday), "end of month" or "end of sprint". Before you press Enter, the field shows the day it read, such as "Reads as Friday 27 Nov 2026". "End of sprint" works where PMOS knows the task's sprint, as in the work popup; anywhere else the field says so and saves nothing. A milestone has one **Date**: one press sets it. **No date** clears the dates. Each press saves and shows **Undo**. The calendar opens with the focus on a day. The arrow keys move a day or a week, Home and End go to the start and end of the week, and Page Up and Page Down move a month. On a phone the calendar opens from the bottom of the screen.
126
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.
127
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**.
128
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**.
@@ -38,7 +38,7 @@ Every block has three states, and one part of the UI system draws all three (`St
38
38
  On a computer, one thin panel at the left edge of every page holds the places. It is the same on every page. Press a place to go there.
39
39
 
40
40
  - At its foot: the chat icon, **Search**, **Guide** and **Settings**.
41
- - A number on Today says how many lines of Today's log are for today (Do first and what waits today). It shows on every place. A number on the chat icon says how many sessions wait for you.
41
+ - A number on Today says how many lines of Today's log are for today (Your move and what waits today). It shows on every place. A number on the chat icon says how many sessions wait for you.
42
42
  - A blue dot on a place means that it has something new to show. A rust-coloured dot on Settings means that a source is stale.
43
43
  - The place you are on has a green ring. The rail is the design system's Navigation part.
44
44
  - Settings opens over the page you are on. The navigation stays.
@@ -53,13 +53,13 @@ On a phone, **⋯** at the top right of every screen opens the menu: Today, Work
53
53
 
54
54
  On a computer, Today is one page that starts at the left of the panel. At the top are the day and the time, and a greeting. Under them, the Overview and Today's log take the left (at most about 1100 px wide). Today's agenda is in one grey box on the right, about 340 px wide, with the meeting you recorded under it. Today is built from the parts of the PMOS design system: the Overview is a summary card, the log a list card, and the agenda a timeline. Today reads every product. Home's old address (`/premium.html`, and a link that names one item) opens Today; Home's own page is gone.
55
55
 
56
- The **Overview** is one card written by PMOS (✦). It says how many lines are open, the ones to start with and why, how much free time today has and when your first or next meeting is. It names only what the lines themselves say. The names of the lines to start with are links: press one to open it. Under it, PMOS suggests what to clean up with ✓ ✕, only when it is true, for example "Drop the 2 checks carried more than 60 days".
56
+ The **Overview** is one card written by PMOS (✦). It says how many things wait on you, the first row of Your move and why it is first ("19 things wait on you; start with the security sign-off, because Friday’s ship waits on it"), how much free time today has and when your first or next meeting is. It names only what the lines themselves say. The name of the row to start with is a link: press it to open it. Under it, PMOS suggests what to clean up with ✓ ✕, only when it is true, for example "Drop the 2 checks carried more than 60 days".
57
57
 
58
58
  The log is a list, kept the Bullet Journal way. Tabs at the top right count the lines by job: **All**, **Reply**, **Do**, **Decide** and **Send**. Press a tab to show only that job; **All** shows all again. A job with no lines has no tab. The lines are in three groups:
59
59
 
60
- - **Do first**: five lines at most, each with the reason PMOS picked it under its title. Its first line is lit: start there. PMOS picks what you marked first, a date that is late, a date that is today or a send that goes out today, a session that waits on you, and the person who waits longest. A line that PMOS suggests to drop is never in Do first.
60
+ - **Your move**: every line that waits on you, in one list ranked by what it costs to wait. What you marked first comes first. Then a line that blocks a ship date: its initiative ships within 14 days and the line has no safe default ("Friday’s ship waits on it"). Then a default that lands within 7 days, soonest first, or a send that goes out today. Then what is late, the most days first: a late task, a person who waits on your reply. Then the rest, the oldest first. Each row has its place number and a ✦ line that says why it is in that place. Five rows show. One line under them holds the rest in the same order and names the next one ("14 more, in the same order · the next one: 4 drafts on Email OTP login, 23 days"); press it to see them. Each row has two icons: its action (**Answer**, **Reply**, **Decide** or **Send** opens the item where you do it, **Done** marks it done) and **Put off a day**, which takes it off Today until tomorrow. When a row is done, answered or put off, the next one moves up. A row in Your move does not show again in the groups below it. Every open question that waits on you is in Your move. A line that PMOS suggests to drop, a note, an event and a ✦ finding are never in it. When nothing waits on you, there is no Your move and the log starts with Today.
61
61
  - **Today**: what is new today (dated today, logged today or asked today), then what you did today.
62
- - **Later**: the rest, folded to one line ("66 can wait · the oldest waits 23 days"). Press it to see them, by type and then the oldest first.
62
+ - **Later**: the rest that is not in Your move, folded to one line ("66 can wait · the oldest waits 23 days"). Press it to see them, by type and then the oldest first.
63
63
 
64
64
  Each row has two lines:
65
65
 
@@ -86,7 +86,7 @@ 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, each headed in small capitals like the log's own heading. `pmos questions` prints the same list in a terminal (see the [Command reference](cli.md)).
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. Each question that waits on you is also a row of Your move in the log, ranked by when its default lands. 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, each headed in small capitals like the log's own heading. `pmos questions` prints the same list in a terminal (see the [Command reference](cli.md)).
90
90
 
91
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.
92
92
 
@@ -304,7 +304,7 @@ A key that you type in a field, or in a terminal, goes to the field or the termi
304
304
  A phone has its own layout. It is not the computer's page made smaller. There is no bottom bar and no round button.
305
305
 
306
306
  - **⋯** is at the top right of every screen. It opens **Waiting on you** with a count (only when something waits), **Live now** (only while something runs), **Today**, **Work**, **Ask PMOS** and **Settings**. A blue dot on ⋯ means that something waits on you. When an item is open, its own menu items are at the top of the same menu.
307
- - **Today** opens first. **Where it stands** says what leads today and why, and which dates are late. Under it is at most one ✦ proposal. Press it to read what changes and why, then press ✓ or ✕. The log has the **All** filter: Reply, Do, Decide or Send. A row has two lines: the title, then the job, the work and how late it is. A dot is before each row: red when it is late, blue for today, grey for Can wait. When PMOS has a fix for a row, the fix is under it with ✦. Swipe a row to the right to do, accept or send it, and to the left to drop it or put it off. Each swipe shows **Undo**. **Can wait** is one folded line. The box at the bottom logs a task, an event or a note; where the browser can listen, the microphone writes what you say into the box. After a recording, the first line says where PMOS filed it, with **Undo**.
307
+ - **Today** opens first. **Your move** is at the top: the same five rows in the same order as on a computer, each with a dot (red when it is late) and its ✦ line, and one line that holds the rest. Swipe a row of Your move to the right to do its action (a reply, an answer, a decision or a send opens the item) and to the left to put it off a day. **Where it stands** says what leads today and why, and which dates are late. Under it is at most one ✦ proposal. Press it to read what changes and why, then press ✓ or ✕. The log has the **All** filter: Reply, Do, Decide or Send. A row has two lines: the title, then the job, the work and how late it is. A dot is before each row: red when it is late, blue for today, grey for Can wait. When PMOS has a fix for a row, the fix is under it with ✦. Swipe a row to the right to do, accept or send it, and to the left to drop it or put it off. Each swipe shows **Undo**. **Can wait** is one folded line. The box at the bottom logs a task, an event or a note; where the browser can listen, the microphone writes what you say into the box. After a recording, the first line says where PMOS filed it, with **Undo**.
308
308
  - **Work** is the list of initiatives: the product, search and filter, the tabs **Initiatives**, **Backlog** with its count (for example **Backlog 14**) and **Sprint**, a short **Where it stands**, and the groups At risk or late, On track and No signal. **Next deliveries** is at the top, with no box: the next 3, missed first, and **All**. A row shows its stage, its next milestone and how many milestones are late. Under it is the row's own small line, from its start to its end: the part done up to today, a tick for today and a ◇ for the next milestone, with the start month and the end date below. The line is orange when the work is late or at risk. A row with no dates has no line. The view menu has **List** and **By stage**. There is no timeline on a phone; a shared read-only copy keeps its timeline.
309
309
  - **An initiative** opens full screen: **Where it stands** with one ✦ proposal and the next 3 dates, the **Stages** as one strip with the stage now marked, the **Work breakdown** of the stage now (a red dot when late, blue in progress, an empty ring to do, a tick when done, the Jira key, subtasks under their task), one line that opens the other stages, **The case**, and **Artefacts**. There is no timeline on a phone. Swipe a ✦ line to the right to say yes and to the left to say no; press it to read why. A task, a milestone or an artefact opens full screen with ← back to the initiative, as one page with no boxes. The box at the end of the page asks PMOS about this work.
310
310
  - **Ask PMOS** lists your chats grouped by the work they are about, with its product. "Not in a work yet" is last. A blue dot after the time marks a chat that waits for you. Write in the box at the bottom to start a new chat. In a chat, when PMOS asks before it changes or sends something, the ask is a blue-lined line: swipe it to the right to allow it, and to the left to say no. Press **Why** under it to read why PMOS asks. After you allow a change, a line says **Done** with what changed and **Undo**, until you write again.
@@ -23,6 +23,7 @@ On a computer the Board place is **Work**: one list of initiatives with the time
23
23
  - **The groups.** The rows are under their goals. An initiative with no goal is under **No goal yet**.
24
24
  - **The timeline.** Each bar is the same bar as on the Board: dark grey is done, blue is now, light grey is still planned. Every milestone is a diamond at its date; press it to see its card. A thin line shows a gap in the plan, and an orange line goes from a missed date to today. Press a bar to see the stages of its workflow in a card, each with its date when it has one. Press outside the card or press Esc to close it. An initiative with no start and no end has an empty timeline cell. A bar that starts or ends outside the span stops at the timeline's edge, so the columns beside it always show. Closed and completed initiatives fold into one last line, for example **11 closed**; press it to show them. The span chooser at the top left of the timeline has **Quarter**, **Half**, **Year**, **2 yr**, **5 yr** and **Full**. **Full** shows every bar from the earliest start to the latest end. The button beside it hides the timeline. The key is under the list.
25
25
  - **The view menu.** Press the tune button. **Filter** comes first: Needs (late, at risk, waits on you, blocked), Stage, Status, Product, Program, Owner and Sprint. Each value shows how many initiatives it holds, and you can pick several at once. A line above the table says what shows, for example "Showing Build and Deliver of IDPF · 14 hidden · Show all", and the tune button shows how many filters are on. **Sort** takes up to three keys: press a column to add it, press it again to turn it round, and press its × to take it out. **PMOS order** puts what needs you first. **View** has **Group by** and the **Timeline** switch. **Columns** opens a switch for each column; drag a column to change the order (or use Alt+↑ and Alt+↓). PMOS remembers the view in this browser, and **Reset** shows when the view is not the usual one. If the sprint in the Jira reading has ended, the menu says so, for example "MAD Sprint 115 has ended, showing MAD Sprint 116". The ⋯ menu has **New asks**, **Sprints and releases**, **Shared with me** and **Read Jira again**.
26
+ - **Asked before.** In **New asks**, an ask that was asked before says so under it, for example "Asked 3 times before: OPS-12 Monitoring access for finance, …". PMOS counts the tickets in the stored Jira reads and the board's earlier asks that share most of its words. From 2, it suggests building it once, as a setting others can use, not a one-off. An ask never asked before shows nothing. The New initiative form shows the same line while you type the name.
26
27
  - **Sort.** Press a column title to sort by it. Press it again to go back to your usual order.
27
28
  - **Edit in place.** Press the Stage of a row to move the initiative to another stage. The toast has **Undo**.
28
29
  - **Open.** Press a row to open the initiative in the popup, with the chat beside it.
@@ -18,6 +18,8 @@
18
18
  * scan a finding worth knowing that no initiative holds yet. ✓ keeps it (writes nothing else)
19
19
  * rule a correction the PM keeps giving, offered as a standing rule (lib/correction-kinds.js, bet A464). data { kind, n }
20
20
  * ✓ writes it to memory as the PM's own confirmed entry; Undo removes that entry (lib/routes-lab.js)
21
+ * retire the monthly ask on standing rules that have not fired in 30 days (lib/standing-rules.js, bet A470). data { ids }
22
+ * ✓ retires those memory entries; Undo brings them back; ✕ keeps them (lib/routes-lab.js)
21
23
  *
22
24
  * THE LAB LEDGER, <state>/idle-lab.jsonl, one line per event { at, by, kind, ... }:
23
25
  * propose { id, type: 'start' | 'scan', title, why, sources: [{ label, ref }], data } the last line for an id wins
@@ -48,7 +50,7 @@ const LEDGER = 'idle-lab.jsonl';
48
50
  const KINDS = new Set(['propose', 'drop', 'keep', 'undo', 'run', 'next']);
49
51
  const GROUPS = Object.freeze(['prototyped', 'improved', 'scanned']);
50
52
  const TITLES = Object.freeze({ prototyped: 'PMOS prototyped it', improved: 'PMOS improved it', scanned: 'PMOS scanned for it' });
51
- const LOOSE = Object.freeze(['start', 'scan', 'rule']);
53
+ const LOOSE = Object.freeze(['start', 'scan', 'rule', 'retire']);
52
54
  const PROVEN = Object.freeze({ production: false, design: false });
53
55
  const WEEK = 7 * 864e5;
54
56
  const LIM = { title: 140, why: 300, label: 80, ref: 500, caption: 120, file: 200, changed: 200, checked: 200 };
@@ -147,6 +149,12 @@ function loose(type, input) {
147
149
  if (!K.IDS.includes(str(d.kind))) return { error: 'rule needs data { kind }: one of ' + K.IDS.join(', ') };
148
150
  Object.assign(data, { kind: d.kind, n: Math.max(0, Math.floor(Number(d.n) || 0)) });
149
151
  }
152
+ if (type === 'retire') {
153
+ // the monthly ask on quiet standing rules (lib/standing-rules.js, bet A470): ✓ retires the memory entries it names
154
+ const ids = (Array.isArray(d.ids) ? d.ids : []).map(str).filter((x) => /^[A-Za-z0-9_-]{1,80}$/.test(x)).slice(0, 20);
155
+ if (!ids.length) return { error: 'retire needs data { ids }: the standing rules it would retire' };
156
+ data.ids = ids;
157
+ }
150
158
  if (str(d.refreshed)) data.refreshed = one(d.refreshed, LIM.checked);
151
159
  const id = ID_RE.test(str(input.id)) ? input.id : 'lab-' + hash([type, title].join('|'));
152
160
  return { prop: { id, type, title, why, sources: s.v, data } };
@@ -222,20 +230,22 @@ function labOf({ P, L, extra = [], now = Date.now(), titleOf = () => '' } = {})
222
230
  if (!inWeek(p.at)) continue;
223
231
  const state = keptL.has(p.id) ? 'kept' : L.drops.has(p.id) ? 'dropped' : 'open';
224
232
  tally.scan[1]++; if (state === 'kept') tally.scan[0]++;
225
- const rule = p.type === 'rule';
226
- record.push({ kind: 'loose', id: p.id, at: p.at, state, why: state === 'dropped' ? (L.drops.get(p.id).why || '') : '', title: (rule ? 'Standing rule · ' : 'Scan · ') + p.title,
227
- meta: rule ? plural((p.data && p.data.n) || (p.sources || []).length, 'correction', 'corrections') : plural((p.sources || []).length, 'page', 'pages') + ' read' });
233
+ const rule = p.type === 'rule', ret = p.type === 'retire';
234
+ record.push({ kind: 'loose', id: p.id, at: p.at, state, why: state === 'dropped' ? (L.drops.get(p.id).why || '') : '', title: (rule || ret ? 'Standing rule · ' : 'Scan · ') + p.title,
235
+ meta: rule ? plural((p.data && p.data.n) || (p.sources || []).length, 'correction', 'corrections') : ret ? plural(((p.data && p.data.ids) || []).length, 'rule', 'rules')
236
+ : plural((p.sources || []).length, 'page', 'pages') + ' read' });
228
237
  }
229
238
  for (const x of extra || []) if (x && inWeek(x.at) && one(x.title, LIM.title)) record.push({ kind: 'job', job: one(x.job, 40), at: x.at, state: 'done', title: one(x.title, LIM.title), meta: one(x.meta, LIM.why), ...(x.ini ? { ini: x.ini, board: x.board || '' } : {}) });
230
239
  record.sort((a, b) => String(b.at).localeCompare(String(a.at)));
231
240
  const next = L.next && L.next.items.length ? L.next.items : [];
232
241
  if (!record.length && !open.length && !next.length) return null;
233
242
  const filed = tally.proto[1] + tally.scan[1], kept = tally.proto[0] + tally.scan[0];
234
- const nRule = open.filter((p) => p.type === 'rule').length, nFind = open.length - nRule;
243
+ const nRule = open.filter((p) => p.type === 'rule').length, nRet = open.filter((p) => p.type === 'retire').length, nFind = open.length - nRule - nRet;
235
244
  const idle = L.runs.filter((r) => inWeek(r.at)).reduce((s, r) => s + r.ms, 0);
236
245
  const say = [idle ? 'This week I used ' + fmtMs(idle) + ' of your idle time.' : '', filed ? 'You kept ' + kept + ' of ' + filed + '.' : '',
237
246
  nFind ? plural(nFind, 'finding fits', 'findings fit') + ' no initiative yet.' : '',
238
- nRule ? plural(nRule, 'correction repeats', 'corrections repeat') + ': keep ' + (nRule === 1 ? 'it' : 'them') + ' as a standing rule?' : ''].filter(Boolean).join(' ');
247
+ nRule ? plural(nRule, 'correction repeats', 'corrections repeat') + ': keep ' + (nRule === 1 ? 'it' : 'them') + ' as a standing rule?' : '',
248
+ nRet ? 'Some standing rules have not fired in 30 days: retire them?' : ''].filter(Boolean).join(' ');
239
249
  return { say, loose: open.map((p) => ({ id: p.id, type: p.type, title: p.title, why: p.why, sources: p.sources, data: p.data, at: p.at })),
240
250
  record: record.slice(0, 12), more: Math.max(0, record.length - 12),
241
251
  kept: filed ? { kept, filed, proto: tally.proto, scan: tally.scan } : null, next };
@@ -19,6 +19,9 @@
19
19
  * takes a few weeks of mornings, or `pmos outcomes propose` in a sitting). A draft the PM dropped (✕) or kept is not filed again. When a
20
20
  * record has its outcome by another way (`pmos outcomes declare`, an edit), the open draft is dropped. It never writes a record: only the PM's ✓.
21
21
  *
22
+ * A SMALLEST TEST (bet A472). The same daily pass files, for an initiative ranked on the Roadmap with no smallest test, the cheapest test that could
23
+ * kill it before a build (lib/smallest-test.js, type test). ✓ records it as planned; once a test is recorded another way the ✦ goes.
24
+ *
22
25
  * A REFUTED OUTCOME (launch simulation W2). Every tick (not once a day) the server reads each product's outcome ledger, and for a verdict
23
26
  * that says it did not work, files PMOS's next step under the ✦ (lib/outcomes.js refutedDrafts): stop it when the evidence meets the
24
27
  * kill condition, a new experiment after a second refuted check, else one more round. Class C (lib/autonomy.js): only the PM's ✓ does it.
@@ -40,6 +43,7 @@ const crypto = require('crypto');
40
43
  const fs = require('fs');
41
44
  const path = require('path');
42
45
  const O = require('./outcomes.js');
46
+ const ST = require('./smallest-test.js');
43
47
  const PR = require('./proposals.js');
44
48
 
45
49
  const PER_DAY = 3;
@@ -48,7 +52,7 @@ const off = (env) => flagOff((env || process.env).PMOS_OUTCOMES);
48
52
  const localDay = (ms) => { const d = new Date(ms); return d.getFullYear() + '-' + String(d.getMonth() + 1).padStart(2, '0') + '-' + String(d.getDate()).padStart(2, '0'); };
49
53
  const guardLib = () => { try { return require('./ai-guard.js'); } catch { return null; } };
50
54
  const versionOf = (w) => O.VERSION + ':' + w.id;
51
- const typeOf = (d) => (d.data.kind === 'undated' ? 'date' : d.data.kind === 'refuted' ? 'refuted' : d.data.kind === 'verdict' ? 'verdict' : d.data.kind === 'source' ? 'source' : 'new');
55
+ const typeOf = (d) => (d.data.kind === 'undated' ? 'date' : d.data.kind === 'refuted' ? 'refuted' : d.data.kind === 'verdict' ? 'verdict' : d.data.kind === 'source' ? 'source' : d.data.kind === 'test' ? 'test' : 'new');
52
56
  const J = require('./outcome-judge.js');
53
57
  const RUNS = 'outcome-runs.jsonl'; // <state>/outcome-runs.jsonl: one line per outcome run started { ini, horizon, run, at }
54
58
  const RUNS_PER_PASS = 1; // a backlog of due checks starts one run per pass (the machine runs at most 2 at once)
@@ -63,6 +67,11 @@ function lineOf(d, board, run) {
63
67
  const c = PR.clean('outcome', type, { title: d.title, why: d.say, sources, items, data: d.data });
64
68
  return c.error ? null : { kind: 'propose', ini, board, run, id: PR.idOf(ini, 'outcome', type, type === 'verdict' ? d.data.horizon : d.data.rid), ...c.prop };
65
69
  }
70
+ if (type === 'test') {
71
+ // the smallest test before a build (bet A472): one per initiative; ✓ records it as planned
72
+ const c = PR.clean('outcome', 'test', { title: d.title, why: d.say, sources, items: [{ id: 'test', title: d.data.test }], data: { test: d.data.test, method: d.data.method } });
73
+ return c.error ? null : { kind: 'propose', ini, board, run, id: PR.idOf(ini, 'outcome', 'test', ''), ...c.prop };
74
+ }
66
75
  if (type === 'refuted') {
67
76
  // one per check: a later refuted check files again (its key is the check's own line)
68
77
  const c = PR.clean('outcome', 'refuted', { title: d.title, why: d.say, sources, items: [{ id: 'next', title: O.NEXT_WORDS[d.data.next], ...(d.data.horizon ? { due: d.data.horizon } : {}) }], data: d.data });
@@ -91,7 +100,7 @@ function create(deps) {
91
100
  async function runProduct(w, { now = Date.now() } = {}) {
92
101
  const dir = deps.stateDirFor(w); if (!dir) return { ws: w.id, filed: 0, why: 'no state folder' };
93
102
  const rt = deps.runtime && deps.runtime();
94
- const S = O.scan(w.root, { today: localDay(now) });
103
+ const S = ST.testScan(w.root, { today: localDay(now) });
95
104
  const F = PR.read(dir), kept = PR.keptIds(F);
96
105
  // a record that has its outcome now: its open draft goes (zero is silence)
97
106
  const has = new Map(S.subjects.map((it) => [it.id, it]));
@@ -99,16 +108,17 @@ function create(deps) {
99
108
  if (p.group !== 'outcome' || p.type === 'refuted' || p.type === 'verdict' || p.type === 'source' || kept.has(p.id)) continue; // refutedPass and duePass keep theirs
100
109
  const it = has.get(p.ini), sig = PR.sigOf(p);
101
110
  if (F.drops.has(sig)) continue;
111
+ if (p.type === 'test') { if (!it || it.test || !it.ranked) PR.append(dir, { by: 'pmos:outcomes' }, { kind: 'drop', ini: p.ini, sig }); continue; } // a test recorded another way, or no longer ranked
102
112
  if (!it || (it.metric && (p.type === 'new' || it.horizon))) PR.append(dir, { by: 'pmos:outcomes' }, { kind: 'drop', ini: p.ini, sig });
103
113
  }
104
- const D = O.drafts(S).drafts.filter((d) => d.data.kind === 'missing' || d.data.kind === 'undated');
114
+ const D = [...ST.testDrafts(S), ...O.drafts(S).drafts.filter((d) => d.data.kind === 'missing' || d.data.kind === 'undated')]; // a ranked bet's smallest test first (A472)
105
115
  const fresh = [];
106
116
  for (const d of D) {
107
117
  const board = deps.boardOf(w, d.data.initiative); if (!board) continue;
108
118
  const l = lineOf(d, board, ''); if (!l) continue;
109
119
  const prev = F.props.get(l.id);
110
120
  if (kept.has(l.id)) continue;
111
- if (prev && (F.drops.has(PR.sigOf(prev)) || (prev.type === l.type && prev.data && prev.data.metric === l.data.metric))) continue; // dropped for good, or filed already (a default date that moves a day is not news)
121
+ if (prev && (F.drops.has(PR.sigOf(prev)) || (prev.type === l.type && prev.data && prev.data.metric === l.data.metric && prev.data.test === l.data.test))) continue; // dropped for good, or filed already (a default date that moves a day is not news)
112
122
  fresh.push({ d, board });
113
123
  }
114
124
  if (!fresh.length) return { ws: w.id, filed: 0 };