daemon: subscribe agent system logs and route to task sink + dashboard feed #959

Closed
opened 2026-10-27 13:38:27 +00:00 by sam · 0 comments
Owner

Part of #450. Depends on #451 (task log sink) and #452 (agent publisher).

Subscribe agentexec.SubjectAgentWildcard ("archie.agent.>") for the
.system suffix once at daemon startup. This is composition — wiring the
domain's log sink to the NATS subscription — so it belongs in internal/app/,
not in internal/domain/workflow or internal/nats directly.

Demux by task ID, append each entry to that task's sink, and also publish it
into the existing logging.Feed so live task/container output appears on
the dashboard exactly like daemon output does today.

Also: prune a task's log directory when nell.ArchiveTask
(internal/nell/adapter.go) archives it, so task logs share the task's own
lifecycle instead of growing unbounded.


Imported from beads archie-core-1786637501221-431-6358f362 · GitHub #454 · type task · priority P2 · created 2026-08-09 · closed 2026-08-09

Part of #450. Depends on #451 (task log sink) and #452 (agent publisher). Subscribe `agentexec.SubjectAgentWildcard` ("archie.agent.>") for the `.system` suffix once at daemon startup. This is composition — wiring the domain's log sink to the NATS subscription — so it belongs in `internal/app/`, not in `internal/domain/workflow` or `internal/nats` directly. Demux by task ID, append each entry to that task's sink, and also publish it into the existing `logging.Feed` so live task/container output appears on the dashboard exactly like daemon output does today. Also: prune a task's log directory when `nell.ArchiveTask` (`internal/nell/adapter.go`) archives it, so task logs share the task's own lifecycle instead of growing unbounded. --- _Imported from beads `archie-core-1786637501221-431-6358f362` · GitHub #454 · type task · priority P2 · created 2026-08-09 · closed 2026-08-09_
sam added the mediumtask labels 2026-10-27 13:38:27 +00:00
sam self-assigned this 2026-10-27 13:38:27 +00:00
sam closed this issue 2026-10-27 13:38:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#959