create-pmos 0.806.0 → 0.807.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.806.0",
3
+ "version": "0.807.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,34 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.807.0",
38
+ "at": "2026-11-25T05:33:13.867Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1849,
43
+ "t": "Warn when an experiment cannot conclude by its check date (job #1840, A404)",
44
+ "s": "Warn when an experiment cannot conclude by its check date (job #1840, A404)",
45
+ "k": "new",
46
+ "try": {
47
+ "steps": [
48
+ "On Work, open an initiative whose record has baseline: 10%, min_change: 1pp, weekly_traffic: 500 and outcome_horizon a week away.",
49
+ "Look at the Overview's lines.",
50
+ "Change weekly_traffic to 50000 and open the popup again."
51
+ ],
52
+ "see": "First the Overview shows 'It cannot conclude by <date>: it needs about 30,000 people, 60 weeks at 500 a week.' from the record; with 50,000 a week the line is gone.",
53
+ "open": "/premium-board.html"
54
+ }
55
+ },
56
+ {
57
+ "n": 1848,
58
+ "t": "Rows no longer show below Today's capture box on a phone",
59
+ "s": "Rows no longer show below Today's capture box on a phone",
60
+ "k": "fix"
61
+ }
62
+ ]
63
+ },
36
64
  {
37
65
  "v": "0.806.0",
38
66
  "at": "2026-11-25T05:20:35.133Z",
@@ -382,51 +410,6 @@
382
410
  "k": "fix"
383
411
  }
384
412
  ]
385
- },
386
- {
387
- "v": "0.785.0",
388
- "at": "2026-11-24T17:13:04.909Z",
389
- "f": 4,
390
- "prs": [
391
- {
392
- "n": 1758,
393
- "t": "A chat write moves the row on every open page at once (a2ui-live-rows, job #1750)",
394
- "s": "A chat write moves the row on every open page at once (a2ui-live-rows, job #1750)",
395
- "k": "new"
396
- },
397
- {
398
- "n": 1753,
399
- "t": "Chat rules, AGENTS.md commands and the / menu generated from the card catalog",
400
- "s": "Chat rules, AGENTS.md commands and the / menu generated from the card catalog",
401
- "k": "new"
402
- },
403
- {
404
- "n": 1782,
405
- "t": "Declined asks get a kind reply draft and an out-of-scope record",
406
- "s": "Declined asks get a kind reply draft and an out-of-scope record",
407
- "k": "new",
408
- "h": "Declined asks get a kind reply draft and an out-of-scope record",
409
- "try": {
410
- "steps": [
411
- "Open Today and ask PMOS in the chat: which asks did I decline lately?",
412
- "Ask PMOS to record one of them with its reason"
413
- ],
414
- "see": "The chat lists the Jira tickets closed as Won't Do, Declined, Duplicate or similar in the last 90 days, each with a short kind reply to the person who asked. Recording one adds it to the product's…"
415
- }
416
- },
417
- {
418
- "n": 1755,
419
- "t": "States are shapes, not words (state-glyphs, job #1675)",
420
- "s": "States are shapes, not words (state-glyphs, job #1675)",
421
- "k": "new"
422
- },
423
- {
424
- "n": 1785,
425
- "t": "Guide pages and markdown files read in the Reading layout (A334)",
426
- "s": "Guide pages and markdown files read in the Reading layout (A334)",
427
- "k": "new"
428
- }
429
- ]
430
413
  }
431
414
  ]
432
415
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@7322e1de0
1
+ kernel-source: pmos@73d185ab7
2
2
  assembled: 2026-11-25
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-25T05:20:32Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T05:33:10Z"}
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-25T05:20:32Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T05:33:10Z"}
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-25T05:20:32Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T05:33:10Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,32 @@
1
1
  [
2
+ {
3
+ "v": "0.807.0",
4
+ "at": "2026-11-25T05:33:13.867Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1849,
9
+ "t": "Warn when an experiment cannot conclude by its check date (job #1840, A404)",
10
+ "s": "Warn when an experiment cannot conclude by its check date (job #1840, A404)",
11
+ "k": "new",
12
+ "try": {
13
+ "steps": [
14
+ "On Work, open an initiative whose record has baseline: 10%, min_change: 1pp, weekly_traffic: 500 and outcome_horizon a week away.",
15
+ "Look at the Overview's lines.",
16
+ "Change weekly_traffic to 50000 and open the popup again."
17
+ ],
18
+ "see": "First the Overview shows 'It cannot conclude by <date>: it needs about 30,000 people, 60 weeks at 500 a week.' from the record; with 50,000 a week the line is gone.",
19
+ "open": "/premium-board.html"
20
+ }
21
+ },
22
+ {
23
+ "n": 1848,
24
+ "t": "Rows no longer show below Today's capture box on a phone",
25
+ "s": "Rows no longer show below Today's capture box on a phone",
26
+ "k": "fix"
27
+ }
28
+ ]
29
+ },
2
30
  {
3
31
  "v": "0.806.0",
4
32
  "at": "2026-11-25T05:20:35.133Z",
@@ -94,7 +94,7 @@ The agenda lists the day's events in time order, each with its start time, and a
94
94
 
95
95
  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.
96
96
 
97
- On a phone, PMOS opens on Today. It is one page with no boxes: **Where it stands**, the next event with **Record**, the log, and the box to log a line at the bottom. Swipe a row to the right to do or accept it, and to the left to drop it or put it off. Each swipe has **Undo**.
97
+ On a phone, PMOS opens on Today. It is one page with no boxes: **Where it stands**, the next event with **Record**, the log, and the box to log a line at the bottom. A row that scrolls under the box goes behind it: no part of the row shows below the box. Swipe a row to the right to do or accept it, and to the left to drop it or put it off. Each swipe has **Undo**.
98
98
 
99
99
  ## Work
100
100
 
@@ -203,7 +203,7 @@ Press the rest of a row, or a milestone, to open it as a full popup in place of
203
203
 
204
204
  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.
205
205
 
206
- - **Overview.** Three short lines from the initiative's own records: **Problem**, **Goal** (with the goal it serves, by name) and **Done when**. A line with no record says **Not written yet.** and offers a draft with ✓ and ✕. Press a line to change it; it saves when you leave the field, with **Undo**. Then one line on where it stands, **PMOS suggests** (at most three, each with ✓ and ✕), and **Details ›** for the facts: Stage, Status, Start, Target end, Next milestone, Goal, Product, Program, Workflow and Open. A fact with no value is not shown. Goal, Product, Program and Next milestone are in the link colour and open their thing; the others are plain text. An initiative that is closed or done but has open tasks shows one suggestion: **Close them** or **Reopen**.
206
+ - **Overview.** Three short lines from the initiative's own records: **Problem**, **Goal** (with the goal it serves, by name) and **Done when**. A line with no record says **Not written yet.** and offers a draft with ✓ and ✕. Press a line to change it; it saves when you leave the field, with **Undo**. When the record names a `baseline`, a `min_change` and a `weekly_traffic`, PMOS works out how many people the experiment needs. If that takes past the check date, a fourth line, **Can it conclude?**, says so, for example "It cannot conclude by 9 Dec 2026: it needs about 30,000 people, 60 weeks at 500 a week." `min_change` in points (`2pp`) is absolute; in per cent (`10%`) it is relative to the baseline. Then one line on where it stands, **PMOS suggests** (at most three, each with ✓ and ✕), and **Details ›** for the facts: Stage, Status, Start, Target end, Next milestone, Goal, Product, Program, Workflow and Open. A fact with no value is not shown. Goal, Product, Program and Next milestone are in the link colour and open their thing; the others are plain text. An initiative that is closed or done but has open tasks shows one suggestion: **Close them** or **Reopen**.
207
207
  - **Work breakdown.** Each stage is a row that folds and says how much is done, for example "3 of 9 done". Only the stage in progress opens by itself, and a stage whose tasks are all done stays 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. In a long stage you see the late tasks, the tasks in progress and the next five, then **N more tasks**. The stages after the next one fold to one row. A task in no stage is not in the breakdown: it is in Work › Backlog, and one quiet line under the breakdown says how many, for example **2 tasks with no stage are in the Backlog ›**. A task with no date shows no date and is never late. The timeline is on the right, with **Today** on it. Drag the grip between the columns and the timeline to make the timeline wider or narrower; a double press puts it back. Choose its span (Quarter to Full) beside the tune icon, which shows or hides columns. A span shorter than the work opens on the period that holds today; scroll the timeline sideways to see the rest, with a sideways swipe on a trackpad, Shift and the mouse wheel, or by dragging its empty part. The item, status and date columns stay in place, and a thin bar under the dates shows where you are. A program's or a product's initiatives scroll the same way. The four-corners icon gives the breakdown the whole popup. Type in the last row of a stage to add a task; the **Task** choice beside it makes the next one a milestone.
208
208
  - **Status.** Press a task's status and pick the new one. **When did this happen?** shows under the list, with **Today** chosen: press the status again, or Enter, to keep today. Press **Yesterday**, or **Pick a date**, when the work moved earlier than you noted it. A day in the future, or a day before the task's previous move, cannot be picked. The toast says both days, for example "Done on 14 Nov, noted today.", with **Undo**.
209
209
  - **Open the task.** The ↗ on a row, or **Open the task** in its ⋯, opens a small popup on top: Task or Milestone, the name (press it to rename), status, dates, owner and notes. Its status asks **When did this happen?** too. ↑ and ↓ go to the task before or after it, and ⋯ has **Make it a milestone**, **Archive** and **Delete**, each with **Undo**. A change shows on the task's row at once. Escape, × or a press outside closes only the small popup, and the task's row lights for a moment.
@@ -0,0 +1,65 @@
1
+ 'use strict';
2
+ /* experiment-power.js — can an experiment conclude by its check date? (initiative experiment-traffic-warning, job #1840, idea A404).
3
+ * PURE: maths on the record's frontmatter. No model, no read, no write.
4
+ *
5
+ * sampleSize(p, d, o) → total people (both arms) for a two-sided test of two proportions: baseline p, absolute change d.
6
+ * o: { alpha = 0.05, power = 0.8 }. null when p is not in (0, 1) or p + d is not in (0, 1) or d is 0.
7
+ * inputsOf(fm) → { metric, baseline, change, weekly, due } | null from the frontmatter keys:
8
+ * baseline 12% or 0.12
9
+ * min_change 2pp or 2 points (absolute); 10% (relative to the baseline); 0.02 (absolute)
10
+ * weekly_traffic people a week, both arms together (4,000 or 4000)
11
+ * outcome_horizon, else check_date: YYYY-MM-DD
12
+ * null when any of them is missing or not a number (zero is silence)
13
+ * warningOf(fm, today) → { n, weeks, weekly, due, ends, text } | null null when it can conclude by the check date
14
+ * The copy says PMOS, never Claude. */
15
+ const Z_A = { 0.05: 1.959964, 0.1: 1.644854, 0.01: 2.575829 };
16
+ const Z_B = { 0.8: 0.841621, 0.9: 1.281552 };
17
+ const DAY = 864e5;
18
+
19
+ function sampleSize(p, d, o = {}) {
20
+ const za = Z_A[o.alpha == null ? 0.05 : o.alpha], zb = Z_B[o.power == null ? 0.8 : o.power];
21
+ const q = p + d;
22
+ if (!(za && zb) || !(p > 0 && p < 1) || !(q > 0 && q < 1) || !d) return null;
23
+ const m = (p + q) / 2;
24
+ const a = za * Math.sqrt(2 * m * (1 - m)) + zb * Math.sqrt(p * (1 - p) + q * (1 - q));
25
+ return 2 * Math.ceil((a * a) / (d * d));
26
+ }
27
+
28
+ const num = (s) => { const n = Number(String(s).replace(/[,_\s]/g, '')); return Number.isFinite(n) ? n : NaN; };
29
+ function rate(s) {
30
+ const t = String(s == null ? '' : s).trim();
31
+ const m = /^([\d.,]+)\s*%$/.exec(t); if (m) return num(m[1]) / 100;
32
+ const n = num(t); return n > 1 ? n / 100 : n;
33
+ }
34
+ function change(s, p) {
35
+ const t = String(s == null ? '' : s).trim().replace(/^\+/, '');
36
+ let m = /^([\d.,]+)\s*(pp|points?|percentage points?)$/i.exec(t); if (m) return num(m[1]) / 100;
37
+ m = /^([\d.,]+)\s*%$/.exec(t); if (m) return p * num(m[1]) / 100;
38
+ return num(t);
39
+ }
40
+ const dateOf = (s) => { const m = /^(\d{4}-\d{2}-\d{2})/.exec(String(s || '').trim()); return m && Date.parse(m[1] + 'T00:00:00Z') > 0 ? m[1] : null; };
41
+
42
+ function inputsOf(fm) {
43
+ if (!fm || typeof fm !== 'object') return null;
44
+ if (fm.baseline == null || fm.min_change == null || fm.weekly_traffic == null) return null;
45
+ const baseline = rate(fm.baseline), d = change(fm.min_change, baseline), weekly = num(fm.weekly_traffic), due = dateOf(fm.outcome_horizon) || dateOf(fm.check_date);
46
+ if (!(baseline > 0 && baseline < 1) || !(d > 0) || !(weekly > 0) || !due) return null;
47
+ return { metric: String(fm.outcome_metric || '').trim(), baseline, change: d, weekly, due };
48
+ }
49
+
50
+ const fmtN = (n) => String(Math.round(n)).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
51
+ const fmtD = (iso) => { const d = new Date(iso + 'T00:00:00Z'); return d.getUTCDate() + ' ' + ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][d.getUTCMonth()] + ' ' + d.getUTCFullYear(); };
52
+ const about = (n) => (n >= 10000 ? Math.round(n / 1000) * 1000 : n >= 1000 ? Math.round(n / 100) * 100 : n);
53
+
54
+ function warningOf(fm, today) {
55
+ const I = inputsOf(fm); if (!I) return null;
56
+ const n = sampleSize(I.baseline, I.change); if (!n) return null;
57
+ const weeks = Math.ceil(n / I.weekly);
58
+ const from = dateOf(today) || new Date().toISOString().slice(0, 10);
59
+ const ends = new Date(Date.parse(from + 'T00:00:00Z') + weeks * 7 * DAY).toISOString().slice(0, 10);
60
+ if (ends <= I.due) return null;
61
+ const text = `It cannot conclude by ${fmtD(I.due)}: it needs about ${fmtN(about(n))} people, ${weeks} ${weeks === 1 ? 'week' : 'weeks'} at ${fmtN(I.weekly)} a week.`;
62
+ return { n, weeks, weekly: I.weekly, due: I.due, ends, text };
63
+ }
64
+
65
+ module.exports = { sampleSize, inputsOf, warningOf };
@@ -5,7 +5,9 @@
5
5
  * factory: a D65 factory runs in this repository (lib/work-kind.js factoryRuns), so "PMOS builds it" is true
6
6
  * scope: portfolio (default), board:<id>, goal:<id>, experiment:<id> (initiative:<id> is an alias)
7
7
  * An experiment's Problem, Goal and Done test checks the ledger lacks come from the record's own sections,
8
- * carried as kind `record` (lib/case-lines.js), so the card shows what `pmos why` reads
8
+ * carried as kind `record` (lib/case-lines.js), so the card shows what `pmos why` reads. The Experiment
9
+ * carries `power` ({ n, weeks, weekly, due, ends, text, path }) only when the record's baseline, min_change
10
+ * and weekly_traffic cannot reach a conclusion by its check date (lib/experiment-power.js)
9
11
  * GET /api/artefacts/story?ws → { ok, ws, story: { scope, at, lines: [{ text, sources }] } | null, seeding? } "The story so far" on the
10
12
  * product page (board AwE): the Narrative of board:<ws>, else of the portfolio (lib/artefacts.js storyOf). A
11
13
  * shared Board carries it without the sources (lib/board-pack.js). seeding: there is no story yet and PMOS is
@@ -146,6 +148,15 @@ function withRecord(artefacts, root, id) {
146
148
  if (ex && !ex.fields.why) carry(ex, 'why', R.problem);
147
149
  if (ex && !ex.fields.hypothesis) carry(ex, 'hypothesis', R.goal);
148
150
  if (dt && !(Array.isArray(dt.fields.check) && dt.fields.check.length)) for (const c of R.checks.slice().reverse()) carry(dt, 'check', c);
151
+ // can it conclude by its check date? (experiment-traffic-warning, A404): pure maths on the record's baseline, min_change and
152
+ // weekly_traffic; only a warning is carried (zero is silence)
153
+ if (ex) {
154
+ try {
155
+ const I = require('./item-why.js'), f = I.recordPathOf(root, id);
156
+ const w = f ? require('./experiment-power.js').warningOf(I.frontOf(require('fs').readFileSync(f, 'utf8')), new Date().toISOString().slice(0, 10)) : null;
157
+ if (w) ex.power = { ...w, path: require('path').relative(root, f).split(require('path').sep).join('/') };
158
+ } catch { /* an unreadable record shows no warning */ }
159
+ }
149
160
  }
