DSH Human Intent: Authorization for Cryptographic Operations in AI Agents

AI agents can perform real-world actions: deleting data, deploying services, spending funds, and sending messages. Having the capability to run tools does not mean the human has granted authorization. Existing human-machine interaction mechanisms often validate a vague fact (“the human touched the sensor”) and then grant the agent a generic verified = true, usually valid for a period of time. This cannot bind approval to a precise operation. Approving rm -rf ./test-data silently authorizes rm -rf ./production-data. dsh-human-intent fills this gap.

What is this

guhanfei-ai/dsh-human-intent is a DSH plugin designed to verify human intent and cryptographically authorize AI agent operations.

It ensures that authorizations are precisely action-bound, cryptographically signed, single-use, time-limited, and auditable. This plugin solves the “capability != authority” problem by precisely binding human approval to the specific command to be executed.

Installation and Activation

In a local development environment, install the plugin using the following command:

dsh plugin --profile web add link:/Users/you/dsh-human-intent

Core Functions

The plugin provides the following core capabilities:

  1. Precise Action Binding: Approvals are hashed and signed, covering the exact tool, target, and parameters; any mutation invalidates them.
  2. Cryptographic Signature: Uses WebAuthn (platform authenticators, passkeys, or security keys) for full server-side verification.
  3. Single-use & Expiration: Authorizations are valid for exactly one execution, and requests/receipts have short validity periods.
  4. Auditable: Local append-only logs record all state transitions.
  5. Policy Enforcement: Protects specific protectedTools via the tools/pre-execute policy hook.
  6. API & UI: Provides human_intent_request, human_intent_verify, human_intent_status interfaces, along with a Better Sidebar approval panel and WebAuthn UI.

Typical Usage

After installing and running the DSH client, you can interact and debug using the following commands:

  • Run Interactive Demo:
    npm run demo
This opens a browser for registration (Touch ID / Windows Hello / passkey) and demonstrates the full process of the agent proposing a destructive command, human approval/rejection, and the terminal outputting the encrypted result.
  • Start Approval Server:
    npm run serve
Runs on `http://localhost:8787` by default.
  • Inspect Receipt:
    Verify the structure, integrity, and signature of the receipt.
    node bin/dsh-human-intent.js inspect receipt.json
  • Read Audit Log:
    View locally stored audit records.
    node bin/dsh-human-intent.js audit

Use Cases & Notes

  • Environment Requirements: Requires Node.js >= 20.11.
  • Local Development: The DSH client UI must be served from localhost for WebAuthn to function. The DSH host origin must be in the configured allowedOrigins.
  • Security Model: This project is not a biometric identification system, nor does it identify specific natural persons. WebAuthn proves that a user holding a registered credential performed a User Verification gesture, not the identity of a specific natural person.
  • Conceptual Distinction: Please note the difference between “Capability” (the agent’s ability to call a tool) and “Authority” (the permission granted by the human to execute it). This plugin only addresses the latter.

Summary

This plugin provides a secure human-machine interaction layer based on WebAuthn for the DSH plugin ecosystem. It cryptographically binds human approval to specific operations, ensuring that agents can only execute explicitly authorized actions.

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

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

Xiaoye