create-pmos 0.760.0 → 0.761.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.760.0",
3
+ "version": "0.761.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,19 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.761.0",
38
+ "at": "2026-11-24T04:56:21.207Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1716,
43
+ "t": "The standup digest sees every status change, from one daily search",
44
+ "s": "The standup digest sees every status change, from one daily search",
45
+ "k": "new"
46
+ }
47
+ ]
48
+ },
36
49
  {
37
50
  "v": "0.760.0",
38
51
  "at": "2026-11-24T02:57:16.535Z",
@@ -369,19 +382,6 @@
369
382
  "k": "fix"
370
383
  }
371
384
  ]
372
- },
373
- {
374
- "v": "0.740.0",
375
- "at": "2026-11-23T08:20:40.488Z",
376
- "f": 4,
377
- "prs": [
378
- {
379
- "n": 1654,
380
- "t": "A product's own words show their meaning on hover, on every page (A386)",
381
- "s": "A product's own words show their meaning on hover, on every page (A386)",
382
- "k": "new"
383
- }
384
- ]
385
385
  }
386
386
  ]
387
387
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@e8e8ef03
1
+ kernel-source: pmos@6c450212
2
2
  assembled: 2026-11-24
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-24T02:57:14Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T04:56:18Z"}
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-24T02:57:14Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T04:56:18Z"}
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-24T02:57:14Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T04:56:18Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.761.0",
4
+ "at": "2026-11-24T04:56:21.207Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1716,
9
+ "t": "The standup digest sees every status change, from one daily search",
10
+ "s": "The standup digest sees every status change, from one daily search",
11
+ "k": "new"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.760.0",
4
17
  "at": "2026-11-24T02:57:16.535Z",
@@ -851,7 +851,7 @@ The benchmark needs a signed-in agent CLI. It never pushes and never opens a pul
851
851
  - `pmos jira criteria-asks [--direct|--draft|--health]` lists the criteria asks that wait for Jira, prints the draft by owner, or prints the health number.
852
852
  - `pmos jira criteria-done <ask id>` or `--refused "<why>"` records the answer for one criteria ask.
853
853
  - `pmos jira criteria <initiative>`: the done-test checks each ticket carries as acceptance criteria, and the checks on no ticket
854
- - `pmos jira digest [--since <YYYY-MM-DD or time>]`: what moved in the tracker since the last working day, who moved it, the moved tickets with no task in PMOS, and what is worth a question (blocked, reopened, nobody assigned, stuck, not in the last read). It reads only the stored Jira reads.
854
+ - `pmos jira digest [--since <YYYY-MM-DD or time>]`: what moved in the tracker since the last working day, who moved it, the moved tickets with no task in PMOS, and what is worth a question (blocked, reopened, nobody assigned, stuck, not in the last read). It reads only the stored Jira reads. The daily Jira read also asks Jira for every status change in the projects PMOS reads, so a ticket no initiative or task names is in the digest too, under "Not in PMOS yet".
855
855
 
856
856
  Every command takes `--json` and `--root <dir>`.
857
857
 
@@ -164,7 +164,11 @@ async function run(argv, { say = (s) => console.log(s), cwd = process.cwd(), isT
164
164
  if (!p.linked) lines.push('no initiative has a ticket in Jira yet');
165
165
  if (p.change.length) {
166
166
  lines.push(`changed · ${p.checked} tracked ${p.checked === 1 ? 'ticket' : 'tickets'} in ${p.change.length} ${p.change.length === 1 ? 'initiative' : 'initiatives'} · since ${p.since} (the last ${p.minutes} minutes)`);
167
- for (const q of p.searches) lines.push(`search\t${q}`);
167
+ for (const q of p.searches) if (!p.standup || q !== p.standup.search) lines.push(`search\t${q}`);
168
+ }
169
+ if (p.standup) {
170
+ lines.push(`standup · every status change in ${p.standup.projects.join(', ')} (the last ${p.standup.minutes} minutes), for the standup digest`);
171
+ lines.push(`search\t${p.standup.search}`);
168
172
  }
169
173
  for (const f of p.full) lines.push(`full\t${f.initiative}\t${f.query}\t(${f.why})`);
170
174
  return out(p, lines);
@@ -181,7 +185,8 @@ async function run(argv, { say = (s) => console.log(s), cwd = process.cwd(), isT
181
185
  if (x.error) { lines.push(` ${x.initiative} · ${x.error}`); continue; }
182
186
  for (const c of x.changes) lines.push(` ${x.initiative} ${c.key} · ${c.what}${c.from !== undefined ? `: ${c.from} → ${c.to}` : c.status ? `: ${c.status}` : ''}${c.reason ? ` (${c.reason})` : ''}`);
183
187
  }
184
- if (!r.kept) lines.push('no tracked ticket changed: if no initiative was read in full, run pmos refresh same jira');
188
+ if (r.untracked && r.untracked.length) lines.push(`${require('./jira-tiers.js').TAG} ${r.untracked.length} status ${r.untracked.length === 1 ? 'move' : 'moves'} of tickets no initiative holds kept for the standup digest${r.dryRun ? ' (dry run, not kept)' : ''}`);
189
+ if (!r.kept && !(r.untracked && r.untracked.length)) lines.push('no tracked ticket changed: if no initiative was read in full, run pmos refresh same jira');
185
190
  lines.push(r.sprintNeeded ? 'sprint read: needed, a live ticket changed' : 'sprint read: not needed for these changes');
186
191
  return out(r, lines);
187
192
  }
@@ -22,8 +22,14 @@
22
22
  * THE TIER IS NEVER STORED. It is derived from the stored reading on each run, so a ticket moves tier as soon as its reading does.
23
23
  *
24
24
  * FILE. <state>/tracker/jira/_tiers.json, local runtime state:
25
- * { checked: { <ini>: iso }, full: { <ini>: iso }, pins: [ini], sprint_dirty: bool, sprint_read_at: iso,
26
- * run: { asked_at, mode, change: [ini], full_due: [ini], checked, fetched, tiers: [n] } }
25
+ * { checked: { <ini>: iso }, full: { <ini>: iso }, pins: [ini], sprint_dirty: bool, sprint_read_at: iso, standup_at: iso,
26
+ * run: { asked_at, mode, change: [ini], full_due: [ini], checked, fetched, tiers: [n], standup?: true } }
27
+ *
28
+ * THE STANDUP SEARCH (initiative standup-from-one-read, bet A23). The searches above ask only about tickets PMOS already holds, so a new
29
+ * ticket, or a sprint ticket no initiative names, moves without PMOS seeing it (13 of 20 status changes missed on idpf, microsites and
30
+ * Scarlet, 20 to 24 Nov). One more search asks for every status change in the projects of the stored readings since the last time it
31
+ * asked: `project in (…) AND status changed AFTER -<N>m`. applyChanged keeps a move (`u: 1`) for each returned ticket no initiative
32
+ * holds, for the standup digest (lib/tracker-digest.js). Read-only on Jira, like every search here.
27
33
  */
28
34
  const fs = require('fs');
29
35
  const path = require('path');
@@ -32,6 +38,10 @@ const FILE = '_tiers.json';
32
38
  const CHUNK = 100;
33
39
  const SPARE_MIN = 5; // minutes added to each "updated since" window, as the refresh probe does
34
40
  const LIVE_STATUS = /block|impediment|on hold/i;
41
+ const STANDUP_FIRST_MIN = 72 * 60; // the first standup search looks 72 hours back, so a Monday digest has Friday in it
42
+ const STANDUP_MAX_MIN = 7 * 24 * 60; // never more than a week back
43
+ const KEY_RE = /^([A-Z][A-Z0-9_]*)-\d+$/;
44
+ const TAG = '[standup-from-one-read]';
35
45
 
36
46
  const S = () => require('./jira-status.js');
37
47
  const T = () => require('./jira-tickets.js');
@@ -45,7 +55,8 @@ function readFile(f) {
45
55
  function read(root) {
46
56
  const v = readFile(fileOf(root));
47
57
  return { checked: { ...(v.checked || {}) }, full: { ...(v.full || {}) }, pins: Array.isArray(v.pins) ? v.pins.filter((x) => typeof x === 'string') : [],
48
- sprint_dirty: v.sprint_dirty === true, sprint_read_at: typeof v.sprint_read_at === 'string' ? v.sprint_read_at : null, run: v.run && typeof v.run === 'object' ? v.run : null };
58
+ sprint_dirty: v.sprint_dirty === true, sprint_read_at: typeof v.sprint_read_at === 'string' ? v.sprint_read_at : null,
59
+ standup_at: typeof v.standup_at === 'string' ? v.standup_at : null, run: v.run && typeof v.run === 'object' ? v.run : null };
49
60
  }
50
61
  function write(root, st) {
51
62
  const f = fileOf(root);
@@ -123,15 +134,61 @@ function plan(root, { now = Date.now(), record = true } = {}) {
123
134
  ...chunks(all, CHUNK).map((ks) => `key in (${ks.join(', ')})${win} ORDER BY key`),
124
135
  ...chunks([...epics].sort(), CHUNK).map((es) => `parent in (${es.join(', ')})${win} ORDER BY key`),
125
136
  ] : [];
137
+ const standup = standupSearch(root, st, linked, now);
138
+ if (standup) searches.push(standup.search);
126
139
  const out = { ok: true, mode: full.length && !change.length ? 'full' : 'changed', since: since ? iso(since) : null, minutes, checked: all.length,
127
- change, searches, full, linked: linked.length };
140
+ change, searches, full, linked: linked.length, standup };
128
141
  if (record) {
129
- st.run = { asked_at: iso(now), mode: full.length ? 'full' : 'changed', change, full_due: full.map((x) => x.initiative), checked: all.length, fetched: 0, tiers: [] };
142
+ st.run = { asked_at: iso(now), mode: full.length ? 'full' : 'changed', change, full_due: full.map((x) => x.initiative), checked: all.length, fetched: 0, tiers: [],
143
+ ...(standup ? { standup: true } : {}) };
130
144
  write(root, st);
131
145
  }
132
146
  return out;
133
147
  }
134
148
 
149
+ /** The projects of every stored reading (each initiative's read and the whole-sprint read), sorted. */
150
+ function projectsOf(root, linked) {
151
+ const out = new Set();
152
+ const add = (snap) => { if (snap) for (const k of snap.tickets.keys()) { const m = KEY_RE.exec(k); if (m) out.add(m[1]); } };
153
+ for (const q of linked) add(S().readSnapshot(root, q.initiative));
154
+ try { add(S().readSprints(root)); } catch { /* no sprint read */ }
155
+ return [...out].sort();
156
+ }
157
+ /** The standup search: every status change in those projects since it last asked (72 hours the first time, 7 days at most). */
158
+ function standupSearch(root, st, linked, now) {
159
+ const projects = projectsOf(root, linked);
160
+ if (!projects.length) return null;
161
+ const last = ms(st.standup_at);
162
+ const minutes = last ? Math.min(STANDUP_MAX_MIN, Math.max(1, Math.ceil((now - last) / 60000)) + SPARE_MIN) : STANDUP_FIRST_MIN;
163
+ return { projects, minutes, search: `project in (${projects.join(', ')}) AND status changed AFTER -${minutes}m ORDER BY key` };
164
+ }
165
+
166
+ /**
167
+ * The returned tickets no initiative holds: a move (`u: 1`) when the status differs from what PMOS last knew of the ticket (the
168
+ * whole-sprint read, else its last kept move); a ticket PMOS never saw moves from an unknown state. PURE apart from the reads.
169
+ */
170
+ function untrackedMoves(root, issues, held, at) {
171
+ const TD = require('./tracker-digest.js');
172
+ let sprints = null; try { sprints = S().readSprints(root); } catch { sprints = null; }
173
+ const last = new Map();
174
+ for (const m of TD.readMoves(root)) last.set(m.k, m); // the file is in time order: the last line wins
175
+ const lines = []; const sprintKeys = []; const seen = new Set();
176
+ for (const i of issues) {
177
+ if (!i || !i.key || held.has(i.key) || seen.has(i.key)) continue;
178
+ seen.add(i.key);
179
+ const inSprint = sprints ? sprints.tickets.get(i.key) : null;
180
+ const mv = last.get(i.key);
181
+ // what PMOS last knew: the newer of the sprint read and the last kept move (a move kept after the sprint read is newer)
182
+ const was = mv && (!inSprint || ms(mv.at) >= ms(sprints.fetchedAt)) ? { status: mv.s, category: mv.c || null }
183
+ : inSprint ? { status: inSprint.status, category: inSprint.category || null } : null;
184
+ if (was && was.status === i.status) continue;
185
+ lines.push({ at, k: i.key, n: i.summary || '', f: was ? was.status : null, fc: was ? was.category : null, s: i.status, c: i.category || null,
186
+ ...(i.assignee ? { w: i.assignee } : {}), u: 1 });
187
+ if (inSprint) sprintKeys.push(i.key);
188
+ }
189
+ return { lines, sprintKeys };
190
+ }
191
+
135
192
  /** The time this run asked (plan), or now when no plan was made. */
136
193
  const askedAt = (st, now) => (st.run && st.run.asked_at ? st.run.asked_at : iso(now));
137
194
  const addRun = (st, { fetched = 0, checked = 0, tiers = [] }) => {
@@ -178,8 +235,9 @@ function applyChanged(root, raw, { now = Date.now(), dryRun = false } = {}) {
178
235
  const n = S().normalize(raw);
179
236
  if (n.error) return { ok: false, error: n.error };
180
237
  const st = read(root);
181
- const group = st.run && Array.isArray(st.run.change) && st.run.change.length ? st.run.change
182
- : S().linkedInitiatives(root).filter((x) => x.linked).map((x) => x.initiative);
238
+ const linked = S().linkedInitiatives(root).filter((x) => x.linked).map((x) => x.initiative);
239
+ // a plan that read every initiative in full patches none of them here: the standup search may still have returned their tickets
240
+ const group = st.run && Array.isArray(st.run.change) && (st.run.change.length || st.run.standup) ? st.run.change : linked;
183
241
  const at = askedAt(st, now);
184
242
  const per = []; const kept = new Set(); let tiers = []; let dirty = false;
185
243
  for (const ini of group) {
@@ -195,10 +253,17 @@ function applyChanged(root, raw, { now = Date.now(), dryRun = false } = {}) {
195
253
  tiers = tiers.concat(f.tiers); dirty = dirty || f.dirty;
196
254
  per.push({ initiative: ini, read: r.read, changes: r.changes });
197
255
  }
198
- const result = { ok: true, fetched: n.issues.length, kept: kept.size, ignored: n.issues.length - kept.size, skipped: n.skipped, initiatives: per,
199
- tiers: [...new Set(tiers)].sort(), sprintNeeded: dirty, dryRun: !!dryRun };
256
+ // the standup search: a ticket an initiative holds is that initiative's (its own read keeps its moves); every other one is kept here
257
+ const held = new Set(kept);
258
+ for (const ini of linked) { const s = S().readSnapshot(root, ini); if (s) for (const k of s.tickets.keys()) held.add(k); }
259
+ const un = untrackedMoves(root, n.issues, held, at);
260
+ if (un.sprintKeys.length) dirty = true;
261
+ const result = { ok: true, fetched: n.issues.length, kept: kept.size, ignored: Math.max(0, n.issues.length - kept.size - un.lines.length), skipped: n.skipped, initiatives: per,
262
+ untracked: un.lines.map((l) => ({ key: l.k, from: l.f, to: l.s })), tiers: [...new Set(tiers)].sort(), sprintNeeded: dirty, dryRun: !!dryRun };
200
263
  if (dryRun) return result;
264
+ require('./tracker-digest.js').append(root, un.lines);
201
265
  for (const ini of group) st.checked[ini] = at;
266
+ if (st.run && st.run.standup) st.standup_at = at;
202
267
  if (dirty) st.sprint_dirty = true;
203
268
  addRun(st, { fetched: n.issues.length, tiers });
204
269
  write(root, st);
@@ -263,4 +328,4 @@ function fullDue(jiraDir) {
263
328
  return v.run && Array.isArray(v.run.full_due) ? v.run.full_due : null;
264
329
  }
265
330
 
266
- module.exports = { FILE, CHUNK, tierOf, mondayOf, plan, applyChanged, noteFull, sprintDue, sprintRead, pin, counts, runStats, fullDue, read, fileOf };
331
+ module.exports = { TAG, projectsOf, standupSearch, untrackedMoves, FILE, CHUNK, tierOf, mondayOf, plan, applyChanged, noteFull, sprintDue, sprintRead, pin, counts, runStats, fullDue, read, fileOf };
@@ -37,6 +37,7 @@ const STALE_MS = 26 * H; // the same as lib/task-jira.js: the Jira read
37
37
  const STUCK_DAYS = 5; // in progress with no change for this many days is worth a question
38
38
  const MAX_QUESTIONS = 8;
39
39
  const OTHER = 'Other work in the sprint';
40
+ const NEW = 'Not in PMOS yet'; // a ticket the standup search saw move and no read holds (initiative standup-from-one-read)
40
41
  const KEY_RE = /^[A-Z][A-Z0-9_]*-\d+$/;
41
42
  const isStr = (v) => typeof v === 'string';
42
43
  const ms = (v) => { const t = Date.parse(isStr(v) ? v : ''); return Number.isFinite(t) ? t : null; };
@@ -128,8 +129,9 @@ function build({ moves = [], snapshots = [], sprints = null, known = new Set(),
128
129
  .sort((a, b) => ms(a.at) - ms(b.at));
129
130
  const byKey = new Map();
130
131
  for (const m of inWin) { if (!byKey.has(m.k)) byKey.set(m.k, []); byKey.get(m.k).push(m); }
131
- const groupOf = (key, ini) => {
132
+ const groupOf = (key, ini, untracked) => {
132
133
  const e = R.get(key);
134
+ if (!e && !ini && untracked) return NEW;
133
135
  const i = ini || (e && e.ini);
134
136
  if (i) return titles.get(i) || i;
135
137
  const r = e && e.r;
@@ -142,7 +144,7 @@ function build({ moves = [], snapshots = [], sprints = null, known = new Set(),
142
144
  if (first.f === last.s) continue; // went back to where it started
143
145
  const e = R.get(key); const r = e ? e.r : null;
144
146
  moved.push({ key, summary: (r && r.summary) || last.n || '', from: first.f, fromCategory: first.fc || null, to: last.s, category: last.c || (r && r.category) || null,
145
- who: (r && r.assignee) || last.w || null, group: groupOf(key, last.i), url: (r && r.url) || null, inPmos: known.has(key), at: last.at });
147
+ who: (r && r.assignee) || last.w || null, group: groupOf(key, last.i, last.u === 1), url: (r && r.url) || null, inPmos: known.has(key), at: last.at });
146
148
  }
147
149
  // resolved in the window with no move kept (a ticket first read already done, or the first day after the release)
148
150
  // Jira gives the resolution as a day: a ticket with an earlier move kept, or a last update before the window, closed before it.
@@ -160,7 +162,8 @@ function build({ moves = [], snapshots = [], sprints = null, known = new Set(),
160
162
  moved.sort((a, b) => (rank[a.category] ?? 3) - (rank[b.category] ?? 3) || a.key.localeCompare(b.key, 'en', { numeric: true }));
161
163
  const groups = [];
162
164
  for (const m of moved) { let g = groups.find((x) => x.name === m.group); if (!g) { g = { name: m.group, items: [] }; groups.push(g); } g.items.push(m); }
163
- groups.sort((a, b) => (a.name === OTHER) - (b.name === OTHER) || b.items.length - a.items.length || a.name.localeCompare(b.name));
165
+ const tail = (g) => (g.name === NEW ? 2 : g.name === OTHER ? 1 : 0);
166
+ groups.sort((a, b) => tail(a) - tail(b) || b.items.length - a.items.length || a.name.localeCompare(b.name));
164
167
 
165
168
  // worth a question, the most pressing kind first
166
169
  const q = [];
@@ -227,4 +230,21 @@ function render(d) {
227
230
  return out;
228
231
  }
229
232
 
233
+ /** The health number of standup-from-one-read: moves of tickets no initiative holds, kept in the last `days` days. */
234
+ function untrackedCount(root, { days = 7, now = Date.now() } = {}) {
235
+ const from = now - days * DAY;
236
+ return readMoves(root).filter((m) => m.u === 1 && ms(m.at) >= from && ms(m.at) <= now).length;
237
+ }
238
+
239
+ // `node lib/tracker-digest.js untracked [root] [--days N]`: the count on the last line
240
+ function main(a) {
241
+ if (a[0] !== 'untracked') { process.stderr.write('usage: node lib/tracker-digest.js untracked [root] [--days N]\n'); process.exitCode = 2; return null; }
242
+ let days = 7; let dir = '.';
243
+ for (let i = 1; i < a.length; i++) { if (a[i] === '--days') { const v = Number(a[++i]); if (Number.isFinite(v) && v > 0) days = v; } else dir = a[i]; }
244
+ const n = untrackedCount(path.resolve(dir), { days });
245
+ process.stdout.write(`[standup-from-one-read] moves of tickets no initiative holds, last ${days} days\n${n}\n`);
246
+ return n;
247
+ }
248
+ const ran = require.main === module ? main(process.argv.slice(2)) : null;
249
+
230
250
  module.exports = { FILE, STALE_MS, STUCK_DAYS, MAX_QUESTIONS, OTHER, fileOf, movesOf, append, readMoves, windowOf, build, gather, render };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.760.0",
3
+ "version": "0.761.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.760.0",
9
+ "version": "0.761.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.760.0",
3
+ "version": "0.761.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",
@@ -23,7 +23,7 @@ Rules that always hold:
23
23
 
24
24
  Procedure:
25
25
  0. Ask what changed first, when the task names no initiative. Run `pmos jira query --changed`. It prints the searches of this refresh. Each search covers every ticket PMOS tracks, in every tier, so a backlog ticket pulled into the sprint or a done ticket reopened is seen now.
26
- - Each `search` line is one Jira search for the tracked tickets that changed since the last check. Run each one with the fields of step 2, at most 50 issues per page, and fetch every page. Save the pages in the scratch folder as in step 3, or give the saved files as they are. Then run `pmos jira sync --changed --from <page 1>,<page 2>,…` once, with the pages of every search. If no search returned an issue, write `{"issues": []}` to a scratch file and give that file. It patches the returned tickets into each initiative. A ticket that was not returned keeps its reading.
26
+ - Each `search` line is one Jira search for the tracked tickets that changed since the last check. Run each one with the fields of step 2, at most 50 issues per page, and fetch every page. Save the pages in the scratch folder as in step 3, or give the saved files as they are. Then run `pmos jira sync --changed --from <page 1>,<page 2>,…` once, with the pages of every search. If no search returned an issue, write `{"issues": []}` to a scratch file and give that file. It patches the returned tickets into each initiative. A ticket that was not returned keeps its reading. The search after the `standup` line asks for every status change in the projects PMOS reads, also for tickets no initiative names. Run it like the others and give its pages in the same `--from`. `pmos` keeps those moves for the standup digest.
27
27
  - Each `full` line is an initiative due a full read (a new link, or the weekly full read): the initiative id, a tab, the search. Do steps 2 to 4 for that initiative with that search.
28
28
  - If there was no `full` line and `pmos jira sync --changed` printed "no tracked ticket changed", run `pmos refresh same jira`, finish with "Checked: no change in Jira since the last check", and stop.
29
29
  - Otherwise skip step 1 and go to step 4a.
@@ -1,5 +1,9 @@
1
1
  {
2
- "_comment": "daily-digest-from-tracker: the status moves each Jira read keeps (lib/jira-status.js → <state>/tracker/jira/_moves.jsonl) and the standup digest folded from them and the stored reads (lib/tracker-digest.js, `pmos jira digest`), on a synthetic repository with no network.",
3
- "modules": ["tracker-digest.test.js"],
4
- "seconds": { "tracker-digest.test.js": 2 }
2
+ "_comment": "daily-digest-from-tracker: the status moves each Jira read keeps (lib/jira-status.js \u2192 <state>/tracker/jira/_moves.jsonl) and the standup digest folded from them and the stored reads (lib/tracker-digest.js, `pmos jira digest`), on a synthetic repository with no network. Also standup-from-one-read (SU1 to SU9): the daily read's standup search (lib/jira-tiers.js) keeps the status moves of tickets no initiative holds.",
3
+ "modules": [
4
+ "tracker-digest.test.js"
5
+ ],
6
+ "seconds": {
7
+ "tracker-digest.test.js": 3
8
+ }
5
9
  }