DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Reliability Governor Plugin — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
R

@chenjie1129/dsh-reliability-governor-plugin

Reliability Governor Plugin

Two-stage intent and evidence review, deterministic completion gates, and bounded repair for DeepSeek Harness agents

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:chenjie1129/deepseek-harness-reliability-governor#f0149ba00db3db1e8bdee4bffd8492e5b272ddef
READMECompatibilityVersions

Compatibility and provenance

Reliability Governor Plugin is published as @chenjie1129/dsh-reliability-governor-plugin and currently resolves to version 0.7.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
8/30/2026

Versions

0.7.0stable
8/30/2026
0.6.1stable
8/29/2026
0.6.0stable
8/26/2026
Show 4 more versionsCollapse versions
0.5.0stable
8/25/2026
0.4.0stable
8/25/2026
0.3.0stable
8/23/2026
0.2.0stable
8/23/2026

Related plugins

Loading related plugins…

Latest
0.7.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 2
Weekly downloads
0
Last push
8/30/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in agents-orchestration.

Headless@deepseek-ai/dsh-headlessThe dsh one-shot bundle: a direct core Agent/Session runner over dsh-base with no Host, HTTP, or browser layerExperimental Agent Team Web Profile@deepseek-ai/dsh-experimental-agent-team-web-profileExperimental Web profile layer for Agent Teams Remote and UI pluginsSubagent Codex@deepseek-ai/dsh-subagent-codexOne-shot Codex subagent provider over the official app-server protocolSubagent Claude Code@deepseek-ai/dsh-subagent-claude-codeOne-shot Claude Code subagent provider over the official Agent SDK

README

DeepSeek Harness Reliability Governor

English | 简体中文

Unofficial community project. Public beta testers wanted. Try three to five disposable local tasks and report counterexamples through the 15-minute feedback protocol. False certification, false exhaustion, false abstention, repair regression, brittle checks, and Harness compatibility reports are especially useful.

An opt-in DeepSeek Harness bundle that first lets a user review what the agent thinks was requested, then separately review how it will prove completion, and finally changes completion from a model assertion into a deterministic evidence decision.

It does not make an LLM deterministic. It makes a narrower promise: while a reliability contract is active, the agent is steered until observable checks pass, its bounded repair budget is exhausted, or it abstains. Every attempt and terminal outcome is recorded in the durable session log with a content receipt.

Reliability Governor mechanism and checked-in keyless benchmark

Evidence status

EvidenceCurrent resultClaim allowed
Keyless Harness AgentLoop fault matrix9 cases × 10 trials × 2 arms = 180 runs; mechanism gates pass; zero governed false completions and false certificationsThe active contract and lifecycle enforce declared deterministic checks under scripted faults.
Scripted auxiliary-author boundary testsStrict parsing, no-tool calls, provenance, and receipt binding passThe isolation mechanism works with a scripted stream; this is not evidence that a live model writes better contracts.
Two-stage A2UI review boundary testsOfficial A2UI v0.9.1 processor accepts both fixed surfaces; intent and evidence approval, revision, rejection, tampering, fallback, delegated-agent, and missing-provider paths fail closedExact intent and evidence proposals can require separate UI-backed Harness decisions before activation; this does not prove either proposal is correct.
Harness compatibility matrixUnit/composition tests and strict builds pass against the 0.1.1-rc.2 package floor and 0.1.2-alpha.1 source packages; the exact bundle installs and boots in a clean 0.1.2-alpha.1 profileThe plugin loads on both tested Harness versions and registers its required event vocabulary with the new fail-closed persistence catalog.
Pre-registered provider-backed benchmark20 tasks × 5 trials × 3 arms planned; not runNo live-model quality, latency, cost, or net-utility claim yet.

The project is deliberately looking for evidence against its design. See Beta feedback for the independent-oracle protocol and privacy rules.

Why this plugin exists

LLM sampling is only one source of variation. Tool results, environment state, ambiguous success criteria, context, and the model's tendency to self-report completion also vary. Lower temperature cannot prove that a requested outcome happened, and some reasoning modes ignore temperature entirely.

Harness already has goal and iterative workflow plugins, but their current documentation explicitly leaves independent verification to another layer. This plugin fills that generic runtime gap without replacing those workflows.

