feat(curator): track and expose recent activity per curator
Add a small bounded activity tracker (activityTracker, in internal/domain/curator/activity.go) fed directly from the runtime's existing emitRun point: last-run time, last-run action count, and up to 20 recent actions per curator, newest first. No persistence layer -- it resets on restart, same as the rest of the runtime's in-memory state. Registry.RecordActivity/Activity expose it. Closes archie-core-1786637489932-6-1f803e02.
This commit is contained in:
1 parent
76d13b76ce
commit
ced7bb8038
15 files changed
+641
-8
No files matched your search
@@ -981,6 +981,10 @@ func (b *boot) buildDaemon() {
|
||||
AgentStatus: b.agentStatus,
|
||||
}
|
||||
b.web.TaskStopper = b.d
|
||||
// Curator observability (archie-core-1786637489932-6): GET
|
||||
// /api/curators reads registered names, health and recent activity
|
||||
// straight off the live registry the daemon already holds.
|
||||
b.web.Curators = b.curatorRegistry
|
||||
// web and the daemon must share ONE Holder: a reload swaps d.Cfg and
|
||||
// the dashboard reads the running config from the same snapshot. The
|
||||
// webui Holder seeded in the literal above is replaced here; after
|
||||
|
||||
Reference in new issue
Block a user