SNAPSHOT · TIER B · CLI

Grok Build 1.0.0@75e73f3

Pinned public repository commit 75e73f3; SOURCE_REV records upstream monorepo revision a61c32b12a2b400f212221cd8762e05f9b36828d. Sandbox claims preserve the source-visible unsupported/apply-failure fallback and do not imply universal fail-closed enforcement.

grok-build-2026-08-10-sourcecurrent9 claims
Evidence boundary

Source claims are pinned to commit 75e73f3d6ac0; product behavior still requires independent experiments.

looppartial
contextpartial
toolspartial
safetypartial
reliabilitypartial
extensibilitypartial
orchestrationpartial
interfacespartial
observabilitypartial

Grok Build source map

This analysis is pinned to public repository commit 75e73f3, whose SOURCE_REV points to monorepo revision a61c32b…. The released CLI was not executed. Repository sync, package version, installed binary, and hosted service are separate version identities and must not be silently equated.

TUI / headless / ACP
        │
        ▼
   session actor + turn
   ├─ Agent / sampler / retry
   ├─ ToolBridge + permission
   ├─ sandbox manager + workspace
   ├─ child sessions + hooks
   └─ ACP updates + JSONL events

1. Loop

The session run loop multiplexes commands, turn events, cancellation, and child work. A turn emits a start record, drives sampler output, dispatches tool calls, and projects terminal outcomes. This actor boundary prevents the TUI from becoming the authoritative state machine. Claim: grok-build-source-agent-loop.

2. Context

CompactionPolicy exposes context threshold, optional compaction model, memory flush, wall-clock limit, and optional two-pass behavior. The Agent checks measured context pressure before auto-compacting. These knobs make budget policy explicit, but source alone cannot establish summary quality or loss under real tasks. Claim: grok-build-source-context-compaction.

3. Tools

ToolBridge owns a finalized registry and presents tool definitions to the Agent. Built-in and MCP-backed tools enter a common dispatch boundary, reducing the risk that each client invents its own execution path. Typed registration does not replace permission, sandbox, timeout, or result redaction. Claim: grok-build-source-tool-bridge.

4. Safety

Semantic permission resolution and OS sandbox activation are separate. Deny precedence can prevent a request, while sandbox profiles attempt platform enforcement. The reviewed manager records requested versus active state, but its unsupported and application-failure paths warn and continue without sandboxing. Therefore “sandbox requested” must never be reported as “sandbox active.” Claim: grok-build-source-execution-policy.

5. Reliability

The sampler's retry module returns explicit decisions instead of scattering sleeps across call sites. It can honor retry-after, apply exponential jitter, strip problematic image input, rebuild a client, or stop on context/fatal errors. This is inspectable policy, not proof that replay is semantically safe for side-effecting turns. Claim: grok-build-source-retry-policy.

6. Extensibility

Plugins, skills, MCP tools, and hooks cover different extension layers. Hook events include session and tool lifecycle points; pre-tool dispatch can gate or modify work before execution. Because extensions can influence capability and policy, a run manifest must record the loaded extension set rather than identifying only the base binary. Claim: grok-build-source-extension-runtime.

7. Orchestration

Subagent resolution separates definitions, context, overrides, and resume identity. The task extension creates child session identity and carries isolation/worktree metadata. This is stronger than an inline prompt convention, but metadata still needs enforcement evidence: a named worktree or isolation mode is not proof by itself. Claim: grok-build-source-subagent-runtime.

8. Interfaces

The ACP library supplies line-oriented JSON-RPC channels, message types, and normalization. The shell projects session activity into ACP updates for external clients. A stable protocol surface enables editor integration and independent clients, while also creating compatibility, cancellation, ordering, and backpressure obligations. Claim: grok-build-source-acp-interface.

9. Observability

File-event utilities append versioned JSONL records, and the tracker emits turn, tool, permission, and terminal lifecycle events. This supports replay and audit tooling, but append-oriented source code does not establish retention, crash durability, access control, or public-safe redaction in every deployment. Claim: grok-build-source-event-log.

Evidence boundary and next experiment

The next safe experiment is a pre-registered, read-only headless run against a disposable fixture using streaming JSON, explicit tool deny/allow controls, disabled subagents and memory, a turn cap, and a requested strict sandbox. Capture must separately record whether the sandbox became active. Raw output stays private; only a reviewed redacted normalization can become evidence. Until then, all nine mappings remain Tier B source evidence.

PINNED SOURCE MAP

github.com/xai-org/grok-build

75e73f3d6ac0350d211f12ae7d57c2c0aad72576
  • SOURCE_REV
  • crates/codegen/xai-grok-shell/src/session/acp_session_impl/run_loop.rs
  • crates/codegen/xai-grok-agent/src/agent.rs
  • crates/codegen/xai-grok-agent/src/compaction.rs
  • crates/codegen/xai-grok-tools/src/bridge.rs
  • crates/codegen/xai-grok-workspace/src/permission/resolution.rs
  • crates/codegen/xai-grok-workspace/src/permission/policy.rs
  • crates/codegen/xai-grok-sandbox/src/lib.rs
  • crates/codegen/xai-grok-sampler/src/retry.rs
  • crates/codegen/xai-grok-hooks/src/event.rs
  • crates/codegen/xai-grok-hooks/src/dispatcher.rs
  • crates/codegen/xai-grok-subagent-resolution/src/lib.rs
  • crates/codegen/xai-grok-shell/src/extensions/task.rs
  • crates/codegen/xai-acp-lib/src/lib.rs
  • crates/codegen/xai-file-utils/src/events/log.rs
  • crates/codegen/xai-file-utils/src/events/tracker.rs
  • crates/codegen/xai-file-utils/src/events/types.rs
CLAIM LEDGER9 REVIEWED · 0 DISPUTED
sourcereviewed

grok-build-source-acp-interface

Grok Build's pinned ACP library implements line-oriented JSON-RPC transport and normalization, and the shell projects Agent activity into ACP session updates for editor or process clients.

Reviewed
2026-08-10
Sources
1
sourcereviewed

grok-build-source-agent-loop

Grok Build's pinned session actor multiplexes commands and asynchronous events, explicitly starts turns, streams sampler output, dispatches tool calls, and emits lifecycle updates through completion, failure, or cancellation.

Mechanism
Agent Loop
Reviewed
2026-08-10
Sources
1
source + sourcereviewed

grok-build-source-event-log

Grok Build's pinned file-event utilities write versioned session events as append-oriented JSONL, and the tracker emits typed turn, tool, permission, and terminal lifecycle records.

Mechanism
Event Stream
Reviewed
2026-08-10
Sources
2
source + sourcereviewed

grok-build-source-execution-policy

Grok Build's pinned source separates semantic allow/ask/deny policy from OS sandbox activation; the manager exposes requested and active state, uses supported platform backends, and may explicitly continue unsandboxed when unsupported or application fails.

Reviewed
2026-08-10
Sources
2
sourcereviewed

grok-build-source-retry-policy

Grok Build's pinned sampler retry module produces explicit decisions for rate limits, transient failures, context limits, image fallback, and client rebuilds, using retry-after or exponential jitter while leaving fatal outcomes non-retryable.

Reviewed
2026-08-10
Sources
1
sourcereviewed

grok-build-source-tool-bridge

Grok Build's pinned ToolBridge owns a finalized registry, exposes model-facing definitions, supports built-in and MCP-backed registrations, and routes calls through typed registry dispatch.

Mechanism
Tool Dispatch
Reviewed
2026-08-10
Sources
1