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

Prototype gated Grok usage extraction - #46

Closed
ElbertePlinio wants to merge 1 commit into
feat/fable-four-provider-dashboardfrom
feat/grok-secure-usage-prototype
Closed

ElbertePlinio wants to merge 1 commit into
feat/fable-four-provider-dashboardfrom
feat/grok-secure-usage-prototype

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Purpose

Fixture-only security prototype for a possible Grok consumer-usage extractor. Live extraction remains structurally disabled until xAI grants written permission.

Changed

  • add a versioned allowlisted response containing only overall used/remaining percentage, reset timestamp, and product usage
  • fail closed on auth/verification pages, changed layouts, unknown fields, duplicate products, invalid percentages, and invalid calendar timestamps
  • reject the page-consuming entry point before touching the page while the permission gate is disabled
  • prove raw text, account identity, cookies, and token-like values never appear in responses

Safety boundary

  • no grok.com URL or navigation
  • no runtime/sidecar import
  • no cookie, token, CLI auth, browser-profile, or identity access
  • no stealth or anti-bot bypass
  • activation requires an explicit future code change after written xAI permission

Validated

  • bun run test — 74 frontend tests and 25 sidecar tests passed
  • Grok-first local review — clean after fixing strict-shape, timestamp, auth-page, precision, and gate findings
  • GitHub Codex review intentionally not requested; local-review workflow is authoritative for this draft

Dependency

Stacked on draft PR #44 because it requires the provider-safety changes. Do not merge this PR automatically or run it against grok.com.

Refs #45

Keep live extraction structurally disabled until xAI grants permission.\n\nRefs #45
@ElbertePlinio

Copy link
Copy Markdown
Member Author

Deferred by product decision: PickGauge will ship the current work as a Codex + Claude/Fable experience. No Grok live extraction will be pursued without a future provider-supported integration. This PR was never merged or run against grok.com.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant