Skip to content

Add dependency-light TUI snapshot scaffold#20

Merged
mdheller merged 4 commits intomainfrom
work/tui-scaffold-current
May 2, 2026
Merged

Add dependency-light TUI snapshot scaffold#20
mdheller merged 4 commits intomainfrom
work/tui-scaffold-current

Conversation

@mdheller
Copy link
Copy Markdown
Contributor

@mdheller mdheller commented May 2, 2026

Summary

Adds a dependency-light operator snapshot model for AgentTerm.

This PR implements the first tested TUI model layer for issue #9 without requiring live Textual rendering or a Matrix homeserver in CI.

It adds:

  • tui_model.py with panes, lines, snapshots, classification, risk-state/status mapping, and text rendering.
  • agent-term-snapshot console script for rendering an operator snapshot from the local SQLite event log.
  • Tests for pane classification, visible operator risk states, room/thread extraction, domain-pane routing, and text rendering.

Boundary decisions

  • This is a view-model/render scaffold, not the final Textual application.
  • It does not bypass Matrix, Agent Registry, Policy Fabric, cloudshell-fog, AgentPlane, or any SourceOS authority plane.
  • It makes denied, pending, revoked, blocked, and active states visible in the terminal surface.
  • It creates the stable model a future Textual UI can render without coupling the UI to live SDKs.

Validation

Expected CI:

ruff check .
pytest

Part of #9.

@mdheller mdheller merged commit 9416a42 into main May 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant