dsh-principal-binding-proof
模型与 MCP 活跃维护

dsh-principal-binding-proof

dongsheng123132/dsh-principal-binding-proof

支持离线生成跨DSH执行面的伪匿名权限绑定内容寻址证明,基于内容寻址机制保障证明可验证、不可篡改,部署轻量、验证高效,可覆盖不同DSH运行场景的权限可信校验需求。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
15 KB
仓库大小
27 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:dongsheng123132/dsh-principal-binding-proof
git clone https://github.com/dongsheng123132/dsh-principal-binding-proof.git
git clone git@github.com:dongsheng123132/dsh-principal-binding-proof.git
README.md main

dsh-principal-binding-proof

Offline, content-addressed evidence that one pseudonymous authority and tenant remain consistently bound across a DSH execution chain: principal → session → agent → tool call → runtime → artifact.

It validates explicit recorded hashes, revision, key epoch, evidence freshness, issuer allowlists, validity windows, revocation, adjacency and a unique acyclic chain. It detects authority swaps, cross-tenant confusion, stale identities, broken or mis-typed bindings, unauthorized issuers and terminal artifact mismatches.

Boundary

This is not authentication, authorization, signature verification, access control or a remote transport. It grants no authority, reads no accounts, credentials, prompts or business payloads, and executes no commands.

  • dsh-decision-effect-proof reconciles authorization decisions with effects.
  • dsh-attestation-proof verifies signed DSSE/in-toto statements.
  • dsh-lineage tracks object and action provenance.
  • This plugin checks the narrower identity-confusion question: whether every redacted execution surface claims the same authority, tenant and revision through a valid explicit binding chain.

See examples/bound.json.

npm test
npm run check
node bin/dsh-principal-binding-proof.mjs verify examples/bound.json
dsh plugin --profile proof add .

DSH tools are dsh_principal_binding_inspect and dsh_principal_binding_verify. MCP exposes proof-only inline equivalents. Workspace verification accepts only relative, non-symlink paths and writes a deterministic content-addressed report beneath an explicit artifactDir, followed by SHA-256 read-back verification.

MIT licensed. See SECURITY.md.