What it adds

  • reliability_assess — preview declared-claim coverage, independent-source counts, and brittle-evidence warnings without evaluating task output.
  • reliability_draft — in optional auxiliary-model mode, request one bounded text-only claim/check draft and record its provenance and receipt.
  • reliability_begin — open one explicit completion contract.
  • reliability_begin_code — open a code contract that automatically includes every deployment-required trusted verification profile.
  • reliability_verify — run deterministic checks immediately.
  • reliability_status — read the durable contract, attempts, terminal state, and receipts.
  • reliability_abstain — stop without fabricating proof.
  • reliability_code_profiles — list trusted profile metadata without exposing model-rewritable commands.
  • reliability_code_verify — execute one immutable profile through Harness-managed subprocess and sandbox services.
  • agent/turn-stopping enforcement — verify before an active contract is allowed to settle, then steer a bounded repair or truthfully report certification/exhaustion.

By default, reliability_begin pauses twice before activation. The first fixed A2UI v0.9.1 Basic-catalog surface shows the interpreted objective, constraints, assumptions, non-goals, and ambiguities. Only exact intent approval opens a second surface showing claims, checks, authorship, coverage warnings, and repair budget. Clients without the custom renderer receive the same proposals through Harness's native question UI. Both approvals are receipt-bound; failure at either stage leaves no active contract. Version 5 contracts embed the approved intent and bind the evidence review to it. A2UI is presentation—not the approval authority or outcome judge; Harness's live-root user-question channel records choices, and later deterministic checks decide certification. See Two-stage review.

Supported checks in v0.7:

CheckPass condition
file_existsA workspace-relative path resolves to a regular file.
file_absentNo path entry exists at the workspace-relative path.
file_containsA bounded regular text file contains an exact literal.
file_not_containsA bounded regular text file excludes an exact literal.
file_equalsA bounded regular text file exactly matches expected UTF-8 text.
json_equalsA JSON Pointer resolves to the exact predeclared JSON value.
tool_succeededThe session log contains the required matching tool call and a correlated non-error result after the contract began.
tool_not_calledThe named tool was not called after the contract began.
code_verification_succeededThe latest required results from a named deployment-configured verifier profile succeeded after the last non-governor tool call.
no_tool_errorsNo model-facing tool result after the contract began is an error.

File checks are read-only through Harness ctx.fs. Trusted code profiles receive exact deployment-authored argv and execute only through Harness ctx.subprocess, ctx.sandbox, and ctx.sandboxPolicy; the model supplies only a profile ID. The plugin never uses an LLM as the outcome judge, initiates a provider retry/fallback, or repeats a business action. Optional auxiliary authorship is requirement discovery only and has no certification authority.

Trusted verifier evidence is invalidated conservatively by any later non-governor tool call, including nested Code Mode dispatches, and by a later different verifier profile with workspace-write access. This prevents a test result from certifying code that the agent or another verifier changed afterward. Because Harness does not expose authoritative side-effect metadata for arbitrary tools, even a later read-only tool call requires the trusted profile to be rerun.

file_contains and no_tool_errors intentionally have narrow meanings. The policy warns the model not to use an exact literal for equivalent-output requirements and not to treat a recovered intermediate tool error as evidence that the final result failed. The live benchmark includes JSON-format equivalence and a recoverable-tool-error task to measure those authorship mistakes rather than assume them away.

Before activation, v0.7 maps every declared success claim to checks and counts independent evidence authorities rather than raw checks. Two checks over one file count as one source. human-required, unsupported, and under-supported claims produce review-required; brittle checks produce visible warnings. See Contract coverage. Coverage remains structural: the separate intent review exposes semantic assumptions to the user but cannot automatically prove that every requirement was understood or mapped to a claim.

Contract authorship is configurable. The zero-setup default is current-agent; auxiliary-model routes one isolated draft call through Harness's existing provider/model layer; manual is for a user or reviewed reference contract but is honestly labeled caller-declared, not authenticated. Auxiliary drafts must match a durable receipt exactly before activation. See Contract authoring.

Install

From the directory containing this checkout:

git clone https://github.com/chenjie1129/deepseek-harness-reliability-governor.git
cd deepseek-harness-reliability-governor
npm ci
npm pack
dsh plugin --profile web add ./chenjie1129-dsh-reliability-governor-plugin-0.7.0.tgz
dsh --profile web --dump-config
dsh --profile web

For a headless profile, replace web with its profile name. The interactive default needs a registered Harness user-question provider; without one, intent or evidence review returns unavailable and no contract activates. Controlled unattended workflows may explicitly set contractReview.mode: off. The installed profile must list @chenjie1129/dsh-reliability-governor-plugin in dsh.profile.bundles; merely placing the package beside Harness does not activate it.

The shipped bundle layer mounts one plugin row:

- insert:
    - id: reliability-governor
      name: '@chenjie1129/dsh-reliability-governor-plugin'
      config:
        maxAttempts: 3
        maxChecks: 20
        maxFileBytes: 1048576
        autoVerifyAtTurnStop: true
        codeVerificationMaxOutputBytes: 65536
        codeVerificationProfiles: []
        contractAuthoring:
          mode: current-agent
          maxInputBytes: 32768
          maxOutputTokens: 3000
          timeoutMs: 45000
        contractReview:
          mode: required

The empty code-profile list is a fail-safe default because repositories have different checks. Configure reviewed test/typecheck/build argv as described in Trusted code verification. The bundled reliability-code-verification skill teaches the workflow; the runtime profile, not the skill, is the independent judge. contractReview.mode: required is the interactive default and now means both intent and evidence review. Unattended evaluation or automation must opt out explicitly with mode: off; that creates an unreviewed version 3 contract and must not be reported as intent-approved or evidence-approved.

Keep current-agent unless you specifically want an extra authoring call. For auxiliary-model, first configure credentials and the exact provider route in Harness Models, then add only provider, model, and optional reasoningEffort under contractAuthoring; the governor never stores provider credentials. There is no automatic route fallback.

Example contract

The model calls:

{
  "objective": "Create a configured application entry point",
  "intent": {
    "constraints": ["Preserve unrelated workspace files and existing public behavior"],
    "assumptions": ["src/index.ts is the requested application entry point"],
    "non_goals": ["Do not redesign unrelated modules"],
    "ambiguities": []
  },
  "claims": [
    {
      "id": "entry-configured",
      "statement": "src/index.ts exists and exports apply",
      "importance": "critical",
      "verification": "deterministic",
      "check_ids": ["entry", "export"],
      "minimum_independent_sources": 1
    },
    {
      "id": "trusted-tests-pass",
      "statement": "The deployment-approved unit tests pass on the final workspace state",
      "importance": "critical",
      "verification": "deterministic",
      "check_ids": ["tests"]
    }
  ],
  "checks": [
    { "id": "entry", "kind": "file_exists", "path": "src/index.ts" },
    { "id": "export", "kind": "file_contains", "path": "src/index.ts", "text": "export function apply" },
    { "id": "tests", "kind": "code_verification_succeeded", "profile": "unit-tests" }
  ],
  "max_attempts": 3
}

The model first previews the claim/check mapping with reliability_assess. In interactive mode, reliability_begin then asks the user to approve the interpreted intent and the evidence contract separately. Only both approvals create a version 5 contract. At a stopping boundary the plugin evaluates the actual assertions. A failure produces an exact repair message and another model step. A pass records certified; the final model step receives the terminal SHA-256 receipt. At the budget limit it records exhausted and explicitly tells the model not to claim completion.

Develop and verify

npm install
npm run check

npm run check runs unit/composition tests, validates all evaluation manifests, builds strict ESM TypeScript, executes the 180-run keyless A/B benchmark, verifies the release contract, and audits the npm pack list. Follow docs/SMOKE_TEST.md for the required clean-profile Harness test.

To regenerate the promotion visual directly from the checked-in keyless report:

npm run demo:render

Benchmark commands:

npm run benchmark:keyless
npm run benchmark:live:plan

The keyless benchmark proves the governor's enforcement mechanics using the real Harness agent loop and an independent oracle. It does not prove that a natural-language model became deterministic. The provider-backed, pre-registered 20-task three-arm protocol measures false success, false exhaustion, false abstention, contract-authorship cost, repair transitions, overhead, and uncertainty; see docs/BENCHMARK.md.

Boundaries

  • A receipt hashes the recorded contract/outcome; it is not a signature and does not prove the external world independently.
  • The model still chooses whether a task needs a contract and which checks express success. A bad contract can certify the wrong thing.
  • Out-of-band workspace changes that produce no Harness tool event are not detected; use isolated workspaces and prevent concurrent external writers.
  • Deterministic checks improve outcome reliability, not wording consistency.
  • Each UI approval establishes only that its exact proposal was accepted through the live Harness question channel. Neither authenticates a legal identity, proves that the user understood it, authorizes side effects beyond the original request, or certifies the outcome.
  • v0.7 does not judge visual quality, semantic correctness beyond configured checks, omitted claims, remote state without authoritative evidence, or unknown side-effect outcomes. Two-stage review makes misunderstandings visible; it does not guarantee that users detect them.
  • Removing this plugin from a profile that owns sessions containing its required custom events can make those sessions non-continuable by a runtime that does not know the event vocabulary. Keep the bundle installed when resuming those sessions. Harness 0.1.2-alpha.1 has no downstream event-registration service, so v0.7 registers these types in its exported process-wide persistence catalog at load and fails loudly if that compatibility seam becomes unavailable.

See Contract review, Contract authoring, Contract coverage, Beta feedback, Architecture, Trusted code verification, Research, Benchmark, Limitations, and Security.

License

MIT