summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-12-01 17:42:15 -0700
committert <t@tjp.lol>2026-12-04 13:53:47 -0700
commit7622522776168577d9f4bf7846e7f5052e2418e2 (patch)
tree4c62775edc07ce520b749b0eb4a35bfc322a9270
parentb4c1ad53077556e5401569a41a739f58a5ab2c86 (diff)
Distinguish explicit TUI prompts from automatic rig prompts in tests and docs
-rw-r--r--README.md2
-rw-r--r--tests/tui.exp8
2 files changed, 7 insertions, 3 deletions
diff --git a/README.md b/README.md
index ace2077..de3af88 100644
--- a/README.md
+++ b/README.md
@@ -40,6 +40,6 @@ reasoning_levels = ["low", "medium", "high", "xhigh"]
**Branch and resume:** Matching live turns keep the warm ACP session. With `save_session = true`, an exact saved checkpoint can resume natively (local state is written even under `--incognito`). Otherwise, the next direct submission after `/tree` or a cold resume starts a new ACP session: Panto sends its selected `history_transcript` as background and the new request once, in a single user message. Past tool calls and results are text, not dispatches. If Panto cannot supply the transcript for existing history, the turn fails rather than silently dropping context.
-**Boundaries:** Only a direct idle TUI submission can start, resume or reseed an ACP session. Once a turn completes, extension-submitted text (including workflow completion notices) can continue the same live primary thread if its checkpoint still matches. This checks session continuity, not the text prefix or which extension submitted it. No startup prompts, print/proxy calls, child-provider requests, compaction or automatic retries. Enter identifies a TUI path, not proof of personhood; don't automate this route. Keep the profile free of delegation hooks/servers and exclude delegation tools from the rig or use an explicit allowlist on this personal route. The relay supports text/image results. Force-kill can leave a stale socket, lock or generated `config/agents/panto-*.md` in the isolated profile: confirm the owner is gone before removing it.
+**Boundaries:** Only a direct idle TUI submission can start, resume or reseed an ACP session. Once a turn completes, extension-submitted text (including workflow completion notices) can continue the same live primary thread if its checkpoint still matches. This checks session continuity, not the text prefix or which extension submitted it. An explicit `panto -m antigravity:gemini-4-hydrogen -- "prompt"` in an interactive terminal counts as direct input; an automatic rig `PROMPT.md` does not. No print/proxy calls, child-provider requests, compaction or automatic retries. Direct input identifies a TUI path, not proof of personhood; don't automate this route. Keep the profile free of delegation hooks/servers and exclude delegation tools from the rig or use an explicit allowlist on this personal route. The relay supports text/image results. Force-kill can leave a stale socket, lock or generated `config/agents/panto-*.md` in the isolated profile: confirm the owner is gone before removing it.
**Offline release check:** `PANTO=/path/to/provenance-aware/panto mise run check` exercises source and installed-rock loading, renders the real footer with a fake CLI, and checks tool execution, resume, and headless rejection. No installed `agy` or Google account is used. See [evidence and compatibility](docs/findings.md).
diff --git a/tests/tui.exp b/tests/tui.exp
index 77ef267..f60f43e 100644
--- a/tests/tui.exp
+++ b/tests/tui.exp
@@ -63,8 +63,12 @@ send -- "\003"; expect eof; wait
# Also check unconditional launch flags when nothing is exported.
set cfg [open "$env(HOME)/.panto/config.toml" a]; puts $cfg {tools=[]}; close $cfg
set flag [open "$env(HOME)/.local/share/panto-antigravity/google/no-tools" w]; close $flag
-spawn -noecho $env(PANTO) --incognito -m antigravity:fast -r low
-see {antigravity:}; send -- "no-tools"; see {no-tools}; send -- "\r"; see {no-tools-ok}
+set rig "$env(HOME)/.panto"
+set file [open "$rig/PROMPT.md" w]; puts -nonewline $file {no-tools}; close $file
+spawn -noecho $env(PANTO) --incognito --rig $rig -m antigravity:fast -r low
+see {requires direct TUI input}; send -- "\003"; expect eof; wait
+spawn -noecho $env(PANTO) --incognito -m antigravity:fast -r low -- no-tools
+see {no-tools-ok}
send -- "\003"; expect eof; wait
# xhigh exists before switching models, but not on gemini-test.
spawn -noecho $env(PANTO) --incognito -m antigravity:fast -r xhigh