v0.4.0: differentiator — prose for TUI-side (on-daemon-msg, status bar, add-msg)
Some checks failed
Deploy (Gitea) / deploy (push) Failing after 3s
Some checks failed
Deploy (Gitea) / deploy (push) Failing after 3s
Prose added: - gateway-tui-main.org: Contract item 2 updated — on-daemon-msg now extracts :gate-trace, :rule-count, :foveal-id from daemon response - gateway-tui-view.org: Status Bar section — explains the three differentiator visualizations (rule counter, focus map, gate trace), noting they cost 0 LLM tokens and are unique to Passepartout's deterministic gate architecture - gateway-tui-model.org: Contract item 2 updated — add-msg supports &key gate-trace for message-attached trace rendering
This commit is contained in:
@@ -9,7 +9,8 @@ State is read via ~(st :key)~ — no mutation here.
|
||||
** Contract
|
||||
|
||||
1. (view-status win): renders the status bar with connection info,
|
||||
version, and timestamp.
|
||||
msg count, scroll offset, rule counter, focus map (v0.4.0), and
|
||||
timestamp. Two lines: line 1 (status + rules), line 2 (focus + time).
|
||||
2. (view-chat win h): renders the scrolled chat message list. Takes
|
||||
window and available height. Messages are color-coded: green (user),
|
||||
white (agent), yellow (system).
|
||||
@@ -19,6 +20,23 @@ State is read via ~(st :key)~ — no mutation here.
|
||||
flags (status, chat, input). Minimizes terminal writes.
|
||||
|
||||
** Status Bar
|
||||
|
||||
The status bar, as of v0.4.0, renders Passepartout's three differentiator
|
||||
visualizations — data only available because of the deterministic gate
|
||||
architecture:
|
||||
|
||||
- *Rule counter* (~Rules:N~): the number of pending HITL actions from the
|
||||
Dispatcher's ~*hitl-pending*~ hash table. The user watches this tick up
|
||||
as they teach the agent their preferences through approve/deny decisions.
|
||||
- *Focus map* (~[Focus: <id>]~): the foveal focus from the daemon's signal
|
||||
context. Shows the user what the agent is currently looking at.
|
||||
- *Gate trace* (not rendered in status bar — attached to individual
|
||||
messages via ~:gate-trace~ field for future collapsible rendering per
|
||||
message).
|
||||
|
||||
All three enrichments cost 0 LLM tokens — they are daemon-state queries
|
||||
that the TUI actuator attaches to the response plist before transmission.
|
||||
|
||||
#+begin_src lisp
|
||||
(in-package :passepartout.gateway-tui)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user