agentexec.SubjectForSystem is documented as the return channel for "log
dumps, health, and PII warnings" but has no publisher anywhere in the
codebase.
In cmd/archie-agent/main.go, replace the stderr-only slog.Handler with
one that tees to stderr (kept for operator debugging when a shell is
attached to a live container) and publishes each record to agentexec.SubjectForSystem(taskID). The agent already has its NATS client
and task ID (bootTaskID, read from <worktree>/.git/task.json).
Publishing must be fire-and-forget with a bounded local buffer — log
shipping must never block or fail the run it's reporting on. A full buffer
drops the oldest entry, not the newest, and should log (locally, stderr
only) that it dropped something, once, not per-entry.
Imported from beads archie-core-1786637501190-430-8c471d9f · GitHub #453 · type task · priority P2 · created 2026-08-09 · closed 2026-08-09
Part of #450. Depends on #451 (task log sink).
`agentexec.SubjectForSystem` is documented as the return channel for "log
dumps, health, and PII warnings" but has no publisher anywhere in the
codebase.
In `cmd/archie-agent/main.go`, replace the stderr-only `slog.Handler` with
one that tees to stderr (kept for operator debugging when a shell is
attached to a live container) and publishes each record to
`agentexec.SubjectForSystem(taskID)`. The agent already has its NATS client
and task ID (`bootTaskID`, read from `<worktree>/.git/task.json`).
Publishing must be fire-and-forget with a bounded local buffer — log
shipping must never block or fail the run it's reporting on. A full buffer
drops the oldest entry, not the newest, and should log (locally, stderr
only) that it dropped something, once, not per-entry.
---
_Imported from beads `archie-core-1786637501190-430-8c471d9f` · GitHub #453 · 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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #450. Depends on #451 (task log sink).
agentexec.SubjectForSystemis documented as the return channel for "logdumps, health, and PII warnings" but has no publisher anywhere in the
codebase.
In
cmd/archie-agent/main.go, replace the stderr-onlyslog.Handlerwithone that tees to stderr (kept for operator debugging when a shell is
attached to a live container) and publishes each record to
agentexec.SubjectForSystem(taskID). The agent already has its NATS clientand task ID (
bootTaskID, read from<worktree>/.git/task.json).Publishing must be fire-and-forget with a bounded local buffer — log
shipping must never block or fail the run it's reporting on. A full buffer
drops the oldest entry, not the newest, and should log (locally, stderr
only) that it dropped something, once, not per-entry.
Imported from beads
archie-core-1786637501190-430-8c471d9f· GitHub #453 · type task · priority P2 · created 2026-08-09 · closed 2026-08-09