150
161
 
151
162
  module.exports = { prefixes: ['/api/artefacts'], handle, _migrated: migrated };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.806.0",
3
+ "version": "0.807.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.806.0",
9
+ "version": "0.807.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.806.0",
3
+ "version": "0.807.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",
@@ -163,7 +163,9 @@ button.td-ev:focus-visible { outline: none; box-shadow: var(--glow); }
163
163
  .tdp-f svg { right: var(--space-8); }
164
164
  .tdp-f select { color: var(--ink); min-height: 32px; padding: 0 22px 0 var(--space-8); text-align: left; }
165
165
  .tdp-none { padding: var(--space-16) 0; font-size: var(--fs-body); color: var(--muted); line-height: var(--lh-body); }
166
- body.cz-vw-on .tdp-cap { display: none; } /* the Viewer covers Today on a phone: its box goes too, so it never sits under the Viewer's own controls */
166
+ body.cz-vw-on .tdp-cap, body.cz-vw-on .tdp-capbg { display: none; }
167
+ /* the page colour from just above the box to the screen's foot: a row that scrolls under the box is covered, never seen below it (25 Nov) */
168
+ .tdp-capbg { position: fixed; left: 0; right: 0; bottom: 0; z-index: 29; height: calc(env(safe-area-inset-bottom, 0px) + var(--space-12) + 48px + var(--space-16)); background: linear-gradient(to bottom, transparent, var(--cz-card) var(--space-16)); pointer-events: none; } /* the Viewer covers Today on a phone: its box goes too, so it never sits under the Viewer's own controls */
167
169
  .tdp-cap { position: fixed; left: var(--space-12); right: var(--space-12); bottom: calc(env(safe-area-inset-bottom, 0px) + var(--space-12)); z-index: 30; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-4) var(--space-4) var(--space-16); border-radius: var(--radius-pill); background: var(--well); box-shadow: var(--raise); }
