summaryrefslogtreecommitdiff
path: root/TODOs.md
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-12-04 14:06:45 -0700
committert <t@tjp.lol>2026-12-04 14:23:57 -0700
commit835b962682c13a16696dd3f4fe1428dbab9141b5 (patch)
tree5a3b449eb4eeab7cad2f65791a228c1cb2a7d581 /TODOs.md
parent34d347ffb9ced22f6004af320958f9d1a0ae22d2 (diff)
Document platform and headless CLI follow-ups
Diffstat (limited to 'TODOs.md')
-rw-r--r--TODOs.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/TODOs.md b/TODOs.md
new file mode 100644
index 0000000..c14608b
--- /dev/null
+++ b/TODOs.md
@@ -0,0 +1,20 @@
+# Project ideas
+
+## Broaden platform support beyond macOS
+
+- Today `panto-antigravity` hard-requires macOS: `acp.lua` asserts `uv.os_uname().sysname == 'Darwin'` in `executable()`, runs `/usr/bin/codesign` against Google's Apple developer signature in `verified()`, preserves `HOME` for the macOS login Keychain, and hardcodes `/usr/bin/nc -U` in `relay()`. `panto-antigravity-0.1.0-1.rockspec` sets `supported_platforms = { "macosx" }`, and `check.lua` runs inside `/usr/bin/sandbox-exec` using `/private/tmp`.
+- Wanted: support Linux (and any other platforms `agy` officially ships on) without weakening the CLI verification or profile-isolation boundary.
+- Open questions and work before expanding `supported_platforms`:
+ - Determine how `agy` is distributed and signed/verified on non-macOS platforms, and design the per-OS verification path in `acp.lua` (`verified()` / `executable()`).
+ - Replace the hardcoded `/usr/bin/nc -U` bridge in `relay()` with a portable Unix-socket stdio relay or detected platform command (`nc` paths and `-U` flags differ across Linux distros).
+ - Verify how `agy` stores and resolves credentials under `--gemini-dir` on Linux (keychain/keyring vs file-backed auth) and confirm `private_profile()` permission checks and `/tmp/panto-antigravity-*` lock/socket paths in `extensions/antigravity-acp.lua` work cleanly there.
+ - Add a non-macOS sandbox/runner path in `check.lua` (currently `/usr/bin/sandbox-exec`, `/private/tmp`, and `/usr/bin/codesign` stubbing) so `mise run check` can verify both platforms.
+ - Update `panto-antigravity-0.1.0-1.rockspec` (`supported_platforms`) and `README.md` (macOS-only setup and Keychain notes) once verified end to end.
+
+## Investigate `panto -p` failure (`ProviderProtocolFailed`)
+
+- Symptom: `panto -p --model 'antigravity:gemini-4-hydrogen' -- 'what is todays date?'` exits 1 with `error: turn failed: ProviderProtocolFailed`.
+- Today: `PrintSession` in `../pantograph/src/main.zig` does initialize extensions (`session_ready` fires with `has_tui = false`), so `ready` is true, but `req.tui_submission` is `false` outside the TUI. `extensions/antigravity-acp.lua` rejects non-TUI openings with `terminal('Antigravity requires direct TUI input on a provenance-aware Panto build. No subscription request sent.')`, which `../pantograph/src/lua_provider.zig` maps to `error.ProviderProtocolFailed` — and `check.lua` currently asserts this exact `headless denial` behavior (matching `README.md`: "No print/proxy calls").
+- Open questions and work:
+ - Decide whether explicit `panto -p` invocations should remain intentionally blocked or be permitted (and if permitted, how to distinguish direct CLI `-p` runs from headless/automated callers if needed, and update `README.md` + `check.lua`).
+ - Surface the extension's `terminal` error message in `PrintSession` (instead of only `error: turn failed: ProviderProtocolFailed`) so intentional rejections aren't indistinguishable from protocol initialization bugs.