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.

Machine Monitor: say what a roster's updatedAt is now (#389)

Dee8c5162911e76
diff --git a/store/agents/machine-monitor/README.md b/store/agents/machine-monitor/README.md
index a12094b1e..09369302a 100644
--- a/store/agents/machine-monitor/README.md
+++ b/store/agents/machine-monitor/README.md
@@ -59,8 +59,9 @@ lives in a transcript, and this one never needs to.
- **Presence and link state are separate**: "online · link required" is a healthy computer that
simply is not linked yet.
- **Open** means a harness session still exists. It is not a claim that an agent is mid-turn.
-- The only per-harness time a roster reports honestly is when it was **created**; the registry's
- `updatedAt` is stamped by its own reconcile pass, so nothing here draws "last worked on".
+- The pane draws when each harness was **created**. A roster's `updatedAt` is when the harness's
+ conversation last moved (the daemon's `lastActivityAt`), but daemons older than the fix sent their
+ reconcile time under that name, so nothing here draws "last worked on" from it.
- A machine that was readable and then fails keeps its last roster, visibly stale, with the reason.
## Develop and verify
diff --git a/store/agents/machine-monitor/lib/snapshot.mjs b/store/agents/machine-monitor/lib/snapshot.mjs
index 7aaf04c7f..6818cbff2 100644
--- a/store/agents/machine-monitor/lib/snapshot.mjs
+++ b/store/agents/machine-monitor/lib/snapshot.mjs
@@ -67,9 +67,9 @@ function harnessRow(raw, machineId) {
warnings: Number.isFinite(raw.verdict.warnings) ? raw.verdict.warnings : 0,
} : null,
createdAt: iso(raw?.createdAt),
- // The registry stamps this when it reconciles, so a whole machine's harnesses share the moment
- // it was last polled. It is kept for completeness and is never read as "last worked on": the
- // honest time signal a roster carries is when each harness was CREATED.
+ // When the conversation last moved (the daemon's `lastActivityAt`). Older daemons sent their
+ // reconcile time under this name, so it is kept for completeness and never read as "last
+ // worked on": the time signal every roster carries honestly is when each harness was CREATED.
updatedAt: iso(raw?.updatedAt),
};
}
diff --git a/store/agents/machine-monitor/viewer/app.js b/store/agents/machine-monitor/viewer/app.js
index e4ad40ed7..fb5c30dde 100644
--- a/store/agents/machine-monitor/viewer/app.js
+++ b/store/agents/machine-monitor/viewer/app.js
@@ -400,9 +400,10 @@
/**
* When the work started.
*
- * A roster reports one time per harness that means what it says: when it was created. (Its
- * `updatedAt` is stamped by the registry's own reconcile pass, so it would draw every harness as
- * busy right now — this view does not use it, and neither does anything else here.) So each mark
+ * A roster reports one time per harness that means what it says on every daemon: when it was
+ * created. (Its `updatedAt` is when the conversation last moved, but older daemons sent their
+ * reconcile time under that name, which would draw every harness as busy right now — this view
+ * does not use it, and neither does anything else here.) So each mark
* below is one harness, stacked into the hour or day it began: a machine's week, as a skyline.
*/
function renderActivity() {