Skip to content
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
This repository was archived by the owner on Sep 23, 2026. It is now read-only.

Prototype a permission-gated Grok usage extractor #45

Closed as not planned
Closed as not planned

Description

@ElbertePlinio

Goal

Build and validate the security boundary for a future Grok consumer-usage extractor without accessing grok.com until xAI grants written permission.

Safety gate

  • No live grok.com navigation, login, scraping, cookie/profile import, token access, stealth, or protective-measure bypass.
  • Fixture-only extraction until xAI explicitly permits the integration and defines polling limits.
  • Dedicated app-owned profile if live access is later authorized; raw HTML, cookies, URLs, identity, and auth state never cross into PickGauge.
  • This prototype stays on a separate branch and does not merge before permission and manual review.

Plan

  • Define a versioned allowlisted sidecar protocol returning only usage percentage, product, and reset timestamp
  • Implement fail-closed extraction against sanitized representative Usage-page fixtures
  • Reject unknown fields, malformed percentages/timestamps, login pages, and changed UI shapes
  • Prove logs and IPC contain no HTML, cookies, tokens, URLs, profile paths, or account identity
  • Add a disabled runtime permission gate that cannot navigate live without a future explicit code change
  • Add developer documentation for the xAI approval requirements and activation checklist
  • Run focused sidecar/frontend/Rust tests and security review
  • Open a draft PR for review; do not merge or run against grok.com

Activation requirements

  • Written xAI permission for the intended automation
  • Documented permitted fields and polling frequency
  • Provider-approved auth/browser mechanism
  • Manual security and product review

Feature flag: none. The prototype remains unmerged and has no live runtime path until permission exists.

Current status: Planned
Next: create an isolated worktree and lock the extractor protocol.

Activity

  1. ElbertePlinio commented on Jul 12, 2026

    @ElbertePlinio
    MemberAuthor

    Implementation started in isolated branch feat/grok-secure-usage-prototype. Live grok.com access remains structurally disabled; this pass is fixture-only protocol, extraction, and security validation.

  2. ElbertePlinio commented on Jul 13, 2026

    @ElbertePlinio
    MemberAuthor

    Prototype ready for review

    • Versioned allowlisted protocol
    • Sanitized fixture extraction
    • Fail-closed auth, malformed, duplicate, unknown-field, and strict timestamp handling
    • Raw text/identity/token-like value redaction tests
    • Live gate rejects before touching a page
    • Grok-first local review clean after fixes
    • bun run test — 74 frontend + 25 sidecar tests passed
    • Draft PR Prototype gated Grok usage extraction #46 opened

    PR: #46
    Base: draft PR #44

    The prototype contains no grok.com URL, navigation, runtime import, browser-profile access, cookie/token access, or activation path. It must not merge or run live without written xAI permission and a separate activation review.

    GitHub Codex review was not requested per the local-review workflow.

    Current status: In review
    Next: manual code/security review and xAI permission decision.

  3. ElbertePlinio commented on Jul 13, 2026

    @ElbertePlinio
    MemberAuthor

    Deferred. PickGauge will remove Grok and Ollama from the current product surface and ship the remaining Codex + Claude/Fable work first. Draft PR #46 was closed unmerged. Reopen only when a provider-supported, permitted machine-readable quota integration exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions