Pular para o conteúdo principal
P

dsh-policy-ledger

perrylink/dsh-policy-ledger

Read-only install doctor: capability snapshot, tarball assert and install diagnosis.

Instalar

dsh plugin --profile web add github:perrylink/dsh-policy-ledger

README

dsh-policy-ledger

Official repository. The only official repository of this package, maintained by PerryLink. Same-name repositories under other accounts are not affiliated. Apache-2.0.

Status: KEEP — install-only companion. Not a duplicate of dsh-plugin-doctor: this answers "what is installed, what does the tarball contain, why did the install fail?" with a read-only capability snapshot, tarball assertions and install-log diagnosis. dsh-plugin-doctor does package-structure, cordis and sandbox-smoke checks. Use both when you need both questions answered.

npm CI License dsh-plugin docs Gitee dshfind DSH Market Node npm downloads

Read-only install doctor: capability snapshot, tarball assert and install diagnosis.

Status: alpha / public-synthetic / partial / not counted / not GA. No customer evidence, customer data, or production-readiness claim.

English · 简体中文 · Español · Português · हिन्दी

dsh plugin --profile <profile> add dsh-policy-ledger

⭐ If this helps, a star makes it easier for the next person to find it. Nothing is gated behind it.

Workflow diagram for dsh-policy-ledger: local input, plugin, local output.

Workflow: local input → plugin → local output. No model call is required.

Real dsh-policy-ledger terminal output

Real local test run; no model or network call.

Install

Install and verify:

dsh plugin --profile <profile> add dsh-policy-ledger
dsh --profile <profile> --dump-config | grep dsh-policy-ledger

Uninstall:

dsh plugin --profile <profile> remove dsh-policy-ledger

Install channels

npm is the recommended channel; the others are for pinning or offline use.

  • npm (recommended): dsh plugin --profile <profile> add dsh-policy-ledger
  • git channel: dsh plugin --profile <profile> add github:PerryLink/dsh-policy-ledger
  • tarball: pnpm pack then dsh plugin --profile <profile> add ./dsh-policy-ledger-<version>.tgz
  • 1024 store: npm i -g dsh1024 then dsh1024 plugin --profile <profile> add dsh-policy-ledger

What it does

Read-only install doctor: capability snapshot, tarball assert and install diagnosis. Runs locally on DeepSeek Harness. The table below is the exact tool surface; the examples use the real command surface.

Input and output stay local; nothing is uploaded.

Tools

Tool names and descriptions are kept in English to match the runtime output.

ToolPurposeRisk
trust.capability_snapshotExtract declared capabilities and R0–R3 risk from a local npm .tgz: tools, bundle/client/bin/skill, build scripts, outbound hosts, credential referencesR0 local read
trust.diffCompare two stored snapshots: added/removed capabilities, risk escalation, blockersR0
trust.assert_tarballRe-read a tarball and compare it with a stored snapshot: pass/missing/extra/changed/unknownR0
install.diagnoseClassify an install log into stage, root cause and three actions; return unknown rather than guessR0
install.probeCheck disk free, write permission, proxy, optional registry RTT, node/pnpmR0
install.bundleWrite a redacted incident ZIP (diagnosis + evidence lines)R1 local write

Quick start

dsh plugin --profile <profile> add dsh-policy-ledger
dsh --profile <profile> --dump-config | grep dsh-policy-ledger

Examples

Fixture-backed example

Input: ACCEPTANCE.csv

Command: pnpm test

Acceptance row:

req_idmetricthresholdactualpasssourcecounted
SKU-03-A01能力快照抽取(3 包)3/33truepublic/syntheticfalse

This is a fixture-backed acceptance row, not a customer run; no output is invented.

Limits

  • Public/synthetic only; no customer data or customer evidence.
  • Alpha/partial, not counted, no GA or production-readiness claim.
  • No model or network call unless a tool explicitly says so.
  • The exact per-tool boundaries are in the table and ACCEPTANCE.csv.

Public sample

Public/synthetic fixtures live in fixtures/; ACCEPTANCE.csv records the public checks with counted=false.

Development

pnpm install --frozen-lockfile
pnpm build && pnpm lint && pnpm typecheck && pnpm test

Compatibility

SurfaceStatus
Harnessdsh >=0.2.1-rc.3 <0.3.0
Node>=24.9.0 <25
PlatformsAll; local files only
DataNo network, no model call, no upload

