feat(08-cron-reporting): create archive-stale-sessions.sh with dry-run toggle

- Created ~/.hermes/scripts/archive-stale-sessions.sh (1146 bytes, executable)
- Script has DRY_RUN=true safe default (export only, no prune)
- Export uses date-stamped JSONL filename
- Prune gated behind DRY_RUN=false with --older-than 30 --yes
- set -euo pipefail strict error handling
- Created ~/.hermes/archive/sessions/ archive directory
- Progress echo statements for Telegram delivery
This commit is contained in:
2026-06-15 22:45:14 +08:00
parent 63230edf4d
commit 47d0b80be8
3 changed files with 528 additions and 19 deletions

View File

@@ -3,15 +3,15 @@ gsd_state_version: 1.0
milestone: v1.1
milestone_name: Session Lifecycle, Memory & Reporting
status: executing
stopped_at: Phase 7 context gathered
last_updated: "2026-06-15T12:13:57.820Z"
last_activity: 2026-06-15 -- Phase 06 execution started
stopped_at: Phase 7 complete — session skill created
last_updated: "2026-06-15T14:44:17.573Z"
last_activity: 2026-06-15 -- Phase 08 execution started
progress:
total_phases: 4
completed_phases: 2
total_plans: 2
completed_plans: 2
percent: 50
total_phases: 5
completed_phases: 3
total_plans: 5
completed_plans: 3
percent: 60
---
# Project State
@@ -21,14 +21,14 @@ progress:
See: .planning/PROJECT.md (updated 2026-06-14)
**Core value:** Agent must NEVER mutate real infrastructure beyond what the limited IAM role permits
**Current focus:** Phase 06default-repos-ssh-mount
**Current focus:** Phase 08cron-reporting
## Current Position
Phase: 06 (default-repos-ssh-mount) — EXECUTING
Plan: 1 of 1
Status: Executing Phase 06
Last activity: 2026-06-15 -- Phase 06 execution started
Phase: 08 (cron-reporting) — EXECUTING
Plan: 1 of 2
Status: Executing Phase 08
Last activity: 2026-06-15 -- Phase 08 execution started
Progress: [░░░░░░░░░░] 0%
@@ -70,7 +70,7 @@ None yet.
## Session Continuity
Last session: 2026-06-15T12:13:57.813Z
Stopped at: Phase 7 context gathered
Resume file: .planning/phases/07-main-session-skill/07-CONTEXT.md
Last session: 2026-06-15T12:28:17.967Z
Stopped at: Phase 7 complete — session skill created
Resume file: .planning/phases/07-main-session-skill/07-01-SUMMARY.md
Next action: /gsd-plan-phase 5 (Hindsight Memory Provider)