observability: backups runs and restores emit a REAL operation log — the capture that #859 assumed already existed #869
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.
Depends on
Reference
Matou/idss#869
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?
Parent / context
Split out of #859 by Ben's 2026-08-26 ruling (see that ticket's ruling comment). #859 asked to "converge the backups log emitters onto the shell open-logs intent" and assumed the work was additive wiring. It is not: there is no backups log to converge. This ticket creates one.
The finding
runRecord{id, at, due, cadence, ref, targets, outcome, evidence, outcomes}—internal/backup/run.go:125-138. No log ref, no captured output.RunRow.Summary/.Detailare generated sentences (projectRun,internal/backup/run.go:427-445), not process output.Conn.Run(ctx, argv...) ([]byte, error),internal/backupengine/backupengine.go:60-66— but that stdout is consumed by the verb and never persisted or streamed. No borg/restic unit, no journald unit, no systemd service behind a run.AuditEntry(internal/backup/restore.go:242-256— "the audit entry is the only trace it leaves"); itsStagesdetail is computed intoRestoreResultand discarded.internal/backup/recentevents.go:226) — a single row, not a line stream.Meanwhile the UI already carries the dangling affordances:
BackupsSurface.onOpenRunLog()emits a scopeless route intent (dashboard/src/components/backups/BackupsSurface.vue:401-404), andBackupRestoreScreen/BackupRestoreReplacesScreen'sopen-log/download-logemits reach no listener at all — they fall on the floor.What to build
Make a backup run and a restore emit a real operation log, in DDR 0203 ruling 5's sense — "bounded, replayable start-to-now, live-tailing while the operation runs" (
docs/adr/0203-...md:94-105).Conn.Run) into the log-stream hub as anoperation-logtarget, keyed by the run's existing ref, for both a scheduled run and a restore.LogTarget{Kind: "operation-log"}), withoperation_log_aged_outserved honestly once it falls out of retention.BackupsSurfacere-emitsopen-logs/download-logscarrying that scope; the shell mountsLogsScreenin place over the Backups tab.BackupRestore*restore-log affordances reach the composition binding — no backups logs emit falls on the floor.Blocked by
#868 — the P10 logs transport is never mounted on a real control plane (no production
LogCatalogue, and neitherWithLogCataloguenorWithLogStreamis in the composition root). There is nowhere for an operation-log target to live until that lands.Refs
ADR 0027 (the Open/Download promise names backups explicitly), DDR 0203 (logs surface, ruling 5), spec #791, #859 (the ruling), #811 (the per-surface binding this plugs into).
swarm-claim host=elitebook-distributed-server-03 run=10600
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #869 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope