DeepSeek Harness Plugin: goal-acceptance

# Preface
In the DeepSeek Harness (DSH) plugin ecosystem, workflow management is key to improving agent reliability. Agents often tend to declare completion prematurely without fully achieving their goals, leading to outputs that fall short of expectations. The goal-acceptance plugin introduces an acceptance criteria-driven mechanism that locks immutable acceptance conditions before a task begins and enforces verification during execution, thereby avoiding this "self-congratulatory" behavior.

## Plugin Positioning
goal-acceptance is an acceptance criteria-driven tool for agent goal completion, comprising a core library, an MCP server, and a Cordis plugin for DeepSeek Harness (DSH).

*   **Core Value**: Lock immutable acceptance criteria, enforce completion checks, and support dependency ordering and task decomposition.
*   **Maintainer**: cckyros.
*   **License**: MIT.

## Core Capabilities

### Acceptance Criteria-Driven
The plugin locks acceptance criteria before the agent starts work and continuously tracks verification status during the workflow. It supports associating acceptance criteria with task progress and enforces completion checks.

### Dual-Role Verification
The plugin provides three role configurations: `agent`, `reviewer`, and `dual`. When using the `agent` role, the standards verified by the agent itself are marked as `selfClaimed=true`, and the system blocks goal completion until an independent reviewer confirms it. This mechanism breaks the closed loop where the agent both executes the task and grades its own performance.

### Typed Evidence
The plugin supports four types of evidence: `command` (command execution results), `file` (file content), `url` (link content), and `text` (text). Evidence of the `text` type is marked with `lowConfidence=true` to allow reviewers to quickly identify subjective descriptions.

### Task Decomposition and Dependencies
Agents can decompose goals into atomic tasks, each containing clear deliverables. The plugin verifies the uniqueness of task IDs, the clarity of descriptions, the non-emptiness of deliverables, and the validity of dependencies (no circular dependencies, no unknown dependencies).

### Cross-Platform Compatibility
The plugin provides a unified installation entry point, supporting 22 different agent platforms and runtime environments. For DSH users, it runs as a Cordis plugin.

### Event Sourcing and Persistence
All state changes are recorded using event sourcing. If the `PLUGIN_DATA` environment variable is configured, state is persisted to a file, supporting recovery across restarts; otherwise, state exists only in memory.

## Installation and Enablement

### Prerequisites
*   Node.js version >= 18.

### Installation Command
Install the plugin in the DSH environment:
```bash
node dist/cli.js install --target dsh

Usage

MCP Server Mode

If you need to use it in other MCP clients, you can start the MCP server:

# Memory mode (lost after restart)
node dist/cli.js mcp

# Persistence mode
PLUGIN_DATA=/path/to/data node dist/cli.js mcp

Setting Acceptance Criteria

Use the set_acceptance_criteria interface to define criteria, specifying the role parameter:

// Example: Set agent self-evaluation criteria
set_acceptance_criteria({ criteria: "...", role: "agent" })

Setting Task Plan

Use set_task_plan to decompose the goal into a list of subtasks.

Notes

  1. Data Persistence: By default, if the PLUGIN_DATA environment variable is not set, the plugin state runs only in memory and is lost after a restart.
  2. Evidence Confidence: When using text type evidence for verification, the system automatically marks it with lowConfidence=true.
  3. Operational Mechanism: In DSH, this plugin runs as a Cordis plugin via dist/dsh-plugin.js, utilizing agent.steer() to enforce control flow.

Summary

goal-acceptance provides a fundamental safeguard for workflow management in the DSH plugin ecosystem through strict acceptance criteria locking and evidence-driven verification. It encapsulates complex verification logic into a zero-dependency core state machine and is compatible with MCP standards and the Cordis plugin architecture.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye