Runtime Governance Quickstart

May 7, 2026 ยท View on GitHub

minmaxing is Claude Code first. It can also be used from Codex through the official OpenAI codex-plugin-cc plugin or direct Codex CLI defaults, but the runtime governance surface in this repo is written around Claude Code settings, hooks, skills, and workflow artifacts.

Use this guide to choose the right profile before running work.

Profile Matrix

ProfileUse WhenPermission PostureProof Command
project-defaultOperator-owned private local loopbypassPermissions in committed project settings, with explicit warning, secret denies, and governance hooksbash scripts/security-smoke.sh
solo-fastTrusted local operator, fast iteration, private machinebypassPermissions example with governance hooks and secret/destructive-command guardsbash scripts/security-smoke.sh
team-safeShared repo, teammates, reviewers, or client-visible workacceptEdits example with governance hooks and safer defaultsbash scripts/security-smoke.sh
opussonnetOptional Claude-only harness usage without a MiniMax Token Plantrusted-local bypassPermissions; no MiniMax base URL; opusplan pinned to Opus 4.7 + Sonnet 4.6bash scripts/opusminimax-doctor.sh --static --executor-provider claude-sonnet
ci-staticPublic PRs and no-secret release checksNo runtime credentials, static scripts/evals/docs onlybash scripts/release-check.sh --static-only
ci-runtimeAuthenticated smoke/eval in an isolated environmentExplicit credentials from secrets, never default on public PRsmanual .github/workflows/harness-runtime.yml

Start Local

Run the static local harness first:

bash scripts/test-harness.sh

For release-style static checks without authenticated Claude runtime behavior:

bash scripts/release-check.sh --static-only

These commands must not need production secrets.

Choose A Claude Code Profile

This repo's committed default is trusted-local bypassPermissions because the operator intentionally optimizes for a fast solo loop. That means Claude Code can act without normal permission prompts; use it only on a private machine and repo where that local authority is acceptable.

For shared work, start with the team-safe example:

cp .claude/settings.team-safe.example.json .claude/settings.local.json
bash scripts/security-smoke.sh

For trusted solo local speed, the committed default already matches solo-fast; inspect the example when changing local profile details:

python3 -m json.tool .claude/settings.solo-fast.example.json >/dev/null
bash scripts/security-smoke.sh

Do not make bypassPermissions the default for teams.

For the optional Claude-only Opus + Sonnet path:

bash setup.sh --mode opussonnet
claude
/opussonnet "build a small feature"

This pins Claude Code opusplan, claude-opus-4-7, and claude-sonnet-4-6 in ignored local settings. It is useful when you want the whole harness but do not want to configure MiniMax. It is not the default MiniMax-backed /opusworkflow budget strategy, and runtime model identity still depends on the authenticated Claude account.

Runtime Smoke

Authenticated runtime checks are opt-in:

RUN_CLAUDE_INTEGRATION=1 bash scripts/test-harness.sh

Only run this when Claude Code is authenticated locally and the workspace is safe for runtime tests. Runtime smoke must not run by default on public PRs; public PRs should rely on static checks. The hosted runtime workflow is manual and must receive credentials through GitHub secrets, not committed files.

Codex Users

This repo includes .codex/config.toml and AGENTS.md so Codex can share the same project expectations. Codex can inspect, implement, and verify the harness, but it should respect the Claude Code runtime target:

  • Do not describe Codex max_threads as Claude Code runtime concurrency.
  • Treat Codex subagents as explicit, bounded execution lanes, not a default.
  • Use scripts/parallel-capacity.sh --json and the active SPEC.md before estimating or splitting work.
  • Keep OpenAI/Codex product questions tied to official OpenAI docs.

Evidence Before Trust

The harness is not "autonomous because it says so." A run is trustworthy only when the relevant gates have evidence:

  • SPEC.md success criteria exist.
  • Agent-Native Estimate is present for non-trivial planning.
  • Worker/subagent outputs are parent-verified.
  • Parallel runs aggregate .taste/parallel/{run_id} with scripts/parallel-aggregate.sh when those artifacts exist.
  • Verification records commands, metadata, and residual risks.
  • Memory claims cite scripts/memory-eval.sh, scripts/memory.sh health, or concrete memory event artifacts.

Public Boundary

Use dummy examples in this repo. Keep these out of public commits:

  • REVCLI/Revis private runtime code.
  • Customer Hermes agents or memory seeds.
  • Real credentials, audit logs, private connector details, and tenant data.
  • Commercial implementation packs and managed-service playbooks.