Changelog¶
All notable changes to this package are documented here. Versions follow Semantic Versioning.
0.15.0¶
code-reviewmakes 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-sandboxroutes every workflow check throughrig_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_sandboxcopies the resolved worktree and returnsdispositionandnext_actioneven 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 itscdprefix. Configured denies stay binding for inspection, shipped blocks and designed writes. - Git guardrails keep credential-disclosing
ghforms out of automatic inspection. Only maskedgh auth statusforms 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 implicitgit 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-extraremoves stamped role cards this package no longer ships, andmake sync-opencoderuns it. A card is deleted only while its body still matches the stamp it was installed with, so a card you edited is reportedKEEPand left in place;checknever deletes, andremoveis unchanged.- Install and upgrade docs state that
opencode plugin addnever re-resolves a recorded Git specifier, so an existing install reaches a newer published commit only throughopencode plugin update '<specifier>'ormake 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 oldrtk git status --shortexample made the shell guard ask on every use and compressed nothing. ThedoctorRTK 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_PROMISINGandREJECT, ornullwhen no defensible source judgment exists. The handoff table no longer offersapproved,approved with notesorchanges requested: an approval with notes, and a diagnostic pass or warning, isAPPROVEwith non-blocking notes, and a change request isMINOR_EDITSfor a bounded, localized remedy orMAJOR_REVISIONfor material impact or substantial repair.code-review, thecode-remediatere-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 yieldsINSUFFICIENT_BUT_PROMISINGorREJECT.investigatedandblockedremain 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;.gitor 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 atrig-planinstead 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_evidencewithoutputsrefuses 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_loopacceptsrig-implement, fixes refresh the scope and rerun the gates, the next round re-challenges the new bytes, rounds are bounded bymaxLoopRounds, and a run that reaches the limit finishesblockedwith 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-plandelivers a verified plan;rig-implementconsumes it and owns the final challenge and its loop;rig-challengeruns the same ledger on request for risky work;code-remediateremains 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-challengeand 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-reviewiscode-review,rig-remediateiscode-remediate,rig-doctorisrig-health,rig-implementerisrig-builder,rig-reviewerisrig-auditor, andrig-scientistisrig-researcher; slash commands, installed agent cards, run directories, and documentation use the new names. Therefs/rig-review/*Git ref namespace is unchanged data, and runs already recorded under an old skill directory stay where they are. rig-researchnow 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-distillnow takes a one-time snapshot of recorded runs and the instruction files that govern them. Alongside new or extended assets it proposes exactconsolidate,prune, andclarifyinstruction edits and promotion of repeated run scripts, and still installs, edits, or deletes nothing.- New
rig-creatorrole 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_sandboxrejects a missing worktree with the documented boundary instead of a platformENOENT. Path-sensitive checks resolve paths on the host platform, so the suite passes on Windows as well as macOS and Linux. - Upgrade note:
initreports three stamped role cards asEXTRAafter the rename. Removerig-implementer.md,rig-reviewer.md, andrig-scientist.mdfrom 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(defaulttrue) allows a command whose every top-level fragment is akind: "command"entry in the newsrc/resources/blueprint-manifest.json, after CRLF, trailing-whitespace, quote-aware comment and blank-run normalization. The manifest is built from the fencedbash/shblocks 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 configureddenystill win, andblueprint: falsedisables the allow. - The verification allow now covers
npm test -- <script args>(and thenpm run test|lint|typecheck|check -- <args>spellings) anduv 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,xxdread form,zcat) andgit config --get. Interactive pagers,tree, writing decompressors, archive extraction,awkandsed -istay out. A relative..operand or acdoutside 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 latercdcannot 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) andrig_sandboxaccepts the project root or a review worktree while excluding.gitand credential-shaped files;rig_scriptaccepts run-relative paths and runs a probe from a session without an active run, and checks the size cap before hashing;doctorreports 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 inrig_sandbox: a copy of the worktree without its Git metadata, a digest-pinnedsandboxImage, 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-sandboxboxes every verification, andhostkeeps the trust-only baseline. With no runtime or image configured, the review asks the user once per fetched commit with the newrig_trusttool; 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.doctorreports the execution mode, and the review skill recordsisCrossRepositorybefore 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(defaulttrue) lets the permission hook answer the role'sshell: *ask withallowfor 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 literalcd <absolute path>sets the effective directory. A path-qualified program such as./catis refused because its bytes are not the named program;.venv/bin/python -m pytestis the documented exception. - The positive set is the read-only readers, read-only Git verbs, read-only
ghviews, and the verification family:pytest, environment-prefixed or.venvpython -m pytest,uv run pytest|ruff|mypy,npm test,npm run test|lint|typecheck|check, andmake test|lint|typecheck. Programs outside the set ask. - Two structural signals from the shell grammar refuse the allow:
writesfor an output redirect, a write-valued option (sort -o,sort --output=,uniqoutput,find -fls/-fprintf/-fprint/-fprint0, a Git write verb) andexecutesfor a shell, script interpreter or exec channel (find -exec,rg --pre,grep --open-files-in-pager).git add,sort -o,sed -i,bash script.shandpython script.pytherefore still ask. - Every resource in a multi-command event must pass; one failure leaves the event to the rules. A configured
denyis final,executeevents are untouched, andinspection: falseorguardrails: offdisables 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-gitasks:/dev/null,/dev/stderrand/dev/stdoutare supported sinks; a word made only of=is data in a data command (echo ====,grep ==== file);uv run pytest|ruff|mypyresolves to the inner tool; and read-onlyghviews andgh apiGETs are modelled./dev/tty, a general=-prefixed word anduv run python script.pystill ask. - The Git writes a workflow performs by design now run without a prompt through
designedWrites(defaulttrue), 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>andgit worktree prune, with<path>under the host temp root'sopencode/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
denystays final, anddesignedWrites: falseturns the allow off. The allow is independent of the guardrail mode, so it survivesguardrails: offby design. - Ad-hoc workflow code now runs as a declared script file through the new
rig_scripttool instead of an inline-cbody or heredoc. The source class names the root:runis a regular file under the active run'sscripts/,projectis a file under the checkout'sscripts/,bin/ortools/, andpluginis a helper under the installed package'sbin/orscripts/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 frompython,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-implementandrig-investigatedirect probes to the run'sscripts/directory withrig_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.doctorreports 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 frozenrig-implement), and a shared path between siblings becomes a dependency. rig-planrecords its challenged rounds in the plan's Challenge rounds section; finalizing requires that section and aconvergedoutcome, so around-limit/authority-requiredresidue is not ready. The round budget isoptions.maxLoopRounds, instruction-enforced with the review digest binding the final plan bytes.rig-implementexecutes 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-reviewnow 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 *andrg *, with* --pre *and* --pre=*as the stops forrg'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: thepytestfamily (including the exact.venvforms),npm test,npm run test|lint|typecheck|check,make test|lint|typecheck, andnpm pack --dry-run. The exact grants have no argument tail to bound; thepytestgrants are hook-bounded and say so, including theguardrails: offrisk. 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_gateruns 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, rawruff/mypy/uv run,npm --prefix <dir> run <script>,npm run format,make format,npm run build,pre-commit run --filesand 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,grepandrgover the programs that ask, and to inspect another checkout withcd <directory> && <command>instead ofgit -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
-cprogram is no longer waved through,env -Sand ANSI-C quoted payloads behind an uncatalogued launcher ask, andsedandsortforms that can execute a program (sed e,sort --compress-program) ask. Everyday filters such ascat,grep,head,tail,wc,cut,tr,uniqandjqkeep reading without a prompt when their options are plain data options.git stashwith 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
gitorghpass; benign encoded arguments no longer ask while an ANSI-C or quote-split executable name still does;sedsubstitution and print expressions andheadortailcounts after a Git read keep reading without a prompt, whilesedforms that execute, write or read files still ask; shell options that take a name no longer swallow stdin or option-shaped operands; and a persistentexecredirect, 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 pytestand 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-rigcommand-line behavior:opencode-rignow rejects unknown options per command and prints help to stderr instead of silently ignoring them, and--versionis accepted as a top-level flag. Each command lists the flags it supports (for exampledoctoraccepts--project,--globaland--assets).--projectnow targets the Git root, as the host does, instead of the current directory, and falls back to the current directory outside Git. Agents, theopencode.json(c)merge and the.gitignoreentry 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.
doctorstates that it checks installation only and points to the in-sessionrig_doctortool for project and runtime health. README now records OpenCode2.2.0as the tested host and the@opencode/pluginrange frompackage.json, and refers to therig-releaseskill by its correct name.rig-implementnow 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 alwaysgrant, andrig-implementuses the runtime shell prompt for a one-time Approve or Deny on the exact commit, offersApprove alwaysseparately, and recordsrig_git_grantonly after that answer. - Remediation binds the source finding inventory and requires a disposition for every source ID.
rig-distillreads exact preselected terminal-run files or an inventory record inside the project and records external source identifiers and access limits as decisions. opencode-rig doctorchecks installed digests, honors configured artifact locations and Git ignore rules, and the in-sessionrig_doctorrejects routing-description drift and makes a confirmed cleanup routable.rig-releaseuses the last release tag as its baseline and HEAD only for a first release.rig-remediateno longer runs the full test suite when every changed path is user documentation (README,docs/, prose.md,.rstor.txt; skills, agents, rules and prompts do not count). It runs only the configured gates that check the docs, or records agate_exemptionwith 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-slashlink/../fileargument 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,
cdchains, shells run through-c, and environment overrides such asGIT_*orEDITORare 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, sogit configwrites,git stashmutations,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
cdor 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.jsonis 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_dispatchnow 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.cfgortox.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_doctorreports 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-challengeruns a full baseline, fix, re-assess, and score loop with a recorded gate exemption when no gate exists.rig-implementrequires a frozen plan or an inline mini-plan for small changes and rechecks the plan digest before finalizing.rig-investigateexperiments in a scratch copy and never in your working tree.rig-reviewsupports commit and PR targets, with a dedicated local ref as its only write.rig-remediatedemands per-finding verifier verdicts and exact reconciliation of finding sets.rig-releasecompares the version against the last release tag and requires exactly one SemVer step.rig-distillreads only finished runs and never deletes artifacts.
0.3.0¶
- Ship the approval rules inside the package as
src/resources/permissions.json, withsrc/resources/permissions-guide.mdas 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-rigpermission-rule commands:opencode-rig initmerges those rules into the configuration file you already keep:~/.config/opencode/opencode.jsonc, or an existingopencode.jsonbeside it, or — with--project— theopencode.jsoncoropencode.jsonin the current directory. Your own rules, comments, and ordering survive the merge, and a rule of yours in thegit rebasefamily is left to govern that whole family. Routine sessions stop re-asking without losing your configuration.opencode-rig print-configprints the same rules for a configuration you would rather edit by hand, andopencode-rig checkreports 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 asgit status,grep, andcatstop asking inside a role agent. A command the list does not name still asks. - The read-only list no longer allows
rg, whose--preoption runs an arbitrary program, or adatewith arguments, whose GNU-soption sets the system clock. A command that accepts--outputnow 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: denydoes 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
executeaction as well asshell, 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-plannow requires a scope verdict table (every surfacein-scope,deferredwith an unblock condition, orout-of-scopewith 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-implementrefuses 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 throughrig_git_grantbefore a commit, and states split-and-conquer delegation plus RTK guidance for read-heavy commands.opencode-rig setup(withinitas its alias) now also writes the shipped delivery principles into~/.config/opencode/AGENTS.mdas a digest-stamped managed block. Setup refuses to shadow an existing~/.claude/CLAUDE.md;--adopt-claude-instructionscopies it into the block, the file is created owner-only, symlinked targets and parent directories are never written through, andremovestrips the block while restoring the user's bytes.--agents-onlyinstalls 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
correctnessas a mandatory review axis forrig-reviewruns;rig_findingsnow normalizesaxes/aspects(case/duplicates), validates allowed dimensions, and requires coverage when correctness is included. Updaterig-review,rig-reviewer, andrig-remediate/rig-challengeguidance accordingly. - New skills:
- Add
rig-researchwithdocs,sota,paper, andcode-fidelitymodes. Every claim is recorded assourced,inferred, orunknown, contradictions are reported rather than averaged, and a research run requires arig-scientistreview 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 byrig-optimizer. - Extend
rig-releasewith 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-scientistandrig-optimizerrole cards. Both are read-only, andrig-scientistis the only role withwebfetchallowed. - Add
rig_doctoractionassetsandopencode-rig doctor --assets: roster drift and dead relative links fail; duplicated prose and oversized cards warn. pack_checknow derives the required skill and role files fromrig.jsoninstead 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
initnow exits successfully after installing the five role agents. It previously counted every freshly written file as a problem, so a scripted install such asmake sync-opencodestopped on a clean machine. init --checkstill reports missing agents as problems, and repeatinginitremains 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
askwithout ever downgrading a configured answer; an explicit local grant covers plain commits only. opencode-rig initinstalls or upgrades five read-onlyrig-*role agents with hash stamps, refuses to overwrite edited or unstamped files, andremovedeletes 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.