create-pmos 0.560.0 → 0.562.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 (95) hide show
  1. package/cloud-setup.sh +18 -0
  2. package/package.json +33 -33
  3. package/payload/KIT-VERSION +1 -1
  4. package/payload/okf/core/templates/done-test-template.md +47 -0
  5. package/payload/okf/core/templates/experiment-record-template.md +62 -0
  6. package/payload/okf/core/templates/index.md +2 -0
  7. package/payload/planning/evals/eval-calibration.md +1 -1
  8. package/payload/planning/okrs/health-budgets.md +1 -1
  9. package/payload/state/discoveries.md +1 -1
  10. package/workspace/changelog.json +32 -0
  11. package/workspace/guide/agent-capabilities.md +1 -1
  12. package/workspace/guide/home.md +1 -1
  13. package/workspace/guide/jira.md +2 -2
  14. package/workspace/guide/reports.md +1 -1
  15. package/workspace/guide/settings-and-switches.md +1 -0
  16. package/workspace/lib/actor.js +2 -2
  17. package/workspace/lib/artefacts.js +1 -1
  18. package/workspace/lib/autonomy.js +1 -1
  19. package/workspace/lib/board-goals.js +1 -1
  20. package/workspace/lib/chat-file-locate.js +2 -2
  21. package/workspace/lib/corrections-memory.js +1 -1
  22. package/workspace/lib/drive-guard.js +5 -5
  23. package/workspace/lib/driver.js +1 -1
  24. package/workspace/lib/first-input.js +1 -1
  25. package/workspace/lib/folder-repair.js +1 -1
  26. package/workspace/lib/git-identity.js +1 -1
  27. package/workspace/lib/goal-loop.js +1 -1
  28. package/workspace/lib/goal-source.js +1 -1
  29. package/workspace/lib/harness-parse.js +1 -1
  30. package/workspace/lib/impact-cli.js +1 -1
  31. package/workspace/lib/impact.js +1 -1
  32. package/workspace/lib/initiative-chat.js +1 -1
  33. package/workspace/lib/item-cli.js +1 -1
  34. package/workspace/lib/meeting-suggest.js +3 -3
  35. package/workspace/lib/meeting-terms.js +2 -2
  36. package/workspace/lib/notes.js +1 -1
  37. package/workspace/lib/okr-goals.js +2 -2
  38. package/workspace/lib/one-stage.js +1 -1
  39. package/workspace/lib/plan-items.js +3 -3
  40. package/workspace/lib/pm-slug.js +51 -0
  41. package/workspace/lib/profile-default.js +1 -1
  42. package/workspace/lib/program-chat.js +2 -2
  43. package/workspace/lib/programs.js +1 -1
  44. package/workspace/lib/ready-reports.js +1 -1
  45. package/workspace/lib/remote-access.js +14 -1
  46. package/workspace/lib/report-acts.js +3 -3
  47. package/workspace/lib/report-cli.js +1 -1
  48. package/workspace/lib/report-draft.js +1 -1
  49. package/workspace/lib/routes-autonomy.js +1 -1
  50. package/workspace/lib/routes-boards.js +3 -3
  51. package/workspace/lib/routes-insights-premium.js +1 -1
  52. package/workspace/lib/routes-programs.js +2 -2
  53. package/workspace/lib/session-name.js +1 -1
  54. package/workspace/lib/skill-store.js +4 -4
  55. package/workspace/lib/skills-registry.js +5 -2
  56. package/workspace/lib/state-backup.js +5 -1
  57. package/workspace/lib/transcript-read.js +1 -1
  58. package/workspace/lib/typesafe-settings.js +1 -1
  59. package/workspace/lib/worktree-gc.js +1 -1
  60. package/workspace/package-lock.json +2 -2
  61. package/workspace/package.json +1 -1
  62. package/workspace/public/pm/bd-asks.js +1 -1
  63. package/workspace/public/pm/bd-prog-panel.js +2 -2
  64. package/workspace/public/pm/bd-prog.js +1 -1
  65. package/workspace/public/pm/bd-span.js +1 -1
  66. package/workspace/public/pm/c3-ini-ui.js +1 -1
  67. package/workspace/public/pm/cozy-pick.js +1 -1
  68. package/workspace/public/pm/cozy-viewer.js +1 -1
  69. package/workspace/public/pm/goals-clear.js +1 -1
  70. package/workspace/public/pm/home-app.js +1 -1
  71. package/workspace/public/pm/home-ini-model.js +1 -1
  72. package/workspace/public/pm/ini-view.js +1 -1
  73. package/workspace/public/pm/loose-props.js +1 -1
  74. package/workspace/public/pm/premium-board.js +1 -1
  75. package/workspace/public/pm/premium-insights.js +1 -1
  76. package/workspace/public/pm/premium-report-read.js +1 -1
  77. package/workspace/public/pm/premium-shell.js +1 -1
  78. package/workspace/public/pm/prog-move.js +2 -2
  79. package/workspace/public/pm/stage-chip.js +1 -1
  80. package/workspace/public/pm/state.js +10 -10
  81. package/workspace/public/pm/tk-send.js +1 -1
  82. package/workspace/run-tests.js +5 -1
  83. package/workspace/server.js +19 -16
  84. package/workspace/skills/gather-requirements.skill +1 -1
  85. package/workspace/skills/impact-detect.skill +1 -1
  86. package/workspace/skills/live-notes.skill +1 -1
  87. package/workspace/skills/loose-propose.skill +1 -1
  88. package/workspace/skills/measure.skill +1 -1
  89. package/workspace/skills/metric-draft.skill +1 -1
  90. package/workspace/skills/report-design.skill +1 -1
  91. package/workspace/skills/report-setup.skill +1 -1
  92. package/workspace/skills/report-weekly.skill +1 -1
  93. package/workspace/skills/report-write.skill +1 -1
  94. package/workspace/skills/story-first.skill +1 -1
  95. package/workspace/test-lists/pm-slug.json +9 -0
@@ -8,7 +8,7 @@
8
8
  * WHERE A SPELLING COMES FROM. Three places, and nothing else: a word the PM fixed before (the same heard words, remembered), the
9
9
  * meeting's invite (its title, its people, its agenda and its material, as the page sends them), and the repository of the note's
10
10
  * workspace (lib/notes-repo.js reads its Markdown; D79 exclusions are honoured). A spelling counts only when it is the heard words
11
- * written another way ("Light box" → "Lightbox") or one or two letters away from them ("Lite box" → "Lightbox"), with the same first
11
+ * written another way ("Data dog" → "Datadog") or one or two letters away from them ("Data dock" → "Datadog"), with the same first
12
12
  * letter. When nothing matches, the answer is null and the page shows no ✦ line (zero is silence): a guess is never shown.
13
13
  *
14
14
  * WHAT IT NEVER DOES. It writes nothing and sends nothing. No model is asked. */
@@ -27,7 +27,7 @@ function lev(a, b, max) {
27
27
  }
28
28
  return prev[b.length];
29
29
  }
30
- /** The words as they sound, roughly: "light" and "lite" fold to "lit", "Scarlett" to "scarlet". English spelling only; nothing more clever. */
30
+ /** The words as they sound, roughly: "light" and "lite" fold to "lit", "Phillip" to "filip". English spelling only; nothing more clever. */
31
31
  const fold = (s) => (String(s || '').toLowerCase().match(/[\p{L}\p{N}]+/gu) || []).map((w) => w.replace(/ght/g, 't').replace(/igh/g, 'i').replace(/ph/g, 'f').replace(/ck/g, 'k')
32
32
  .replace(/(\p{L})\1/gu, '$1').replace(/^(.{3,})e$/u, '$1')).join('');
33
33
  /** How far a spelling is from the heard words: 0 the same letters written another way, 1–2 letters away, or null (not the same word). */
@@ -55,7 +55,7 @@ function namesIn(text) {
55
55
  }
56
56
  return out;
57
57
  }
58
- /** A spelling no common word has: CamelCase ("MoEngage", "ePaper"), capitals ("IDPF") or a digit. */
58
+ /** A spelling no common word has: CamelCase ("GitHub", "iPhone"), capitals ("CRM") or a digit. */
59
59
  const distinct = (w) => /\p{Ll}\p{Lu}/u.test(w) || /^\p{Lu}{2,}$/u.test(w.replace(/\s+/g, '')) || /\d/.test(w);
60
60
  const CACHE_MS = 60000;
61
61
  const cache = new Map();
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
  /* meeting-terms.js — a word heard wrong, fixed in place (batch 25 item 11 MvF/MvN; batch 27 item 12 word fix A: MpW1, MpW2, MpWPhone).
3
3
  *
4
- * The PM selects a word or a few words in a meeting's notes ("Lite box") and fixes it ("Lightbox"). The fix shows at once in every place
5
- * this note shows the words. Remembering it for LATER notes waits for the PM (batch 27 item 12): the ✦ ask "Remember “Lightbox” for your
4
+ * The PM selects a word or a few words in a meeting's notes ("Data dock") and fixes it ("Datadog"). The fix shows at once in every place
5
+ * this note shows the words. Remembering it for LATER notes waits for the PM (batch 27 item 12): the ✦ ask "Remember “Datadog” for your
6
6
  * next meetings?" — ✓ makes it one of the lessons of lib/meeting-learn.js, of kind 'term' (its phrase is the heard words, its meaning the
7
7
  * fix), so the agent's handoff carries it for later notes (meeting-learn.js handoffLines) and other notes underline the heard words with
8
8
  * the fix as the guess. ✕ keeps it in this note only. A fix made before batch 27 was a lesson at once; it stays remembered.
@@ -1059,7 +1059,7 @@ const tagWords = (x) => [...(x.tags || []).map((t) => '#' + t), ...(x.people ||
1059
1059
  /* ── the names and terms a note is heard and summarized with ─────────────────────────────────────── */
1060
1060
  const MAX_VOCAB = 40;
1061
1061
  const TERM_STOP = new Set(['The', 'A', 'An', 'And', 'Or', 'Of', 'For', 'To', 'In', 'On', 'With', 'From', 'By', 'At', 'New', 'Run', 'Phase', 'Add', 'Fix', 'Make', 'Notes', 'Note', 'Meeting']);
