Skip to content

Hardening: explicit user approval, local-safe research, Gemini API and opt-in debug - #1

Merged
the-code-learner merged 28 commits into
mainfrom
hardening/user-controlled-actions-local-llm-gemini
Nov 5, 2026
Merged

the-code-learner merged 28 commits into
mainfrom
hardening/user-controlled-actions-local-llm-gemini

Conversation

@the-code-learner

@the-code-learner the-code-learner commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • User has final say: fresh approval for all browser interactions (including navigation and clicks). Read-only observation/research can continue automatically. High-risk or sensitive actions add typed confirmation and an extra disclaimer; no automatic session approvals. CAPTCHA/OTP flows remain manual.
  • Approval boundary: single-use, plan-bound grants checked in the MV3 service worker. Requests to authorize/execute from content scripts are rejected.
  • Local LLM support preserved: user-configured localhost and LAN HTTP model providers continue to work. Public http_request research separately blocks private network destinations and checks redirect hops, with DNS-pinned connections.
  • Google Gemini API: new Google AI Studio API key preset and model discovery through Google's documented OpenAI-compatible API. Gemini free-tier eligibility and quotas depend on the account/model. This is not Antigravity IDE authentication.
  • Optional detailed debug: toggle per HTTP provider, off by default; sensitive HTTP request artifacts stored in a private local debug directory only when explicitly enabled.
  • Resilience/privacy: malformed Native Messaging frames handled safely; bounded HTTP-provider inactivity timeout by default; Mermaid preview remains local instead of sending diagram contents to a remote image service.
  • Security dependencies: patched @xmldom/xmldom, brace-expansion (two nested versions) and tmp in the lockfile. The existing moderate-level npm advisories remain tracked by audit output.
  • Validation: GitHub Actions checks syntax, scaffold, unit/security invariants, memory/attachment tests and high-severity npm audit. The latest run is green.
  • Documentation: docs/security-and-providers.md and README link.

Before merge

  • Test the MV3 side panel and native messaging bridge manually in Chrome, including after permission prompts, slow local LLM calls and Gemini rate-limit errors.
  • Test error cases across Windows/macOS/Linux and verify native host file permission semantics.
  • This PR is a focused first hardening pass; large-scale modularization, persistent Deep Search checkpoints and broader browser integration tests are follow-up engineering work rather than silently bundled into this patch.

Review note

This PR intentionally remains draft until manual browser testing and final review.

@the-code-learner
the-code-learner marked this pull request as ready for review November 5, 2026 21:31
@the-code-learner
the-code-learner merged commit 4fd2d53 into main Nov 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant