Skip to content

Changelog

All notable changes to this package are documented here. Versions follow Semantic Versioning.

0.15.0

  • code-review makes verification and remaining coverage visible.
  • Confidence names each gap and what would close it. Only unexecuted required checks count toward this verification limit.
  • Benchmark and memory claims compare base and head by relative effect. Each claim gets one disposition with its provenance, tested scope and reproduction evidence. Missing execution authority or failed provisioning is incomplete, a missing required hardware or OS class is unverified, and completed but unresolved measurements are inconclusive. Eligible dependencies are provisioned and used on the selected verification route in a throwaway environment.
  • Changelog, migration guide and CI workflow changes, and stated performance or memory claims, prioritize their review axes within the cap. Each selected axis that could not run is reported separately.
  • Forked pull request trust and sandbox verification follow the active execution policy.
  • all-sandbox routes every workflow check through rig_sandbox. Host gate and script execution refuse, and the shell and Code Mode hooks enforce the policy even when inspection or guardrails are off. Proven host inspection and enabled, narrowly scoped Git writes remain available where the hook admits them.
  • rig_sandbox copies the resolved worktree and returns disposition and next_action even if the receipt file cannot be saved. A finished check supplies a pass or fail result. A missing image or runtime can point to an eligible host check or trust request, while an unconfirmed timeout leaves the check incomplete. The receipt records the network setting used for verification.
  • Host trust applies to a review worktree with a verifiable commit only while inspection and guardrails are enabled and host verification is allowed. It lasts up to 24 hours for the same resolved path and HEAD, including a worktree recreated there at that commit. A declined or unanswered trust request leaves the check incomplete.
  • Hook-bound inspection and shipped command blocks use one effective-directory rule. A directory change qualifies only as a leading literal cd <absolute path> && ..., and every following fragment is checked in that directory. A shipped block also needs trusted directory evidence for its cd prefix. Configured denies stay binding for inspection, shipped blocks and designed writes.
  • Git guardrails keep credential-disclosing gh forms out of automatic inspection. Only masked gh auth status forms qualify, and journal redaction catches capitalization variants of Basic and Bearer authorization values, including those truncated at the capture boundary.
  • Designed Git writes check the actual paths selected by git add, including descendants of directory operands and tracked files matched by ignore rules. Staging that selects a protected path or whose selection cannot be verified loses the automatic allow. An implicit git checkout <path> that would discard unstaged tracked changes gets the destructive-operation prompt.

0.14.0

  • The code-review skill weighs its verdict against the change's own purpose and size: a required resolution that reverses the central change or rewrites most of the diff now yields Major revision (or Insufficient, but a good initiative) instead of Minor changes.
  • The opening review verdict gives the reason and evidence for each rejection, including a disproved premise. A duplicate PR recommendation links to the original change or resolved issue and explains the shipped behavior and any remaining difference.
  • PR-backed remediation handoffs link the reviewed PR number and identify local fixes or publication verified on that PR.
  • PR reviews record hosted CI at intake and at consolidation, so readers can see which checks changed while reviewers worked. A pending or failed check leaves the review running. A failed CI read, empty check list or changed PR head at either point is recorded as a coverage limit for the reviewed commit, with its reason.

0.13.0

  • Install and upgrade:
  • setup --prune-extra removes stamped role cards this package no longer ships, and make sync-opencode runs it. A card is deleted only while its body still matches the stamp it was installed with, so a card you edited is reported KEEP and left in place; check never deletes, and remove is unchanged.
  • Install and upgrade docs state that opencode plugin add never re-resolves a recorded Git specifier, so an existing install reaches a newer published commit only through opencode plugin update '<specifier>' or make sync-opencode. The update target is the configured specifier, not the package name, and the refresh step now sits beside the pinned-commit guidance where the install is described.
  • Optional rtk guidance in the shared evidence reference now tells agents to run every command raw: rtk cuts or reshapes the output of ls, git, gh and find, and where it cannot store the cut part (a sandbox) the entries are lost; the old rtk git status --short example made the shell guard ask on every use and compressed nothing. The doctor RTK line no longer tells users to prefix read-heavy commands and states that rig workflows run every command raw.

