Watch
1
0
Fork
You've already forked souveraine
0

saf: give the panel's next cuts an owner

This commit is contained in:
Fimeg 2026-08-17 12:04:49 -04:00
commit 184a449731
7 changed files with 441 additions and 12 deletions

View file

@ -136,11 +136,12 @@ codex_json() {
# ------------------------------------------------------------ souveraine ----
# ~/.souveraine/server/agents/<agent>/conversations/<conv>/conversation.json
# carries updated_at + message_count. It does NOT carry token usage: the
# substrate records `TokenUsage` but `assistant_with_usage` has zero callers
# (TASK-67). We report -1 for tokens rather than 0, because 0 is a measurement
# and -1 is an admission. The day TASK-67 lands, this starts reporting real
# numbers and nothing else has to change.
# carries updated_at + message_count. It does NOT carry aggregate token usage:
# the substrate persists per-turn `TokenUsage` in its message record, while
# this bounded presence scan intentionally reads only conversation metadata.
# We report -1 rather than 0, because 0 is a measurement and -1 is an
# admission. A direct substrate projection can fill the fields later without
# changing the surface contract.
souveraine_json() {
local dir="$HOME/.souveraine/server/agents"
[ -d "$dir" ] || { echo '{"available":false,"error":"no ~/.souveraine"}'; return; }