feat: raw-history archive (agent sync-archive + daemon daily push) - #27
Merged
Conversation
The agent dumps complete past days (gpu_sample/proc_sample) plus dimension tables (daemon_run/gpu_device) as gzip CSV and uploads only the days the board is missing, bounded to a 30-day retention window; the board prunes older objects. Idempotent. The daemon runs this itself — once on startup and once per UTC day, in a background thread so it never blocks sampling — so operators just enroll and run 'gua daemon --cloud'; no separate cron to install. 'gua sync-archive' remains for manual/backfill runs. Raw archive (not rollups) keeps full fidelity and is interval-agnostic: ~0.2 MB/host/day gzipped. Reports are rebuilt by downloading the days. Verified against real ds4 data (19 closed days -> 38 objects, 3.72 MB) and end-to-end against the real Supabase Free-tier project. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
GHoon-Lee
force-pushed
the
feat/sync-archive
branch
from
July 6, 2026 10:52
6ddbec3 to
6da338b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Raw-history archiving. The agent uploads complete past days of raw telemetry (gzip CSV) to GUA Board object storage, and the daemon does it automatically (startup + once per UTC day, background thread) — no cron for operators to install. Reports are rebuilt from raw by downloading the days.
gua sync-archive(manual/backfill) +cloud/archive.py/cloud/archive_sync.pygua daemon --cloudauto-archives once per UTC day (non-blocking)Verification
Requires the board PR (
/agent/v1/archivesendpoints) deployed. Bumps 1.7.2 → 1.8.0.🤖 Generated with Claude Code