受治理的开发工作流
Independent community plugin for DeepSeek Harness. Not affiliated with or endorsed by DeepSeek.
이것은 DeepSeek Harness(DSH) 플러그인입니다. 이 사이트는 GitHub README, 설치 정보, 유지보수 상태, 공개 보안 시그널을 모아 보여줍니다.
업스트림에서 중국어 README를 제공하지 않아 저장소 원본 내용을 표시합니다.
governed-workflow-for-dsh
Independent community plugin for DeepSeek Harness. Not affiliated with or endorsed by DeepSeek.
Policy-enforced, evidence-first governed workflows for DeepSeek Harness agents.
dsh-governed-workflow migrates a GPT-issued, builder-executed development
workflow onto DeepSeek Harness
("dsh"): an authoritative GitHub task is issued, an agent builder implements it
on a dedicated branch, and a reviewer accepts independently. The long-term goal
is a runtime plugin that makes the workflow's invariants non-bypassable, paired
with a governed-builder Skill for instruction-level guidance.
Status
V0.9 / Developer Technical Preview candidate — final release-hardening
(Technical Preview) qualification is in progress; the Owner release gate has not
yet passed. V0 (bootstrap), V0.1 (governance core), V0.2 (authority core), V0.3
(evidence core — durable reload upstream-blocked), V0.4 (Bash runtime guard),
V0.5 (mutation guard expansion), V0.6 (governed-builder Skill), V0.7 (async
authority resolution), V0.8 (public GitHub Issue authority provider), and V0.9
(builder lifecycle tools + RUNNING-only guard) are accepted. The project is
authority-capable + evidence-recording + RUNNING-only monotonic mutation guard
(bash / write / edit) + model-facing lifecycle tools + governed-builder
Skill + opt-in public GitHub Issue authority; durable evidence reload remains
upstream-blocked; path/Git hard enforcement, authenticated/private GitHub
authority, and authority replacement remain future work.
New users: start with the Technical Preview quickstart. See docs/architecture.md for the full design.
Skill vs runtime plugin
governed-builderSkill is the behavioral operating procedure — the guidance a Builder follows (authority refresh, read-before-mutate, fail-closedBLOCKED, independent review, evidence reporting). It is model/user-loadable instructions, not an authority boundary and not a SessionEvent.- Runtime plugins (
ctx.governanceGuard,ctx.governance,ctx.governanceEvidence) enforce non-bypassable invariants. Loading or invoking the Skill never advances the lifecycle, installs authority, or unlocks mutation.
Hard runtime boundary vs guidance (at a glance)
Hard-enforced at the verified ToolRuntime seam: accepted authority
prerequisite; RUNNING-only mutation gate for bash/write/edit; terminal-state
mutation freeze; lifecycle transition allowlist (ADMIT_TASK, RUN, BLOCK,
COMPLETE, SUBMIT_REVIEW only).
Not hard-enforced (behavioral guidance or future work): allowedPaths
filesystem containment, Bash/Git semantic parsing, protected-branch Git
semantics, GitHub merge/close/successor actions, authenticated/private GitHub
authority, reviewer/owner ACCEPTED state/tool, arbitrary same-process hostile
plugin containment.
Evidence
Governance facts are appended to an explicit Session as non-surface events
(governance/authority-observed, governance/authority-rejected,
governance/lifecycle-transition). They add no model-visible message and are
projected back in sequence order for audit/replay. Recording is append-only;
flush() requests the DSH durability checkpoint (no-op without a persistence
backend).
Durable-reload limitation: current DSH exposes no way to mark these events
ignorable and no public runtime registration for out-of-repo event types, so
first-party persisted load/resume refuses a log containing them — even when
this plugin is installed. In-memory append/replay works; durable reload is an
upstream capability blocker. See
docs/dsh-compatibility.md.
Install (Developer Technical Preview)
This preview is distributed as a GitHub source install from an exact pinned commit. It is not published to npm.
# fresh profile, exact RH-1-qualified commit (pnpm >=10 will prompt for a narrow
# allowBuilds entry on the first run — see the quickstart)
dsh plugin --profile governed add github:zcx369658780/governed-workflow-for-dsh#897f39a309638dabe99859d83a2160a5913734f9
See docs/technical-preview-quickstart.md for the complete 5–10 minute walkthrough (authority Issue block, GitHub bootstrap row, boot/dump-config, and lifecycle usage).
Configure an authority (optional)
The config-backed reference provider reads an authority from the plugin row's
config (or a profile/--patch override by row id):
- id: governed-workflow
config:
authority:
taskId: issue-5
source: config
repository: owner/repo
baselineRef: main
baselineSha: 0123456789abcdef0123456789abcdef01234567
A valid authority is observed at load (UNINITIALIZED → AUTHORITY_OBSERVED);
unavailable/invalid authority fails closed and leaves the lifecycle unchanged.
No secrets, credentials, or personal machine paths belong in the snapshot.
Public GitHub Issue authority (V0.8, opt-in)
A second, explicit opt-in bootstrap can obtain authority from one public
GitHub.com Issue. It is not part of the default bundle — installing
dsh-governed-workflow with no GitHub configuration issues zero network
requests. To enable it, add a profile/--patch row for
dsh-governed-workflow/github-issue-authority-service:
- id: governed-workflow-github
name: dsh-governed-workflow/github-issue-authority-service
config:
repository: zcx369658780/governed-workflow-for-dsh
issueNumber: 17
timeoutMs: 12000 # optional, 1000–60000, default 12000
The provider performs one unauthenticated read-only GET of
https://api.github.com/repos/{owner}/{repo}/issues/{n} and parses exactly
one V1 machine-readable authority block from the Issue body:
<!-- dsh-governed-workflow-authority:v1
{
"baselineRef": "main",
"baselineSha": "f3866974951aedec10c44da01eca3b111c7e3001",
"candidateBranch": "dsh/v0-8-public-github-issue-authority",
"protectedBranches": ["main"]
}
-->
Boundaries:
- Identity is provider-derived, not body-supplied. The block may set only
baselineRef,baselineSha,candidateBranch,allowedPaths,protectedBranches;taskId/source/repository/taskReferenceare derived from the configuredOWNER/REPO#Nand cannot be overridden. - No-network-by-default. The provider/bootstrap are opt-in and absent from
cordis.patch.yml. - Public, unauthenticated only. No
Authorizationheader, no token/env credential lookup, no private repos, no authenticated fallback. GitHub's unauthenticated primary rate limit (currently 60 requests/hour per originating IP) is an external GitHub constraint, not a plugin guarantee; a403/429fails closed with no retry. - Fixed host / SSRF boundary. The API origin is fixed to
https://api.github.com; repository/issue config is strictly validated and path segments are URL-encoded; redirects/transfers fail closed rather than being followed; no configurable base URL exists. - Issue vs PR. A payload carrying a
pull_requestkey is rejected; closed or missing Issues fail closed. - One-shot snapshot semantics. One resolution admits one frozen snapshot; later Issue edits do not mutate it, and there is no polling or replacement.
Malformed/duplicate/missing blocks, oversized or malformed responses, and
unexpected HTTP states all fail closed. Failure leaves governance
UNINITIALIZED and the mutation guard denying. The V0.3 durable-evidence-reload
blocker is unchanged.
Builder lifecycle tools (V0.9, default)
The default bundle also mounts two model-facing lifecycle tools:
governance_status— read-only bounded summary (state,authorityAccepted, acceptedtaskId, last transition summary). Never mutates state.governance_transition— applies exactly one builder-authorized action (ADMIT_TASK,RUN,BLOCK,COMPLETE,SUBMIT_REVIEW) through the canonical state machine.
The intended hard runtime sequence is:
no authority -> mutation denied
AUTHORITY_OBSERVED -> mutation denied (NOT_RUNNING) -> ADMIT_TASK
TASK_ADMITTED -> mutation denied (NOT_RUNNING) -> RUN
RUNNING -> mutation may proceed -> BLOCK | COMPLETE
BLOCKED / COMPLETED -> mutation denied terminal -> SUBMIT_REVIEW
REVIEW_PENDING -> mutation denied terminal; independent reviewer decides
OBSERVE_AUTHORITY and any acceptance/reviewer transition are not exposed
to the model; there is no builder-authorized ACCEPTED state. These tools are
local/no-network, so the default bundle still performs zero network requests
unless the V0.8 GitHub bootstrap is explicitly enabled.
Development
pnpm install
pnpm build # transpile src/ -> lib/
pnpm typecheck # tsc --noEmit
pnpm test # vitest run
Documentation
- Architecture, module boundaries, and trust model
- DSH compatibility
- Contributing
- Security
- AI assistance
- Trademark notice
License
보안 및 설치 증거
이 점수는 공개 저장소 메타데이터와 이 사이트에 등록된 설치 증거에만 기반하며, 코드 보안 감사와 다릅니다.
공개 플러그인 카탈로그에서 왔으며, 공개 GitHub 저장소로 연결됩니다.
저장소가 MIT 라이선스를 선언했습니다.
최근 180일 내 코드 업데이트가 있습니다.
재현 가능한 정확한 설치 메타데이터가 아직 등록되지 않았습니다. 저장소 설명에 따라 직접 확인하세요.
검사한 패키지 메타데이터에 설치 라이프사이클 스크립트가 선언되지 않았습니다.