The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
Batch P: machine report light load (#2078), design system People are celebrated (#2081) (#2085)
0xken1507221fabe2b2
diff --git a/backend/integration/bench/README.md b/backend/integration/bench/README.mdindex 5e9d7bb6e..ce48598cd 100644--- a/backend/integration/bench/README.md+++ b/backend/integration/bench/README.md@@ -53,6 +53,14 @@ NODE_ENV=test HARNESS_CREDENTIAL_ENCRYPTION_KEY=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADATABASE_URL=mongodb://127.0.0.1:1/bench-never-used npx tsx integration/bench/oldStateReads.ts```+To see what one machine's report (`observeMachine`, every 15 s per machine) costs alone, its median time and what MongoDB+sent the backend for it, with and without the time checks, run the report diagnostic. It takes the same options:++```bash+NODE_ENV=test HARNESS_CREDENTIAL_ENCRYPTION_KEY=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= \+ DATABASE_URL=mongodb://127.0.0.1:1/bench-never-used npx tsx integration/bench/observeReads.ts+```+The bench's own tests (helpers, plus a short run of the whole scenario), and its typecheck:```bashdiff --git a/backend/integration/bench/observeReads.ts b/backend/integration/bench/observeReads.tsnew file mode 100644index 000000000..8cf827fe8--- /dev/null+++ b/backend/integration/bench/observeReads.ts@@ -0,0 +1,64 @@+import { performance } from 'node:perf_hooks'+import { SuperTabStore } from '../../src/superTabs/store.js'+import { AttemptCounter } from './attempts.js'+import { DRIVERS } from './bench.js'+import { parseArgs } from './config.js'+import { machineId, seedAccounts } from './fixtures.js'+import { localDatabase } from './mongo.js'+import { plan } from './plan.js'+import { bytesOut } from './probe.js'+import { seedSwarm } from './seed.js'++const RUNS = 30++/**+ * What one machine's report (store.ts observeMachine, every 15 s per machine) costs on the benchmark's Swarm, alone: the+ * median time and what MongoDB sent the backend for it (#876). A report runs the Swarm's time checks at most every 30 s+ * per server, so both are measured: a store that has just run them, and a fresh store each time, which runs them. Takes+ * the benchmark's options. From `backend/`:+ *+ * NODE_ENV=test HARNESS_CREDENTIAL_ENCRYPTION_KEY=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= \+ * DATABASE_URL=mongodb://127.0.0.1:1/bench-never-used npx tsx integration/bench/observeReads.ts+ */+async function main() {+ const { config, driver: driverName } = parseArgs(process.argv.slice(2))+ const database = await localDatabase()+ const { db } = database+ try {+ const people = await seedAccounts(db, config.machines)+ const driver = await DRIVERS[driverName]!(new AttemptCounter().wrap(db), () => people)+ const { swarm } = await seedSwarm(driver, config, plan(config), people)+ await driver.close()+ const owner = people[0]!+ const runningHarnessIds = (await new SuperTabStore(db).read(owner, swarm.tabId)).state.agents+ .filter(a => a.machineId === machineId(0)).map(a => a.harnessId)+ const report = (store: SuperTabStore, n: number) => store.observeMachine(owner, swarm.tabId, machineId(0), {+ generation: swarm.generations[0]!, quotas: [], tools: {}, runningHarnessIds, stoppedHarnessIds: [],+ resources: { cpuPercent: 10 + n % 50, memoryTotalBytes: 32e9, memoryUsedBytes: 4e9, diskFreeBytes: 120e9, diskTotalBytes: 500e9,+ projectDiskFreeBytes: 120e9, deviceType: 'Laptop', chip: 'Bench', os: 'macOS', gpuPercent: null } })+ const before = await bytesOut(db)+ const ownReply = await bytesOut(db) - before+ const median = (values: number[]) => [...values].sort((a, b) => a - b)[Math.floor(values.length / 2)]!+ const kept = new SuperTabStore(db)+ await report(kept, 0)+ for (const [label, store] of [['report', () => kept], ['report with time checks', () => new SuperTabStore(db)]] as const) {+ const ms: number[] = [], bytes: number[] = []+ for (let i = 0; i < RUNS; i++) {+ const each = store()+ const start = await bytesOut(db), started = performance.now()+ await report(each, i + 1)+ ms.push(performance.now() - started)+ bytes.push(Math.max(0, await bytesOut(db) - start - ownReply))+ }+ process.stdout.write(`${JSON.stringify({ read: label, runs: RUNS, medianMs: Number(median(ms).toFixed(2)),+ medianDatabaseKB: Number((median(bytes) / 1024).toFixed(1)) })}\n`)+ }+ } finally {+ await database.stop()+ }+}++main().catch(error => {+ process.stderr.write(`${error instanceof Error ? error.stack : String(error)}\n`)+ process.exitCode = 1+})diff --git a/backend/integration/superTabGroupPlans.test.ts b/backend/integration/superTabGroupPlans.test.tsindex debfe9954..56347fbe5 100644--- a/backend/integration/superTabGroupPlans.test.ts+++ b/backend/integration/superTabGroupPlans.test.ts@@ -175,6 +175,15 @@ describe('hot SwarmGroup reads name their index and read only what they return (expect(docs, JSON.stringify(reads)).toBeLessThanOrEqual(groups.length + 1)})+ it('a machine\'s report loads the Lead conversations and running work, never the open or quiet ones (#876)', async () => {+ let groups: string[] = []+ const reads = await profiled(async () => { groups = (await db.$transaction(tx => parts.loadObserved(tx, s.tabId, s.machineId))).groups.map(g => g.key) })+ expect(groups.sort()).toEqual([...s.leadConversations, s.web].sort())+ expectIndexed(reads)+ // Its working worker's private chats are read through that worker's conversations: here only its running one.+ expect(reads.reduce((n, r) => n + r.docsExamined, 0), JSON.stringify(reads)).toBeLessThanOrEqual(groups.length + 1)+ })+it('a command loads the Swarm\'s open conversations and those it names, each read through its index', async () => {const quiet = s.quietLead[5]!.keyfor (const [named, expected] of [diff --git a/backend/integration/superTabLiveness.test.ts b/backend/integration/superTabLiveness.test.tsindex 1e59b0e99..d4960c2df 100644--- a/backend/integration/superTabLiveness.test.ts+++ b/backend/integration/superTabLiveness.test.ts@@ -451,6 +451,104 @@ describe('work that loses its owner', () => {})})+/** A client that records the key of every SwarmGroup row a read returns. */+function recordingGroups() {+ const keys: string[] = []+ const client = db.$extends({ query: { swarmGroup: { async $allOperations({ args, query }) {+ const rows = await query(args)+ for (const row of Array.isArray(rows) ? rows as Array<{ key?: unknown }> : []) if (typeof row?.key === 'string') keys.push(row.key)+ return rows+ } } } }) as unknown as PrismaClient+ return { client, keys }+}++// Every machine reports every 15 s, and each report loaded, copied and compared the whole Swarm: about 1.1 MB for a busy one+// (#876). It reads only the conversations its checks read, whole, and writes only what it changed.+describe('a machine\'s report', () => {+ /** `n` conversations whose work finished but that are not yet quiet, each with a long brief: copies of a real one. */+ async function finishedGroups(f: Awaited<ReturnType<typeof swarm>>, n: number) {+ const first = String((await f.execute({ type: 'conversation.create', title: 'Finished', brief: 'b'.repeat(2000),+ checks: [{ description: 'Verified', independent: false }] })).result.conversationId)+ const { id: _id, ...row } = (await db.swarmGroup.findFirst({ where: { tabId: f.tab, key: first } }))!+ const assignment = { id: 'finished', agentId: f.worker, status: 'done', result: 'Shipped', configuration: config,+ execution: { machineId: 'test-host', harnessId: f.harness.worker, machineOwnerId: host.sub } }+ const keys = Array.from({ length: n }, (_, i) => `finished-${String(i).padStart(2, '0')}`)+ await db.swarmGroup.createMany({ data: keys.map((key, i) => ({ ...row, id: `${f.tab}:${key}`, key, ordinal: row.ordinal + i + 1,+ agentIds: [...row.agentIds, f.worker], workFinished: true,+ data: { ...row.data as object, id: key, title: key, agentIds: [...row.agentIds, f.worker], assignment } as Prisma.InputJsonValue })) })+ return keys+ }++ it('never reads a finished conversation, only the running work and Lead conversations its checks read', async () => {+ const recorded = recordingGroups()+ const f = await swarm({ client: recorded.client })+ const finished = await finishedGroups(f, 30)+ recorded.keys.length = 0+ // The first report of this store runs the time checks too (liveness.ts SWEEP_EVERY_MS).+ await f.beat(f.clock.now)+ expect(recorded.keys).toContain(f.group)+ expect(recorded.keys.filter(key => finished.includes(key))).toEqual([])+ // The report still did its work: both machines' readings are stored, and the worker keeps its task.+ expect((await f.assignment()).status).toBe('working')+ const machines = (await f.timed.read(owner, f.tab)).state.machines!+ expect(machines.map(m => m.observation?.receivedAt)).toEqual([f.clock.now, f.clock.now])+ })++ it('still loses a task through a light load, and leaves the finished conversations as they were', async () => {+ const f = await swarm()+ const finished = await finishedGroups(f, 3)+ const before = await db.swarmGroup.findMany({ where: { tabId: f.tab, key: { in: finished } }, orderBy: { key: 'asc' } })+ await f.beat(f.clock.now)+ f.clock.now += 2 * MINUTE + 5_000+ await f.observe('lead-host', [f.harness.lead])+ expect((await f.assignment()).status).toBe('lost')+ expect((await f.leadInbox()).filter(m => (m.source as { kind?: string }).kind === 'work-lost')).toHaveLength(1)+ expect(await db.swarmGroup.findMany({ where: { tabId: f.tab, key: { in: finished } }, orderBy: { key: 'asc' } })).toEqual(before)+ })++ it('finds the Leads conversation of a Swarm whose head never stored its id, as a full load does', async () => {+ const f = await swarm()+ const head = (await db.swarmHead.findFirst({ where: { tabId: f.tab } }))!+ const { leadsConversationId, ...rest } = head.data as { leadsConversationId?: string }+ expect(leadsConversationId).toBe(stableId(f.tab, 'leads'))+ await db.swarmHead.update({ where: { id: head.id }, data: { data: rest as Prisma.InputJsonValue } })+ await f.beat(f.clock.now)+ expect((await f.timed.read(owner, f.tab)).state.machines!.map(m => m.observation?.receivedAt)).toEqual([f.clock.now, f.clock.now])+ })++ // Ruling (#876): whether a worker leads a conversation is judged from the conversations the report loads, so a former Lead+ // named only on an old finished one is a worker like any other. Before, any open conversation it led kept its task forever.+ it('judges a former Lead still named on an old open conversation like any worker, and loses its task', async () => {+ const f = await swarm()+ const [old] = await finishedGroups(f, 1)+ const row = (await db.swarmGroup.findFirst({ where: { tabId: f.tab, key: old } }))!+ await db.swarmGroup.update({ where: { id: row.id }, data: { data: { ...row.data as object, leadId: f.worker } } })+ await f.beat(f.clock.now)+ f.clock.now += 2 * MINUTE + 5_000+ await f.observe('lead-host', [f.harness.lead])+ expect((await f.assignment()).status).toBe('lost')+ })++ it('credits no Lent hours to a worker that is in a private chat (leaderboard/lent.ts)', async () => {+ const f = await swarm()+ const lent = async () => (await db.swarmMachine.findFirst({ where: { tabId: f.tab, key: 'test-host' } }))!.data as+ { contribution?: { lent?: Array<{ busyMs?: number }> } }+ // Control: the worker's work is for someone else (the owner asked), so two readings credit it.+ await f.observe('test-host', [f.harness.worker])+ f.clock.now += 15_000+ await f.observe('test-host', [f.harness.worker])+ expect((await lent()).contribution?.lent?.[0]?.busyMs).toBe(15_000)+ const chat = String((await f.execute({ type: 'conversation.create', title: 'Peer and PM', brief: '', checks: [] })).result.conversationId)+ await f.execute({ type: 'conversation.agent', conversationId: chat, agentId: f.worker, present: true, lead: false })+ const row = (await db.swarmGroup.findFirst({ where: { tabId: f.tab, key: chat } }))!+ const generation = (await f.timed.read(owner, f.tab)).state.people.find(p => p.id === owner.sub)!.generation+ await db.swarmGroup.update({ where: { id: row.id }, data: { data: { ...row.data as object, audience: { people: [{ id: owner.sub, generation }] } } } })+ f.clock.now += 15_000+ await f.observe('test-host', [f.harness.worker])+ expect((await lent()).contribution?.lent?.[0]?.busyMs).toBe(15_000)+ })+})+// After a release every machine went offline for about 2 minutes while its CLI updated: 16 tasks were lost, their agents came// back, and every assignment to the same agent was refused as busy for good, even after the Lead cancelled the lost task.describe('an agent whose task was lost', () => {diff --git a/backend/src/superTabs/parts/index.ts b/backend/src/superTabs/parts/index.tsindex 4467e3182..86eb2fc42 100644--- a/backend/src/superTabs/parts/index.ts+++ b/backend/src/superTabs/parts/index.ts@@ -7,6 +7,6 @@ export * from './types.js'export { clock, createClock } from './clock.js'export { knownKind, reassemble, split, toLegacyState } from './shape.js'-export { insertParts, lastChangedAt, loadActive, loadAll, loadChanged, loadDormant, loadGroups, loadMachines, loadReadBase } from './load.js'+export { insertParts, lastChangedAt, loadActive, loadAll, loadChanged, loadDormant, loadGroups, loadMachines, loadObserved, loadReadBase } from './load.js'export { loadLight } from './light.js'export { guardedWrite, PartConflict, type PartWrite } from './write.js'diff --git a/backend/src/superTabs/parts/load.ts b/backend/src/superTabs/parts/load.tsindex a06054d45..e906ec335 100644--- a/backend/src/superTabs/parts/load.ts+++ b/backend/src/superTabs/parts/load.ts@@ -3,6 +3,7 @@ import { delegate, extracted, partId, type PartRow } from './write.js'import type { GroupData, HeadData, MachineData, Part, PartKind, SwarmParts } from './types.js'import { PART_KINDS } from './types.js'import { noteChange } from '../cache.js'+import { stableId } from '../model.js'import { ms } from './light.js'import { groupsBy, type GroupIndex } from './indexed.js'@@ -62,6 +63,31 @@ export function loadActive(tx: Transaction, tabId: string,})}+/**+ * What a machine's report works on (store.ts observeMachine, #876): `loadActive`'s parts with only the conversations its+ * checks read, whole, since it may write them: running work, the Lead conversations, the unfinished starts' conversations,+ * the conversations of agents stored with no project (projects.ts agentProjectId), and the private chats of this machine's+ * working agents (leaderboard/lent.ts accrueLent). A busy Swarm's finished conversations, briefs and checks were ~1.1 MB+ * read every 15 s per machine; the commit compares only what was loaded, so the others stay as they are.+ */+export async function loadObserved(tx: Transaction, tabId: string, machineId: string): Promise<SwarmParts> {+ const live = { deleted: false }+ const loaded = await assemble(tx, tabId, { member: live, agent: live, machine: live, progress: live, start: { ...live, finishedAt: null }, group: [] })+ const { projects, leadsConversationId } = loaded.head.data!+ // A head that never stored the Leads conversation's id finds it where model.ts syncLeads would make it.+ const leads = [...projects ? projects.map(p => p.leadConversationId) : ['lead'], leadsConversationId ?? stableId(tabId, 'leads')]+ // One read per index (parts/indexed.ts); none of them reads a quiet conversation.+ const groups = await liveGroups(tx, tabId, [['running', { executionMachineId: { $ne: null }, dormant: false }],+ ['key', { key: { $in: [...new Set([...leads, ...loaded.starts.map(s => s.data!.request.conversationId)])] }, dormant: false }]])+ const working = new Set(groups.flatMap(row => (row.data as GroupData).assignment?.status === 'working' ? [(row.data as GroupData).assignment!.agentId] : []))+ const legacy = loaded.agents.filter(a => !a.data!.projectId).map(a => a.key)+ const lending = loaded.agents.filter(a => a.data!.machineId === machineId && working.has(a.key)).map(a => a.key)+ const more = await liveGroups(tx, tabId, [...legacy.length ? [['agents', { agentIds: { $in: legacy }, dormant: false }] as const] : [],+ ...lending.length ? [['agents', { agentIds: { $in: lending }, dormant: false, 'data.audience': { $ne: null } }] as const] : []])+ const rows = [...new Map([...groups, ...more].map(row => [row.key, row])).values()]+ return { ...loaded, groups: rows.map(row => toPart<GroupData>('group', row)) }+}+/** What the read cache keeps of a Swarm at its main stamp (cache.ts): `loadActive`'s parts with every live start, and no* machines, which it keeps at their own stamp (`loadMachines`). Dormant groups and their like come by name (`loadGroups`). */export function loadReadBase(tx: Transaction, tabId: string): Promise<SwarmParts> {diff --git a/backend/src/superTabs/store.ts b/backend/src/superTabs/store.tsindex d106f2121..ec9578120 100644--- a/backend/src/superTabs/store.ts+++ b/backend/src/superTabs/store.ts@@ -25,7 +25,7 @@ import { answersRequest, dirtyGroups, noteProjectReports, projectUpdateRequest,import { digestDue, digestMessageId, digestRequest, digestSince } from './digest.js'import { judgedMachines, loseTasks, sweepLiveness, SWEEP_EVERY_MS } from './liveness.js'import { archivable, archiveLine, ASLEEP_FIELDS, asleepMatch, stopIdleWorkers, stoppedMachines, type GroupActivity } from './tidy.js'-import { clock, insertParts, loadActive, reassemble, split, type HeadData, type SwarmParts } from './parts/index.js'+import { clock, insertParts, loadActive, loadObserved, reassemble, split, type HeadData, type SwarmParts } from './parts/index.js'import { groupsBy, listingDrops, quietSince, withoutHints } from './parts/indexed.js'import { commitParts, indexesOf, numberMessages, type Touch, type Written } from './parts/commit.js'import { loadDeliveryParts } from './parts/light.js'@@ -127,7 +127,10 @@ function deliveryTouches(delivery: SuperTabDelivery): Touch[] {* every group's link list from its history. The state shares the loaded records, frozen: a command changes its own copy* (commands.ts applyCommand), and the parts stay what the write is compared with (parts/commit.ts). */export async function loadRow(tx: Transaction, row: SwarmRow, named: Named = {}): Promise<Loaded> {- const parts = await loadActive(tx, row.id, named)+ return loadedFrom(row, await loadActive(tx, row.id, named))+}++function loadedFrom(row: SwarmRow, parts: SwarmParts): Loaded {freeze(parts)const state = reassemble(parts, { share: true })parkLaterConversations(state)@@ -1936,7 +1939,8 @@ export class SuperTabStore {const sweep = this.sweepDue(tabId, this.now())return transaction(this.db, async tx => {await this.hostFor(tx, user, machineId)- const loaded = await this.load(tx, user, tabId), state = structuredClone(loaded.state)+ // Only the conversations its checks read (parts/load.ts loadObserved): the whole Swarm was ~1.1 MB a report (#876).+ const loaded = loadedFrom(await this.row(tx, user, tabId), await loadObserved(tx, tabId, machineId)), state = structuredClone(loaded.state)const pool = machineContribution(state, machineId)if (!pool || pool.contributorId !== user.sub || pool.generation !== observation.generation) fail('CONTRIBUTION_REVOKED', 'Read the current machine contribution.', 403)const owned = await tx.machine.findFirst({ where: { machineId, userId: user.sub, autonomousEnv: user.autonomousEnv, ...machineAlive } })diff --git a/desktop/design/desktop-design-system.md b/desktop/design/desktop-design-system.mdindex 7549adf95..0e02cbfd1 100644--- a/desktop/design/desktop-design-system.md+++ b/desktop/design/desktop-design-system.md@@ -31,7 +31,7 @@ complexity" is to design these relationships before their decoration. It is nota prediction of what he or his team would make. See the[research and comparison record](macos-design-research.md) for primary sources.-Five decisions give this system its character:+Six decisions give this system its character:1. **One focal point per surface.** The task in Cmd-N, the query and selectedresult in Cmd-P, the name in Rename. Configuration stays visible but quiet.@@ -51,6 +51,10 @@ Five decisions give this system its character:Search scopes preserve the query. Menus open at the expected edge, dismissone level at a time and return focus. Drafts survive dismissal. Immediatefeedback takes priority over a decorative transition.+6. **People are celebrated.** The terminal is calm; the team is warm. When+ someone ships, unblocks a teammate or takes #1, Harness notices once,+ specifically, and with a smile. Celebration is earned, brief, and never in+ the way of work. See [Team and celebration](#team-and-celebration).The benchmark is the relationship between surfaces, not a collection of goodlooking individual dialogs. Rename and Move Pane have different content but@@ -261,7 +265,8 @@ then flip or constrain when the window has insufficient room.A ranking, a score or a count is read by comparing rows, so its figures lineup and only one of them speaks. Leaderboards, team summaries, usage tables andany later list of people or numbers use this recipe and the existing roles;-there is no number style, ranking palette or medal artwork of its own.+there is no number style or ranking palette of its own. Marks that celebrate a+place, such as the #1 crown, follow [Team and celebration](#team-and-celebration).| Part | Role | Rule || --- | --- | --- |@@ -279,11 +284,75 @@ sized for the widest expected value; names take the remaining width andtruncate first. Row anatomy is the list rule above: rank, identity, name withits metadata, then trend and the emphasized number at the right.-Medals, cups, trophies, flames and emoji are not icons and not ranks. A place-is its numeral. Color never carries a trend, a rank or a threshold on its own:-the arrow's direction, the number and the accessible label ("up 3 from last-week") say the same thing. Hover and keyboard focus keep their ordinary-treatment over the current person's fill, so focus stays visible on that row.+A place is its numeral; a celebration mark sits beside it and never replaces+it, as [Team and celebration](#team-and-celebration) describes. Color never+carries a trend, a rank or a threshold on its own: the arrow's direction, the+number and the accessible label ("up 3 from last week") say the same thing.+Hover and keyboard focus keep their ordinary treatment over the current+person's fill, so focus stays visible on that row.++## Team and celebration++Harness is used by teams, and the work is done by people. The design gives+them their due without disturbing the work.++**Two registers.** Instrument surfaces (terminals, panes, tabs, pickers,+dialogs, the footer, Settings) stay calm: everything above applies unchanged+and nothing there celebrates. Harness's own UI uses no emoji on instrument+surfaces; what people and programs write shows as written. Team surfaces (the+leaderboard, profiles and the project chat) are where people appear, and they+may be warm: they may name a moment, carry a mark and smile in their words.++**Earned, not ambient.** One real event earns one moment: a person ships,+unblocks a teammate or takes #1. Harness notices it once, where the team+already looks, and then it becomes history. No looping confetti, no modal, no+sound unless the person turned sounds on, and nothing that takes focus or+blocks the next action. A celebration is optional motion, so Reduce Motion+removes its movement and keeps its words.++**Specific.** Name the person and the thing: "Mai shipped the machine+picker", "Lan unblocked Bao on the phone build", "Mai is #1 this week".+Never "Great job!", "Awesome!" or praise that would fit anyone. The words+follow the [Naming System](../../docs/naming-system.md) like any other copy.++**Ranks still line up.** The #1 crown sits beside #1's name, after the rank+numeral; it never replaces the numeral and never moves the columns. Rank,+points and counts keep [Numbers and rankings](#numbers-and-rankings): tabular+figures, fixed columns, one emphasized number. A row with a crown is exactly+as tall as a row without one.++**Badges are content artwork**, like agent marks: each has its own colors, a+name and one line saying how it was earned ("First pull request merged"). They+are not app icons and do not join the `AppIcons` vocabulary. A person's badges+live on their profile sheet; a new badge is announced once in the project+chat, naming the person and the badge, and is not repeated.++**Every mark has words.** The crown, a badge or a celebration message carries+an accessible label that says what it means ("Number one this week", "Badge:+First pull request merged"), and color or artwork never carries that meaning+alone.++## People and conversations in lists++Lists of projects, groups and people (the sidebar, the project chat, the+leaderboard) share four rules.++- **Unread.** Goal: see what changed without a second signal to decode. An+ unread project or group shows its name in bold, with no dot beside it.+- **Mentions.** Goal: tell "something changed" apart from "someone needs+ you". A conversation that mentions you is bold and adds an `@N` count of+ those mentions at its trailing edge, just before the status column.+- **Status column.** Goal: compare status down the list at a glance. Status+ marks use the shared activity vocabulary (see the+ [icon design system](icon-design-system.md#deliberate-exceptions)) and sit+ in a fixed trailing column, last on rows that show status (agents,+ conversations); a mention's `@N` sits just before it. Ranking rows have no+ status mark and keep the points number last. Names and marks keep their+ positions as status changes.+- **Names.** Goal: recognize teammates the way they know each other. People+ show as usernames, by default the prefix of their email address+ (`[email protected]` shows as `mai`); full identity stays available to+ tooltips and accessibility.## Phone@@ -571,7 +640,10 @@ UI checklist (desktop/design/desktop-design-system.md)- [ ] Named roles only (AppType, AppPalette/AppSurface, AppDesktop/AppControl,AppIcons); scripts/check-ui-style.py passes and its allowlist only shrank- [ ] Numbers follow Numbers and rankings: tabular, right-aligned, one- emphasized number, zeros hidden, no emoji or medals+ emphasized number, zeros hidden, a place is its numeral+- [ ] Celebration follows Team and celebration: team surfaces only, no emoji+ on instrument surfaces, one real event, named person and thing, marks+ with accessible words- [ ] Color is never the only signal; a trend or state also has a shape or words- [ ] Light and dark, 160–200% text, long and missing names, empty, loading anderror states, with screenshotsdiff --git a/desktop/design/icon-design-system.md b/desktop/design/icon-design-system.mdindex 433d51b67..946b6506e 100644--- a/desktop/design/icon-design-system.md+++ b/desktop/design/icon-design-system.md@@ -103,8 +103,10 @@ These are content or identities, not a second action-icon library:same `activityColor`, including the monochrome preference. Do not substituteSF Symbols or add status pills to a different Harness surface. A notificationmark describes its unread receipt; a tab/pane mark describes current activity.-- Ranks are numerals, never medals, cups, trophies or emoji. A trend is- `AppIcons.arrowUp` or `arrowDown` with its number; see+- A rank is its numeral. The #1 crown and badges are content artwork beside+ it, never a replacement for it; see+ [Team and celebration](desktop-design-system.md#team-and-celebration). A+ trend is `AppIcons.arrowUp` or `arrowDown` with its number; see[Numbers and rankings](desktop-design-system.md#numbers-and-rankings).- QR codes, companion artwork, explanatory diagrams, wallpaper, terminaloutput and user-selected status/Powerline artwork are content. Keep their