DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Approval Review — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-approval-review

Approval Review

面向 DeepSeek Harness 的 Codex 风格自动批准。由独立复核器决定允许或拒绝,采用 fail-closed 策略,并为每项决定提供理由。引擎:LLM 路由或 TypeSafe 的 Jev(`reviewer.engine`)。· DSH 插件:独立复核器裁决,引擎可选 LLM 路由或 Jev。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-approval-review@0.5.1
README兼容性版本

兼容性与来源证明

Approval Review 以 dsh-approval-review 发布,当前版本为 0.5.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.5.1stable
2026/9/20
0.4.1stable
2026/9/18
0.4.0stable
2026/9/16
查看其余 5 个版本收起版本
0.3.2stable
2026/9/16
0.2.6stable
2026/9/16
0.2.5stable
2026/9/16
0.2.2stable
2026/9/16
0.2.1stable
2026/9/15

相关插件

正在加载相关插件…

最新版
0.5.1
DSH
*
HMR
重启进程
Tree shaking
已声明 sideEffects: false
解包体积
433.4 kB
文件数
12
Surface
web
许可证
Apache-2.0
发布源
npm
GitHub
★ 0
周下载
0
最近提交
2026/9/20
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 security-access 分类下经过校验的插件。

Pocketdsh-pocket把 DeepSeek Harness 装进你的口袋:一个包、一个设置页,手机扫码即同步访问电脑上的 DSH(局域网 + 公网,实时同屏)。DSCODE@toddzheng024/dscode-bundle完整的 DeepSeek 编码代理,支持持久化 shell、Ultra 协作和自动权限审查。Auto Reviewdsh-auto-review针对 DeepSeek Harness 审批请求的第二模型 AI 自动审查:只读审查子代理在审批应答链上决定允许或拒绝,并采用故障关闭回退机制和完整的会话日志审计。Codex Subscriptiondsh-codex-subscription通过 OAuth 在 DeepSeek Harness 中使用 ChatGPT 和 Codex 订阅,支持配额管理、安全重置、网页搜索、图像和快速模式

README

dsh-approval-review

English | 简体中文

Codex-style agent auto-approval for DeepSeek Harness. When an action crosses a boundary that the sandbox does not cover on its own, a second, independent reviewer model reads the proposed action and returns a verdict — so a human handles fewer routine prompts. Model judgements can still be wrong. Each reviewed decision leaves a full rationale in a dedicated Approvals tab.

This plugin implements the shape of Codex's Auto-review: an interactive approval request is routed to a reviewer agent instead of a person, the reviewer answers with a structured verdict, a denial is handed back to the calling model as reasoning rather than as a bare error, and a per-turn rejection circuit breaker stops the agent from looping on escalation attempts.

It is a reviewer swap, not a permission grant. The plugin never widens a sandbox, never invents a grant, and never removes a human from a decision it was not configured to take over. Requests it does not own are delegated with next(), unchanged.

0.5: Jev as an optional reviewer engine

reviewer.engine now chooses who reviews: the original LLM route, or TypeSafe's Jev (System One). Jev is a decision model — it answers typed questions with probabilities instead of writing prose — so one review is a single HTTP call with no tool loop. Measured on this plugin's own case set: ~0.9 s per review against 4–12 s for the LLM reviewer, and 16/16 agreement with the expected policy outcomes. Everything downstream of the verdict — risk gate, breaker, cache, ledger, Approvals tab — is shared by both engines.

To use Jev:

  1. Store the key where the harness resolves credentials: the harness credential settings, or $DSH_HOME/.env as TYPESAFE_API_KEY=…. The plugin asks the credential store first (which itself layers the launch environment, the managed store and .env files) and falls back to the process environment; it re-resolves per review, so a rotated key applies to the next verdict with no restart.

  2. Turn the engine on in your profile patch. An id-targeted override replaces the whole row config, so restate any key you still want:

    - id: approval-review
      config:
        reviewer:
          engine: jev
          jev:
            allowEgress: true
    
  3. Restart the harness (the engine is read at mount) and run /approval-review status. It prints the engine, the access-mode gate and the model, so a silent ledger always has a visible cause.

Two guards are deliberate: allowEgress: true is required because Jev is a third-party endpoint and the evidence packet leaves the machine, and a selection that does not fit the engine in force is reported rather than forwarded. Pick any Jev model or LLM route from the Approvals tab — the choice carries its engine and applies to that session only. The full contract, including what each engine can and cannot do, is in Reviewer engines.

What it does

Official seamAn approval/request answerer registered with prepend: true, so it claims a request ahead of the human UI answerer, and delegates everything else back to the chain.
Second-model reviewDefault direct receives the policy, an explicit evidence packet and a bounded local read-only inspector. Optional subagent/spawn offers read-only investigation but retains DSH preset inheritance.
No silent failureA crashed, timed-out, truncated, or off-schema reviewer answer never becomes an approval: it yields the configured failure policy, which defaults to delegate — the request goes back to the human chain. Set onReviewerFailure: rejected for the fail-closed stance.
Rationale reaches the modelA denial's reason is appended to the refused tool result, with an explicit instruction not to pursue the same outcome through a workaround. An allow verdict rides the same channel (gated by recordAllowedVerdicts): the approval outcome is a closed vocabulary, so the tool result is the only place the plugin can write durably — without it the card can show that an action ran but never why.
Risk gateAn allow verdict above maxAutoAllowRisk does not auto-allow; it delegates to the human.
Circuit breakerConsecutive and rolling-window denial thresholds, matching Codex's per-turn breaker, which stop the host turn after the triggering denial has been recorded by default.
BudgetsA per-turn cap on reviewer calls, so a loop cannot bill unlimited reviews.
One-shot override/approval-review approve [n] records a human authorization for one retry. Bound to the same session, tool and byte-identical arguments; expires after five minutes by default and is not restored after restart. The reviewer still decides.
Fourth access modeAn 替我审批 ("approve for me") entry beside 仅可查看 / 工作区内修改 / 完全权限. It shares its sandbox and approval knobs with workspace-write on purpose — the difference is WHO answers — so the menu entry itself is the switch. PermissionPresetService.derive() checks the recorded selection first, which is what lets the two coexist and stay selected.

0.4 policy and compatibility

Risk and user authorization are assessed separately. Routine low/medium risk actions normally pass. High risk requires medium/high authorization, bounded scope and no prohibition; critical risk is denied. Escalation, outside-workspace paths and normal credential authentication are not intrinsically high risk. Missing evidence, truncated action arguments, timeouts and malformed answers delegate by default.

This is not a full Codex Guardian implementation. Default direct review can inspect local metadata, directory entries and text with at most four read-only calls; it delegates when evidence remains insufficient. The inspector permits workspace paths and exact outside paths named in the action, excludes credential stores, bounds reads to 16 KiB and listings to 100 entries, and never executes shell commands. Optional subagents still inherit DSH presets. The default breaker records the tool refusal, then cancels the host turn while retaining pending user input. Only host approval/request events are covered. Custom policyText replaces the semantic policy but cannot bypass the code-level critical-risk denial or high-risk authorization gate.

Upgrading changes the default reviewer mode, risk ceiling, breaker action and cache setting; explicit profile overrides still win. Recorded rationale retains its original language while UI labels follow the current locale.

Policy comparison and test evidence

Install

No build step on install. The repository carries the built bundles (lib/) and package.json declares no prepare script, because pnpm blocks a git dependency's prepare/install build scripts (ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED) and that fails the entire install. dsh plugin add github:... therefore works with no allowBuilds entry in the profile's pnpm-workspace.yaml.

You only build when working from a source clone: pnpm build (and prepack runs it automatically before a publish).

# npm (published releases)
dsh plugin --profile <profile> add dsh-approval-review

# a local checkout
dsh plugin --profile <profile> add /path/to/dsh-approval-review

# a git pin
dsh plugin --profile <profile> add "github:LAwLi3tCoding/dsh-approval-review#<sha>"

Then restart and confirm the row composed:

dsh --profile <profile> --dump-config | grep -A6 'id: approval-review'

The desktop profile is managed by the Electron app and refuses dsh plugin; add the dependency and bundle entry by hand there, or drive it from the app's plugin manager.

Configuration

All tunables live in the bundle's cordis.patch.yml row, so they are changeable without touching code. An id-targeted override replaces the whole config row — restate every key you still want, or the omitted ones silently return to their schema defaults.

KeyDefaultMeaning
enabledtrueMaster switch. false mounts the plugin but claims nothing.
enabledByDefaulttrueSession-start default for the runtime switch.
reviewTools['*']All tool approval requests by default.
defaultPolicyaiFallback routing policy for unmatched tools.
rules[]Ordered {pattern, policy, field?, note?} regex rules, evaluated before the tool table. field is reason (default), toolName, or arguments.
reviewer.enginellmWhich engine answers: the original LLM reviewer, or TypeSafe's Jev. See Reviewer engines.
reviewer.modedirectIsolated model call by default: no inherited parent prompt, history, skills or memory. Optional subagent can inspect the workspace. Applies to engine: llm only.
reviewer.provider / .model(inherit)Reviewer route; unset inherits the calling agent's own route.
reviewer.subagentProviderspawnOptional subagent backend; spawn omits parent history but still inherits the host preset.
reviewer.inspectLocalStatetrueEnable the bounded local inspector in direct mode.
reviewer.tools[read, glob, grep]The reviewer child's tool allow-list. An empty list falls back to the read-only default rather than the parent's whole face.
reviewer.timeoutMs120000Hard deadline for one reviewer call. A slow route plus a reasoning reviewer can take ~50s; a deadline that expires mid-review becomes a failure-policy outcome (a delegation to the human by default), not a verdict.

Reviewer engines: llm and jev

reviewer.engine chooses who answers a review. llm (the default) is the original path: one model call — or a read-only subagent — reads the evidence packet and returns the verdict JSON. jev posts the same packet to TypeSafe's System One endpoint and reads typed answers back, with the decisions (prohibition hit, uncertainty, bounded scope) applied in code. Everything downstream of the verdict — the risk gate, the breaker, the cache, the ledger and the card — is shared by both engines.

Jev never touches DSH's model routes: it is a direct HTTP call with a bearer key, so it does not appear in the model picker and needs no provider registration. The typesafe/<model> value shown in the ledger is a label the plugin synthesizes for its own audit record, not a DSH route; /approval-review model <id> still works and overrides the model name or version sent to TypeSafe.

A selection from the picker carries its engine: typesafe/<model> reviews with Jev, <provider>/<model> reviews with that LLM route, a bare <model> keeps the engine already in force and replaces only the model, and default returns to the deployment's own reviewer. That is what makes every listed row mean something — including switching a Jev deployment back to an LLM for one session, which the header pill and the ledger both follow. Two limits hold: a session may switch to Jev only when the deployment acknowledged egress (jev.allowEgress), and the Jev endpoint receives a bare model name, so a value that still contains / after the typesafe/ marker is stripped is reported and ignored rather than forwarded.

KeyDefaultMeaning
reviewer.jev.endpointhttps://api.typesafe.ai/v1/systemoneWhere the evidence is POSTed. Point it at your own gateway if the packet must not go upstream directly.
reviewer.jev.modeljev-latestModel or alias. The response reports the version that answered (jev-1.13.0), and that is what the ledger records.
reviewer.jev.apiKeyEnvTYPESAFE_API_KEYEnvironment variable holding the key. The key is never read from config, never logged, never written to the audit record.
reviewer.jev.timeoutMs8000Deadline for the single HTTP call; independent of reviewer.timeoutMs.
reviewer.jev.permitProbMin0.6Top probability below which the permit answer counts as uncertain.
reviewer.jev.prohibitedAt0.5Probability at which any of the four prohibitions refuses outright, regardless of authorization. Deliberately asymmetric: a false refusal is cheaper than a false allow.
reviewer.jev.scopeBoundedAt0.5Probability at which the scope answer counts as bounded.
reviewer.jev.allowEgressfalseMust be true for the plugin to mount. Otherwise loading fails and names the endpoint the evidence would reach.
reviewer.jev.rubric{}Per-question instructions overrides keyed by question id (see src/jev-questions.ts).

What differs in practice:

  • One HTTP call per review, no tool loop. Jev cannot inspect local state, so a request whose decisive fact is not in the evidence becomes uncertain and follows onUncertain (a human prompt by default) instead of being investigated. reviewer.mode and reviewer.inspectLocalState do not apply.
  • reason is composed in code from the answers — for example Denied: prohibition "disclosure of secrets or private data" (0.97); risk critical; authorization unknown; permit 1.00 — in the configured output language. reviewer.policyText does not apply: the ruling policy lives in the per-question rubric.
  • The evidence packet leaves the machine, which is what allowEgress acknowledges. Redaction is unchanged (key-name based, plus a best-effort pass over unparsable payloads); it does not scrub secrets out of free text.
  • The key is resolved through the harness credential store first, then the environment. Store it in the credential settings, in $DSH_HOME/.env, or export it before launch: the credential seam already layers those sources (launch environment → managed store → project .env → harness-home .env) and re-resolves per request, so a rotated key applies to the next verdict without a restart. A GUI-launched harness never runs your shell startup files, which is why the store — not ~/.zshenv — is the place that works.

What happens when Jev is not configured, or only half configured:

StateResult
reviewer.engine left at llm (the default)The LLM reviewer runs. No request reaches TypeSafe, no key is needed, and no Jev warning is logged.
engine: jev without jev.allowEgress: trueThe plugin refuses to mount, naming the endpoint the evidence would reach. Nothing is reviewed automatically.
engine: jev, egress acknowledged, but no key resolvable from the store or the environmentThe plugin mounts and warns at startup when no credential store is mounted; with a store, the first review fails with a missing-credential message instead. Either way the failure follows onReviewerFailure — delegate by default, so the request reaches a human instead of being silently allowed. After maxFailuresPerTurn failures the turn stops consulting the reviewer at all.
engine: jev with mode: subagent, or a non-https endpointThe plugin refuses to mount.
Key rejected (401/403), rate limited (429), 5xx, timeout, non-JSON, or a missing answerRecorded as a reviewer failure; no retry and no partial answer is acted on.
Session access mode is not reviewerPresetThe plugin claims nothing, by design — the ledger stays empty and /approval-review status names the gate.

Enabling Jev on a fresh install

  1. Store the key where the harness can resolve it: the harness credential settings, or $DSH_HOME/.env as TYPESAFE_API_KEY=…. Both are read per review; process.env is the fallback for a deployment that mounts no credentials row.

  2. Turn the engine on in your profile patch. An id-targeted override replaces the whole row config, so restate any key you still want:

    - id: approval-review
      config:
        reviewer:
          engine: jev
          jev:
            allowEgress: true
    
  3. Restart the harness (the engine is read at mount) and run /approval-review status: it prints the engine, the gate and the model, so a silent ledger always has a visible cause.

Verify connectivity before enabling it — the live probe sends synthetic evidence only, never repository content:

export TYPESAFE_API_KEY=…     # the same key the plugin resolves at review time
npx vitest run tests/jev-live.test.ts tests/jev-policy-live.test.ts

Tool policies

  • ai — this plugin's reviewer decides. allowed-once or rejected.
  • human — delegate with next() to the rest of the answerer chain: the ordinary approval prompt. The plugin never short-circuits it.
  • never — deterministic rejected with an explanatory marker, no reviewer call and no prompt. The hard-disable stance for a tool family.

edit is deliberately not in the default reviewTools: in-place modification of an existing file is the highest-consequence routine action, so it keeps the human prompt until a deployment decides otherwise.

Example: stricter deployment

- insert:
    - id: approval-review
      name: dsh-approval-review
      config:
        reviewTools: ['bash', 'pwsh', 'write', 'edit']
        defaultPolicy: human
        rules:
          - pattern: '(?i)(rm\s+(-[a-z]+\s+)*/|git\s+push\s+--force)'
            policy: never
            note: destructive
          - pattern: 'curl|wget|nc\s'
            policy: ai
            field: arguments
        reviewer:
          model: '<a cheaper reviewer model>'
          timeoutMs: 30000
        maxAutoAllowRisk: low
        onRiskExceeded: delegate
        circuitBreaker: { consecutiveDenials: 2, windowDenials: 5, windowSize: 20, action: deny }

Session command

/approval-review on|off|status|approve [n]|model [<provider>/]<id>
  • on / off — the durable per-session switch. It survives restart and resume, because the switch is folded from the command's own session event rather than held in memory.
  • status — the effective switch, this turn's reviewer budget, the denial streak, cumulative counts, whether the breaker is open, how many one-shot overrides are pending, and the most recent decision.
  • approve [n] — records a one-shot authorization for the n-th most recent denial (1 = most recent). Only the same session, tool and byte-identical arguments can consume it once. It expires after five minutes by default and does not survive restart. The reviewer still applies all policy prohibitions.

The Approvals tab

The package's dsh.client declaration auto-registers the browser half; the host registers an approvalReview session projection whenever the profile provides the session-projection capability. No extra patch row is needed.

The Approvals tab sits in the conversation view beside 轨迹 / 上下文 / 费用 and renders the ledger as a full page: per request, the tool, the verdict, the routing policy, the risk grade, the reviewer's rationale, an optional safer-alternative suggestion, the asker's own reason, the reviewer route and duration, the risk/uncertainty flags, an expandable argument view, and a one-shot approve button for recent denials. It also shows the live budget, denial streak, and breaker state, plus the equivalent slash command.

There is no session-header card any more. It read the same projection as the tab and rendered the same ledger into a popover, on the most contended strip of the session chrome — the tab already shows it full-page, so the card was a duplicate.

Every row states whether this plugin decided it. The projection folds the host's own approval/asked events, so the tab also contains requests this plugin never arbitrated — a web_fetch handed back by defaultPolicy: human, or an ask raised by dsh-permission-rules' network policy. Those rows carry a delegated / hard-disabled tag and the real policy · policySource (re-derived from the deployment config at fold time) instead of masquerading as ai · unrecorded. A missing rationale is likewise worded per routing policy, so "no record" is never reported as "not decided by this plugin".

It lists approval requests, not tool calls. A call the sandbox allowed outright, which never raised an approval, never appears; anything that DID raise one appears, whichever plugin raised it.

Without the projection capability the tab reports itself unavailable and the answerer is unaffected.

The access-mode glyph

The access-mode menu's icon table inside @deepseek-ai/dsh-client-ui-conversation is a closed design set: only the three built-in keys have shield glyphs, and the permissions projection carries value/name/description only, so the host cannot be asked for one. The fourth entry therefore renders with no icon.

src/client/access-mode-glyph.ts supplies it from the browser half: it marks the access-mode trigger and the matching menu row with data-dsh-approval-review-glyph, and a plugin-owned stylesheet draws the same shield carrying an eye (the boundary is unchanged — someone looked before it was crossed) through ::before and an SVG mask.

  • It never touches React's tree: attributes only, no inserted nodes, so child reconciliation is left alone.
  • It yields to the built-in glyph: once the host really ships one for this key (e.g. you rebuilt the harness client package), the shim sees it and drops its own mark, so the icon is never drawn twice.
  • Rename the preset without updating the label list in that file and the glyph simply does not appear; the menu keeps working. It is a progressive enhancement, not a dependency.

How it works

              approval/request waterfall (answerer chain)
               │
   ┌───────────┴──────────────────────────────────┐
   │ dsh-approval-review answerer (prepended)     │
   │  · plugin + session switch on?               │  no ── next() ──▶ human answerer
   │  · risk rules → reviewTools → defaultPolicy   │
   │    = human? ─────────────────────────────────┼── next() ──▶ human answerer
   │    = never? ─────────────────────────────────┼── rejected + marker
   │  · circuit breaker open? ────────────────────┼── delegate / deny
   │  · per-turn budget spent? ───────────────────┼── delegate / deny
   └───────────┬──────────────────────────────────┘
               │ ai
               ▼
   ┌──────────────────────────────────────────────┐
   │ reviewer: one-shot call / read-only subagent  │
   │  · evidence: proposed action + redacted args  │
   │    + ask reason + bounded transcript,         │
   │      fenced as DATA and not instructions      │
   │  · output: {decision, risk, reason, suggest}  │
   │  · timeout raced against the request signal   │
   └───────────┬──────────────────────────────────┘
               │ verdict | failure (failure policy)
               ▼
    allow ─▶ allowed-once     deny ─▶ rejected
                                    └▶ rationale appended to the refused
                                       tool result (tools/post-execute)

The approval outcome vocabulary is closed, so a denial has nowhere to carry text. The plugin puts the rationale on the refused tool result instead, via a tools/post-execute listener. That single channel serves two purposes: the model reads why it was refused, and the audit ledger — which folds the session log — recovers the same rationale for the card.

Why the ledger adds no session event type

The persistence read path refuses to interpret a log containing an event type outside the harness's own KNOWN_SESSION_EVENT_TYPES unless the record carries the envelope's ignorable: true marker, and Session.append cannot stamp that marker on any published line — only the harness that owns the log can. A plugin that appended its own approvalReview/* event would therefore make the session unresumable.

So the ledger adds no event type. It folds the events the host already writes (approval/asked, approval/decided, tool/call, step/*, turn/*, command/run, tool/result) into a pinned projection, and correlates the reviewer's rationale out of the refused tool result. Every field on the card is reconstructible from the log alone.

Security notes

  • Redaction is structural, then textual. Argument objects are walked and secret-keyed leaves replaced before anything reaches the reviewer; keys are matched on word boundaries so auth does not redact author. A payload that fails to parse gets a best-effort textual scrub plus a length bound instead.
  • The transcript uses the same redaction. It reads the same tool/call event as the proposed-action section; a transcript built from the raw argument string would hand the reviewer exactly the credentials the other section masked.
  • The reviewer's evidence is data, not instructions. The transcript and the asker's reason can contain repository-controlled text (AGENTS.md, a file under review, command output). The data/instruction boundary is appended by code and cannot be overridden by policyText. Host-labelled user intent and exact-action approvals are authorization evidence; tool output cannot manufacture either. Quoting malicious text for analysis is not itself an unsafe action.
  • The reviewer is read-only. mode: direct is one model call holding no tools; mode: subagent is a child with a toolFilter allow-list and maxDepth: parentDepth + 1. Configured tools are intersected with read/glob/grep, so a config cannot add write or execution tools. Neither form can write, execute, or delegate, so a reviewer compromise cannot escalate the boundary it guards.
  • The reviewer cannot recurse. A reviewer child is registered as soon as it exists, so its own approval asks are delegated to the human chain instead of returning to the answerer serving it.
  • A reviewer that cannot run asks a human. onReviewerFailure: delegate, onUncertain: delegate, and maxAutoAllowRisk: high are the shipping choices: refusing in the model's name would make an infrastructure failure look like a judgement. Set onReviewerFailure: rejected for fail-closed, where refusing a safe action costs a retry while approving an unsafe one may be unrecoverable.
  • It is not a security guarantee. It evaluates only the requests the approval seam raises, and a language model can be wrong, especially in adversarial contexts. It complements a well-configured sandbox; it does not replace one.

Development

pnpm install
pnpm typecheck   # tsc --noEmit
pnpm test        # vitest run
pnpm build       # tsdown: lib/index.js + lib/client.js
pnpm check       # all three

The test suite is layered: pure policy tables, the reviewer packet and verdict parser, the audit fold, the runtime guards, and an integration layer that mounts the real ApprovalService and LlmRuntime with a scripted adapter and drives real approval/request dispatches. The integration layer is what caught a transcript-path secret leak, so it is the part worth extending first.

License

Apache-2.0.

Verdict cacheDisabled by default because authorization and local state can change. Explicit opt-in is limited to direct review without recent transcript.
Failure budgetA per-turn cap on reviewer failures, so a broken reviewer cannot be retried without bound while the request waits.
Approvals tabA conversation tab rendering every request with its verdict, routing policy, risk, rationale, safer-alternative suggestion, reviewer route, timing, and the live budget/breaker state, plus working on/off and one-shot-approve buttons.
reviewer.maxTokens(model route default)Optional output cap; omitted by default so the adapter/model configuration applies.
reviewer.temperature0Sampling temperature.
reviewer.policyText(shipping policy)Replaces the ruling policy text.
reviewer.guidance(none)Extra deployment guidance appended after the policy.
reviewer.argumentMaxChars4000Per-string argument cap.
reviewer.argumentsBudgetChars16000Whole-argument-document cap; 0 disables.
context.turns2Prior turns of transcript evidence; 0 omits recent transcript; selected original/latest user intent is still supplied.
context.maxChars6000Transcript character budget.
context.includeAssistanttrueInclude assistant messages in the transcript.
context.includeToolActivitytrueInclude tool calls and results.
maxAutoAllowRiskhighHigh risk also requires medium/high authorization and bounded scope; critical risk is always denied.
onRiskExceededdelegateallow / delegate / deny above that ceiling.
onUncertaindelegateReviewer reported it could not decide.
onReviewerFailuredelegateReviewer crashed, timed out, or answered off-schema. Defaults to delegating: a reviewer that could not run is an infrastructure problem, not a verdict — set rejected for the fail-closed stance.
budget.maxReviewsPerTurn20Reviewer calls per open turn.
budget.onExhausteddelegatedelegate / deny once spent.
maxFailuresPerTurn10Reviewer failures per open turn before requests delegate.
verdictCache.ttlMs0Disabled by default. Opt-in only for direct mode with context.turns=0 and inspectLocalState=false; key includes session, user evidence and model.
verdictCache.maxEntries256Cached fingerprints before oldest-eviction.
circuitBreaker.consecutiveDenials3Consecutive denials that trip the breaker.
circuitBreaker.windowDenials10Denials within windowSize that trip it; 0 disables.
circuitBreaker.windowSize50Rolling window size.
circuitBreaker.actionstopStop the host turn after recording the refusal; delegate / deny remain available.
override.ttlMs300000How long an /approval-review approve stays usable; 0 never expires.
override.maxPending10How many recent denials the override can address.
reasonMaxChars2000Cap on any reason string the plugin emits.
feedReasonToModeltrueAppend the rationale to the refused tool result.
recordAllowedVerdictstrueAppend the allow verdict to the accepted tool result, so the card can show why an action was allowed. Costs one short marker block in the model context per auto-allowed call.
languageautoProse language this plugin emits: /approval-review command output and the reviewer's reason/suggestion fields. auto follows the harness language setting (Settings → General → Language), en/zh pin it. Resolved per call, so a switch applies to the next command and the next verdict. Boundaries: the decision/risk enums stay English tokens (the parser validates them), and text already recorded in the transcript — an earlier verdict's prose, an earlier command's output — is never rewritten.