observability: a durable operation-log LINE store — what an operation-log scope replays (the aged-out reason #868 serves honestly today) #877

Closed
opened 2026-08-26 19:23:42 +00:00 by matou-build-agent · 1 comment

Split from #868

#868's production LogCatalogue resolves an operation-log scope (a deploy/rescue/update run's LogRef, e.g. log-deploy-<device>) to the honest operation_log_aged_out reason — because there is NO durable store of operation-log lines anywhere. Operations record checklist STATE (provision.DeployRun.Steps, provision.Outcome) plus opaque LogRef ID handles that resolve to nothing; the live lines flow transiently through the deploy progress callback / clan.Event stream 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

  • A bounded, drop-oldest, ages-out per-run line store (the logstream ring at internal/logstream/logstream.go is 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).
  • LogCatalogue resolution of an operation-log scope to a live-or-replayable operation-log target when the run is retained (retiring the always-aged-out answer for retained runs).
  • The FollowFunc/downloader replay path for an operation-log target.
  • Structured levels honoured (DDR 0203 ruling 5: operation logs carry A5's 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.

## Split from #868 #868's production `LogCatalogue` resolves an operation-log scope (a deploy/rescue/update run's `LogRef`, e.g. `log-deploy-<device>`) to the honest `operation_log_aged_out` reason — because there is NO durable store of operation-log lines anywhere. Operations record checklist STATE (`provision.DeployRun.Steps`, `provision.Outcome`) plus opaque `LogRef` ID handles that resolve to nothing; the live lines flow transiently through the deploy `progress` callback / `clan.Event` stream 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 - [ ] A bounded, drop-oldest, ages-out per-run line store (the `logstream` ring at `internal/logstream/logstream.go` is 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`). - [ ] `LogCatalogue` resolution of an operation-log scope to a live-or-replayable `operation-log` target when the run is retained (retiring the always-aged-out answer for retained runs). - [ ] The `FollowFunc`/downloader replay path for an operation-log target. - [ ] Structured levels honoured (DDR 0203 ruling 5: operation logs carry A5's `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.
Owner

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) and internal/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.

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) and `internal/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.
ben closed this issue 2026-08-27 04:56:07 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#877
No description provided.