MkaliezZ / dsh-policy-test

목록에 있음

Deterministic regression tests for DSH policy decisions, evaluated without invoking the protected tool body.

main도구 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:MkaliezZ/dsh-policy-test

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 902f198동기화 2026. 8. 18.

dsh-policy-test

Deterministic regression tests for DSH policy decisions.

v0.1 evaluates policy fixtures without calling the protected tool body. It is intended for AgentFuse-style and other DSH pre-dispatch policies where configuration drift can silently turn an expected BLOCK into ASK/ALLOW.

Fixture cases carry tool, args, and expected decision. The runner returns pass/fail results and never dispatches the underlying tool implementation.

AgentFuse integration (the closed loop)

The evaluator adapter plugs directly into @agentfuse/core — the engine behind the dsh-agentfuse pre-dispatch gate. Compile the same PolicyConfig the production gate compiles, and the fixture table becomes a regression lock on the production decision table: policy drift (e.g. a default silently flipped to allow) turns red instead of turning into an unexpected ALLOW.

See examples/agentfuse/ for the adapter, fixtures, and a drift-detection test.

Non-claims

  • no physical tool execution in test mode;
  • not a sandbox;
  • policy adapters must be supplied explicitly;
  • passing fixtures do not prove production configuration is identical unless that configuration is what the adapter evaluates.

Development

npm install
npm test

MIT

프로젝트 파일 및 신호

표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.

테스트감지됨
예제감지됨

저장소 정보

언어
TypeScript
라이선스
보고되지 않음
마지막 업데이트
2026. 8. 15. 오후 1:14

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.