168
170
  .tdp-in { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: var(--fs-field); color: var(--ink); padding: var(--space-8) 0; outline: none; }
169
171
  .tdp-in::placeholder { color: var(--muted); }
@@ -359,7 +359,8 @@ export function phoneSheetHtml(sg) {
359
359
  /** The capture box at the foot of Today on a phone (PhoneTodayDS): type a line, or speak where the browser can. The same form as the
360
360
  * desk's (#tdCapF, #tdCap), so the same press adds the line. o: { draft, mic } */
361
361
  export function phoneCapHtml(o = {}) {
362
- return `<form class="tdp-cap" id="tdCapF" autocomplete="off"><label class="td-vh" for="tdCap">Log a task, an event or a note</label>`
362
+ // the shade under the box: rows scroll under it and stop, so no line shows between the box and the screen's foot (25 Nov)
363
+ return `<i class="tdp-capbg" aria-hidden="true"></i><form class="tdp-cap" id="tdCapF" autocomplete="off"><label class="td-vh" for="tdCap">Log a task, an event or a note</label>`
363
364
  + `<input id="tdCap" class="tdp-in" name="line" type="text" maxlength="240" enterkeyhint="send" placeholder="Log a task, an event or a note" value="${esc(o.draft || '')}" title="Start with o for an event, a dash for a note, ! for first" />`
364
365
  + (o.mic ? `<button type="button" class="tdp-mic" data-td="cap-mic" aria-label="Speak a line" title="Speak">${svg(PI.mic, 18, 1.8)}</button>` : '')
365
366
  + `<button type="submit" class="tdp-go pm-btn primary" aria-label="Log it" title="Log it">${svg(PI.up, 18, 2)}</button></form>`;
@@ -301,6 +301,8 @@ export function overviewOf(r, v, o = {}) {
301
301
  if (ck.length) lines.push({ id: 'done', k: 'Done when', text: ck[0].text + more(ck.length), src: 'the Done test', edit: null });
302
302
  else if (cc.length) lines.push({ id: 'done', k: 'Done when', text: String(cc[0].text) + more(cc.length), src: cc[0].title || 'the record', path: cc[0].path || '', edit: null });
303
303
  else lines.push({ id: 'done', k: 'Done when', text: '', edit: { to: 'artefact', artefact: 'done-test', field: 'check' }, ...offer('Done when', 'the done test (how we will know it worked, and when we check)', 'done-test', 'check') });
304
+ // too little traffic to conclude by the check date (experiment-traffic-warning, A404): GET /api/artefacts carries it only when it is so
305
+ if (ex.power && ex.power.text) lines.push({ id: 'power', k: 'Can it conclude?', text: String(ex.power.text), src: 'the record', path: ex.power.path || '', edit: null });
304
306
  const sm = summaryOf(r, v, o);
305
307
  const status = sm.status.replace(/^It is in /, 'In ');
306
308
  // status in one line (status-line, A505): the record's line of at most 12 words; the item header shows it before PMOS's own words
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Warn when an experiment cannot conclude by its check date (experiment-traffic-warning, idea A404, done test planning/done-tests/experiment-traffic-warning.md P1-P3, N1-N2): the sample size, the frontmatter inputs, the route's power field and the Overview line. No server, network, model or browser.",
3
+ "modules": [
4
+ "experiment-power.test.js"
5
+ ],
6
+ "seconds": {
7
+ "experiment-power.test.js": 1
8
+ }
9
+ }