Skip to content

Skip-unless-GROK_LIVE canary for #812 overlay PreToolUse deny #826

Closed

Description

@currentbits

Goal

Encode the 2026-09-02 live grok 1.0.13 proof on #812 as a skip-unless-env electron canary. Default suite and CI stay on the fake grok. GROK_LIVE=1 (and not CI) spawns the real CLI.

Must

  • Isolated GROK_HOME: symlink auth.json only. Do not symlink hooks/ or sessions/ (stale-session GC deletes through a sessions link).
  • Overlay config.toml [[hooks.PreToolUse]] denies with {decision:deny} / exit 2 and writes a marker.
  • Spawn real grok --always-approve --output-format streaming-messages-json -p … so the model must call run_terminal_command to write a canary file.
  • Assert: hook marker exists, canary file does not, transcript contains Hook denied, transcript does not contain control_request.
  • Do not invent a control_request path. Do not enable this in CI.

Related: #812

Activity

  1. currentbits commented on Sep 2, 2026

    @currentbits
    OwnerAuthor

    Landed on this branch: electron/test/grok-live-hook.test.js plus scripts/test-electron.js WIN32_FILES so Windows CI parses and skips it.

    Verified:

    • no GROK_LIVE → suite SKIP
    • GROK_LIVE=1 CI=true → SKIP
    • GROK_LIVE=1 against grok 1.0.13 → 2/2 pass (inspect configToml + deny before canary, ~48s)
  2. added
    plan:done
    and removed
    plan:doing
    on Sep 2, 2026
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

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions