ai-agentmanager 1.67.0 → 1.68.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/CHANGELOG.md +6 -0
- package/README.md +12 -5
- package/package.json +1 -1
- package/src/weekly.js +136 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.68.0 (2026-11-24)
|
|
4
|
+
|
|
5
|
+
- **Weekly summary: technical, with no money amounts.** The AI cost and the dollar value are gone. Under each delivered piece the summary now says **How** it was done (from the agent's brief), what was **Changed** (files, lines, folders, test files) and how it was **Checked** (checks passed, commands recorded with their output, breaks caught by the tests, the scorecard, named risks avoided, reviews).
|
|
6
|
+
- **Technical summary for the week.** Files and lines changed, the areas of the code touched, verification, tests tested, the average review scorecard, risks named and avoided, change requests, and the engines and models used.
|
|
7
|
+
- **The hours estimate covers exactly the pieces listed**, and says how many of them it is for.
|
|
8
|
+
|
|
3
9
|
## 1.67.0 (2026-11-23)
|
|
4
10
|
|
|
5
11
|
- **Weekly summary for management.** **Work record → Weekly summary**, or `agentmgr weekly`, gives one page on a week's work and achievements: the week in one line, highlights, what merged and finished by project with links, bugs fixed, the numbers against the week before, the estimated value, how the merged work held up, what is in progress and what is blocked. Last week, or this week so far (`--current`).
|
package/README.md
CHANGED
|
@@ -1435,10 +1435,11 @@ Agents started this way are marked **⚡ GitHub** or **⚡ webhook**, Slack aler
|
|
|
1435
1435
|
|
|
1436
1436
|
| Section | What it holds |
|
|
1437
1437
|
| --- | --- |
|
|
1438
|
-
| The week in one line | Pull requests merged and across how many projects, tasks finished, bugs fixed, engineering hours delivered |
|
|
1439
|
-
| Highlights | The three pieces of work
|
|
1440
|
-
| Achievements | What merged, by project, with links
|
|
1441
|
-
| Numbers | Merged, opened, bugs fixed, issues filed, tasks finished
|
|
1438
|
+
| The week in one line | Pull requests merged and across how many projects, tasks finished, bugs fixed, engineering hours delivered (an estimate) |
|
|
1439
|
+
| Highlights | The three largest pieces of work, each with a sentence on what it is and how it was done |
|
|
1440
|
+
| Achievements | What merged, by project, with links and bug keys; then what finished without a merge; bugs fixed; issues filed. Under each piece: **How** it was done, what was **Changed**, and how it was **Checked** |
|
|
1441
|
+
| Numbers | Merged, opened, bugs fixed, issues filed, tasks finished and hours to merge, against the week before; and the estimated size in engineering hours |
|
|
1442
|
+
| Technical summary | Files and lines changed, the areas of the code touched, checks passed and commands recorded, tests tested, the average review scorecard, risks named and avoided, change requests, and the engines and models used |
|
|
1442
1443
|
| Quality | How many of the week's merged pull requests held up, and the ones reverted or fixed afterwards |
|
|
1443
1444
|
| In progress | Open work by project: in review or in progress |
|
|
1444
1445
|
| Blocked | What needs a decision or help, with what it waits for |
|
|
@@ -1448,7 +1449,13 @@ Agents started this way are marked **⚡ GitHub** or **⚡ webhook**, Slack aler
|
|
|
1448
1449
|
- **Nothing is sent.** It is a draft for you to read and pass on.
|
|
1449
1450
|
- **Private work stays private.** Work that is [kept private](#kept-private-possibly-patentable-work-is-not-sent-out) is counted and listed as "(kept private)", with no title, link or description.
|
|
1450
1451
|
|
|
1451
|
-
It is
|
|
1452
|
+
**It is technical, with no money amounts.** Under each delivered piece:
|
|
1453
|
+
|
|
1454
|
+
- **How:** the first sentences of the Solution in the agent's brief.
|
|
1455
|
+
- **Changed:** files and lines of its merged pull request, the folders they are in, and how many are test files.
|
|
1456
|
+
- **Checked:** checks passed and failed, commands recorded with their output ([Proof](#proof-what-it-ran-and-what-it-did-not-do)), breaks caught ([Test the tests](#test-the-tests-would-they-notice-a-mistake)), the scorecard, named risks avoided, reviews and change requests.
|
|
1457
|
+
|
|
1458
|
+
It is put together from what is already recorded, with no model call: the [work record](#work-record), the agents' briefs, [Quality](#quality-what-happened-after-the-merge) for the files and lines of merged pull requests, and [Value](#value) for the sentence on each piece and its estimated engineering hours. A line appears only when there is something to say: an agent that was removed keeps what was recorded as its pull request merged, and loses the rest.
|
|
1452
1459
|
|
|
1453
1460
|
## Value
|
|
1454
1461
|
|
package/package.json
CHANGED
package/src/weekly.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// Weekly summary: one page on a week's work and achievements, written for management. It is put
|
|
2
2
|
// together from what is already recorded, with no model call:
|
|
3
3
|
// the work record (worklog.js) - pull requests merged and opened, bugs fixed, issues filed
|
|
4
|
-
// Value (value.js) - what each delivered piece is, and the hours
|
|
4
|
+
// Value (value.js) - what each delivered piece is, and the engineering hours estimated
|
|
5
|
+
// the agents' own briefs - how each piece was done, how it was checked, the risks named
|
|
5
6
|
// Quality (quality.js) - how the week's merged pull requests held up
|
|
6
7
|
// the agents as they are now - what is in progress, and what is blocked
|
|
8
|
+
// It is a technical summary: what was built and how it was verified. No money amounts are shown.
|
|
7
9
|
// Work that is kept private (private.js) is counted but not described: no title and no link.
|
|
8
10
|
// It is a draft for you: shown, copied or saved as a file. Nothing is sent to anyone.
|
|
9
11
|
import fs from 'node:fs';
|
|
@@ -12,7 +14,7 @@ import { paths } from './config.js';
|
|
|
12
14
|
import { dayKey } from './budgets.js';
|
|
13
15
|
import { keptPrivate } from './private.js';
|
|
14
16
|
import { totals as qualityTotals } from './quality.js';
|
|
15
|
-
import { itemValue
|
|
17
|
+
import { itemValue } from './value.js';
|
|
16
18
|
import { weekRow, weekStart } from './worklog.js';
|
|
17
19
|
|
|
18
20
|
const DAY = 86_400_000;
|
|
@@ -22,9 +24,68 @@ const clip = (s, n = 140) => {
|
|
|
22
24
|
return t.length > n ? `${t.slice(0, n - 1)}…` : t;
|
|
23
25
|
};
|
|
24
26
|
const plural = (n, one, many = `${one}s`) => `${n} ${n === 1 ? one : many}`;
|
|
25
|
-
const money = (n) => (n == null ? '—' : `$${Math.round(n).toLocaleString('en-US')}`);
|
|
26
27
|
const dayLabel = (t) => new Date(t).toLocaleDateString('en-US', { month: 'short', day: 'numeric' });
|
|
27
28
|
|
|
29
|
+
/** The first sentence or two of a text, cut to size: how a piece of work was done, from its brief's Solution. */
|
|
30
|
+
export function gist(text, max = 240) {
|
|
31
|
+
const t = String(text ?? '').replace(/```[\s\S]*?```/g, ' ').replace(/^\s*#.*$/gm, ' ').replace(/^[>*\-\s]+/gm, '').replace(/\s+/g, ' ').trim();
|
|
32
|
+
if (!t) return '';
|
|
33
|
+
const two = /^(.+?[.!?])(\s+.+?[.!?])?(?=\s|$)/.exec(t);
|
|
34
|
+
return clip(two ? two[0] : t, max);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** The part of the code a file is in: its first two folders ("src/engines"), or "(top level)". */
|
|
38
|
+
export const areaOf = (file) => {
|
|
39
|
+
const parts = String(file).split('/');
|
|
40
|
+
return parts.length > 1 ? parts.slice(0, Math.min(2, parts.length - 1)).join('/') : '(top level)';
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The technical side of one piece of work, from the agent as it is now and from Quality's record
|
|
45
|
+
* of its merged pull request: how it was done, what it touched, and how it was checked.
|
|
46
|
+
*/
|
|
47
|
+
export function techOf(agent, q = null) {
|
|
48
|
+
const b = agent?.brief ?? {};
|
|
49
|
+
const checks = b.checks ?? [];
|
|
50
|
+
const sc = agent?.docs?.scorecard?.data;
|
|
51
|
+
const br = agent?.breaks?.baseline?.ok ? agent.breaks.breaks ?? [] : null;
|
|
52
|
+
const n = (st) => br.filter((x) => x.status === st).length;
|
|
53
|
+
const risks = b.risks ?? [];
|
|
54
|
+
const files = q?.facts?.files ?? [];
|
|
55
|
+
const areas = {};
|
|
56
|
+
for (const f of files) areas[areaOf(f)] = (areas[areaOf(f)] ?? 0) + 1;
|
|
57
|
+
return {
|
|
58
|
+
how: gist(b.solution),
|
|
59
|
+
files: files.length || null,
|
|
60
|
+
lines: q?.facts?.lines ?? null,
|
|
61
|
+
areas: Object.entries(areas).sort((x, y) => y[1] - x[1]).slice(0, 3).map(([k]) => k),
|
|
62
|
+
testFiles: files.filter((f) => /(^|\/)(tests?|__tests__|spec|specs)\/|[._-](test|spec)\.[a-z]+$|_test\.go$/i.test(f)).length,
|
|
63
|
+
checksPassed: checks.filter((c) => c.state === 'passed').length,
|
|
64
|
+
checksFailed: checks.filter((c) => c.state === 'failed').length,
|
|
65
|
+
proof: agent?.proofDoc?.commands ?? 0,
|
|
66
|
+
breaks: br && n('caught') + n('missed') ? { caught: n('caught'), tried: n('caught') + n('missed') } : q?.said?.breaks ?? null,
|
|
67
|
+
score: Number.isFinite(sc?.overall) ? sc.overall : q?.said?.score ?? null,
|
|
68
|
+
risks: risks.length ? { named: risks.length, avoided: risks.filter((r) => r.state === 'avoided').length, happened: risks.filter((r) => r.state === 'happened').length } : null,
|
|
69
|
+
reviews: q?.facts?.reviews ?? null,
|
|
70
|
+
changesRequested: q?.facts?.changesRequested ?? null,
|
|
71
|
+
engine: agent?.engine ?? q?.said?.engine ?? null,
|
|
72
|
+
model: agent?.model ?? q?.said?.model ?? null,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** How one piece was checked, in a line: "4 checks passed, 3 with recorded runs; tests tested: 5 of 6 breaks caught; scorecard 86". */
|
|
77
|
+
export function checkedLine(t) {
|
|
78
|
+
if (!t) return '';
|
|
79
|
+
const out = [];
|
|
80
|
+
if (t.checksPassed || t.checksFailed) out.push(`${plural(t.checksPassed, 'check')} passed${t.checksFailed ? `, ${t.checksFailed} failed` : ''}`);
|
|
81
|
+
if (t.proof) out.push(`${plural(t.proof, 'command')} recorded with ${t.proof === 1 ? 'its' : 'their'} output`);
|
|
82
|
+
if (t.breaks) out.push(`tests tested: ${t.breaks.caught} of ${plural(t.breaks.tried, 'break')} caught`);
|
|
83
|
+
if (t.score != null) out.push(`scorecard ${t.score}`);
|
|
84
|
+
if (t.risks) out.push(`${t.risks.avoided} of ${plural(t.risks.named, 'named risk')} avoided${t.risks.happened ? `, ${t.risks.happened} happened` : ''}`);
|
|
85
|
+
if (t.reviews) out.push(`${plural(t.reviews, 'review')}${t.changesRequested ? `, ${plural(t.changesRequested, 'change request')}` : ''}`);
|
|
86
|
+
return out.join('; ');
|
|
87
|
+
}
|
|
88
|
+
|
|
28
89
|
/** The Monday a week's summary starts on: the week before `t`, or the one `t` is in. */
|
|
29
90
|
export const weekOf = (t = Date.now(), { current = false } = {}) => (current ? weekStart(t) : weekStart(weekStart(t) - DAY));
|
|
30
91
|
|
|
@@ -46,13 +107,55 @@ export function weeklyFacts({ start, events = [], spend = {}, value = null, qual
|
|
|
46
107
|
|
|
47
108
|
// What each delivered piece is, in Value's words, with its estimate.
|
|
48
109
|
const vItems = (value?.items ?? []).filter((it) => !it.excluded && inWeek(it.deliveredAt));
|
|
49
|
-
const worth = value ? valueTotals(vItems, value.settings) : null;
|
|
50
110
|
const said = new Map(vItems.map((it) => [it.agentId, itemValue(it, value.settings)]));
|
|
51
111
|
for (const e of [...merged, ...finished]) {
|
|
52
112
|
const v = e.agentId && said.get(e.agentId);
|
|
53
113
|
if (v?.summary) e.summary = clip(v.summary, 200);
|
|
54
114
|
if (v?.humanHours != null) e.hours = v.humanHours;
|
|
55
115
|
}
|
|
116
|
+
// The technical side of each: how it was done, what it touched, how it was checked.
|
|
117
|
+
const byId = new Map(agents.map((x) => [x.agent.id, x.agent]));
|
|
118
|
+
const qBy = new Map((quality?.items ?? []).map((it) => [it.url, it]));
|
|
119
|
+
for (const e of [...merged, ...finished]) {
|
|
120
|
+
if (e.private || !e.agentId) continue;
|
|
121
|
+
const q = (e.link && qBy.get(e.link)) || null;
|
|
122
|
+
if (byId.get(e.agentId) || q) e.tech = techOf(byId.get(e.agentId), q);
|
|
123
|
+
}
|
|
124
|
+
const techs = [...merged, ...finished].map((e) => e.tech).filter(Boolean);
|
|
125
|
+
const sum = (f) => techs.reduce((n, t) => n + (f(t) || 0), 0);
|
|
126
|
+
const areaCount = {};
|
|
127
|
+
for (const e of merged) for (const f of (e.link && qBy.get(e.link)?.facts?.files) || []) if (!e.private) areaCount[areaOf(f)] = (areaCount[areaOf(f)] ?? 0) + 1;
|
|
128
|
+
const scores = techs.map((t) => t.score).filter(Number.isFinite);
|
|
129
|
+
const tested = techs.filter((t) => t.breaks);
|
|
130
|
+
const models = {};
|
|
131
|
+
for (const t of techs) if (t.engine) models[`${t.engine}${t.model ? ` · ${t.model}` : ''}`] = (models[`${t.engine}${t.model ? ` · ${t.model}` : ''}`] ?? 0) + 1;
|
|
132
|
+
const technical = techs.length
|
|
133
|
+
? {
|
|
134
|
+
pieces: techs.length,
|
|
135
|
+
files: sum((t) => t.files),
|
|
136
|
+
lines: sum((t) => t.lines),
|
|
137
|
+
testFiles: sum((t) => t.testFiles),
|
|
138
|
+
areas: Object.entries(areaCount).sort((x, y) => y[1] - x[1]).slice(0, 6).map(([area, files]) => ({ area, files })),
|
|
139
|
+
checksPassed: sum((t) => t.checksPassed),
|
|
140
|
+
checksFailed: sum((t) => t.checksFailed),
|
|
141
|
+
proof: sum((t) => t.proof),
|
|
142
|
+
tested: tested.length,
|
|
143
|
+
breaksCaught: tested.reduce((n, t) => n + t.breaks.caught, 0),
|
|
144
|
+
breaksTried: tested.reduce((n, t) => n + t.breaks.tried, 0),
|
|
145
|
+
score: scores.length ? Math.round(scores.reduce((a, b) => a + b, 0) / scores.length) : null,
|
|
146
|
+
scored: scores.length,
|
|
147
|
+
risksNamed: sum((t) => t.risks?.named),
|
|
148
|
+
risksAvoided: sum((t) => t.risks?.avoided),
|
|
149
|
+
risksHappened: sum((t) => t.risks?.happened),
|
|
150
|
+
changesRequested: sum((t) => t.changesRequested),
|
|
151
|
+
models: Object.entries(models).sort((x, y) => y[1] - x[1]).map(([name, n]) => ({ name, n })),
|
|
152
|
+
}
|
|
153
|
+
: null;
|
|
154
|
+
|
|
155
|
+
// The size of the week, over the pieces listed: the hours a person would have needed, as Value estimates them.
|
|
156
|
+
const listed = [...merged, ...finished].filter((e) => !e.private);
|
|
157
|
+
const sized = listed.filter((e) => e.hours != null);
|
|
158
|
+
const size = sized.length ? { hours: Math.round(sized.reduce((n, e) => n + e.hours, 0) * 10) / 10, estimated: sized.length, pieces: listed.length } : null;
|
|
56
159
|
// The three worth the most, as the week's highlights.
|
|
57
160
|
const highlights = [...merged, ...finished]
|
|
58
161
|
.filter((e) => !e.private && e.hours != null)
|
|
@@ -89,7 +192,8 @@ export function weeklyFacts({ start, events = [], spend = {}, value = null, qual
|
|
|
89
192
|
bugs: of('bug_fixed'),
|
|
90
193
|
filed: of('issue_filed'),
|
|
91
194
|
highlights,
|
|
92
|
-
|
|
195
|
+
technical,
|
|
196
|
+
size,
|
|
93
197
|
quality: held,
|
|
94
198
|
problems: qItems.filter((it) => it.after?.reverted || it.after?.fixes?.length).map((it) => ({ title: hidden.has(it.agentId) ? PRIVATE : clip(it.title), link: hidden.has(it.agentId) ? null : it.url, what: it.after?.reverted ? 'reverted' : 'fixed afterwards' })),
|
|
95
199
|
blocked: open.filter((o) => o.state === 'blocked'),
|
|
@@ -100,6 +204,14 @@ export function weeklyFacts({ start, events = [], spend = {}, value = null, qual
|
|
|
100
204
|
}
|
|
101
205
|
|
|
102
206
|
const item = (e) => `${e.link ? `[${e.title}](${e.link})` : e.title}${e.bugs ? ` (${e.bugs})` : ''}${e.summary ? `: ${e.summary}` : ''}`;
|
|
207
|
+
/** A delivered piece with its technical side under it: how it was done, what it touched, how it was checked. */
|
|
208
|
+
const piece = (e) => {
|
|
209
|
+
const t = e.tech;
|
|
210
|
+
if (!t) return item(e);
|
|
211
|
+
const touched = t.files ? `${plural(t.files, 'file')}${t.lines ? `, ${plural(t.lines, 'line')}` : ''}${t.areas.length ? ` in ${t.areas.join(', ')}` : ''}${t.testFiles ? `; ${plural(t.testFiles, 'test file')}` : ''}` : '';
|
|
212
|
+
const checked = checkedLine(t);
|
|
213
|
+
return [item(e), ...(t.how ? [` - How: ${t.how}`] : []), ...(touched ? [` - Changed: ${touched}`] : []), ...(checked ? [` - Checked: ${checked}`] : [])].join('\n');
|
|
214
|
+
};
|
|
103
215
|
const byProject = (list, each) => {
|
|
104
216
|
const out = [];
|
|
105
217
|
for (const p of [...new Set(list.map((e) => e.project))]) {
|
|
@@ -120,15 +232,15 @@ export function weeklyMarkdown(f, { who = '' } = {}) {
|
|
|
120
232
|
if (r.prs_merged) parts.push(`${plural(r.prs_merged, 'pull request')} merged${f.projects.length > 1 ? ` across ${f.projects.length} projects` : f.projects.length === 1 ? ` in ${f.projects[0]}` : ''}`);
|
|
121
233
|
if (f.finished.length) parts.push(`${plural(f.finished.length, 'more task')} finished`);
|
|
122
234
|
if (r.bugs_fixed) parts.push(`${plural(r.bugs_fixed, 'bug')} fixed`);
|
|
123
|
-
if (f.
|
|
235
|
+
if (f.size) parts.push(`about ${f.size.hours} hours of engineering work delivered (an estimate)`);
|
|
124
236
|
out.push('## The week in one line', '', parts.length ? `${parts.join('; ')}.` : 'Work is in progress; nothing was delivered yet.', '');
|
|
125
237
|
|
|
126
|
-
if (f.highlights.length) out.push('## Highlights', '', ...f.highlights.map((e) => `- **${e.title}** (${e.project})${e.summary ? `: ${e.summary}` : ''}`), '');
|
|
238
|
+
if (f.highlights.length) out.push('## Highlights', '', ...f.highlights.map((e) => `- **${e.title}** (${e.project})${e.summary ? `: ${e.summary}` : ''}${e.tech?.how ? ` ${e.tech.how}` : ''}`), '');
|
|
127
239
|
|
|
128
240
|
if (done) {
|
|
129
241
|
out.push('## Achievements', '');
|
|
130
|
-
if (f.merged.length) out.push('### Merged', '', ...byProject(f.merged,
|
|
131
|
-
if (f.finished.length) out.push('### Finished, not merged yet or with no pull request', '', ...byProject(f.finished,
|
|
242
|
+
if (f.merged.length) out.push('### Merged', '', ...byProject(f.merged, piece));
|
|
243
|
+
if (f.finished.length) out.push('### Finished, not merged yet or with no pull request', '', ...byProject(f.finished, piece));
|
|
132
244
|
}
|
|
133
245
|
if (f.bugs.length) out.push('### Bugs fixed', '', ...f.bugs.map((e) => `- ${item(e)}`), '');
|
|
134
246
|
if (f.filed.length) out.push('### Issues filed', '', ...f.filed.map((e) => `- ${item(e)}`), '');
|
|
@@ -136,9 +248,21 @@ export function weeklyMarkdown(f, { who = '' } = {}) {
|
|
|
136
248
|
const p = f.prev;
|
|
137
249
|
const num = (label, a, b) => `| ${label} | ${a === '' || a == null ? '—' : a} | ${b === '' || b == null ? '—' : b} |`;
|
|
138
250
|
out.push('## Numbers', '', '| | This week | Week before |', '| --- | --- | --- |');
|
|
139
|
-
out.push(num('Pull requests merged', r.prs_merged, p.prs_merged), num('Pull requests opened', r.prs_opened, p.prs_opened), num('Bugs fixed', r.bugs_fixed, p.bugs_fixed), num('Issues filed', r.issues_filed, p.issues_filed), num('Tasks finished', r.agents_finished, p.agents_finished), num('Hours from opened to merged (median)', r.median_hours_to_merge, p.median_hours_to_merge),
|
|
140
|
-
if (f.
|
|
141
|
-
|
|
251
|
+
out.push(num('Pull requests merged', r.prs_merged, p.prs_merged), num('Pull requests opened', r.prs_opened, p.prs_opened), num('Bugs fixed', r.bugs_fixed, p.bugs_fixed), num('Issues filed', r.issues_filed, p.issues_filed), num('Tasks finished', r.agents_finished, p.agents_finished), num('Hours from opened to merged (median)', r.median_hours_to_merge, p.median_hours_to_merge), '');
|
|
252
|
+
if (f.size) out.push(`Estimated size: about ${f.size.hours} hours of engineering work for ${f.size.estimated} of the ${plural(f.size.pieces, 'piece')} listed. An estimate of what a person would have needed, not a measurement.`, '');
|
|
253
|
+
|
|
254
|
+
const k = f.technical;
|
|
255
|
+
if (k) {
|
|
256
|
+
out.push('## Technical summary', '');
|
|
257
|
+
if (k.files) out.push(`- **Code:** ${plural(k.files, 'file')} and ${plural(k.lines, 'line')} changed in merged pull requests${k.testFiles ? `, ${plural(k.testFiles, 'test file')} among them` : ''}.`);
|
|
258
|
+
if (k.areas.length) out.push(`- **Areas touched:** ${k.areas.map((a) => `${a.area} (${a.files})`).join(', ')}.`);
|
|
259
|
+
if (k.checksPassed || k.checksFailed) out.push(`- **Verification:** ${plural(k.checksPassed, 'check')} passed${k.checksFailed ? `, ${k.checksFailed} failed` : ''} across ${plural(k.pieces, 'piece')} of work${k.proof ? `; ${plural(k.proof, 'command')} recorded with ${k.proof === 1 ? 'its' : 'their'} output, so ${k.proof === 1 ? 'it' : 'they'} can be run again` : ''}.`);
|
|
260
|
+
if (k.tested) out.push(`- **Tests tested:** on ${plural(k.tested, 'piece')}, ${k.breaksCaught} of ${plural(k.breaksTried, 'deliberate break')} in the changed code ${k.breaksCaught === 1 ? 'was' : 'were'} caught by the tests.`);
|
|
261
|
+
if (k.scored) out.push(`- **Review scorecard:** ${k.score} of 100 on average over ${plural(k.scored, 'piece')}.`);
|
|
262
|
+
if (k.risksNamed) out.push(`- **Risks named before starting:** ${k.risksNamed}; ${k.risksAvoided} avoided${k.risksHappened ? `, ${k.risksHappened} happened` : ''}${k.risksNamed - k.risksAvoided - k.risksHappened ? `, ${k.risksNamed - k.risksAvoided - k.risksHappened} not checked` : ''}.`);
|
|
263
|
+
if (k.changesRequested) out.push(`- **Review:** changes were requested ${plural(k.changesRequested, 'time')} before merging.`);
|
|
264
|
+
if (k.models.length) out.push(`- **Done with:** ${k.models.map((m) => `${m.name} (${m.n})`).join(', ')}.`);
|
|
265
|
+
out.push('');
|
|
142
266
|
}
|
|
143
267
|
|
|
144
268
|
if (f.quality) {
|