Skip to content

feat(tui): add compression guidelines status line and /guidelines command#1848

Merged
bug-ops merged 1 commit intomainfrom
tui-compression-guidelines
Mar 15, 2026
Merged

feat(tui): add compression guidelines status line and /guidelines command#1848
bug-ops merged 1 commit intomainfrom
tui-compression-guidelines

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 15, 2026

Closes #1803

Summary

Implements two TUI features deferred from MVP (ACON compression guidelines section 8.2):

  • Guidelines status line in the memory panel: shows Guidelines: vN (timestamp) when compression guidelines exist, hidden when version is 0
  • /guidelines slash command: displays current guidelines text with version and last-updated header, truncated at 4096 chars to avoid flooding

Changes

  • zeph-memory: load_compression_guidelines_meta() — lightweight query returning (version, created_at) without fetching full text
  • zeph-core: sync_guidelines_status() called from persistence sync (same pattern as sync_graph_counts)
  • zeph-core: guidelines_commands.rs/guidelines handler; dispatch_slash_command() dispatch
  • zeph-core: /guidelines entry in slash commands registry (Memory category)
  • zeph-tui: TuiCommand::ViewGuidelines in build_graph_experiment_commands(); forwarding via user_input_tx
  • zeph-tui: conditional guidelines status line in memory panel widget
  • All new code feature-gated on compression-guidelines (core/memory) and tui

Test plan

…mand (#1803)

- Add `guidelines_version` and `guidelines_updated_at` fields to `MetricsSnapshot`
- Add `load_compression_guidelines_meta()` to SqliteStore (version + created_at only)
- Add `sync_guidelines_status()` called from persistence sync (same pattern as graph counts)
- Add `/guidelines` slash command: fetches full text, shows header with version + timestamp
- Add `TuiCommand::ViewGuidelines` variant in `build_graph_experiment_commands()`
- Conditionally render guidelines status line in memory panel widget (version > 0)
- Add `memory_with_guidelines` snapshot test for the new status line
- All new code feature-gated on `compression-guidelines` (core/memory) and `tui`
- Fix stale config snapshot missing `shutdown_summary` fields from #1816
@github-actions github-actions bot added documentation Improvements or additions to documentation memory zeph-memory crate (SQLite) rust Rust code changes core zeph-core crate enhancement New feature or request size/L Large PR (201-500 lines) labels Mar 15, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 15, 2026 17:13
@bug-ops bug-ops merged commit e4232d4 into main Mar 15, 2026
15 checks passed
@bug-ops bug-ops deleted the tui-compression-guidelines branch March 15, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core zeph-core crate documentation Improvements or additions to documentation enhancement New feature or request memory zeph-memory crate (SQLite) rust Rust code changes size/L Large PR (201-500 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(tui): add compression guidelines status and /guidelines command

1 participant