Skip to content

Always-on fake-grok runner: --always-approve curl|sh stays unexecuted + Guardrail event #829

Closed

Description

@currentbits

Goal

Default (always-on, no GROK_LIVE) runner integration: fake grok is --always-approve, never emits control_request, consults overlay GROK_HOME/config.toml [[hooks.PreToolUse]], would execute curl | sh, and the test asserts marker executed: false plus a transcript Guardrail event.

Why

#812 / #827 inject writes the live 1.0.13 overlay shape. This worktree was missing that inject (source-thread hand-off only). The unit tests lock decideGrokGuardrail and the TOML shape; they do not prove the runner + fake grok path. Live canary stays electron/test/grok-live-hook.test.js skip-unless-GROK_LIVE=1 and skip when CI=true. Do not enable GROK_LIVE in CI. Do not invent a control_request path.

Must

  • Fake grok: --always-approve, no can_use_tool / control_request
  • Consults GROK_HOME/config.toml PreToolUse (not a invented CLI flag)
  • Marker: executed: false for curl | sh via run_terminal_command
  • Transcript has a Guardrail event
  • Claude control_request seam unchanged
  • CI unchanged re GROK_LIVE

Related: #812 #827 #826

Activity

  1. currentbits commented on Sep 2, 2026

    @currentbits
    OwnerAuthor

    Always-on fake-grok runner is in electron/test/grok-guardrail-hook.test.js last describe.

    • Fake is --always-approve, never emits control_request, consults overlay GROK_HOME/config.toml [[hooks.PreToolUse]].
    • Marker: executed: false for curl | sh via run_terminal_command.
    • Transcript has Guardrail blocked run_terminal_command: shell.curlpipe: … from grokGuardrailNotice on ingest (not a can_use_tool path).
    • This worktree also needed the Unit test: overlay inject writes live-proven config.toml PreToolUse (not hooks/ symlink) #827 inject (materializeGrokHome + grok-guardrail-hook.js); hand-off assumed it was already here.
    • Claude control_request suite still green. CI does not set GROK_LIVE.
  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