0.12.0

  • Review verdicts use one five-level source scale: APPROVE, MINOR_EDITS, MAJOR_REVISION, INSUFFICIENT_BUT_PROMISING and REJECT, or null when no defensible source judgment exists. The handoff table no longer offers approved, approved with notes or changes requested: an approval with notes, and a diagnostic pass or warning, is APPROVE with non-blocking notes, and a change request is MINOR_EDITS for a bounded, localized remedy or MAJOR_REVISION for material impact or substantial repair. code-review, the code-remediate re-review and a final challenge that judges a contribution pick the level from the remaining confirmed findings; a missing check or unavailable reviewer lowers confidence and never yields INSUFFICIENT_BUT_PROMISING or REJECT. investigated and blocked remain run states.

0.11.0

  • Implementation scope and completion:
  • A trivial implementation is declared and accounted, not policed. The mini-plan declares {goal, owned_paths, acceptance_check, feasibility} with at most two normalized project-relative files; .git or artifact paths, directories, symlinks, hard links and non-regular files are refused, and a declared new file may start before it exists. The run reports its own measured change as a line-hash diff from the bytes it started with; a change above 50 lines or two files, or a file it cannot measure, is recorded as a limit that points later work at rig-plan instead of failing the run. The measurement does not consult Git's index, attributes, filters or config, so no ambient setting can shrink it.
  • A recorded output must stay inside the run's declared paths: rig_evidence with outputs refuses an undeclared path. This is a deterministic check on what the run records, not an inspection of the working tree. An edit outside the recorded evidence remains outside the run's certificate, and the handoff says so.
  • A frozen-plan implementation completes only with a final challenge bound to its final bytes and every finding resolved: the run requires the findings inventory, rejects any open finding, and fails when the recorded challenge predates the last edit. A security, critical or high finding that is not disproved starts a recorded fix-and-re-challenge loop on the implementation run; rig_loop accepts rig-implement, fixes refresh the scope and rerun the gates, the next round re-challenges the new bytes, rounds are bounded by maxLoopRounds, and a run that reaches the limit finishes blocked with its residue. Lower severities close by disposition without a loop round, so a clean challenge still ends in one pass.
  • A finalize whose recorded scope path has disappeared reports the missing path as a failed finalize instead of throwing, so the run states what is wrong and why it cannot complete; recovery is a replacement run with a fresh selection.
  • Workflow and review rules:
  • Workflow boundaries are stated once: rig-plan delivers a verified plan; rig-implement consumes it and owns the final challenge and its loop; rig-challenge runs the same ledger on request for risky work; code-remediate remains the route for a review inventory or a finding outside the plan's owned paths. There is no separate delivery skill, because the two stages already refuse to run out of order.
  • The review protocol states its triage: a contract defect blocks, a documented limit is recorded rather than fixed, and a round stops the loop only when it finds no contract-class high. rig-challenge and the convergence reference carry the classes and the stop rule, so a reviewer given the accepted-risk register does not re-litigate ambient-state limits. The working-tree and index detectors added while the size check was treated as a security control are removed with their tests: Git-diff measurement, staged-path reconciliation, index-flag checks, attribute-source overrides, outside-change and size failures.
  • Upgrade notes: an existing 0.10.0 run is unaffected. A frozen-plan implementation that recorded only a reviewer must also write its findings inventory, empty when the challenge found nothing. A change that previously failed on size or on an undeclared working-tree change now completes with a recorded limit; the declared scope, the recorded-output rule and the path hygiene checks still apply.

0.10.0

  • Workflows and roles:
  • Workflow and role names now state what they do. rig-review is code-review, rig-remediate is code-remediate, rig-doctor is rig-health, rig-implementer is rig-builder, rig-reviewer is rig-auditor, and rig-scientist is rig-researcher; slash commands, installed agent cards, run directories, and documentation use the new names. The refs/rig-review/* Git ref namespace is unchanged data, and runs already recorded under an old skill directory stay where they are.
  • rig-research now covers experiment methodology and implementation fit as well. It judges a design, metric, guard, and ablation plan before anyone runs it, and maps each recommendation onto the affected source, tests, and configuration read-only; the no-experiment, no-code-change boundary is unchanged.
  • rig-distill now takes a one-time snapshot of recorded runs and the instruction files that govern them. Alongside new or extended assets it proposes exact consolidate, prune, and clarify instruction edits and promotion of repeated run scripts, and still installs, edits, or deletes nothing.
  • New rig-creator role agent writes approved-outline articles, user docs, Marp decks, social threads, talk abstracts, animated SVGs, and short-video HyperFrames source. It writes only the named artifact paths, produces media source without rendering, and reports supplied assets and verification limits.
  • The designed Git write allow now accepts native Windows worktree paths, and rig_sandbox rejects a missing worktree with the documented boundary instead of a platform ENOENT. Path-sensitive checks resolve paths on the host platform, so the suite passes on Windows as well as macOS and Linux.
  • Upgrade note: init reports three stamped role cards as EXTRA after the rename. Remove rig-implementer.md, rig-reviewer.md, and rig-scientist.md from the agents directory so the old cards stop appearing as available subagents.

0.9.0

  • Shipped command blocks can run on their exact text. blueprint (default true) allows a command whose every top-level fragment is a kind: "command" entry in the new src/resources/blueprint-manifest.json, after CRLF, trailing-whitespace, quote-aware comment and blank-run normalization. The manifest is built from the fenced bash/sh blocks in the shipped skills, roles and references; a block with a runtime value, heredoc, unterminated quote or line continuation is skipped, a partial compound asks, and a packaging harness keeps the manifest byte-derived (with normalization and fragment vectors). The always-ask classes and a configured deny still win, and blueprint: false disables the allow.
  • The verification allow now covers npm test -- <script args> (and the npm run test|lint|typecheck|check -- <args> spellings) and uv run python -m pytest, and the new readers have explicit option tables so an unknown option asks instead of slipping through.
  • The inspection set now covers the safe read-only commands a review uses beyond the original readers: egrep/fgrep/rgrep, checksum tools, text filters (rev, tac, fold, fmt, expand, unexpand, column, paste, join, tsort), binary readers (od, hexdump, strings, base64, xxd read form, zcat) and git config --get. Interactive pagers, tree, writing decompressors, archive extraction, awk and sed -i stay out. A relative .. operand or a cd outside the reviewed tree now asks instead of reaching the allow.
  • A second adversarial pass over UX and security tightened the boundary again: the inspection allow refuses absolute/home path operands and $/backtick runtime values; a verification's effective directory is recorded per fragment, so a later cd cannot move the trust anchor; trust records are validated on read (words, ref, review worktree, timestamps) and ignored otherwise; execution: "all-sandbox" now actually refuses host verification (it was previously inert) and rig_sandbox accepts the project root or a review worktree while excluding .git and credential-shaped files; rig_script accepts run-relative paths and runs a probe from a session without an active run, and checks the size cap before hashing; doctor reports the execution mode, image and blueprint state.
  • A forked pull request's verification can now run in a container instead of on the host. execution (default "fork-sandbox") boxes a forked PR's tests in rig_sandbox: a copy of the worktree without its Git metadata, a digest-pinned sandboxImage, the network off unless the call opts in, CPU/memory/process caps, and a receipt with image, command, exit and log. A same-repository PR and your own checkout run on the host; all-sandbox boxes every verification, and host keeps the trust-only baseline. With no runtime or image configured, the review asks the user once per fetched commit with the new rig_trust tool; the literal Trust this PR answer records <artifact>/trust/<commit>.json, which expires, covers one commit, and is never a general allow.
  • Verification is now scoped by provenance in the inspection allow: a test, gate or script is allowed only in the project root, an own worktree whose HEAD is an ancestor of your HEAD, or a worktree with a matching trust record. Read-only inspection stays allowed in any directory. A leading cd <directory> && <command> sets the effective directory, and a verification anywhere else asks. doctor reports the execution mode, and the review skill records isCrossRepository before verification.
  • Role agents can run the inspection and verification work a review is made of without stopping, while anything outside that design still asks. inspection (default true) lets the permission hook answer the role's shell: * ask with allow for a positively proven read-only inspection or a configured verification command. A compound is split into top-level fragments and every fragment must pass on its own, so a read-only pipeline stays prompt-free while a hidden unproven fragment asks; a literal cd <absolute path> sets the effective directory. A path-qualified program such as ./cat is refused because its bytes are not the named program; .venv/bin/python -m pytest is the documented exception.
  • The positive set is the read-only readers, read-only Git verbs, read-only gh views, and the verification family: pytest, environment-prefixed or .venv python -m pytest, uv run pytest|ruff|mypy, npm test, npm run test|lint|typecheck|check, and make test|lint|typecheck. Programs outside the set ask.
  • Two structural signals from the shell grammar refuse the allow: writes for an output redirect, a write-valued option (sort -o, sort --output=, uniq output, find -fls/-fprintf/-fprint/-fprint0, a Git write verb) and executes for a shell, script interpreter or exec channel (find -exec, rg --pre, grep --open-files-in-pager). git add, sort -o, sed -i, bash script.sh and python script.py therefore still ask.
  • Every resource in a multi-command event must pass; one failure leaves the event to the rules. A configured deny is final, execute events are untouched, and inspection: false or guardrails: off disables the allow.
  • The decision is stateless: command text and shipped tables only, with no approval file, run pointer or lock, so parallel reviews and nested subagents resolve independently. The allow proves a command shape, not the code a test or project script runs; a fetched pull-request worktree remains third-party code and the review still asks before verification there.
  • The shell grammar closes four gaps behind the unparsed-git asks: /dev/null, /dev/stderr and /dev/stdout are supported sinks; a word made only of = is data in a data command (echo ====, grep ==== file); uv run pytest|ruff|mypy resolves to the inner tool; and read-only gh views and gh api GETs are modelled. /dev/tty, a general =-prefixed word and uv run python script.py still ask.
  • The Git writes a workflow performs by design now run without a prompt through designedWrites (default true), as whole, literal commands:
  • The review fetch: exactly git fetch --no-tags --no-write-fetch-head --no-auto-maintenance <url> refs/pull/<n>/head:refs/rig-review/pr-<n>-<sha12>, with no leading +, a literal URL and matching <n>.
  • The review worktree: git worktree add --detach <path> <sha40>, git worktree remove [--force] <path> and git worktree prune, with <path> under the host temp root's opencode/review-*. The remove form is admitted ahead of the destructive class only for that prefix; a worktree anywhere else still asks.
  • Owned staging: git add <literal relative paths> with no option, no -A/--all, no ./.. segment, no glob, no absolute or parent path and no pathspec magic.
  • Any other fetch, a compound command, a quoted operand, a substitution, a path outside the two roots, and a commit without a grant still ask. A configured deny stays final, and designedWrites: false turns the allow off. The allow is independent of the guardrail mode, so it survives guardrails: off by design.
  • Ad-hoc workflow code now runs as a declared script file through the new rig_script tool instead of an inline -c body or heredoc. The source class names the root: run is a regular file under the active run's scripts/, project is a file under the checkout's scripts/, bin/ or tools/, and plugin is a helper under the installed package's bin/ or scripts/ whose SHA-256 matches the shipped listing (src/resources/plugin-files.json, checked by a packaging test). The tool resolves the real path and refuses a symlink escape, caps the file at 256 KiB and argv at 64 short entries, runs a fixed interpreter from python, python3, node, bash, sh, awk, uses a positive environment allowlist and a bounded process tree, and writes a log plus a receipt with the source class, digest, argv, exit code, stream digests and a redacted tail. It proves what ran, not that it is safe; a script can use the network.
  • rig-implement and rig-investigate direct probes to the run's scripts/ directory with rig_script, and the implementer and investigator role cards say so. The tool uses the same custom-action permission path as the Git grant, so it has no prompt rule of its own.
  • doctor reports both allows, and the permissions guide documents them and their refusals.

0.8.0

  • Plans now carry a depth-first task tree: a node splits only when it is not a coherent, independently verifiable unit; every leaf has one owner and exactly one acceptance check; depth 4 and 32 leaves are enforced. The tree is validated when a plan is bound (record for rig-plan, start for a frozen rig-implement), and a shared path between siblings becomes a dependency.
  • rig-plan records its challenged rounds in the plan's Challenge rounds section; finalizing requires that section and a converged outcome, so a round-limit/authority-required residue is not ready. The round budget is options.maxLoopRounds, instruction-enforced with the review digest binding the final plan bytes.
  • rig-implement executes the tree depth-first, checks each leaf before the next, delegates disjoint leaves, and records one mandatory independent final challenge after the gates. A frozen-plan implementation does not finalize without that reviewer record; blocking findings route to remediation, and the trivial inline mini-plan stays lighter. Handoffs report the plan rounds, tree leaves and final-challenge verdict.

0.7.0

  • rig-review now vets a fetched pull request's code before running any of it in that worktree; before, it only stated that the worktree held third-party code:
  • Reads the pull request's auto-load files and changed files, and reports an assessed risk.
  • Asks you before running any test, gate or reproduction there.
  • Runs nothing and records the check as unverified when you do not answer.
  • Is a prompt-level rule only: OpenCode has no sandbox, and the README limits say so.

0.6.0

  • Every workflow handoff now leads with the shared handoff table: verdict, alignment with the project's codebase and direction, findings by severity, the next action with what it closes, and confidence with its largest limit, followed by the evidence. The review's alignment field names the conventions it checked and the surfaces it did not.
  • The shipped permission ruleset covers the standard workflow calls, so a review no longer stops on each diff or test run. The read-only list adds git diff * and rg *, with * --pre * and * --pre=* as the stops for rg's one executing option in any option position; the guide's "Workflow execution allows" section lists 16 audited verification grants with the acceptance that they run project code: the pytest family (including the exact .venv forms), npm test, npm run test|lint|typecheck|check, make test|lint|typecheck, and npm pack --dry-run. The exact grants have no argument tail to bound; the pytest grants are hook-bounded and say so, including the guardrails: off risk. Formatter, build and pre-commit-hook grants are absent because their normal job is to rewrite the working tree, and a read-only role agent must not run them; rig_gate runs them in the parent where the gate approval covers them. Push, remote mutation, git fetch, plain commit without a grant, destructive operations, history rewrites, package publication, git -C, npx <tool>, sed, find, sort, tree, raw ruff/mypy/uv run, npm --prefix <dir> run <script>, npm run format, make format, npm run build, pre-commit run --files and every unlisted form still ask. A documented opt-in removes the role-agent shell catch-all for a hook-bounded, unsandboxed posture.
  • The read-only role cards tell a reviewer to prefer head, tail, grep and rg over the programs that ask, and to inspect another checkout with cd <directory> && <command> instead of git -C.

0.5.0

  • The shell guard uses positive informational and harmless-mode option tables for catalogued interpreters and debuggers; other options ask, while plain script-file limits remain. Indirect-file and code channels share option grammar, including compiler specs/configuration, plugins and forwarded options, wget credential handlers, curl engines, long prefixes and tar bundles. Only sudo and doas admit positively checked read-only targets; other elevation wrappers always ask, including system-level systemd-run and companion editors. Unprivileged systemd-run --user retains its treatment without machine or identity selectors and cannot remove inherited privilege. Program identity covers privilege aliases, versioned sudo and absolute builtin tests. Literal environment assignments share one allowlist across prefixes and wrappers; safe Git reads and non-interactive rights listings ask less. Manager aliases share program identity. Bounded direct xargs readers, external printf formats after --, BSD time flags, attached reader option values and literal cmp filenames ask less; wrapped xargs targets ask and direct builtin printf keeps its arithmetic checks.
  • An explicit scope path that is renamed away during a run now fails evidence collection with scope path was renamed away: <path> instead of being treated like a deletion, so a run restarts with a fresh selection rather than finalizing on a moved file; plain deletions, directory scopes and unrelated renames behave as before.
  • The local Git grant binds to the repository directory through the native path resolver, so the Windows 8.3 short-name spelling and the long spelling of one repository share a grant.
  • The shell guard decides more precisely when to ask:
  • Asks more reliably for shell programs fed through stdin or hidden behind launchers: a function called inside a fed shell program is judged, a stdin-fed -c program is no longer waved through, env -S and ANSI-C quoted payloads behind an uncatalogued launcher ask, and sed and sort forms that can execute a program (sed e, sort --compress-program) ask. Everyday filters such as cat, grep, head, tail, wc, cut, tr, uniq and jq keep reading without a prompt when their options are plain data options. git stash with leading options is no longer classed as a read. The guard is a speed bump, not a sandbox; the README section "What the shell guard does not promise" lists limits kept by design and known open gaps.
  • Asks less for plain text without hiding programs: a heredoc or here-string written to a file or fed to a shell script asks only when its body names a guarded command, so prose, comments and other-language code that merely mention git or gh pass; benign encoded arguments no longer ask while an ANSI-C or quote-split executable name still does; sed substitution and print expressions and head or tail counts after a Git read keep reading without a prompt, while sed forms that execute, write or read files still ask; shell options that take a name no longer swallow stdin or option-shaped operands; and a persistent exec redirect, including one set by a function that is later called, keeps tracking later output so commands written through it are still judged.
  • The allowlist asks more for package managers, project tools, runners, containers and installers, and less for safe python -m pytest and Git revision forms.
  • Reviews assess material improvement claims against revision-bound tests or measurements, distinguish supplied evidence from independent reproduction, and treat unresolved shared-hardware noise as inconclusive rather than proof of a gain or regression.
  • Gate batches that change source retain their history without certifying stale validation, including intermediate changes reverted by a later gate. Deleted outputs retain the same identity through review handoff, and optimization refreshes candidate source before measurement.
  • opencode-rig command-line behavior:
  • opencode-rig now rejects unknown options per command and prints help to stderr instead of silently ignoring them, and --version is accepted as a top-level flag. Each command lists the flags it supports (for example doctor accepts --project, --global and --assets).
  • --project now targets the Git root, as the host does, instead of the current directory, and falls back to the current directory outside Git. Agents, the opencode.json(c) merge and the .gitignore entry are written there, every write target is checked to stay inside that base directory, and a symlink in the path is refused. Git environment variables are ignored when finding the root.
  • The managed delivery-principles block is read and rewritten correctly in files with Windows line endings: its hash is checked on LF-normalized text, replacement keeps the file's existing line endings, and adopted Claude instructions are not appended again when already present after the block.
  • doctor states that it checks installation only and points to the in-session rig_doctor tool for project and runtime health. README now records OpenCode 2.2.0 as the tested host and the @opencode/plugin range from package.json, and refers to the rig-release skill by its correct name.
  • rig-implement now requires a completed, independently reviewed plan, or an explicit inline mini-plan for a trivial change under 3 files and 50 changed lines; plan review records the plan digest it assessed, and the implementation-to-review handoff carries the run ID, recorded output paths and digests, and the bound plan.
  • Gate runs execute asynchronously with a bounded time, keep complete streamed logs with bounded tails, and report a timeout accurately.
  • Evidence reads reject physical path escapes while keeping legitimate absolute paths inside the project. Persisted records, identities and storage locations are validated, and Git reads share one scrubbed environment, configuration overrides and timeouts.
  • Local commit grants keep their confirmation, repository binding, creation identity and expiry. The permission guide separates a one-time runtime approval from a persistent Approve always grant, and rig-implement uses the runtime shell prompt for a one-time Approve or Deny on the exact commit, offers Approve always separately, and records rig_git_grant only after that answer.
  • Remediation binds the source finding inventory and requires a disposition for every source ID. rig-distill reads exact preselected terminal-run files or an inventory record inside the project and records external source identifiers and access limits as decisions.
  • opencode-rig doctor checks installed digests, honors configured artifact locations and Git ignore rules, and the in-session rig_doctor rejects routing-description drift and makes a confirmed cleanup routable. rig-release uses the last release tag as its baseline and HEAD only for a first release.
  • rig-remediate no longer runs the full test suite when every changed path is user documentation (README, docs/, prose .md, .rst or .txt; skills, agents, rules and prompts do not count). It runs only the configured gates that check the docs, or records a gate_exemption with a docs check when every detected gate runs the test suite, and a documentation fix is proven by its docs check instead of a new test. The skipped suite is recorded once as a limit that never lowers confidence and is never a finding; a change touching any other path still runs every configured gate.
  • The gate file-argument check refuses a .. segment written with either separator on Windows, where a forward-slash link/../file argument previously passed the parent-segment check; POSIX behaviour is unchanged, so a filename containing a backslash is still accepted.

0.4.0

  • Shell guardrails now parse the command instead of matching text patterns. Quoting, line continuations, substitutions, heredocs, redirections, functions, cd chains, shells run through -c, and environment overrides such as GIT_* or EDITOR are read before a command is classified. A Git or GitHub command the parser cannot read safely now asks for confirmation as its own class, and a malformed shell resource list asks instead of passing. Read-only Git is accepted only for known verbs with known options, so git config writes, git stash mutations, git commit --amend, git restore, and GitHub write commands are no longer waved through as read-only.
  • The local commit grant is read through a single open file with identity checks and written through an exclusive temporary file and rename, so a symlink, FIFO, hard link, or swapped file can no longer be followed or hang the check. The grant is read only when a plain commit is being classified, and is reported after a cd or directory change.
  • Tool-call journals hold less. Journal files are created owner-only, tool inputs are stored as per-key hashes (sensitive keys as [redacted]), and errors as hashes. Redaction covers more secret shapes, including Anthropic and OpenAI style keys, Slack, npm and GitLab tokens, Basic and Bearer credentials, private-key blocks, and credential-named assignments, and it no longer leaves the visible prefix of a secret cut by truncation. A damaged session state no longer stops observation from being journaled.
  • Session state is validated and recoverable. Run and skill identifiers must be safe names and each session must point at a known run; a corrupt state.json is preserved for diagnosis and the run index is rebuilt from valid run records, while writes refuse to overwrite a corrupt file and tell you to move it aside. An active-run lookup now fails loudly on unreadable evidence instead of silently treating it as no run, and a session pointer is dropped only after its run is confirmed terminal.
  • rig_dispatch now verifies what a child session actually did. It snapshots the workspace (tracked and nonignored files, Git config, hooks and info, and gitlink heads) before and after, flags a read-only child that changed anything or a writing child that touched paths outside its owned scope or the caller's recorded run scope, and retains the child session with a scope-violation notice. A writing child must name explicit owned paths, overlapping parallel children are reported rather than blamed, and children receive the role's permission boundary plus a read-only edit deny. A confirmed non-repository is reported as unverified, and unreadable active run state now blocks a dispatch instead of skipping the check.
  • Gate runs are stricter and record which source they certify. Source drift or a changed scope during approval stops a gate run, pre-commit files are passed as literal arguments with project containment checked through symlinks, the timeout is bounded, and each gate keeps its own receipt files. Reruns supersede earlier receipts instead of replacing them: finalization and the report use only the latest receipt that matches the current scope, and the report shows each receipt as current, stale, or superseded. Gate detection also reads Makefile targets inside definitions more correctly and recognises pytest configured in setup.cfg or tox.ini.
  • Evidence collection is safer and more exact. Scope paths that escape the project or resolve through symlinks outside it are refused, a missing scope path is an error unless it is a tracked deletion, a failed Git status no longer yields an empty scope, filenames that are not valid UTF-8 keep distinct identities, commit scopes accept a single commit only and resolve to its full ID, and Git runs without environment redirection or filesystem monitors. A run's outputs may list deleted files that Git tracks as deleted.
  • Run lifecycle is tighter. Evidence changes are accepted only while a run is in progress, a completed or failed run cannot be refreshed, and a loop that stopped for a reason other than convergence can no longer be reopened and needs a replacement run. A scope refresh records its reason in the journal and drops the earlier review and loop results when the source changed. Loop finalization accepts drift and unavailable-reviewer stops, and only a converged stop is blocked by security or critical residue. Review-only axis and coverage requirements now apply to review runs rather than every skill.
  • rig_doctor reports an installed agent that was edited after installation, checks whether the artifact root is ignored by asking Git, so nested and global ignore rules count and an unavailable check is a warning rather than a silent pass, and picks the installed agent directory more reliably. Expired-run cleanup now keeps active runs and the plans they reference for four times the configured age, and the doctor skill documents a confirmed-cleanup path that deletes nothing without your explicit confirmation.
  • Role agents that fetch web content now ask before each fetch and are denied reads of environment files, keys, credentials, and SSH and user configuration paths. Every role card and the research, review, and remediation skills tell the agent to treat sources, diffs, findings, pull request comments, and fetched pages as untrusted data and not follow instructions embedded in them.
  • Skill workflows are firmer. Skills now load the references they link, so their rules reach the agent. rig-challenge runs a full baseline, fix, re-assess, and score loop with a recorded gate exemption when no gate exists. rig-implement requires a frozen plan or an inline mini-plan for small changes and rechecks the plan digest before finalizing. rig-investigate experiments in a scratch copy and never in your working tree. rig-review supports commit and PR targets, with a dedicated local ref as its only write. rig-remediate demands per-finding verifier verdicts and exact reconciliation of finding sets. rig-release compares the version against the last release tag and requires exactly one SemVer step. rig-distill reads only finished runs and never deletes artifacts.

0.3.0

  • Ship the approval rules inside the package as src/resources/permissions.json, with src/resources/permissions-guide.md as the review reference. The rules that keep push, hard reset, clean, and rebase behind an explicit answer can be read before the plugin changes a session.
  • opencode-rig permission-rule commands:
  • opencode-rig init merges those rules into the configuration file you already keep: ~/.config/opencode/opencode.jsonc, or an existing opencode.json beside it, or — with --project — the opencode.jsonc or opencode.json in the current directory. Your own rules, comments, and ordering survive the merge, and a rule of yours in the git rebase family is left to govern that whole family. Routine sessions stop re-asking without losing your configuration.
  • opencode-rig print-config prints the same rules for a configuration you would rather edit by hand, and opencode-rig check reports whether the rules are present without failing on the report.
  • Read-only command allowlist:
  • Every role agent carries the shipped ruleset after its own shell: * catch-all, so inspection commands such as git status, grep, and cat stop asking inside a role agent. A command the list does not name still asks.
  • The read-only list no longer allows rg, whose --pre option runs an arbitrary program, or a date with arguments, whose GNU -s option sets the system clock. A command that accepts --output now asks instead of writing a file silently.
  • The guide states the two channels the allowlist does not close, so the widened surface stays reviewable: a redirection attached to an allowed command still matches, which gives the six read-only role agents a write path their own edit: deny does not cover, and an agent rule is appended after the global ones, so an agent allow outranks a global deny for the same command.
  • The permission hook now classifies the v2 execute action as well as shell, so a destructive command that arrives through Code Mode is no longer skipped. A destructive or history-rewriting command that would discard working-tree changes now names the paths that belong to someone else's work, so a shared checkout cannot lose them silently.
  • Skill workflow requirements:
  • rig-plan now requires a scope verdict table (every surface in-scope, deferred with an unblock condition, or out-of-scope with a reason), a revision counter, and a verdict-changes section; owned paths must reconcile with the table both ways and the delegation brief is derived from it. A surface silently moving out of scope was the defect this prevents.
  • rig-implement refuses to start without a frozen plan, reports one plan row per changed path, refuses to revert a path that is not in scope, requires explicit user approval recorded through rig_git_grant before a commit, and states split-and-conquer delegation plus RTK guidance for read-heavy commands.
  • opencode-rig setup (with init as its alias) now also writes the shipped delivery principles into ~/.config/opencode/AGENTS.md as a digest-stamped managed block. Setup refuses to shadow an existing ~/.claude/CLAUDE.md; --adopt-claude-instructions copies it into the block, the file is created owner-only, symlinked targets and parent directories are never written through, and remove strips the block while restoring the user's bytes. --agents-only installs only the role agents so the Makefile sync stages keep their own refusals.
  • The guardrail working-tree lookup no longer executes repository-configured Git config such as core.fsmonitor, treats filenames as untrusted text in the approval prompt, and is bounded to one second so it cannot stall the permission hook.

0.2.0

  • Enforce correctness as a mandatory review axis for rig-review runs; rig_findings now normalizes axes/aspects (case/duplicates), validates allowed dimensions, and requires coverage when correctness is included. Update rig-review, rig-reviewer, and rig-remediate/rig-challenge guidance accordingly.
  • New skills:
  • Add rig-research with docs, sota, paper, and code-fidelity modes. Every claim is recorded as sourced, inferred, or unknown, contradictions are reported rather than averaged, and a research run requires a rig-scientist review before completion.
  • Add rig-distill, which mines this project's recorded runs or a supplied external inventory for recurring signatures, applies an explicit evidence threshold, rejects proposals that duplicate an existing asset, and proposes without installing or pruning anything.
  • Add rig-optimize, a guarded benchmark campaign. The benchmark must already be a configured gate, a win must clear the recorded noise band and the declared minimum improvement, every correctness gate still has to pass, and a kept round must be independently recomputed by rig-optimizer.
  • Extend rig-release with read-only release-note, migration-note, and contributor-reply drafts. Every draft line traces to a commit, finding, or changelog entry; nothing is posted.
  • Add rig-scientist and rig-optimizer role cards. Both are read-only, and rig-scientist is the only role with webfetch allowed.
  • Add rig_doctor action assets and opencode-rig doctor --assets: roster drift and dead relative links fail; duplicated prose and oversized cards warn.
  • pack_check now derives the required skill and role files from rig.json instead of a hard-coded list, so the tarball contract follows the roster.
  • Refuse to finalize new skill runs without their evidence: research and optimize require review, optimize additionally requires gates, and distill stays advisory.

0.1.1

  • A first init now exits successfully after installing the five role agents. It previously counted every freshly written file as a problem, so a scripted install such as make sync-opencode stopped on a clean machine.
  • init --check still reports missing agents as problems, and repeating init remains a no-op.

0.1.0

  • Initial release of the OpenCode evidence-first workflow plugin: eight skills (rig-plan, rig-investigate, rig-implement, rig-review, rig-remediate, rig-challenge, rig-release, rig-doctor) with matching slash commands.
  • Seven tools (rig_evidence, rig_gate, rig_findings, rig_loop, rig_git_grant, rig_dispatch, rig_doctor) record scope digests, gate receipts, validated findings, convergence rounds, and install health in a project artifact directory.
  • Runs cannot complete without their workflow evidence: source drift marks them stale, failed gates block implementation and release, review requires a named independent reviewer, remediation requires every finding closed, and challenge requires convergence with no security or critical residue.
  • A permission hook escalates remote mutations, destructive operations, history rewrites, and unreviewed local commits to ask without ever downgrading a configured answer; an explicit local grant covers plain commits only.
  • opencode-rig init installs or upgrades five read-only rig-* role agents with hash stamps, refuses to overwrite edited or unstamped files, and remove deletes only stamped files.
  • Doctor reports plugin load, version agreement, agent installation, Git grant state, artifact ignore status, detected gates, and stale runs, with an explicit opt-in cleanup for stale runs.