observability: the P10 logs live-follow SOURCE — remote node-journal streaming + the service→unit mapping (the follow #868 mounted but honest-rested) #876
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#876
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split from #868
#868 MOUNTED the P10 logs transport on the real control plane: the production
LogCatalogue(control-plane/cmd/control-plane/logs_wiring.go) is real, the three routes answer instead of 404, and a composition-root regression asserts the mount. What #868 could NOT honestly build is the live-follow line source, because two owners the follow needs do not exist in the tree — so today the hub'sFollowFuncfails loud (errLogSourceNotWired) and the download returns the honest empty bounded artifact.This issue is that source.
What to build
filesruns asphpfpm-nextcloud.serviceetc.). Nothing in the tree maps a slug to the unit(s) it runs on a node. DDR 0203 ruling 5'sservice-unittargets need it. This isneeds-design— decide where the mapping lives (catalogue table? clan module metadata? per-service package const?).FollowFuncfor aservice-unittarget follows a unit on a node. The existing pattern isclan.Adapter.UnitActive(internal/clan/adapter.go) —ssh <deploy-target> systemctl is-active <unit>, one-shot bufferedCombinedOutput()over thesshRunseam. The follow extends it to a STREAMINGssh <target> journalctl -u <unit> -f -o catreading the pipe line-by-line into the channellogstream.FollowFuncrequires, plus a boundedjournalctl -u <unit> -n <N>for the download.journalctlis currently invoked nowhere remotely (only local ininternal/vm/manager.go).journalctl -fagainst production nodes before wiring it live; this is the one part of #868's work that touches runtime posture.logsSurfaceOptions(composeWhole, via the concrete*clan.Adapter— the resting composition stays fail-loud).Refs
DDR 0203 ruling 5, ADR 0027, #806 (the hub), #807/#808 (the seams), #868 (the mount). Found while implementing #868.
Landed by #870 (
7292b74d, close-report 2026-08-27 00:36Z) which folded #876 + #877:internal/clan/Adapter.FollowUnit(journald-over-SSH, live-proven on a clan node, DDR 0211 service→unit map) andinternal/oplog.Store(bounded, drop-oldest, ages-out; deploy tees into it; P10 catalogue/follow/download read it). Closing as landed in the 2026-08-27 sweep. Residue = the rescue/update emitters still discard their streams — filed separately.