1062
- /** Product terms in titles: acronyms (PSLE, CUE), mixed case (iPhone, GitHub) and capitalised words after the first. */
1062
+ /** Product terms in titles: acronyms (CRM, SDK), mixed case (iPhone, GitHub) and capitalised words after the first. */
1063
1063
  function termsIn(texts) {
1064
1064
  const out = [];
1065
1065
  for (const t of texts || []) {
@@ -10,8 +10,8 @@
10
10
  * ONE GOAL SOURCE (OS evaluation T2). lib/goal-source.js source() is the goal list every reader takes: this file's key results, each with the KR metric
11
11
  * record that reads it, and the records no key result claims. No other file lists the kr-metrics records for goals.
12
12
  *
13
- * WHY. Every product keeps an OKR file (IDPF: okrs-h2-2026.md, 10 key results), and the Board anchors initiatives to it (KR-A1, O-C.KR-C1), but
14
- * Intelligence listed only the KR metric records, so IDPF showed 1 goal and OOH 0. Here the file's key results are the list. A KR metric record is
13
+ * WHY. Every product keeps an OKR file (for example okrs-h2-2026.md, 10 key results), and the Board anchors initiatives to it (KR-A1, O-C.KR-C1), but
14
+ * Intelligence listed only the KR metric records, so a product with 10 showed 1 goal and another 0. Here the file's key results are the list. A KR metric record is
15
15
  * a key result's READER (its readings and recipe), attached by its `kr` field or by its title naming the key result's id; it is never a second
16
16
  * goal. A key result with no reader says what it needs (the source the file names), never a number (the proven-only rule).
17
17
  *
@@ -19,7 +19,7 @@
19
19
  * the step the other sources give)
20
20
  * label the words the chip prints ("Discover", "Shipped", "On hold")
21
21
  * setBy 'pm' | 'jira' | 'plan' | 'files'
22
- * source one short line of what set it ("Jira IDPF-2815 · Design Discovery", "your word: Completed", "3 dated plan items")
22
+ * source one short line of what set it ("Jira SHOP-2815 · Design Discovery", "your word: Completed", "3 dated plan items")
23
23
  * readAt the ISO time of the read or the line that set it, or null for the files
24
24
  *
25
25
  * facts = { files: <lifecycle key the spec files give> | null,
@@ -9,8 +9,8 @@
9
9
  * read-only checker (scripts/check-plan-items.js). Agents reach this module only through `pmos item`. Every
10
10
  * require of this file is spelled with `.js` so scripts/check-separation.js lists each caller by name.
11
11
  *
12
- * ATTRIBUTION IS SET BY THE CALL PATH, NEVER BY A FIELD. `appendFromUi` writes `pm:wawan` / `ui`;
13
- * `appendFromCli` writes `pm:wawan` only at an interactive terminal, `agent:<PMOS_SESSION>` from a bound
12
+ * ATTRIBUTION IS SET BY THE CALL PATH, NEVER BY A FIELD. `appendFromUi` writes `pm:<slug>` / `ui`;
13
+ * `appendFromCli` writes `pm:<slug>` only at an interactive terminal, `agent:<PMOS_SESSION>` from a bound
14
14
  * session, and `agent:unknown` otherwise. A caller that sends `by`, `via`, `at`, `eid`, `v` or `override`
15
15
  * is refused — accepting one, even an identical one, would make the field something a caller chooses.
16
16
  *
@@ -40,7 +40,7 @@ const LEDGER = 'plan-items.jsonl';
40
40
  // `restored` (batch 11 item 16) is the Undo of a Delete: it brings back a withdrawn item as it was. A delete is a withdraw with why "deleted".
41
41
  const EVENTS = ['planned', 'set', 'moved', 'flagged', 'withdrawn', 'kept', 'restored'];
42
42
  const STATES = ['todo', 'doing', 'review', 'done'];
43
- const PM_SLUG = 'wawan';
43
+ const PM_SLUG = actorLib.PM_SLUG; // lib/pm-slug.js
44
44
  const ID_RE = /^(.+)\.([0-9a-z]{10})$/;
45
45
  const INIT_RE = planTree.INIT_RE;
46
46
  const SESSION_RE = /^sess-\d+\.[0-9a-f]{8}$/;
@@ -0,0 +1,51 @@
1
+ 'use strict';
2
+ /* pm-slug.js — the short name of this install's PM, as every ledger line carries it (`pm:<slug>`, `human:<slug>`).
3
+ *
4
+ * slug() → the name, read once per process and then kept
5
+ * slugify(text) → lower case a-z, 0-9, `_` and `-`, at most 40 characters, or '' (the form actor.BY_RE accepts)
6
+ * resolve({ env, gitName, userName }) → the name from these inputs. PURE; slug() calls it with the real ones.
7
+ *
8
+ * The order:
9
+ * 1. PMOS_PM, when it is set (a PM who wants another name, and the test runner)
10
+ * 2. the first word of the git user name (`git config user.name` from the home folder), the name Home greets the PM by
11
+ * 3. the computer's user name
12
+ * 4. 'pm'
13
+ *
14
+ * The kit used to write one fixed name here, so every install recorded its PM under the same person. Records from before
15
+ * still read as the PM's: the readers test the `pm:` or `human:` prefix, never the name after it.
16
+ */
17
+ const os = require('os');
18
+
19
+ const FALLBACK = 'pm';
20
+
21
+ function slugify(text) {
22
+ return String(text == null ? '' : text)
23
+ .normalize('NFKD').replace(/[̀-ͯ]/g, '')
24
+ .toLowerCase().replace(/[^a-z0-9_-]+/g, '-').replace(/^-+|-+$/g, '')
25
+ .slice(0, 40).replace(/-+$/, '');
26
+ }
27
+
28
+ function resolve({ env = {}, gitName = '', userName = '' } = {}) {
29
+ const fromEnv = slugify(env.PMOS_PM);
30
+ if (fromEnv) return fromEnv;
31
+ const first = String(gitName || '').trim().split(/\s+/)[0];
32
+ return slugify(first) || slugify(userName) || FALLBACK;
33
+ }
34
+
35
+ function gitUserName() {
36
+ try {
37
+ return String(require('child_process').execFileSync('git', ['config', 'user.name'],
38
+ { cwd: os.homedir(), encoding: 'utf8', timeout: 2000, stdio: ['ignore', 'pipe', 'ignore'] })).trim();
39
+ } catch { return ''; }
40
+ }
41
+ function osUserName() { try { return os.userInfo().username || ''; } catch { return ''; } }
42
+
43
+ let cached = null;
44
+ function slug() {
45
+ if (cached) return cached;
46
+ const env = process.env;
47
+ cached = slugify(env.PMOS_PM) || resolve({ gitName: gitUserName(), userName: osUserName() });
48
+ return cached;
49
+ }
50
+
51
+ module.exports = { slug, slugify, resolve, FALLBACK };
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * D68 gave a new repository the `pm-artifacts` profile (create-pmos writes `.pmos-profile`; `--code` opts out). A repository made before
6
6
  * that has no `.pmos-profile`, so PMOS read it as a CODE repository: its records were saved only on the default branch, nothing put its
7
- * folder back, and a worktree was made per initiative. Scarlet, CAS and OOH Digital were like this, and Scarlet's folder sat on a feature
7
+ * folder back, and a worktree was made per initiative. Three products were like this, and one product's folder sat on a feature
8
8
  * branch with its records unsaved.
9
9
  *
10
10
  * ensure(root) → { action, why }
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
- /* program-chat — what a chat knows about programs (bug 2026-10-24: "Set Project Ascent as Program" in Home chat).
2
+ /* program-chat — what a chat knows about programs (bug 2026-10-24: "Set Project Horizon as Program" in Home chat).
3
3
  * A program is the level above initiatives, across products (initiative program-hierarchy). It is a PMOS record in each workspace's
4
4
  * <state>/programs.jsonl (lib/programs.js), not a key on an initiative record. Without this rule a chat looked for "a program marker", found
5
5
  * none, and invented one (`kind: programme` in the initiative's front matter, children linked by `parent_programme`). Nothing reads those keys.
@@ -16,7 +16,7 @@ const isAsk = (text) => ASK_RE.test(String(text == null ? '' : text)) && !String
16
16
 
17
17
  const RULE = [
18
18
  'PMOS has programs. A program is the level above initiatives (Program > Initiative > Epic) and can span products. It has no stages of its own: its state, products and stage spread come from its initiatives.',
19
- 'A program is a record in programs.jsonl in a workspace state folder (pmos/state/ or the workspace state folder), one JSON line each: {"kind":"program",…} is the charter, {"kind":"member","program":"<id>","initiative":"<id>"} puts an initiative in it, and "leave", "task", "check", "order" (the PM\'s sequence of its initiatives) and "archive" lines follow the same pattern. A program id is its title in lower case with dashes, for example project-ascent.',
19
+ 'A program is a record in programs.jsonl in a workspace state folder (pmos/state/ or the workspace state folder), one JSON line each: {"kind":"program",…} is the charter, {"kind":"member","program":"<id>","initiative":"<id>"} puts an initiative in it, and "leave", "task", "check", "order" (the PM\'s sequence of its initiatives) and "archive" lines follow the same pattern. A program id is its title in lower case with dashes, for example project-horizon.',
20
20
  'A program is NOT a key on an initiative. Never add kind, program, programme, parent_program or parent_programme to an initiative record or any front matter: nothing reads them.',
21
21
  'You never make, change, join, leave or archive a program yourself, and you never write programs.jsonl: the routes refuse an agent session, and the PM presses on the Board.',
22
22
  'Tell the PM which press does what they asked:',
@@ -37,7 +37,7 @@ const INI_RE = /^[A-Za-z0-9][A-Za-z0-9._-]{0,80}$/;
37
37
  const DAY_RE = /^\d{4}-\d{2}-\d{2}$/;
38
38
  const str = (v, n) => String(v == null ? '' : v).replace(/[\u0000-\u001f]+/g, ' ').trim().slice(0, n);
39
39
 
40
- /** A program id from a title: "Project Ascent" → "project-ascent". */
40
+ /** A program id from a title: "Project Horizon" → "project-horizon". */
41
41
  const slug = (t) => String(t || '').toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '').slice(0, 60);
42
42
  /** A milestone id from its name that no other milestone of the charter has: "Pilot live" → "pilot-live", then "pilot-live-2". */
43
43
  function idOf(name, taken) {
@@ -230,7 +230,7 @@ function promiseOf(row, rows, kept) {
230
230
 
231
231
  function goalDot(r) { return r.now === null ? 'none' : r.off ? 'behind' : r.ahead ? 'ahead' : 'on'; }
232
232
  const SHORT_MAX = 56; // a goal card's title fits two lines of the Viewer at 390 px (batch 21 item 2, RdProgL)
233
- /** A goal's short title for the one program page (RdProgL "Okta sign-in retired, every user on the new CIAM."): the KR id goes to its own chip,
233
+ /** A goal's short title for the one program page (RdProgL "Old sign-in retired, every user on the new login."): the KR id goes to its own chip,
234
234
  * so it leaves the title; then the part before a dash, a colon or a bracket that carries the detail, when that part says enough (3 words or
235
235
  * more); then cut at a word. Pure: it only shortens the record's own words, it never writes new ones. → { short, kr } */
236
236
  function shortTitle(title, anchor) {
@@ -278,6 +278,19 @@ function edgeAllowed({ headers = {}, publicHost = null } = {}) {
278
278
  return hasHeader(headers, ACCESS_HEADER);
279
279
  }
280
280
 
281
+ // Browser hardening for an answer to the public hostname (security hardening 2026-11-11). Only that hostname gets them:
282
+ // loopback and the tailnet are unchanged, and the meeting-helper extension, which frames the console from its own origin,
283
+ // talks to localhost. HSTS names no subdomains, so the share hostname keeps its own headers (share-server.js).
284
+ const PUBLIC_HEADERS = Object.freeze({
285
+ 'Strict-Transport-Security': 'max-age=31536000',
286
+ 'X-Frame-Options': 'SAMEORIGIN',
287
+ 'X-Content-Type-Options': 'nosniff',
288
+ 'Referrer-Policy': 'same-origin',
289
+ });
290
+ function publicHeaders({ headers = {}, publicHost = null } = {}) {
291
+ return publicHost && hostnameOf(headers.host) === publicHost ? PUBLIC_HEADERS : null;
292
+ }
293
+
281
294
  // The single authorization decision, PEER-based (what matters is where the request came FROM, not
282
295
  // which listener it hit). A loopback peer is exempt unless the request arrived through a proxy;
283
296
  // every other request must present a valid bearer token. Fail-closed: with no token configured, a
@@ -427,7 +440,7 @@ module.exports = {
427
440
  LOOPBACK, isLoopbackAddr, isTailnetIp, detectTailnetIp, remoteRequested,
428
441
  resolveBinds, extractHttpToken, extractWsToken, tokenMatches, authorize, startupLines,
429
442
  checkHostOrigin, isAllowedOrigin, hostnameAllowed,
430
- parsePublicHost, PROXY_HEADERS, ACCESS_HEADER, isProxied, edgeAllowed, hostnameOf,
443
+ parsePublicHost, PROXY_HEADERS, ACCESS_HEADER, isProxied, edgeAllowed, hostnameOf, PUBLIC_HEADERS, publicHeaders,
431
444
  COOKIE_NAME, extractCookieToken, presentedToken,
432
445
  phoneUrl, isPageNavigation, stripTokenParam, sessionCookie, AUTH_PATH, parseAuthForm, signInPage,
433
446
  };
@@ -11,7 +11,7 @@
11
11
  * WHY. The grill (3 Nov, on 0.514.0) found the five drafts that wait for the PM at the bottom of the panel, under "Yours", named by their id
12
12
  * ("daily"), previewed by the warning "this definition is a draft", and with no press that settles them. Each waiting report now has ONE ✓,
13
13
  * the act that unblocks it, in this order:
14
- * move the report is about another product than the one it sits in (Scarlet assessment in the IDPF workspace) → "Move to Scarlet"
14
+ * move the report is about another product than the one it sits in (a pricing review in the Acme Shop workspace) → "Move to Acme Web"
15
15
  * confirm its draft follows a definition an agent proposed and nobody has confirmed (status: draft, no setup) → "Confirm the definition"
16
16
  * issue a draft waits and its definition is confirmed → "Issue" (POST /api/report/issue with the sha of the file as read)
17
17
  * resume a set-up report is paused → "Resume"
@@ -27,7 +27,7 @@ const refuse = (status, error) => ({ ok: false, status, error });
27
27
  const clean = (s) => String(s == null ? '' : s).replace(/\s+/g, ' ').trim();
28
28
  const escRe = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
29
29
 
30
- /** "Daily report definition" → "Daily report"; "Scarlet assessment report definition" → "Scarlet assessment report". '' when there is none. PURE. */
30
+ /** "Daily report definition" → "Daily report"; "Pricing review report definition" → "Pricing review report". '' when there is none. PURE. */
31
31
  function defTitleOf(def) {
32
32
  const t = clean(def && def.title).replace(/^["']|["']$/g, '');
33
33
  if (!t || (def && t === def.id)) return '';
@@ -130,7 +130,7 @@ function copyReportTree(from, to) {
130
130
  }
131
131
 
132
132
  /**
133
- * Move a set-up report to the product it is about (Reports and dashboards redesign R, "✦ Move to Scarlet"): its definition, its drafts and its
133
+ * Move a set-up report to the product it is about (Reports and dashboards redesign R, "✦ Move to Acme Web"): its definition, its drafts and its
134
134
  * setup line go to `toRoot`, and it is removed here. A report with an ISSUED issue is refused (409): an issued report is never moved or deleted,
135
135
  * it stays where it was issued. The id must be free in the target. Everything is copied before anything is removed here, so a failed copy
136
136
  * leaves this workspace as it was (and removes what it copied). → { ok, id, moved: [rel] } | { ok: false, status, error }
@@ -211,7 +211,7 @@ async function run(argv, { say = (s) => console.log(s), cwd = process.cwd(), isT
211
211
  async function engineVerb(verb, { pos, flags, root, json, say, fail, isTTY, env, stdin, now }) {
212
212
  const RE = require('./report-engine.js');
213
213
  const id = pos[0];
214
- if (!id || !RE.ID_RE.test(id)) { say(`usage: pmos report ${verb} <id> … (the id is lower case letters, digits and dashes, for example scarlet-assessment)`); return 2; }
214
+ if (!id || !RE.ID_RE.test(id)) { say(`usage: pmos report ${verb} <id> … (the id is lower case letters, digits and dashes, for example pricing-review)`); return 2; }
215
215
  let clock = now == null ? Date.now() : now;
216
216
  if (flags.now !== undefined) { clock = Date.parse(flags.now); if (!Number.isFinite(clock)) return fail('--now must be a time, for example 2026-10-16T09:00:00Z', 2); }
217
217
  const slot = flags.slot !== undefined ? flags.slot : undefined;
@@ -515,7 +515,7 @@ function render(draft, { notes, name: given, purpose } = {}) {
515
515
  if (!draft || draft.ok === false) return '';
516
516
  const n = notes && typeof notes === 'object' ? notes : {};
517
517
  const noteOf = (id, fallback) => (has(n, id) ? n[id] : (fallback == null ? '' : fallback));
518
- // The title is the report's own name (its definition's), never its id: "Scarlet assessment report 2026-11-02", not "Scarlet-assessment-report report …".
518
+ // The title is the report's own name (its definition's), never its id: "Pricing review report 2026-11-02", not "Pricing-review-report report …".
519
519
  const named = isStr(given) && given.trim() ? given.trim().replace(/["\\]/g, "'") : '';
520
520
  const name = named ? (/\breport$/i.test(named) ? named.replace(/\s*report$/i, '') : named) : cap(draft.cadence);
521
521
  // The description is what readers see under the title: the report's purpose. How the file is made stays in this module's header.
@@ -69,7 +69,7 @@ async function undoRef(ctx, w, ref, g) {
69
69
  return bad(400, 'ref is a Driver proposal id (p-…) or a ✦ batch id (pk-…)');
70
70
  }
71
71
 
72
- /* the Driver's kinds said as an act: "problem: Scarlet tickets lack…" reads "Wrote the problem: Scarlet tickets lack…" */
72
+ /* the Driver's kinds said as an act: "problem: Checkout tickets lack…" reads "Wrote the problem: Checkout tickets lack…" */
73
73
  const ACT = { problem: 'Wrote the problem', evidence: 'Added evidence', sizing: 'Sized it', assumption: 'Wrote an assumption', stakeholders: 'Named the people',
74
74
  move: 'Moved it', note: 'Added a note', doc: 'Drafted a document', overlap: 'Noted an overlap', artefact: 'Wrote the experiment', 'next-step': 'Set the next step', 'follow-up': 'Set a follow-up' };
75
75
  function sayOf(a) {
@@ -484,7 +484,7 @@ const maxDay = (a, b) => (!a ? b || null : !b ? a : a > b ? a : b);
484
484
  /** batch 26 item 5: whether an initiative stands in its workflow's terminal stage. Read from the workflow first: the stage is in the Done
485
485
  * category, or it is the last stage (stages after it that only end work, such as Won't do or Cancelled, do not count). A stage the workflow
486
486
  * does not hold (a Jira-read status such as "Closed") is terminal when its name says so, as tkStatus reads a ticket (done, closed, resolved,
487
- * released). Follow-up (CAS rows still late after #1202): the board column branch ignored the Done category and any stage outside the list. */
487
+ * released). Follow-up (a board's rows still late after #1202): the board column branch ignored the Done category and any stage outside the list. */
488
488
  const TERMINAL_RE = /\b(done|closed|resolved|released|complete|completed|finished)\b/i;
489
489
  const END_RE = /\b(won'?t do|cancel+ed|archived|abandoned|dropped|rejected)\b/i;
490
490
  const isDoneCat = (c) => String(c || '').toLowerCase() === 'done';
@@ -1336,7 +1336,7 @@ const WRITES = {
1336
1336
  if (typeof body.id !== 'string' || !body.id) return fail(ctx, res, 400, 'id is required');
1337
1337
  if (!p.board.build) return fail(ctx, res, 409, `${p.board.name} has Build and deliver off, so it mirrors no Jira`);
1338
1338
  const list = Array.isArray(body.epics) ? body.epics : typeof body.epics === 'string' ? body.epics.split(/[,\s]+/).filter(Boolean) : null;
1339
- if (!list || list.length > 20 || list.some((k) => typeof k !== 'string' || !B.JIRA_KEY_RE.test(k.trim()))) return fail(ctx, res, 400, 'epics is a list of Jira keys (at most 20), each like IDPF-2685');
1339
+ if (!list || list.length > 20 || list.some((k) => typeof k !== 'string' || !B.JIRA_KEY_RE.test(k.trim()))) return fail(ctx, res, 400, 'epics is a list of Jira keys (at most 20), each like SHOP-2685');
1340
1340
  const epics = [...new Set(list.map((k) => k.trim().toUpperCase()))];
1341
1341
  const projects = p.board.jiraProjects || [];
1342
1342
  const off = projects.length ? epics.filter((k) => !projects.includes(k.split('-')[0])) : [];
@@ -1590,7 +1590,7 @@ const WRITES = {
1590
1590
  // the PM's own notes on a Jira ticket (canvas XetX1Jira): Jira keeps the title, status, dates and assignee
1591
1591
  const p = postFrame(ctx, res, body);
1592
1592
  if (!p) return;
1593
- if (typeof body.ref !== 'string' || !B.JIRA_KEY_RE.test(body.ref)) return fail(ctx, res, 400, 'ref is a Jira key, like IDPF-2685');
1593
+ if (typeof body.ref !== 'string' || !B.JIRA_KEY_RE.test(body.ref)) return fail(ctx, res, 400, 'ref is a Jira key, like SHOP-2685');
1594
1594
  if (typeof body.notes !== 'string' || body.notes.length > 4000) return fail(ctx, res, 400, 'notes are text of at most 4000 characters');
1595
1595
  if (!p.file) return fail(ctx, res, 409, NO_STATE);
1596
1596
  const ref = body.ref.toUpperCase(), from = p.fr.folded.ticketNotes.get(p.board.id + '\u0000' + ref) || '';
@@ -134,7 +134,7 @@ module.exports = {
134
134
  }
135
135
  // premium-uncovered-features (IsMenus): the product picker says how many goals each product's workspace records; a workspace that cannot be read says none
136
136
  const counts = new Map();
137
- // one goal source: a product's goals are its key results plus the records no key result claims (IDPF: 10 key results and 1 record said 1 before)
137
+ // one goal source: a product's goals are its key results plus the records no key result claims (a product with 10 key results and 1 record said 1 before)
138
138
  const countOf = (w) => { if (w === ws && goalSrc) return goalSrc.count; let r = null; try { const x = ctx.getWs(w); r = x && x.root ? require('path').resolve(x.root) : null; } catch { r = null; } const s = GSRC.source({ root: r, recordsDir: recordsDirFor(ctx, w) }); return s.ok ? s.count : null; };
139
139
  const goalsIn = (w) => { if (!counts.has(w)) { let n = null; try { n = countOf(w); } catch { n = null; } counts.set(w, n); } return counts.get(w) === null ? {} : { goals: counts.get(w) }; };
140
140
  // batch 16 item 6 ("Claude runs the OKRs"): the reading ledger, each record's own history, and the product's open drafts
@@ -51,7 +51,7 @@ const fileOf = (ctx, w, create = true) => { const d = stateDir(ctx, w, create);
51
51
  const read = (f) => { try { return f ? pmItems.readLines(f).filter(Boolean) : []; } catch { return []; } };
52
52
 
53
53
  /** The registered workspace a linked git worktree stands for: the one at the same place in the repo's main tree. A worktree is its own
54
- * checkout, so it carries its own copy of programs.jsonl, and registered it is its own "product" (`pmos-idpf ⑂ initiative/x`). Read as
54
+ * checkout, so it carries its own copy of programs.jsonl, and registered it is its own "product" (`acme-shop ⑂ initiative/x`). Read as
55
55
  * such, a charter saved from the worktree puts the program under the worktree product while its members sit under the main one, and a
56
56
  * member line that both hold shows twice. So the ledgers of a repo's trees are read as ONE product, the main tree's. Null when the
57
57
  * workspace is not a linked worktree, or its main tree is not registered (nothing to fold into). Memoised: all() runs on every poll. */
@@ -82,7 +82,7 @@ function all(ctx, now = Date.now()) {
82
82
  const perWs = list.map((w) => ({ ws: (of(w) || w).id, lines: read(fileOf(ctx, w, false)), tree: of(w) ? 0 : 1 })).sort((a, b) => a.tree - b.tree);
83
83
  const progs = P.merge(perWs);
84
84
  // an initiative the PM deleted on the board (lib/ini-deleted.js) is no longer a member: the ledger line stays, so a restore brings it back,
85
- // and the program does not keep naming what no list shows (Project Ascent kept `decommission` after it was deleted)
85
+ // and the program does not keep naming what no list shows (a program kept `decommission` after it was deleted)
86
86
  const rootOf = new Map(list.map((w) => [w.id, w.root]));
87
87
  for (const p of progs) p.members = (p.members || []).filter((m) => { const r = rootOf.get(m.ws); return !(r && deletedIds.ids(r).has(m.initiative)); });
88
88
  const R = new Map();
@@ -55,7 +55,7 @@ function due(s, { hx, automatic = false, now = Date.now() } = {}) {
55
55
 
56
56
  function promptFor({ first, last, answer, current }) {
57
57
  const lines = [
58
- 'Name this working session in 2 to 6 words, the way a person titles a to-do: sentence case, starting with a verb, naming the job (for example: Shortlist CIAM tender vendors).',
58
+ 'Name this working session in 2 to 6 words, the way a person titles a to-do: sentence case, starting with a verb, naming the job (for example: Shortlist payment vendors).',
59
59
  'No quotes, no ending period, no session or chat words. Reply with the name only, on one line.',
60
60
  ];
61
61
  if (current) lines.push(`Its name now is: ${clip(current, NAME_MAX)}. If that still names the job, reply KEEP. Give a new name only when the job has clearly changed.`);
@@ -107,7 +107,7 @@ function loadSkills(dirs) {
107
107
  * `workspace/state/needs.json`". After the move those are two paths nothing reads. An agent that
108
108
  * follows them succeeds, reports success, and the deliverable never appears in the needs-you queue
109
109
  * — a REPORT THAT SILENTLY NEVER ARRIVES, which is the exact failure this initiative exists to
110
- * end. The PM has eleven such skills (draft-me, release-notes and nine idpf-*), all authored
110
+ * end. The PM has eleven such skills (draft-me, release-notes and nine shop-*), all authored
111
111
  * against the old contract.
112
112
  *
113
113
  * Injecting the paths into the SCAFFOLD only fixes skills that do not exist yet. So the retarget
@@ -121,13 +121,13 @@ function loadSkills(dirs) {
121
121
  *
122
122
  * The first cut of this matched on the CHARACTER BEFORE the path — start-of-line, whitespace, a
123
123
  * quote, a backtick, a paren or a bracket — and that covered 2 of the PM's 11 skills. The other
124
- * nine (every idpf-*) do not spell the path relatively at all; they spell it ABSOLUTELY:
124
+ * nine (every shop-*) do not spell the path relatively at all; they spell it ABSOLUTELY:
125
125
  *
126
126
  * /Users/…/pmos/workspace/state/deliverables/<run-id>.md
127
127
  *
128
128
  * The character before `workspace/state/` there is `/`, which was not in the class, so nothing
129
129
  * matched and nothing was rewritten. That is not an edge case: every one of the PM's 45 schedules
130
- * fires an idpf-* skill, and the two skills the old rule DID repair have zero schedules between
130
+ * fires a shop-* skill, and the two skills the old rule DID repair have zero schedules between
131
131
  * them. A near-miss on a character class was therefore 0% coverage of the real workload.
132
132
  *
133
133
  * So the question is no longer "what character precedes this" but "IS THIS PATH'S PARENT THE OLD
@@ -136,7 +136,7 @@ function loadSkills(dirs) {
136
136
  *
137
137
  * `state/…` `./state/…` — relative to the app directory
138
138
  * `workspace/state/…` `./workspace/state/…` — relative to a repository root
139
- * `/any/abs/path/workspace/state/…` — absolute, any install (the nine idpf-*)
139
+ * `/any/abs/path/workspace/state/…` — absolute, any install (the nine shop-*)
140
140
  * `<filing.legacy>/…` — the app directory's OWN state dir, derived by the
141
141
  * caller from __dirname, whatever it is named
142
142
  *
@@ -32,6 +32,9 @@ const rootKey = (root) => {
32
32
  return crypto.createHash('sha256').update(real).digest('hex').slice(0, 16);
33
33
  };
34
34
 
35
+ // The PM's own presses. Any `human:` name: approvals written before the PM's name was derived (lib/pm-slug.js) still count.
36
+ const isHuman = (by) => typeof by === 'string' && by.startsWith('human:');
37
+
35
38
  function readApprovals(file) {
36
39
  let text = ''; try { text = fs.readFileSync(file, 'utf8'); } catch { return []; }
37
40
  const out = [];
@@ -50,11 +53,11 @@ function appendApproval(file, ev) {
50
53
  // The local approvals for ONE repository, as the core's resolve() wants them: [{id, sha, at}]
51
54
  function approvedFor(file, root) {
52
55
  const k = rootKey(root);
53
- return readApprovals(file).filter((e) => e.root === k && e.op === 'approve' && e.by === 'human:wawan');
56
+ return readApprovals(file).filter((e) => e.root === k && e.op === 'approve' && isHuman(e.by));
54
57
  }
55
58
  function readsFor(file, root) {
56
59
  const k = rootKey(root); const set = new Set();
57
- for (const e of readApprovals(file)) if (e.root === k && e.op === 'read' && e.by === 'human:wawan') set.add(`${e.id}@${e.sha}`);
60
+ for (const e of readApprovals(file)) if (e.root === k && e.op === 'read' && isHuman(e.by)) set.add(`${e.id}@${e.sha}`);
58
61
  return set;
59
62
  }
60
63
 
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * WHAT IS COPIED: the small state files (.json .jsonl .md .txt) under `src`, to <dest>/<YYYY-MM-DD>/, with a manifest.json of what was
11
11
  * copied. Terminal buffers, sockets, caches and anything whose name looks like a secret (token, secret, key, nonce, credential, password)
12
- * are left out: a backup that copies the PM's keys to a second place is worse than none. A copy is checked by reading it back (file count and
12
+ * and the named credential files (SECRET_FILES) are left out: a backup that copies the PM's keys to a second place is worse than none. A copy is checked by reading it back (file count and
13
13
  * bytes against the manifest) before the run says ok, and only then are days beyond the newest `keep` (default 7) removed.
14
14
  * `dest` must be outside `src`. Nothing is sent over a network; the PM chooses the folder. */
15
15
  const fs = require('fs');
@@ -17,6 +17,9 @@ const path = require('path');
17
17
 
18
18
  const KEEP_EXT = /\.(jsonl?|md|txt)$/i;
19
19
  const SKIP_NAME = /(token|secret|key|nonce|credential|password|\.sock$|buffer|cache|node_modules|\.git$)/i;
20
+ // The credential files whose names the pattern above does not catch (security review 2026-11-03, finding 1): the Anthropic key,
21
+ // the TypeSafe key and the board host admin key. Paths are relative to the state folder. online.json stays: it holds no credential.
22
+ const SECRET_FILES = new Set(['anthropic.json', 'typesafe.json', 'board-publish/state.json']);
20
23
  const MAX_FILE = 50 * 1024 * 1024;
21
24
  const DAY_RE = /^\d{4}-\d{2}-\d{2}$/;
22
25
  const LOG = 'backup-log.jsonl';
@@ -30,6 +33,7 @@ function listFiles(root) {
30
33
  for (const e of ents) {
31
34
  if (SKIP_NAME.test(e.name)) continue;
32
35
  const p = path.join(d, e.name);
36
+ if (SECRET_FILES.has(path.relative(root, p).split(path.sep).join('/'))) continue;
33
37
  if (e.isDirectory()) walk(p);
34
38
  else if (e.isFile() && KEEP_EXT.test(e.name)) { try { if (fs.statSync(p).size <= MAX_FILE) out.push(p); } catch { /* vanished */ } }
35
39
  }
@@ -11,7 +11,7 @@
11
11
  * with MCP attribution, plus one skill_listing attachment.
12
12
  *
13
13
  * ─────────────────────────────────────────────────────────────────────────────────────────
14
- * VENDOR COUPLING — READ BEFORE CHANGING. Owner: the PM (wawan).
14
+ * VENDOR COUPLING — READ BEFORE CHANGING. Owner: the PM.
15
15
  *
16
16
  * This reads an UNDOCUMENTED internal file layout with no compatibility promise:
17
17
  * ~/.claude/sessions/<pid>.json → {pid, sessionId, cwd, version, …}
@@ -98,7 +98,7 @@ const UV_INSTALLER = 'https://github.com/astral-sh/uv/releases/latest/download/u
98
98
  /** The commands that install Laya into its own folder under the runtime directory (once) and start it on loopback.
99
99
  * The workspace types them into a terminal and never runs them itself: the PM reads them and presses Enter (as D91's
100
100
  * Whisper setup does).
101
- * They bring their own Python, so the PM installs nothing by hand (PM wawan, 2026-10-13). macOS ships Python 3.9, where
101
+ * They bring their own Python, so the PM installs nothing by hand (the PM, 2026-10-13). macOS ships Python 3.9, where
102
102
  * pip quietly picks Laya 0.3.4, which has no laya-serve. So the commands fetch uv into `laya-tools/` (an unmanaged
103
103
  * install: no PATH change and no receipt outside that folder), let uv download a private Python 3.12 into the same
104
104
  * folder, rebuild `laya/` with it (a folder an earlier run made with Python 3.9 goes) and install Laya there. Nothing is written outside the runtime directory. */
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
  /* lib/worktree-gc.js — remove the folders of finished work, so they do not pile up (D102; the PM: "a worktree should be invisible").
3
3
  *
4
- * A linked worktree is an extra folder of a repository. IDPF had six under pmos-idpf-worktrees/ and three under pmos-microsites-worktrees/,
4
+ * A linked worktree is an extra folder of a repository. one product had six under acme-shop-worktrees/ and another three under acme-web-worktrees/,
5
5
  * each left behind after its branch was merged. collect(root) removes a worktree only when ALL of these hold, so nothing a person
6
6
  * could miss is ever removed:
7
7
  * - root is the repository's own folder, and the worktree is another one on a named branch that is not the default branch;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.560.0",
3
+ "version": "0.562.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.560.0",
9
+ "version": "0.562.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.560.0",
3
+ "version": "0.562.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",
@@ -259,7 +259,7 @@ export function openNewMenu(btn) {
259
259
  function openNewProgram(from) {
260
260
  const ws = M().board.all ? ((products()[0] || {}).ws || '') : M().board.ws;
261
261
  const body = `<form class="bd-form bd-new" data-form="newprog" data-ws="${esc(ws || '')}" novalidate>`
262
- + `<label class="bd-field">Name<input class="bd-inp" name="title" maxlength="120" placeholder="For example: Project Ascent" autocomplete="off"></label>`
262
+ + `<label class="bd-field">Name<input class="bd-inp" name="title" maxlength="120" placeholder="For example: Project Horizon" autocomplete="off"></label>`
263
263
  + `<label class="bd-field">What it is for<textarea class="bd-inp ta" name="goal" rows="2" maxlength="400" placeholder="The outcome its initiatives add up to"></textarea></label>`
264
264
  + `<label class="bd-field">Target<input class="bd-inp" type="date" name="target"><span class="bd-amut">Optional. A program can run longer than any one initiative.</span></label>`
265
265
  + `<p class="bd-amsg" id="formM" role="status"></p><div class="bd-arow bd-pfoot"><button type="submit" class="bd-btn solid">Create program</button><span class="bd-amut">Then move initiatives into it from its panel</span></div></form>`;
@@ -422,8 +422,8 @@ function draw(keepFocus) {
422
422
  }
423
423
  /** ⋯ in the shell's order: change it (add, move in), look back (the charter), copy, then archive in red, last. */
424
424
  function moreOf(p) {
425
- // the initiatives that can move in, grouped by product with the PROGRAM's own product first (batch 11 item 11: a pmos-microsites program
426
- // on Home listed only pmos-idpf initiatives, with no product named). A program spans products, so the others stay, each under its name.
425
+ // the initiatives that can move in, grouped by product with the PROGRAM's own product first (batch 11 item 11: a program of one product
426
+ // on Home listed only another product's initiatives, with no product named). A program spans products, so the others stay, each under its name.
427
427
  const M = O.M(), hw = p.home || board().ws || '';
428
428
  const taken = new Set(((O.programs()) || []).flatMap((x) => (x.members || []).map((m) => (m.ws || hw) + '|' + m.initiative)));
429
429
  // only the open initiatives: a cancelled or archived one moved in would not show in the program
@@ -115,7 +115,7 @@ function mergeWorkflows(lists) {
115
115
  /** The products a program spans: its members' workspaces, once each. */
116
116
  export const productsOf = (p) => new Set((p.members || []).map((m) => m.ws || '')).size;
117
117
 
118
- /** A product's two letters: "IDPF" → "ID", "Microsites" → "MI", "Data Platform" → "DP". */
118
+ /** A product's two letters: "Acme" → "AC", "Web" → "WE", "Data Platform" → "DP". */
119
119
  export const initialsOf = (name) => { const w = String(name || '').trim().split(/\s+/).filter(Boolean); return (w.length > 1 ? w[0][0] + w[1][0] : (w[0] || '?').slice(0, 2)).toUpperCase(); };
120
120
  /** One of four calm tones per product name, stable across views. */
121
121
  const toneOf = (name) => { let h = 0; for (const c of String(name || '')) h = (h * 31 + c.charCodeAt(0)) >>> 0; return 'tn' + (h % 4); };
@@ -624,7 +624,7 @@ function progSpan(g, own) {
624
624
  /** A program's milestones in the window as diamonds (filled once done, open while ahead, amber when late); the ones within `days` of each
625
625
  * other merge into one counted diamond (pm/program-model.js mergeClose) whose label reads "Pilot live +2 · Nov 18–21" ("Nov ’26" on 2 yr and
626
626
  * 5 yr, `fmt`). A counted diamond opens the program and names its milestones in its label and its title. The milestones not done also wait as
627
- * one edge tab on the right, which pm/bd-scroll.js names after the first one past the view (TsCOpen: "Okta off · Sep ’27 ›"). */
627
+ * one edge tab on the right, which pm/bd-scroll.js names after the first one past the view (TsCOpen: "Old login off · Sep ’27 ›"). */
628
628
  function progMarks(g, st, X, W, days, fmt, phone, pxPct) {
629
629
  const p = g.program, inW = (m) => { const d = day(m.date); return d && d >= W.from && d <= W.to; };
630
630
  const C = mergeClose((st.milestones || []).filter(inW), days);
@@ -99,7 +99,7 @@ export function geo(node, vars) {
99
99
  }
100
100
 
101
101
  /* ── text bits ── */
102
- /** The Jira projects a board mirrors, for a sentence: "IDPF, LB" (a board may map several Jira projects). */
102
+ /** The Jira projects a board mirrors, for a sentence: "SHOP, WEB" (a board may map several Jira projects). */
103
103
  export const jiraLabel = (b) => ((b && Array.isArray(b.jiraProjects) && b.jiraProjects.length) ? b.jiraProjects.join(', ') : (b && b.jira) || '');
104
104
  export const plural = (n, one, many) => n + ' ' + (n === 1 ? one : many || one + 's');
105
105
  export const trunc = (s, n) => { s = String(s || ''); return s.length > n ? s.slice(0, n - 1) + '…' : s; };
@@ -41,7 +41,7 @@ export function tonesOf(products) {
41
41
  return Object.fromEntries(L.map((p, i) => [p.ws, i % TONES]));
42
42
  }
43
43
  const isAll = (P) => !!P && P.products.length > 1 && P.products.every((p) => p.on); // one product registered: its tile, never All
44
- /** The words of the chip (its tooltip and accessible name): "Products on Home: pmos-idpf, pmos-microsites", or "… all 3". */
44
+ /** The words of the chip (its tooltip and accessible name): "Products on Home: acme-shop, acme-web", or "… all 3". */
45
45
  export function chipWords(P, label) {
46
46
  if (!P || !P.products.length) return label + ': none registered';
47
47
  return label + ': ' + (isAll(P) ? 'all ' + P.products.length : P.products.filter((p) => p.on).map((p) => p.name).join(', '));
@@ -57,7 +57,7 @@
57
57
  * One trail (feedback batch 14 item 7, canvas Exploring · Navigation NvADesk, NvAPhone, NvAPhoneTrail, NvAFlow):
58
58
  * - a press inside the Viewer keeps the item shown behind the one it opens (a drill-in), as back: true and drill() do; a press on the page
59
59
  * outside starts a new trail; fresh: true always starts one. Opening the item shown again (the same id) draws it again in its place.
60
- * - ← goes one step back, and its name says where ("Back to PSLE Landing Page"); at the trail's first item a desk shows no ←, a phone's
60
+ * - ← goes one step back, and its name says where ("Back to Spring Sale Landing Page"); at the trail's first item a desk shows no ←, a phone's
61
61
  * ← closes. → shows only after a back, and any new open drops it. Hover ← or → (desk) or hold it (phone): the trail, newest first,
62
62
  * ending at the page it started on; a press jumps there.
63
63
  * - every step is a browser history entry ({ czvw: { s, i } }), so the browser's Back and Forward and a phone's back swipe walk the same
@@ -254,7 +254,7 @@ export function lineOf(goals, product) {
254
254
  }
255
255
  return null;
256
256
  }
257
- /** A drafted-metrics ✦ line (GcJ1aTable): "I drafted a North Star, 3 inputs and 2 guardrails for pmos-idpf." */
257
+ /** A drafted-metrics ✦ line (GcJ1aTable): "I drafted a North Star, 3 inputs and 2 guardrails for acme-shop." */
258
258
  export function draftsLine(rows, product) {
259
259
  const R = (rows || []).filter((r) => r && r.kind === 'metric' && r.state === 'open'); if (!R.length) return null;
260
260
  const n = (g) => R.filter((r) => r.group === g).length;