observability: a durable operation-log LINE store — what an operation-log scope replays (the aged-out reason #868 serves honestly today) #877
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#877
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's production
LogCatalogueresolves an operation-log scope (a deploy/rescue/update run'sLogRef, e.g.log-deploy-<device>) to the honestoperation_log_aged_outreason — because there is NO durable store of operation-log lines anywhere. Operations record checklist STATE (provision.DeployRun.Steps,provision.Outcome) plus opaqueLogRefID handles that resolve to nothing; the live lines flow transiently through the deployprogresscallback /clan.Eventstream and are gone once the run ends.ADR 0027 has promised Open/Download on every operation log since the beginning; DDR 0203 ruling 5 says operation logs are "bounded, replayable start-to-now, live-tailing while the operation runs." This issue builds the store that makes that real.
What to build
logstreamring atinternal/logstream/logstream.gois the closest existing shape, but it is per-live-target, not a finished-run archive) fed where deploy/rescue/update lines already flow (progress/clan.Event).LogCatalogueresolution of an operation-log scope to a live-or-replayableoperation-logtarget when the run is retained (retiring the always-aged-out answer for retained runs).FollowFunc/downloader replay path for an operation-log target.LogEntry.level, so the chips filter authoritatively — unlike raw service lines).Refs
DDR 0203 ruling 5, ADR 0027, spec #791, #806/#807/#808, #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.