Skip to content

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.

Desktop: Humans by the week's points, agents' Swarm state marks, People → Humans (Dee) (#2230)

0xken15986cd3ce9194
diff --git a/desktop/lib/super_tabs/roster.dart b/desktop/lib/super_tabs/roster.dart
index ab4379072..81c3ab871 100644
--- a/desktop/lib/super_tabs/roster.dart
+++ b/desktop/lib/super_tabs/roster.dart
@@ -24,6 +24,7 @@ import 'leaderboard/model.dart';
import 'leaderboard/person_row.dart';
import 'leaderboard/reader.dart';
import 'leaderboard/waiting_line.dart';
+import 'machine_status.dart';
import 'model.dart';
import 'profile_sheet.dart';
import 'section_heading.dart';
@@ -196,11 +197,18 @@ class _SuperTabRosterState extends State<SuperTabRoster> {
);
}
- HarnessActivity _activity(SuperTabAgent agent) {
+ /// This Mac's reading of the agent; null when it cannot see it, or reads
+ /// its status as unknown.
+ HarnessActivity? _native(SuperTabAgent agent) {
final app = widget.app;
final native = app == null
? null
: harnessActivity(app, agent.machineId, agent.harnessId);
+ return native == HarnessActivity.unknown ? null : native;
+ }
+
+ HarnessActivity _activity(SuperTabAgent agent) {
+ final native = _native(agent);
// Keep the shared lifecycle precedence. A retained workgroup question must
// not make a stopped or disconnected harness look available for input.
if (native == HarnessActivity.offline ||
@@ -210,6 +218,9 @@ class _SuperTabRosterState extends State<SuperTabRoster> {
native == HarnessActivity.needsInput) {
return native!;
}
+ if (native == null) {
+ if (_swarmDown(agent) case final down?) return down;
+ }
if (c.snapshot?.conversations.any(
(group) =>
!group.closed &&
@@ -222,6 +233,38 @@ class _SuperTabRosterState extends State<SuperTabRoster> {
return native ?? HarnessActivity.unknown;
}
+ /// What the Swarm knows of an agent this Mac cannot see that stops it
+ /// running (Dee, 2026-10-29): its computer silent, offline; its session
+ /// stopped; its start failed. Null when none is known. While the Swarm
+ /// cannot be read, its computers are not called offline.
+ HarnessActivity? _swarmDown(SuperTabAgent agent) {
+ // The computer it runs on reports for itself: a Harness Team account
+ // shown as its Mac has its own heartbeat.
+ final machine = c.snapshot?.pool(agent.machineId);
+ final at = switch (machine?['observation']) {
+ {'receivedAt': final num at} => at.toInt(),
+ _ => null,
+ };
+ if (machine != null &&
+ !c.backendUnreachable &&
+ superTabMachineStatus(
+ age: at == null
+ ? null
+ : widget.now().difference(
+ DateTime.fromMillisecondsSinceEpoch(at),
+ ),
+ ) ==
+ SuperTabMachineStatus.offline) {
+ return HarnessActivity.offline;
+ }
+ if (agent.downSince != null) return HarnessActivity.paused;
+ final task = SuperTabAgentInfo(c, null, agent).taskGroup;
+ return task?.liveness?['state'] == 'orphaned' &&
+ task?.liveness?['why'] == 'start-failed'
+ ? HarnessActivity.failed
+ : null;
+ }
+
/// A person's email and role, and their week when the board has them. One's
/// own also opens the profile sheet, where one's avatar and status change.
Future<void> _person(SuperTabPerson person, SuperTabPersonScore? score) =>
@@ -334,11 +377,26 @@ class _SuperTabRosterState extends State<SuperTabRoster> {
/// The mark an agent's row shows, which also orders the list: its activity,
/// except that lost work shows the tabs' Offline, since nothing runs it
- /// (Dee, 2026-10-29).
- HarnessActivity _shownActivity(SuperTabAgentInfo info) =>
- info.taskGroup?.assignment?['status'] == 'lost'
- ? HarnessActivity.offline
- : info.activity ?? HarnessActivity.unknown;
+ /// (Dee, 2026-10-29). An agent this Mac cannot see, and the Swarm knows
+ /// nothing stopping, takes its mark from its work: a prompt on its screen
+ /// needs input; finished and in review, done; a task under way, working;
+ /// nothing held, idle. Its words still say only Assigned for a task.
+ HarnessActivity _shownActivity(SuperTabAgentInfo info) {
+ final work = info.taskGroup?.assignment?['status'];
+ if (work == 'lost') return HarnessActivity.offline;
+ final activity = info.activity ?? HarnessActivity.unknown;
+ if (activity != HarnessActivity.unknown || _native(info.agent) != null) {
+ return activity;
+ }
+ if (info.agent.alerting.contains('prompt')) {
+ return HarnessActivity.needsInput;
+ }
+ return switch (work) {
+ 'review' => HarnessActivity.done,
+ 'working' || 'planned' => HarnessActivity.working,
+ _ => HarnessActivity.idle,
+ };
+ }
/// An agent's row, in the shape the people's rows share (Dee, 2026-10-29):
/// avatar, name and role chip, today's one status line beneath, and the
@@ -488,11 +546,15 @@ class _SuperTabRosterState extends State<SuperTabRoster> {
final scores = {
for (final score in board?.people ?? const []) score.personId: score,
};
- // By name, letter case aside (Dee, 2026-10-29): the points say who leads.
+ // The selected week's points, highest first; equal points, and no points
+ // at all, by name, letter case aside (Dee, 2026-10-29).
+ int points(SuperTabPerson p) => scores[p.id]?.points ?? 0;
String sortName(SuperTabPerson p) =>
leaderboardName(p, scores[p.id]).toLowerCase();
final sorted = [...people]
..sort((a, b) {
+ final byPoints = points(b).compareTo(points(a));
+ if (byPoints != 0) return byPoints;
final byName = sortName(a).compareTo(sortName(b));
return byName != 0 ? byName : a.id.compareTo(b.id);
});
@@ -519,8 +581,9 @@ class _SuperTabRosterState extends State<SuperTabRoster> {
);
final week = weekName(_board.week, current);
return [
+ // Humans and Agents: the two roles in one team (Dee, 2026-10-29).
SuperTabSectionHeading(
- 'People',
+ 'Humans',
actions: [
if (board != null || _board.week != null)
AppSelectField<int>(
diff --git a/desktop/test/super_tab_humans_test.dart b/desktop/test/super_tab_humans_test.dart
index 049180eec..5b3bad944 100644
--- a/desktop/test/super_tab_humans_test.dart
+++ b/desktop/test/super_tab_humans_test.dart
@@ -16,7 +16,7 @@ import 'support/super_tab_fixture.dart';
/// The leaderboard lives in the right pane's Humans section (Dee, 2026-10-27),
/// built to the desktop design system (2026-10-28): a small week picker, then
-/// everyone, by display name (Dee, 2026-10-29: no ranks). Each row is the
+/// everyone, by the week's points, highest first (Dee, 2026-10-29: no ranks). Each row is the
/// avatar, name, a quiet line of the non-zero numbers in words, and the points
/// as the one number, right-aligned (one number per person, no team total
/// line). Number one wears a crown beside their name (People are celebrated,
@@ -75,26 +75,131 @@ void main() {
controller.dispose();
}
+ /// The rows' ids, top to bottom.
+ List<String> order(WidgetTester tester, List<String> ids) => [...ids]
+ ..sort(
+ (a, b) => tester
+ .getTopLeft(person(a))
+ .dy
+ .compareTo(tester.getTopLeft(person(b)).dy),
+ );
+
testWidgets(
- 'lists every person by name, whatever their points, with no cut-off',
+ "lists every person by the week's points, highest first, with no cut-off",
(tester) async {
- final controller = await show(tester, humansSwarm());
- // Dee, diego, huy, Ken, maximilian…, scholes, Tony: letter case aside.
+ final server = humansSwarm();
+ // A tie, and a person the board has no row for.
+ final scores = server.leaderboard!['people'] as List;
+ (scores.firstWhere((s) => s['personId'] == 'scholes') as Map)['points'] =
+ 6;
+ (server.state['people'] as List).add({
+ 'id': 'ann',
+ 'email': '[email protected]',
+ 'role': 'collaborator',
+ });
+ final controller = await show(tester, server);
+ // Dee 21, Ken 13, then scholes and Tony tied at 6 by name, diego 2;
+ // without points last, by name: ann (no row), huy, maximilian (0).
final ids = [
'peer',
- 'diego',
- 'huy',
'owner',
- 'maximilian.alexander.longname',
'scholes',
'tony',
+ 'diego',
+ 'ann',
+ 'huy',
+ 'maximilian.alexander.longname',
];
for (final id in ids) {
expect(person(id), findsOneWidget);
}
expect(find.textContaining('Show '), findsNothing);
- final tops = [for (final id in ids) tester.getTopLeft(person(id)).dy];
- expect(tops, [...tops]..sort());
+ expect(order(tester, ids), ids);
+ await close(tester, controller);
+ },
+ );
+
+ testWidgets('switching the week sorts by that week\'s points', (
+ tester,
+ ) async {
+ final server = humansSwarm();
+ final controller = await show(tester, server);
+ final ids = [
+ 'peer',
+ 'owner',
+ 'tony',
+ 'scholes',
+ 'diego',
+ 'huy',
+ 'maximilian.alexander.longname',
+ ];
+ expect(order(tester, ids), ids);
+ // Last week: diego led, Dee had nothing.
+ final week = Map<String, int>.from({
+ 'diego': 30,
+ 'huy': 9,
+ 'tony': 9,
+ 'owner': 1,
+ 'peer': 0,
+ 'scholes': 0,
+ 'maximilian.alexander.longname': 0,
+ });
+ for (final score in server.leaderboard!['people'] as List) {
+ score['points'] = week[score['personId']];
+ }
+ await tester.tap(find.byKey(const ValueKey('leaderboard-week')));
+ await tester.pumpAndSettle();
+ await tester.tap(find.text('Last week').last);
+ await tester.pumpAndSettle();
+ expect(order(tester, ids), [
+ 'diego',
+ 'huy',
+ 'tony',
+ 'owner',
+ 'peer',
+ 'maximilian.alexander.longname',
+ 'scholes',
+ ]);
+ await close(tester, controller);
+ });
+
+ testWidgets(
+ 'lends no order from a board for another project, a failed read or a lost project',
+ (tester) async {
+ // By name, letter case aside: dee, diego, huy, ken, maximilian…,
+ // scholes, tony.
+ const byName = [
+ 'peer',
+ 'diego',
+ 'huy',
+ 'owner',
+ 'maximilian.alexander.longname',
+ 'scholes',
+ 'tony',
+ ];
+ final other = humansSwarm();
+ other.leaderboard!['projectId'] = 'other';
+ var controller = await show(tester, other);
+ expect(order(tester, byName), byName);
+ await close(tester, controller);
+
+ final failed = humansSwarm()..leaderboard = null;
+ controller = await show(tester, failed);
+ expect(order(tester, byName), byName);
+ expect(find.textContaining('Loading'), findsNothing);
+ await close(tester, controller);
+
+ final lost = humansSwarm();
+ controller = await show(tester, lost);
+ expect(order(tester, byName).take(2), ['peer', 'owner']);
+ lost.state['projects'] = <Object>[];
+ await controller.refresh();
+ await tester.pumpAndSettle();
+ expect(order(tester, byName), byName);
+ expect(
+ find.byKey(const ValueKey('leaderboard-points-peer')),
+ findsNothing,
+ );
await close(tester, controller);
},
);
@@ -462,7 +567,7 @@ void main() {
});
testWidgets(
- 'keeps a row with no points in name order, its 0 in the points style',
+ 'keeps a row with no points after those with points, its 0 in the points style',
(tester) async {
final controller = await show(tester, humansSwarm());
final zero = styleOf(
diff --git a/desktop/test/super_tab_members_list_test.dart b/desktop/test/super_tab_members_list_test.dart
index cc09a00ab..a6d437e37 100644
--- a/desktop/test/super_tab_members_list_test.dart
+++ b/desktop/test/super_tab_members_list_test.dart
@@ -9,10 +9,11 @@ import 'package:harness/super_tabs/view.dart';
import 'support/humans_fixture.dart';
import 'support/super_tab_fixture.dart';
-/// One member list, one row shape (Dee, 2026-10-29): People under a heading
+/// One member list, one row shape (Dee, 2026-10-29): Humans under a heading
/// that carries the week, each with their points, then the Agents with their
/// status line and the tabs' status mark at the right. No ranks, and no agent
-/// points even where the board scores one.
+/// points even where the board scores one. Humans and Agents name the two
+/// roles in one team (Dee, 2026-10-29).
void main() {
Future<SuperTabController> show(
WidgetTester tester,
@@ -53,28 +54,28 @@ void main() {
Finder rank(String id) => find.byKey(ValueKey('super-member-rank-$id'));
Finder points(String id) => find.byKey(ValueKey('super-member-points-$id'));
- testWidgets('shows People under a heading with the week, and no list pills', (
+ testWidgets('shows Humans under a heading with the week, and no list pills', (
tester,
) async {
final controller = await show(tester, membersSwarm());
for (final pill in ['humans', 'agents', 'models']) {
expect(find.byKey(ValueKey('leaderboard-tab-$pill')), findsNothing);
}
- expect(find.text('People'), findsOneWidget);
- expect(find.text('Humans'), findsNothing);
+ expect(find.text('Humans'), findsOneWidget);
+ expect(find.text('People'), findsNothing);
final week = find.byKey(const ValueKey('leaderboard-week'));
expect(week, findsOneWidget);
- // The week sits on the People heading's line, at its trailing edge.
+ // The week sits on the Humans heading's line, at its trailing edge.
expect(
- (tester.getCenter(week).dy - tester.getCenter(find.text('People')).dy)
+ (tester.getCenter(week).dy - tester.getCenter(find.text('Humans')).dy)
.abs(),
lessThan(8),
);
expect(
tester.getCenter(week).dx,
- greaterThan(tester.getCenter(find.text('People')).dx),
+ greaterThan(tester.getCenter(find.text('Humans')).dx),
);
- // People first, then the Agents below them.
+ // Humans first, then the Agents below them.
expect(find.byKey(const ValueKey('super-person-peer')), findsOneWidget);
expect(
tester.getTopLeft(member('lead-agent')).dy,
diff --git a/desktop/test/super_tab_roster_test.dart b/desktop/test/super_tab_roster_test.dart
index 550152559..fc04212ec 100644
--- a/desktop/test/super_tab_roster_test.dart
+++ b/desktop/test/super_tab_roster_test.dart
@@ -1174,15 +1174,19 @@ void main() {
expect(tester.getRect(find.text('owner')), people);
f.controller.select('offline');
await tester.pumpAndSettle();
- // Most urgent first, as the tabs: Sage and Finn, whose status this
- // computer cannot read, before Atlas, idle; equals keep their order.
+ // Sage and Finn, which this computer cannot read, take their mark from
+ // the Swarm: no task, so idle like Atlas. Equals keep their order, the
+ // Lead first.
+ for (final i in [0, 1, 3]) {
+ expect(f.activity(tester, i), HarnessActivity.idle, reason: 'agent-$i');
+ }
expect(
- tester.getTopLeft(f.row(1)).dy,
- lessThan(tester.getTopLeft(f.row(3)).dy),
+ tester.getTopLeft(f.row(0)).dy,
+ lessThan(tester.getTopLeft(f.row(1)).dy),
);
expect(
- tester.getTopLeft(f.row(3)).dy,
- lessThan(tester.getTopLeft(f.row(0)).dy),
+ tester.getTopLeft(f.row(1)).dy,
+ lessThan(tester.getTopLeft(f.row(3)).dy),
);
await tester.tap(f.row(1));
await tester.pumpAndSettle();
@@ -1272,7 +1276,9 @@ void main() {
contains('Assigned to "Polish navigation"'),
);
expect(f.lineText(tester, 0), 'Idle');
- expect(f.activity(tester, 1), HarnessActivity.unknown);
+ // Unseen by this computer, the Swarm's held task gives the mark; the words
+ // still say only Assigned.
+ expect(f.activity(tester, 1), HarnessActivity.working);
final copy = tester
.widgetList<Text>(
find.descendant(of: f.row(1), matching: find.byType(Text)),
@@ -1288,7 +1294,7 @@ void main() {
});
testWidgets(
- 'retained working tasks need native activity before claiming work',
+ 'a retained working task never shows working over a known idle turn',
(tester) async {
final f = await fixture(tester);
(f.server.state['conversations'] as List)[1]
@@ -1316,10 +1322,14 @@ void main() {
break;
}
await f.show(tester);
+ // A status this computer cannot read takes the Swarm's: the task.
+ final shown = activity == HarnessActivity.unknown
+ ? HarnessActivity.working
+ : activity;
final status = activity == HarnessActivity.working
? 'Working on "Polish navigation"'
: 'Assigned to "Polish navigation"';
- expect(f.activity(tester, 1), activity);
+ expect(f.activity(tester, 1), shown);
expect(
f.lineText(tester, 1),
activity == HarnessActivity.working
@@ -1332,7 +1342,7 @@ void main() {
}
}
await f.show(tester, nativeState: false);
- expect(f.activity(tester, 1), HarnessActivity.unknown);
+ expect(f.activity(tester, 1), HarnessActivity.working);
expect(f.lineText(tester, 1), 'Assigned');
await f.close(tester);
},
@@ -1532,6 +1542,206 @@ void main() {
}
}
+ testWidgets(
+ 'agents on another computer show their Swarm state with the tabs\' marks, most urgent first',
+ (tester) async {
+ final f = await fixture(tester);
+ await tester.binding.setSurfaceSize(const Size(280, 540));
+ final now = DateTime.now().millisecondsSinceEpoch;
+ // This Mac reads neither computer itself: only the Swarm says how they are.
+ f.server.state['machines'] = [
+ {
+ 'machineId': 'far',
+ 'name': 'Mac mini',
+ 'contributorId': 'owner',
+ 'observation': {'receivedAt': now},
+ },
+ {
+ 'machineId': 'gone',
+ 'name': 'Old laptop',
+ 'contributorId': 'owner',
+ 'observation': {'receivedAt': now - 10 * 60 * 1000},
+ },
+ ];
+ final agents = f.server.state['agents'] as List;
+ final base = (agents[1] as Map).cast<String, Object>();
+ for (final (i, name) in [
+ (4, 'Juno'),
+ (5, 'Iris'),
+ (6, 'Orion'),
+ (7, 'Vega'),
+ (8, 'Lyra'),
+ (9, 'Rhea'),
+ ]) {
+ agents.add({
+ ...base,
+ 'id': 'agent-$i',
+ 'harnessId': 'a$i',
+ 'name': name,
+ 'displayName': name,
+ });
+ }
+ for (final agent in agents) {
+ (agent as Map)['machineId'] = 'far';
+ }
+ (agents[6] as Map)['machineId'] = 'gone';
+ (agents[7] as Map)['downSince'] = '2026-10-29T12:00:00.000Z';
+ Map<String, dynamic> work(String id, String agent, String status) => {
+ ...conversationFixture(id, 'Task $id'),
+ 'assignment': {'agentId': agent, 'status': status},
+ };
+ (f.server.state['conversations'] as List).addAll(<Map<String, dynamic>>[
+ work('t1', 'agent-1', 'working'),
+ work('t3', 'agent-3', 'review'),
+ work('t4', 'agent-4', 'needs_human'),
+ work('t5', 'agent-5', 'blocked'),
+ work('t6', 'agent-6', 'working'),
+ work('t7', 'agent-7', 'needs_human'),
+ {
+ ...work('t8', 'agent-8', 'working'),
+ 'liveness': {
+ 'state': 'orphaned',
+ 'why': 'start-failed',
+ 'since': now,
+ },
+ },
+ ]);
+ await f.controller.refresh();
+ await f.show(tester, brightness: Brightness.light);
+ final expected = {
+ 4: HarnessActivity.needsInput,
+ 5: HarnessActivity.needsInput,
+ 8: HarnessActivity.failed,
+ 3: HarnessActivity.done,
+ 1: HarnessActivity.working,
+ 0: HarnessActivity.idle,
+ 9: HarnessActivity.idle,
+ 7: HarnessActivity.paused,
+ 6: HarnessActivity.offline,
+ };
+ for (final MapEntry(key: i, value: activity) in expected.entries) {
+ expect(f.activity(tester, i), activity, reason: 'agent-$i');
+ }
+ // The tabs' order; equals keep today's order, the Lead first.
+ final tops = [
+ for (final i in expected.keys) tester.getTopLeft(f.row(i)).dy,
+ ];
+ expect(tops, [...tops]..sort());
+ expect(tops.toSet(), hasLength(expected.length));
+ // The words agree with the mark where something stops the agent; a task
+ // with no turn seen still reads Assigned.
+ expect(f.lineText(tester, 6), startsWith('Down'));
+ expect(f.lineText(tester, 7), startsWith('Down'));
+ expect(f.lineText(tester, 8), startsWith('Down'));
+ expect(f.lineText(tester, 1), startsWith('Assigned'));
+ final saved = grid.AppTheme.brightness.value;
+ addTearDown(() => grid.AppTheme.brightness.value = saved);
+ for (final brightness in Brightness.values) {
+ grid.AppTheme.brightness.value = brightness;
+ await f.show(tester, brightness: brightness);
+ await captureBoundary(
+ tester,
+ f.boundary.currentContext!.findRenderObject()!
+ as RenderRepaintBoundary,
+ captureDir,
+ 'agents-swarm-states-${brightness.name}',
+ );
+ }
+ await f.close(tester);
+ },
+ );
+
+ testWidgets(
+ "a Team account's agents follow the Team account's own reports, not its Mac's",
+ (tester) async {
+ final f = await fixture(tester);
+ final now = DateTime.now().millisecondsSinceEpoch;
+ // The Mac and its Harness Team account report on their own; the Swarm
+ // shows them as one row, but each has its own heartbeat.
+ void reports({required int mac, required int team}) =>
+ f.server.state['machines'] = [
+ {
+ 'machineId': 'mac',
+ 'name': 'Mac Studio',
+ 'contributorId': 'owner',
+ 'observation': {'receivedAt': mac},
+ },
+ {
+ 'machineId': 'team',
+ 'name': 'Harness Team',
+ 'contributorId': 'owner',
+ 'hostMachineId': 'mac',
+ 'observation': {'receivedAt': team},
+ },
+ ];
+ for (final agent in f.server.state['agents'] as List) {
+ (agent as Map)['machineId'] = 'team';
+ }
+ final silent = now - 10 * 60 * 1000;
+ reports(mac: silent, team: now);
+ await f.controller.refresh();
+ await f.show(tester);
+ expect(f.lineText(tester, 1), startsWith('Idle · Mac Studio'));
+ expect(f.activity(tester, 1), HarnessActivity.idle);
+ reports(mac: now, team: silent);
+ await f.controller.refresh();
+ await f.show(tester);
+ expect(f.activity(tester, 1), HarnessActivity.offline);
+ expect(f.lineText(tester, 1), startsWith('Down'));
+ await f.close(tester);
+ },
+ );
+
+ testWidgets(
+ 'a mark comes from any group the reader sees, never from a private or Buddy chat they cannot',
+ (tester) async {
+ final f = await fixture(tester);
+ (f.server.state['people'] as List).add({
+ 'id': 'mira',
+ 'email': '[email protected]',
+ 'role': 'collaborator',
+ });
+ final conversations = f.server.state['conversations'] as List;
+ // Sage, an openharness agent, reused for autonomous-os work: one agent,
+ // one mark, from the group the reader can see.
+ conversations.add({
+ ...conversationFixture('os-task', 'OS task'),
+ 'projectId': 'os',
+ 'assignment': {'agentId': 'agent-1', 'status': 'working'},
+ });
+ // Finn's only questions are in Mira's private group and her Buddy chat.
+ final private = {
+ ...conversationFixture('private', 'Private plans'),
+ 'audience': {
+ 'people': [
+ {'id': 'mira'},
+ ],
+ },
+ 'assignment': {'agentId': 'agent-3', 'status': 'needs_human'},
+ };
+ conversations.addAll(<Map<String, dynamic>>[
+ private,
+ {
+ ...conversationFixture('buddy', 'Mira and Sparky'),
+ 'kind': 'buddy',
+ 'buddyOwnerId': 'mira',
+ 'assignment': {'agentId': 'agent-3', 'status': 'blocked'},
+ },
+ ]);
+ await f.controller.refresh();
+ await f.show(tester, nativeState: false);
+ expect(f.activity(tester, 1), HarnessActivity.working);
+ expect(f.activity(tester, 3), HarnessActivity.idle);
+ expect(find.text('Private plans'), findsNothing);
+ // The same group, once the reader is in it, does change the mark.
+ ((private['audience'] as Map)['people'] as List).add({'id': 'owner'});
+ await f.controller.refresh();
+ await f.show(tester, nativeState: false);
+ expect(f.activity(tester, 3), HarnessActivity.needsInput);
+ await f.close(tester);
+ },
+ );
+
testWidgets(
'orders agents most urgent first, as the tabs do, and a lost task shows Offline',
(tester) async {
@@ -1663,7 +1873,7 @@ void main() {
// The tokens follow the app's theme, as the app's scope sets them.
grid.AppTheme.brightness.value = brightness;
await f.show(tester, brightness: brightness);
- expect(find.text('People'), findsOneWidget);
+ expect(find.text('Humans'), findsOneWidget);
double avatar(Finder row) => tester
.getTopLeft(
find.descendant(of: row, matching: find.byType(SuperTabAvatar)),
@@ -1758,7 +1968,7 @@ void main() {
});
await f.controller.refresh();
await f.show(tester, nativeState: false);
- expect(f.activity(tester, 0), HarnessActivity.unknown);
+ expect(f.activity(tester, 0), HarnessActivity.idle);
expect(f.activity(tester, 1), HarnessActivity.needsInput);
f.app.stateOf('m')!.connectionStatus = ConnectionStatus.disconnected;
await f.show(tester);
diff --git a/desktop/test/super_tab_view_test.dart b/desktop/test/super_tab_view_test.dart
index 38d429b1e..294911928 100644
--- a/desktop/test/super_tab_view_test.dart
+++ b/desktop/test/super_tab_view_test.dart
@@ -451,7 +451,7 @@ void main() {
),
);
await tester.pumpAndSettle();
- expect(find.text('People'), findsOneWidget);
+ expect(find.text('Humans'), findsOneWidget);
final member = find.byKey(const ValueKey('super-member-agent-0'));
await tester.scrollUntilVisible(
member,
diff --git a/desktop/test/swarm_projects_test.dart b/desktop/test/swarm_projects_test.dart
index 21b698013..c72faa0ab 100644
--- a/desktop/test/swarm_projects_test.dart
+++ b/desktop/test/swarm_projects_test.dart
@@ -70,7 +70,7 @@ void main() {
);
expect(find.text('Leads'), findsNothing);
expect(find.text('Projects'), findsOneWidget);
- expect(find.text('People'), findsOneWidget);
+ expect(find.text('Humans'), findsOneWidget);
// The roster's heading; the leaderboard's Agents pill is the other one.
expect(
find.descendant(
diff --git a/docs/naming-system.md b/docs/naming-system.md
index f8de2242b..dec63b497 100644
--- a/docs/naming-system.md
+++ b/docs/naming-system.md
@@ -126,6 +126,10 @@ draggable dividers; their default side widths are 300 and 280 pixels, respecting
The right pane is a stable directory of all humans and agents in the current Swarm that the
viewer can access. Selecting a project, workgroup or Devices does not filter that directory;
local machine inventory does not add people or agents to it.
+The members pane has two sections, **Humans** and **Agents**: two roles in one team. **Humans**
+is the section heading and the label for the human role; ordinary prose still says *people*.
+Humans are listed by the selected week's points, highest first; equal points and no points
+by name. Agents are listed most urgent first, by the tabs' status marks.
Agents have individual display names and the same avatar treatment as people. Their role badges
are **PM**, **Dev** and **Rev**. The name, role badge and compact project tag share the first line;
the existing status icon and activity or assigned task appear underneath. Shortened names and