Permissions & data

  • Runs locally; no network, no model call, no upload.
  • Public/synthetic fixtures only; no customer data, no customer evidence.
  • Alpha/partial; not counted, no GA or production-readiness claim.

Sibling packages and family indexes: dsh-pim-lint · dsh-eval-pack

Each entry is a separate package with its own tool surface and version; install only the ones you need.

PackageWhy it is relevant
dsh-plugin-doctorPackage structure, Cordis wiring and sandbox smoke checks.
dsh-plugin-kitPlugin authoring and scaffolding kit.

Family

DSH domain plugin family (15 packages + 2 suites)
Packagenpm
dsh-einvoicenpm
dsh-docx-redlinenpm
dsh-policy-ledgernpm
dsh-ghgnpm
dsh-bankrecnpm
dsh-ap-three-waynpm
dsh-ifc-qtonpm
dsh-qms-capanpm
dsh-legal-intakenpm
dsh-legal-clausenpm
dsh-freight-auditnpm
dsh-hs-candidatenpm
dsh-travel-reconnpm
dsh-pim-lintnpm
dsh-eval-packnpm
dsh-finops-suitenpm
dsh-contract-suitenpm
Mainline family — 92 current install specs
Packagenpm
dsh-aqua-input-checknpm
dsh-archive-checknpm
dsh-bid-ca-prechecknpm
dsh-bid-qual-checknpm
dsh-contract-stancenpm
dsh-customs-doc-checknpm
dsh-demurrage-ledgernpm
dsh-drill-script-checknpm
dsh-eia-guide-checknpm
dsh-emergency-plannpm
dsh-essay-rubric-checknpm
dsh-evidence-checknpm
dsh-export-ctl-checknpm
dsh-fmea-table-checknpm
dsh-forecast-penaltynpm
dsh-gongwen-flow-checknpm
dsh-gongwen-word-checknpm
dsh-guard-plan-qcnpm
dsh-hazchem-checknpm
dsh-hazplan-checknpm
dsh-hidden-risk-mapnpm
dsh-hs-classifynpm
dsh-icd-rule-checknpm
dsh-lawcite-adapternpm
dsh-lc-doc-checknpm
dsh-learning-gap-checknpm
dsh-medrec-qcnpm
dsh-nsfc-form-checknpm
dsh-nurse-record-checknpm
dsh-origin-rvc-checknpm
dsh-ota-review-checknpm
dsh-paper-doc-adapternpm
dsh-permit-report-checknpm
dsh-pipeline-checknpm
dsh-pleading-draftnpm
dsh-policy-brief-draftnpm
dsh-power-loss-splitnpm
dsh-power-ticket-checknpm
dsh-ppap-checknpm
dsh-protest-deadlinenpm
dsh-railway-windownpm
dsh-repair-order-qcnpm
dsh-review-reply-checknpm
dsh-rulefile-checknpm
dsh-safety-brief-checknpm
dsh-site-log-checknpm
dsh-soe-decision-checknpm
dsh-soilwater-checknpm
dsh-sop-sync-checknpm
dsh-spc-gbt-adapternpm
dsh-tender-extractnpm
dsh-tender-matrixnpm
dsh-warranty-calcnpm
dsh-auto-reviewnpm
dsh-autotiernpm
dsh-budgetnpm
dsh-cert-mcpnpm
dsh-checkpoint-rewindnpm
dsh-claude-movenpm
dsh-clicknpm
dsh-composer-historynpm
dsh-data-qualitynpm
dsh-defendnpm
dsh-doublechecknpm
dsh-drawnpm
dsh-fastnpm
dsh-fund-researchnpm
dsh-industry-researchnpm
dsh-layanpm
dsh-librarynpm
dsh-local-ainpm
dsh-lsp-actionsnpm
dsh-masknpm
dsh-mcp-panelnpm
dsh-mementonpm
dsh-observenpm
dsh-output-stylesnpm
dsh-permission-rulesnpm
dsh-plugin-guidenpm
dsh-plugin-upgradenpm
dsh-reachnpm
dsh-research-reportnpm
dsh-scorenpm
dsh-session-syncnpm
dsh-talknpm
dsh-test-drivenpm
dsh-translatenpm
npm
npm
npm
npm
npm

License

Apache-2.0. See LICENSE, NOTICE, THIRD-PARTY-NOTICES.

Plugins relacionados