# 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.