Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.
Rust ai-agentsai-assistantai-botautomationbotbots-teamchatbotclaude-duetgrokgrok-botgrok-bot-alternativeharnessllmmulti-agentopenai-dotsopenbotpersonal-agentrustself-hostedselfhosted-ai
Activity words for lead review asked and spec (19c) (#685)
Oleksandr Ivanchenko0bbd31210245
diff --git a/frontend/src/missions.ts b/frontend/src/missions.tsindex 2207e058..773c0a78 100644--- a/frontend/src/missions.ts+++ b/frontend/src/missions.ts@@ -1573,6 +1573,16 @@ export function eventText(e: TaskEvent, names: Record<string, string> = {}): strreturn `A check ${str(d.status) === 'passed' ? 'passed' : str(d.status) === 'error' ? 'couldn’t run' : 'failed'}`;case 'review':return `${Who} reviewed it: ${str(d.verdict) === 'pass' ? 'pass' : 'fail'}${note ? `. ${note}` : ''}`;+ case 'lead_review_asked': {+ // listener.rs REVIEW_ASKED: kwant asks the team lead to look at a hand-off card (at most twice).+ const lead = str(d.lead_kwant_id);+ return `${Who} asked ${(lead && names[lead]) || 'the lead'} to review the hand-off`;+ }+ case 'spec': {+ // auditor.rs SPEC_EVENT: the bot's own "what done means" lines, written before a high-impact task starts.+ const n = Array.isArray(d.lines) ? d.lines.length : 0;+ return `${Who} wrote down what done means${n ? ` (${n} ${n === 1 ? 'point' : 'points'})` : ''}`;+ }case 'budget':return 'It reached its token limit';case 'edited':diff --git a/frontend/tests/auditLineEverywhere.test.mjs b/frontend/tests/auditLineEverywhere.test.mjsindex 6e5ba572..edb7f52b 100644--- a/frontend/tests/auditLineEverywhere.test.mjs+++ b/frontend/tests/auditLineEverywhere.test.mjs@@ -151,9 +151,27 @@ test('checkpoint_pruned is quiet', () => {// when an emitter writes a kind that isn't on it.const SERVER_KINDS = JSON.parse(read('src/generated/taskEventKinds.json'));-// Server kinds that still have no plain words (17d found them; their copy is Iris's). Each one is shown as-// "Kwant: <raw kind>" until eventText words it; then remove it here, and the guard below covers it.-const NEEDS_COPY = ['lead_review_asked', 'spec'];+// Server kinds that still have no plain words. Each one is shown as "Kwant: <raw kind>" until eventText words it;+// then remove it here, and the guard below covers it. Empty since 19c; keep it so the next new kind lands here.+const NEEDS_COPY = [];++test('lead_review_asked: kwant asked the lead, by name when known', () => {+ const names = { lead1: 'Ada' };+ assert.equal(m.eventText(ev('lead_review_asked', { delegation_id: 'd1', lead_kwant_id: 'lead1' }), names), 'Kwant asked Ada to review the hand-off');+ assert.equal(m.eventText(ev('lead_review_asked', { lead_kwant_id: 'gone' }), names), 'Kwant asked the lead to review the hand-off');+ assert.equal(m.eventText(ev('lead_review_asked', {})), 'Kwant asked the lead to review the hand-off');+ assert.equal(m.eventText({ ...ev('lead_review_asked'), detail: null }), 'Kwant asked the lead to review the hand-off');+});++test('spec: the bot wrote down what done means, with a count of points', () => {+ const bot = (detail) => ({ ...ev('spec', detail), actor: 'k1', actor_name: 'Lin' });+ assert.equal(m.eventText(bot({ lines: ['a', 'b', 'c'] })), 'Lin wrote down what done means (3 points)');+ assert.equal(m.eventText(bot({ lines: ['a'] })), 'Lin wrote down what done means (1 point)');+ assert.equal(m.eventText(bot({ lines: [] })), 'Lin wrote down what done means');+ assert.equal(m.eventText(bot({ lines: 'not a list' })), 'Lin wrote down what done means');+ assert.equal(m.eventText({ ...bot({}), detail: null }), 'Lin wrote down what done means');+ assert.equal(m.isQuietEvent({ kind: 'spec' }), false);+});test('the server list is the checked-in JSON, and the kinds waiting for copy are on it and still raw', () => {assert.ok(Array.isArray(SERVER_KINDS) && SERVER_KINDS.length > 50, 'the list loaded');